# User already attached error

**URL:** <https://techcommunity.softwareag.com/t/user-already-attached-error/95924>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [January 12, 2011, 3:54pm UTC](https://techcommunity.softwareag.com/t/user-already-attached-error/95924 "2011-01-12T15:54:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![maciejm](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@maciejm](https://techcommunity.softwareag.com/u/maciejm)\
**Post date:** [January 12, 2011, 3:54pm UTC](https://techcommunity.softwareag.com/t/user-already-attached-error/95924/1 "2011-01-12T15:54:59Z")

</div>

Hello Everyone,

What can cause this error:

User XXX(session\_id) already attached.

Regards,  
Maciej

---

<div class="post-metadata">

**Author:** ![Tanya](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@Tanya](https://techcommunity.softwareag.com/u/Tanya)\
**Post date:** [January 12, 2011, 4:01pm UTC](https://techcommunity.softwareag.com/t/user-already-attached-error/95924/2 "2011-01-12T16:01:11Z")

</div>

Maciejm,

it means there is a session with the same id. Try opening Applinx Administrator and see the sessions view. You will probably find the session with the same ID there.

Tanya

---

<div class="post-metadata">

**Author:** ![maciejm](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@maciejm](https://techcommunity.softwareag.com/u/maciejm)\
**Post date:** [January 12, 2011, 5:27pm UTC](https://techcommunity.softwareag.com/t/user-already-attached-error/95924/3 "2011-01-12T17:27:46Z")

</div>

Thank you Tanya for quick replay, but I have a next question.  
How can it be that on the same server I could have sessions with the same ID?  
I tought that sessions must have a uniqe ID.

Regards,  
Maciej

---

<div class="post-metadata">

**Author:** ![Tanya](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@Tanya](https://techcommunity.softwareag.com/u/Tanya)\
**Post date:** [January 12, 2011, 5:33pm UTC](https://techcommunity.softwareag.com/t/user-already-attached-error/95924/4 "2011-01-12T17:33:27Z")

</div>

Maciejm

Try checking whether you defined the session id. The two places that come to my mind are session properties in the designer and in gx\_appConfig.xml of in the web application.

Hope it helps.

Tanya

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [January 13, 2011, 12:31am UTC](https://techcommunity.softwareag.com/t/user-already-attached-error/95924/5 "2011-01-13T00:31:41Z")

</div>

I encountered this type of problem when there were multiple web applications using the same host. The default session id needed to be qualified by an application identifier in order to ensure that the different applications each had their own session.

In the gx\_initSessionConfig() method (I’m using the VB names), add a line like:

```auto
gx_appConfig.SessionConfig.SessionId = "MYAPP_" + gx_appConfig.SessionConfig.SessionId 
```

where MYAPP is some sort of identifier for each application. Or tweak the gx\_appConfig.xml session id value for each application.

---

<div class="post-metadata">

**Author:** ![maciejm](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@maciejm](https://techcommunity.softwareag.com/u/maciejm)\
**Post date:** [January 13, 2011, 9:24pm UTC](https://techcommunity.softwareag.com/t/user-already-attached-error/95924/6 "2011-01-13T21:24:44Z")

</div>

Thank you Tanya and Douglas for your suggestions.

I am not quite sure that this error depends on the session id.  
I’ve changed the gx\_appConfig.xml session id value, but it didn’t help.

Maybe the problem exist at the interface of ApplinX → Mainframe.

I give you a detailed description of case:

I have an application with a JSP generated pages. On one of them I have a search form.  
I select some options on it and submit it. In next step I should see a page with a counter, which counts records.  
On a web browser I only see the screenlocker page, nothing else.  
On ApplinX Administrator (in session view) I see the window with the record counter.  
After more then a minute, in the same time when the record counter shows the results (in session view),  
the search form page is reloading and the “User already attached error” appears.

In server log I have this:

2011-01-13 14:51:39,394 [W00005\_Request\_Handler] WARN \> WebDev:E9CF9C8B64CB54003FBD7DDEE23A7B40: Wait Host Quiet failed  
2011-01-13 14:51:39,394 [W00005\_Request\_Handler] WARN \> WebDev:E9CF9C8B64CB54003FBD7DDEE23A7B40: Wait condition timed out  
2011-01-13 14:52:06,413 [W00008\_Request\_Handler] WARN \> GXUser$UserAlreadyAttachedException: User E9CF9C8B64CB54003FBD7DDEE23A7B40 is already attached

The most interesting thing is that when I’ve adjusted the ‘Wait condition timeout’ parameter in host activity of my application, from default 60000 ms to 120000 ms, the "User already attached error’ didn’t appear.

Regards,  
Maciej

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [January 14, 2011, 12:40am UTC](https://techcommunity.softwareag.com/t/user-already-attached-error/95924/7 "2011-01-14T00:40:13Z")

</div>

The record counter screen keeps the “Wait Host Quiet” condition from being met as the host is not quiet. Increasing the timeout allows it to wait for the record counting to finish.

This is probably an application condition: how are you handling the Wait timeout condition in your JSP page?

---

<div class="post-metadata">

**Author:** ![maciejm](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@maciejm](https://techcommunity.softwareag.com/u/maciejm)\
**Post date:** [January 19, 2011, 5:25pm UTC](https://techcommunity.softwareag.com/t/user-already-attached-error/95924/8 "2011-01-19T17:25:52Z")

</div>

Douglas,

I didn’t handle the Wait condition timeout in my JSP page, because I didn’t know that this kind of window (with record counter) could generate the user already attached error.  
So I’ll try to add the wait time condition in my JSP page and I’ll let you know if this helps.

Regards,  
Maciej

---

<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:59pm UTC](https://techcommunity.softwareag.com/t/user-already-attached-error/95924/9 "2021-04-02T14:59:39Z")

</div>


