# Problem inserting the payload in Tamino

**URL:** <https://techcommunity.softwareag.com/t/problem-inserting-the-payload-in-tamino/59431>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Service-Orchestrator\
**Created:** [September 13, 2005, 8:31pm UTC](https://techcommunity.softwareag.com/t/problem-inserting-the-payload-in-tamino/59431 "2005-09-13T20:31:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![El\_Charlie](https://avatars.discourse-cdn.com/v4/letter/e/4bbf92/32.png) [@El\_Charlie](https://techcommunity.softwareag.com/u/El_Charlie)\
**Post date:** [September 13, 2005, 8:31pm UTC](https://techcommunity.softwareag.com/t/problem-inserting-the-payload-in-tamino/59431/1 "2005-09-13T20:31:15Z")

</div>

Hello:

I want to insert my payload inTamino. I’ve created a Schema that matches with the payload. I can connect and perform a query without problems, but trying to insert a new document, this error occurs:

[color=“red”]

Exception: “com.softwareag.xbridge.exceptions.XException: TaminoSingleAccessor: Internal error: Message object does not have a connections container.”

[/color]

The “xdb.tamino.connection-name” property is set with the same value in the “SagTaminoConnection” component and the “SagTaminoSingleAccessor” component.

Any ideas? Thanks.

---

<div class="post-metadata">

**Author:** ![Matthew](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Matthew](https://techcommunity.softwareag.com/u/Matthew)\
**Post date:** [September 14, 2005, 1:27pm UTC](https://techcommunity.softwareag.com/t/problem-inserting-the-payload-in-tamino/59431/2 "2005-09-14T13:27:28Z")

</div>

Hi,

Can you tell us a little about your environment. What version of Tamino isinstalled? Is the tamino java API installed with tamino?

If you could, please post the sequence you are using as well.

Thanks,

Matthew 🙂

---

<div class="post-metadata">

**Author:** ![El\_Charlie](https://avatars.discourse-cdn.com/v4/letter/e/4bbf92/32.png) [@El\_Charlie](https://techcommunity.softwareag.com/u/El_Charlie)\
**Post date:** [September 14, 2005, 3:14pm UTC](https://techcommunity.softwareag.com/t/problem-inserting-the-payload-in-tamino/59431/3 "2005-09-14T15:14:50Z")

</div>

Thanks 4 replying:

I’m using Mediator Version 7.4.1.1. , on Windows 2000.  
The Java Tamino API is installed. The Tamino connection works fine, as the query. Only the insertion fails.  
The payload fits with the “Trazas” schema. I’ve tried to insert the payload with the Tamino Interactive Interface (copy & paste), with success.

The sequence I use is:

```auto

<?xml version="1.0" encoding="UTF-8"?>
<sequence version="4.0" xbd.zid="N400001">
    <block xbd.zid="N400002">
        <!--{Name: Conexion};{Notes: }-->
        <step component="SagTaminoConnection" xbd.tamino.action="start-session" xbd.tamino.connection-name="MediatorTrace" xbd.tamino.connection.action="start-session" xbd.tamino.connection.connection-name="MediatorTrace" xbd.tamino.connection.database="DBMediatorTrace" xbd.tamino.connection.server-url="http://localhost/tamino" xbd.tamino.connection.transaction-mode="local" xbd.tamino.database="DBMediatorTrace" xbd.tamino.isolation-degree="stableDocument" xbd.tamino.lockmode="unprotected" xbd.tamino.server-url="http://localhost/tamino" xbd.zid="N400004"/>
        <step component="SagTaminoQuery" xbd.tamino.accessor="XML" xbd.tamino.collection="Trazas" xbd.tamino.connection-name="MediatorTrace" xbd.tamino.xql-text="Traza" xbd.zid="N400030"/> 
        <step component="SagPayloadSetter" xbd.payloadSetter.inputURL="http://localhost:8080/slide/users/me/repos/pruebasConexion/TrazaVacia.xml" xbd.zid="N400022"/>
        <!--{Name: set};{Notes: }-->
        <set target="/Traza/msgIN" value="Message IN" xbd.zid="N400024"/>
        <!--{Name: set};{Notes: }-->
        <set target="/Traza/msgOUT" value="Message OUT" xbd.zid="N400025"/>
        <!--{Name: set};{Notes: }-->
        <set target="/Traza/timestamp" value="{'$xbd.factory.arrival'}" xbd.zid="N400027"/>
        <!--{Name: set};{Notes: }-->
        <set target="/Traza/client" value="{'$xbd.portal.client.address'}" xbd.zid="N400029"/>
        <step component="SagTaminoSingleAccessor" xbd.tamino.accessor="stream" xbd.tamino.action="insert" xbd.tamino.collection="Trazas" xbd.tamino.connection-name="MediatorTrace" xbd.tamino.payload-update="true" xbd.zid="N400026"/>
    </block>
</sequence>

```

The “TrazaVacia” xml is a simple template:

```auto

<?xml version="1.0" encoding="windows-1251"?>
<Traza>
	<timestamp/>
	<client/>
	<msgIN/>
	<msgOUT/>
</Traza>
```

I thing all is right, but …

---

<div class="post-metadata">

**Author:** ![Matthew](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Matthew](https://techcommunity.softwareag.com/u/Matthew)\
**Post date:** [September 14, 2005, 4:22pm UTC](https://techcommunity.softwareag.com/t/problem-inserting-the-payload-in-tamino/59431/4 "2005-09-14T16:22:14Z")

</div>

I think the properties for your connection are a little messed up. The properties in your connection step:

xbd.tamino.connection.connection-name=“MediatorTrace”  
xbd.tamino.connection.database=“DBMediatorTrace”  
xbd.tamino.connection.server-url=“[http://localhost/tamino](http://localhost/tamino)”  
xbd.tamino.connection.transaction-mode=“local”

are invalid. The properties:

xbd.tamino.action=“start-session”  
xbd.tamino.connection-name=“MediatorTrace”  
xbd.tamino.database=“DBMediatorTrace”  
xbd.tamino.isolation-degree=“stableDocument”  
xbd.tamino.lockmode=“unprotected”  
xbd.tamino.server-url=“[http://localhost/tamino](http://localhost/tamino)”

are correct. This means you have an auto-commit transaction-mode since this is the default. I am not sure if this is your problem, but I would suggest you correct the sequence and retry.

Let me know how it goes.

---

<div class="post-metadata">

**Author:** ![El\_Charlie](https://avatars.discourse-cdn.com/v4/letter/e/4bbf92/32.png) [@El\_Charlie](https://techcommunity.softwareag.com/u/El_Charlie)\
**Post date:** [September 14, 2005, 4:55pm UTC](https://techcommunity.softwareag.com/t/problem-inserting-the-payload-in-tamino/59431/5 "2005-09-14T16:55:40Z")

</div>

Thanks Matthew:

I’ve already deleted the invalid properties, as you said → same error.

I’ve changed the “transaction-mode” property to “local” → same error.

I’ve deleted the “isolation-degree” and “lock-mode” properties → same error.

“com.softwareag.xbridge.exceptions.XException: TaminoSingleAccessor: Internal error: Message object does not have a connections container.”

…more ideas? Thankz in advanz. 😉

Charlie.

---

<div class="post-metadata">

**Author:** ![Matthew](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Matthew](https://techcommunity.softwareag.com/u/Matthew)\
**Post date:** [September 14, 2005, 7:02pm UTC](https://techcommunity.softwareag.com/t/problem-inserting-the-payload-in-tamino/59431/6 "2005-09-14T19:02:40Z")

</div>

I haven’t been able to reproduce this on my system. What version of Tamino are you using?

There is one small issue in the sequence you designed I think I should let you in on. It is most likely not an issue for your sequence but could make problems for you when your application becomes more complex. The XML accessor, when used in a TaminoQuery will return x documents but Mediator will only process the first. To access all documents you have to either use the stream accessor or you need to place the same query in a while loop and itterate through the results. When you call the same query again, the next document will be automatically become the new current payload.

---

<div class="post-metadata">

**Author:** ![El\_Charlie](https://avatars.discourse-cdn.com/v4/letter/e/4bbf92/32.png) [@El\_Charlie](https://techcommunity.softwareag.com/u/El_Charlie)\
**Post date:** [September 14, 2005, 8:07pm UTC](https://techcommunity.softwareag.com/t/problem-inserting-the-payload-in-tamino/59431/7 "2005-09-14T20:07:36Z")

</div>

I’m using Tamino 4.1.4

The query step is only for testing the database access. It returns all the “Traza” documents, but it is only a test. What I really want to do is the insertion of a new document.

What the “connections container” could be?

---

<div class="post-metadata">

**Author:** ![Matthew](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Matthew](https://techcommunity.softwareag.com/u/Matthew)\
**Post date:** [September 14, 2005, 8:43pm UTC](https://techcommunity.softwareag.com/t/problem-inserting-the-payload-in-tamino/59431/8 "2005-09-14T20:43:13Z")

</div>

Are you having this problem when running the debugger? A friend reminded me of a bug we had in this version when testing sequences which had Tamino connections.

If this is the case, try testing the sequence using a test document. This avoids the constant communication between the studio and runtime.

The problem is corrected in the current version - 7.4.2.

---

<div class="post-metadata">

**Author:** ![El\_Charlie](https://avatars.discourse-cdn.com/v4/letter/e/4bbf92/32.png) [@El\_Charlie](https://techcommunity.softwareag.com/u/El_Charlie)\
**Post date:** [September 14, 2005, 8:54pm UTC](https://techcommunity.softwareag.com/t/problem-inserting-the-payload-in-tamino/59431/9 "2005-09-14T20:54:14Z")

</div>

Dear Matthew…

:lol: :lol: :lol: :lol: :lol: :lol: :lol:

IT WORKS :!: :!: :!:

:lol: :lol: :lol: :lol: :lol: :lol: :lol:

It’s a debugger problem, as you said.

Thanks 4 all.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:39pm UTC](https://techcommunity.softwareag.com/t/problem-inserting-the-payload-in-tamino/59431/10 "2021-04-02T14:39:50Z")

</div>


