[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: abender  XML
Profile for abender -> Messages posted by abender [34] Go to Page: Previous  1, 2, 3
Author Message
Hi,

when starting our application in a new browser window the code to display the first page is called twice. We put a breakpoint in the method prepareObject() of the Dispatcher and see that the method is called from two different Http sessions within a couple of milliseconds.

This only happens if the application is deployed on a server with authentication turned on (WebLogic or JBoss). On a Tomcat without authentication we see only one Http session.

After the page is displayed all new requests use only one of the two sessions. The unused session is destroyed after the configured session timeout.

On the network we see a POST request to display the page followed by a HTTP 401 (Unauthorized) response from the server. Then the request is sent again with authentication.


...
Connection Opened, 04/19/2013 13:19:19:0223
Connection Closed, 04/19/2013 13:19:19:0454
Client Data, POST /elektrang/faces/elektra/base/ElektraContentWindow.jsp? HTTP/1.1

cc_clearDump=true&cc_initialCall=true&cc_subpageId=0&cc_clientId=WSWLC051
Server Data, HTTP/1.1 401 Unauthorized


Connection Opened, 04/19/2013 13:19:19:0231
Connection Closed, 04/19/2013 13:19:21:0441
Client Data, HEAD /elektrang/faces/elektra/base/ElektraContentWindow.jsp HTTP/1.1

Server Data, HTTP/1.1 200 OK


Connection Opened, 04/19/2013 13:19:19:0455
Connection Closed, 04/19/2013 13:19:21:0447
Client Data, POST /elektrang/faces/elektra/base/ElektraContentWindow.jsp? HTTP/1.1

cc_clearDump=true&cc_initialCall=true&cc_subpageId=0&cc_clientId=WSWLC051
Server Data, HTTP/1.1 200 OK
... 


The server log shows two requests logged almost simultanously with different session IDs.
Thread 0: sessionId G6M3RxyXXR
Thread 1: sessionId 1lnPRxyXsZ

2013-04-19 13:19:20,189 DEBUG [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] - RequestedSessionId: null
2013-04-19 13:19:20,190 DEBUG [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] - RequestURL: http://localhost:8080/elektrang/faces/elektra/base/ElektraContentWindow.jsp
2013-04-19 13:19:20,203 DEBUG [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] - RequestedSessionId: null
2013-04-19 13:19:20,204 DEBUG [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] - RequestURL: http://localhost:8080/elektrang/faces/elektra/base/ElektraContentWindow.jsp
2013-04-19 13:19:20,218 DEBUG [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] - QueryString: null
2013-04-19 13:19:20,220 DEBUG [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] - SessionId: G6M3RxyXXR!412130271!1366370359236
2013-04-19 13:19:20,218 DEBUG [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] - QueryString:
2013-04-19 13:19:20,221 DEBUG [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] - SessionId: 1lnPRxyXsZ!412130271!1366370359475
2013-04-19 13:19:20,222 DEBUG [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] - Benutzer: bender
2013-04-19 13:19:20,221 DEBUG [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] - Benutzer: bender 


The next request uses one of the above session IDs:

...
Connection Opened, 04/19/2013 13:19:25:0662
Connection Closed, 04/19/2013 13:19:26:0558

Client Data, POST /elektrang/faces/elektra/base/ElektraContentWindow.jsp;jsessionid=1lnPRxyXsZ!412130271 HTTP/1.1

Server Data, HTTP/1.1 200 OK
... 



If our application causes this behaviour, I have no idea how this could happen.

Any thoughts?

Regards
Axel
Hi Björn,

we had problems with some buttons changing their position, icon and text depending on the sequence the workpages were opened. The update seems to fix that.

Regards
Axel
Thanks

Regards, Axel
Hi Björn,
the button image of the OK button can be modified by setButtonImage. Can you add a similar method for modifying the optional Cancel button?
Axel
 
Profile for abender -> Messages posted by abender [34] Go to Page: Previous  1, 2, 3
Go to:   
Powered by JForum 2.1.6 © JForum Team