[xmlblaster] use of setReconnectSameClientOnly

2007-09-25 Thread Jürgen Prinz
To prevent identical users , i use setReconnectSameClientOnly(true) in 
SessionQos. It works, but the error is a bit confusing (see below) The 
connect is ok, but the following get has a exception.


Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#1)[24414]: 
[EMAIL PROTECTED] connecting to xmlBlaster. Connect qos:

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#2)[24414]:  
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#3)[24414]:   


Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#4)[24414]:
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#8)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#9)[24414]:   
true
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#10)[24414]:   
/instanceId/119070820156172
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#11)[24414]:   
maxSessions='10' clearSessions='true' reconnectSameClientOnly='true'/>

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#12)[24414]:
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#13)[24414]:   
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#14)[24414]:   relating='connection' type='RAM' maxEntries='1000' 
storeSwapLevel='1468006' storeSwapBytes='524288' 
reloadSwapLevel='629145' reloadSwapBytes='524288'>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#15)[24414]:
dispatchPlugin='undef'>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#16)[24414]:   
socket://127.0.0.1
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#17)[24414]:


Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#18)[24414]:   
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#19)[24414]:   
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#20)[24414]:   relating='callback' storeSwapLevel='1468006' storeSwapBytes='524288' 
reloadSwapLevel='629145' reloadSwapBytes='524288'>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#21)[24414]:
dispatchPlugin='undef'>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#22)[24414]:   
socket://127.0.0.1:3412
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#23)[24414]:


Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#24)[24414]:   
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#25)[24414]:  
INFO  XmlBlasterAccess-client/[EMAIL PROTECTED]/99 Callback settings: 
type=CACHE onOverflow=deadMessage onFailure=deadMessage maxEntries=1000 
type=SOCKET oneway=false burstMode.collectTime=0
WARN  ConnectionsHandler-1190708201563105000 Got exception when 
connecting, polling now: errorCode=user.configuration.identicalClient 
message=XmlBlasterException 
errorCode=[user.configuration.identicalClient] serverSideException=true 
location=[Authenticate.connect()] message=[#exportiert Only the creator 
of session /node/ZBAA_/client/[EMAIL PROTECTED]/99 may reconnect, 
access denied. : ] [See URL 
http://www.xmlblaster.org/xmlBlaster/doc/requirements/admin.errorcodes.listing.html#user.configuration.identicalClient]

INFO  RamQueuePlugin Created queue [RAM][1.0]
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#1)[24414]: 
[EMAIL PROTECTED] successfully connected to xmlBlaster. Return qos:

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#2)[24414]:  
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#3)[24414]:   


Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#4)[24414]:
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#8)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#9)[24414]:   
true
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#10)[24414]:   
client/[EMAIL PROTECTED]/99/instanceId/1190708201659905000
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#11)[24414]:   
maxSessions='10' clearSessions='true' reconnectSameClientOnly='true'/>

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#12)[24414]:
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#13)[24414]:   
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#14)[24414]:   relating='connection' type='RAM' maxEntries='1000' 
storeSwapLevel='1468006' storeSwapBytes='524288' 
reloadSwapLevel='629145' reloadSwapBytes='524288'>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#15)[24414]:
dispatchPlugin='undef'>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#16)[24414]:   
socket://127.0.0.1
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#17)[24414]:


Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#18)[24414]:   
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#19)[24414]:   
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#20)[24414]:   relating='callback' storeSwapLevel='1468006' storeSwapBytes='524288' 
reloadSwapLevel='629145' reloadSwapBytes='524288'>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#21)[24414]:
dispatchPlugin='undef'>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#22)[24414]:   
socket://172.27.1.1:46880
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#23)[24414]:


Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#24)[24414]:   
Sep 25 10:16:41 vpngateway O

[xmlblaster] dead lock

2007-09-25 Thread Xavier Roques
Hi,

I'm using Xmlblaster 1.6.

I restarted, some connected clients and unfortunately one of my client
never connects back :(

Even if I restart several times this client, it never successes to
connect.

That's why I dumped the threads' stack on the server side and I found
the following dead lock (see below)

Is there a way to avoid it ?

Thanks,

Xavier.


"XmlBlaster.ssl_socket.SSL.tcpListener-alouettebench17-agent":
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchManager.getConnectionStatusListener
s(DispatchManager.java:206)
INFO   | jvm 1| 2007/09/25 11:31:29 |   - waiting to lock
<0xdb74d9c0> (a org.xmlBlaster.util.dispatch.DispatchManager)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchManager.toAlive(DispatchManager.jav
a:293)
INFO   | jvm 1| 2007/09/25 11:31:29 |   - locked <0xdb7a0930> (a
java.lang.Object)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnectionsHandler.updateState(Disp
atchConnectionsHandler.java:332)
INFO   | jvm 1| 2007/09/25 11:31:29 |   - locked <0xdb7a0f28> (a
java.util.ArrayList)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnectionsHandler.toAlive(Dispatch
ConnectionsHandler.java:302)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnection.handleTransition(Dispatc
hConnection.java:575)
INFO   | jvm 1| 2007/09/25 11:31:29 |   - locked <0xdb7b2838> (a
org.xmlBlaster.engine.dispatch.CbDispatchConnection)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnection.initialize(DispatchConne
ction.java:132)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnectionsHandler.initialize(Dispa
tchConnectionsHandler.java:179)
INFO   | jvm 1| 2007/09/25 11:31:29 |   - locked <0xdb7a0f28> (a
java.util.ArrayList)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchManager.updateProperty(DispatchMana
ger.java:160)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.authentication.SessionInfo.updateConnectQos(SessionInfo.j
ava:513)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.authentication.Authenticate.connect(Authenticate.java:276
)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.authentication.AuthenticateProtector.connect(Authenticate
Protector.java:74)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.authentication.AuthenticateProtector.connect(Authenticate
Protector.java:62)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.protocol.socket.HandleClient.handleMessage(HandleClient.j
ava:266)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.protocol.socket.HandleClient$1.run(HandleClient.java:379)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.runTask(ThreadPoolExecutor.java:665)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.run(ThreadPoolExecutor.java:690)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
java.lang.Thread.run(Thread.java:619)
INFO   | jvm 1| 2007/09/25 11:31:29 | "XmlBlaster.PingTimer":
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnectionsHandler.shutdown(Dispatc
hConnectionsHandler.java:486)
INFO   | jvm 1| 2007/09/25 11:31:29 |   - waiting to lock
<0xdb7a0f28> (a java.util.ArrayList)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchManager.shutdown(DispatchManager.ja
va:954)
INFO   | jvm 1| 2007/09/25 11:31:29 |   - locked <0xdb74d9c0> (a
org.xmlBlaster.util.dispatch.DispatchManager)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchManager.givingUpDelivery(DispatchMa
nager.java:364)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchManager.toDead(DispatchManager.java
:356)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnectionsHandler.updateState(Disp
atchConnectionsHandler.java:348)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnectionsHandler.toDead(DispatchC
onnectionsHandler.java:315)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnection.handleTransition(Dispatc
hConnection.java:632)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnection.ping(DispatchConnection.
java:359)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnection.timeout(DispatchConnecti
on.java:423)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.Timeout.run(Timeou

Re: [xmlblaster] use of setReconnectSameClientOnly

2007-09-25 Thread Marcel Ruff

Dear Jürgen,

the details of this feature are described here:
http://www.xmlblaster.org/xmlBlaster/doc/requirements/client.configuration.html
(search "Assuring a client singleton " there)

First you should set

maxSessions='1'

in your use case!


You get the exception "errorCode=user.configuration.identicalClient" and
"Only the creator of session /node/ZBAA_/client/[EMAIL PROTECTED]/99 
may reconnect, access denied."


The reason is most likely that a login session of "[EMAIL PROTECTED]" 
exists already

please use the jconsole to check.

best regards
Marcel



Jürgen Prinz wrote:
To prevent identical users , i use setReconnectSameClientOnly(true) in 
SessionQos. It works, but the error is a bit confusing (see below) The 
connect is ok, but the following get has a exception.


Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#1)[24414]: 
[EMAIL PROTECTED] connecting to xmlBlaster. Connect qos:

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#2)[24414]:  
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#3)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#4)[24414]:

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#8)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#9)[24414]:   
true
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#10)[24414]:   
/instanceId/119070820156172
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#11)[24414]:   
maxSessions='10' clearSessions='true' reconnectSameClientOnly='true'/>

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#12)[24414]:
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#13)[24414]:   
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#14)[24414]:   
storeSwapLevel='1468006' storeSwapBytes='524288' 
reloadSwapLevel='629145' reloadSwapBytes='524288'>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#15)[24414]:
dispatchPlugin='undef'>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#16)[24414]:   
socket://127.0.0.1
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#17)[24414]:

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#18)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#19)[24414]:   
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#20)[24414]:   
storeSwapBytes='524288' reloadSwapLevel='629145' 
reloadSwapBytes='524288'>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#21)[24414]:
dispatchPlugin='undef'>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#22)[24414]:   
socket://127.0.0.1:3412
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#23)[24414]:

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#24)[24414]:   


Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#25)[24414]:  
INFO  XmlBlasterAccess-client/[EMAIL PROTECTED]/99 Callback settings: 
type=CACHE onOverflow=deadMessage onFailure=deadMessage 
maxEntries=1000 type=SOCKET oneway=false burstMode.collectTime=0
WARN  ConnectionsHandler-1190708201563105000 Got exception when 
connecting, polling now: errorCode=user.configuration.identicalClient 
message=XmlBlasterException 
errorCode=[user.configuration.identicalClient] 
serverSideException=true location=[Authenticate.connect()] 
message=[#exportiert Only the creator of session 
/node/ZBAA_/client/[EMAIL PROTECTED]/99 may reconnect, access denied. 
: ] [See URL 
http://www.xmlblaster.org/xmlBlaster/doc/requirements/admin.errorcodes.listing.html#user.configuration.identicalClient] 


INFO  RamQueuePlugin Created queue [RAM][1.0]
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#1)[24414]: 
[EMAIL PROTECTED] successfully connected to xmlBlaster. Return qos:

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#2)[24414]:  
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#3)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#4)[24414]:

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#8)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#9)[24414]:   
true
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#10)[24414]:   
client/[EMAIL PROTECTED]/99/instanceId/1190708201659905000 

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#11)[24414]:   
maxSessions='10' clearSessions='true' reconnectSameClientOnly='true'/>

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#12)[24414]:
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#13)[24414]:   
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#14)[24414]:   
storeSwapLevel='1468006' storeSwapBytes='524288' 
reloadSwapLevel='629145' reloadSwapBytes='524288'>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#15)[24414]:
dispatchPlugin='undef'>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#16)[24414]:   
socket://127.0.0.1
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#17)[24414]:

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#18)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#19)[24414]:   
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#20)[24414]:   
storeSwapBytes='524288' reloadSw

Re: [xmlblaster] use of setReconnectSameClientOnly

2007-09-25 Thread Jürgen Prinz
I use this feature to assure, that only one client with this session-id 
is connected. i only wondered that the exception did not occure with the 
connect.


Best regards and thanks
Jürgen

P.S. What about my problem with  OSF/Motif timmers ?


Marcel Ruff wrote:


Dear Jürgen,

the details of this feature are described here:
http://www.xmlblaster.org/xmlBlaster/doc/requirements/client.configuration.html 


(search "Assuring a client singleton " there)

First you should set

maxSessions='1'

in your use case!


You get the exception "errorCode=user.configuration.identicalClient" and
"Only the creator of session /node/ZBAA_/client/[EMAIL PROTECTED]/99 
may reconnect, access denied."


The reason is most likely that a login session of "[EMAIL PROTECTED]" 
exists already

please use the jconsole to check.

best regards
Marcel



Jürgen Prinz wrote:

To prevent identical users , i use setReconnectSameClientOnly(true) 
in SessionQos. It works, but the error is a bit confusing (see below) 
The connect is ok, but the following get has a exception.


Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#1)[24414]: 
[EMAIL PROTECTED] connecting to xmlBlaster. Connect qos:

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#2)[24414]:  
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#3)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#4)[24414]:

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#8)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#9)[24414]:   
true
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#10)[24414]:   
/instanceId/119070820156172
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#11)[24414]:   
maxSessions='10' clearSessions='true' reconnectSameClientOnly='true'/>

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#12)[24414]:
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#13)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#14)[24414]:   
storeSwapLevel='1468006' storeSwapBytes='524288' 
reloadSwapLevel='629145' reloadSwapBytes='524288'>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#15)[24414]:
bootstrapPort='0' dispatchPlugin='undef'>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#16)[24414]:   
socket://127.0.0.1
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#17)[24414]:

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#18)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#19)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#20)[24414]:   
storeSwapBytes='524288' reloadSwapLevel='629145' 
reloadSwapBytes='524288'>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#21)[24414]:
dispatchPlugin='undef'>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#22)[24414]:   
socket://127.0.0.1:3412
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#23)[24414]:

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#24)[24414]:   


Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#25)[24414]:  
INFO  XmlBlasterAccess-client/[EMAIL PROTECTED]/99 Callback 
settings: type=CACHE onOverflow=deadMessage onFailure=deadMessage 
maxEntries=1000 type=SOCKET oneway=false burstMode.collectTime=0
WARN  ConnectionsHandler-1190708201563105000 Got exception when 
connecting, polling now: errorCode=user.configuration.identicalClient 
message=XmlBlasterException 
errorCode=[user.configuration.identicalClient] 
serverSideException=true location=[Authenticate.connect()] 
message=[#exportiert Only the creator of session 
/node/ZBAA_/client/[EMAIL PROTECTED]/99 may reconnect, access 
denied. : ] [See URL 
http://www.xmlblaster.org/xmlBlaster/doc/requirements/admin.errorcodes.listing.html#user.configuration.identicalClient] 


INFO  RamQueuePlugin Created queue [RAM][1.0]
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#1)[24414]: 
[EMAIL PROTECTED] successfully connected to xmlBlaster. Return qos:

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#2)[24414]:  
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#3)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#4)[24414]:

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#8)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#9)[24414]:   
true
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#10)[24414]:   
client/[EMAIL PROTECTED]/99/instanceId/1190708201659905000 

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#11)[24414]:   
maxSessions='10' clearSessions='true' reconnectSameClientOnly='true'/>

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#12)[24414]:
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#13)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#14)[24414]:   
storeSwapLevel='1468006' storeSwapBytes='524288' 
reloadSwapLevel='629145' reloadSwapBytes='524288'>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#15)[24414]:
bootstrapPort='0' dispatchPlugin='undef'>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#16)[24414]:   
socket://127.0

Re: [xmlblaster] dead lock

2007-09-25 Thread Marcel Ruff

Xavier Roques wrote:

Hi,

I'm using Xmlblaster 1.6.

I restarted, some connected clients and unfortunately one of my client
never connects back :(

Even if I restart several times this client, it never successes to
connect.

That's why I dumped the threads' stack on the server side and I found
the following dead lock (see below)

Is there a way to avoid it ?
  

Yes, this is a dead lock,
i have coded now a lock free variant but i need some more testing if the
auto-disconnect (from ping timer) and reconnect (from your client)
simultaneously have other impacts ...
I'll send a followup as soon as the fix is committed,

Marcel

Thanks,

Xavier.


"XmlBlaster.ssl_socket.SSL.tcpListener-alouettebench17-agent":
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchManager.getConnectionStatusListener
s(DispatchManager.java:206)
INFO   | jvm 1| 2007/09/25 11:31:29 |   - waiting to lock
<0xdb74d9c0> (a org.xmlBlaster.util.dispatch.DispatchManager)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchManager.toAlive(DispatchManager.jav
a:293)
INFO   | jvm 1| 2007/09/25 11:31:29 |   - locked <0xdb7a0930> (a
java.lang.Object)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnectionsHandler.updateState(Disp
atchConnectionsHandler.java:332)
INFO   | jvm 1| 2007/09/25 11:31:29 |   - locked <0xdb7a0f28> (a
java.util.ArrayList)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnectionsHandler.toAlive(Dispatch
ConnectionsHandler.java:302)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnection.handleTransition(Dispatc
hConnection.java:575)
INFO   | jvm 1| 2007/09/25 11:31:29 |   - locked <0xdb7b2838> (a
org.xmlBlaster.engine.dispatch.CbDispatchConnection)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnection.initialize(DispatchConne
ction.java:132)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnectionsHandler.initialize(Dispa
tchConnectionsHandler.java:179)
INFO   | jvm 1| 2007/09/25 11:31:29 |   - locked <0xdb7a0f28> (a
java.util.ArrayList)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchManager.updateProperty(DispatchMana
ger.java:160)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.authentication.SessionInfo.updateConnectQos(SessionInfo.j
ava:513)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.authentication.Authenticate.connect(Authenticate.java:276
)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.authentication.AuthenticateProtector.connect(Authenticate
Protector.java:74)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.authentication.AuthenticateProtector.connect(Authenticate
Protector.java:62)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.protocol.socket.HandleClient.handleMessage(HandleClient.j
ava:266)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.protocol.socket.HandleClient$1.run(HandleClient.java:379)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.runTask(ThreadPoolExecutor.java:665)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
.run(ThreadPoolExecutor.java:690)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
java.lang.Thread.run(Thread.java:619)
INFO   | jvm 1| 2007/09/25 11:31:29 | "XmlBlaster.PingTimer":
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnectionsHandler.shutdown(Dispatc
hConnectionsHandler.java:486)
INFO   | jvm 1| 2007/09/25 11:31:29 |   - waiting to lock
<0xdb7a0f28> (a java.util.ArrayList)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchManager.shutdown(DispatchManager.ja
va:954)
INFO   | jvm 1| 2007/09/25 11:31:29 |   - locked <0xdb74d9c0> (a
org.xmlBlaster.util.dispatch.DispatchManager)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchManager.givingUpDelivery(DispatchMa
nager.java:364)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchManager.toDead(DispatchManager.java
:356)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnectionsHandler.updateState(Disp
atchConnectionsHandler.java:348)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnectionsHandler.toDead(DispatchC
onnectionsHandler.java:315)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.util.dispatch.DispatchConnection.handleTransition(Dispatc
hConnection.java:632)
INFO   | jvm 1| 2007/09/25 11:31:29 |   at
org.xmlBlaster.u

Re: [xmlblaster] use of setReconnectSameClientOnly

2007-09-25 Thread Marcel Ruff

Jürgen Prinz wrote:
I use this feature to assure, that only one client with this 
session-id is connected. i only wondered that the exception did not 
occure with the connect.
It happens on connect, but you are notified asynchronously as you are in 
fail safe mode.
Note that you can max log in once for the user (loginName) and NOT for 
the session.

To have more such 'singleton' clients you need to use different login names.


Best regards and thanks
Jürgen

P.S. What about my problem with  OSF/Motif timmers ?
As said in my posting from 2007-09-10 you should check your multi 
threading approach,
probably it is necessary to dispatch the code to the X-Window main loop 
thread,


best regards
Marcel



Marcel Ruff wrote:


Dear Jürgen,

the details of this feature are described here:
http://www.xmlblaster.org/xmlBlaster/doc/requirements/client.configuration.html 


(search "Assuring a client singleton " there)

First you should set

maxSessions='1'

in your use case!


You get the exception "errorCode=user.configuration.identicalClient" and
"Only the creator of session /node/ZBAA_/client/[EMAIL PROTECTED]/99 
may reconnect, access denied."


The reason is most likely that a login session of 
"[EMAIL PROTECTED]" exists already

please use the jconsole to check.

best regards
Marcel



Jürgen Prinz wrote:

To prevent identical users , i use setReconnectSameClientOnly(true) 
in SessionQos. It works, but the error is a bit confusing (see 
below) The connect is ok, but the following get has a exception.


Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#1)[24414]: 
[EMAIL PROTECTED] connecting to xmlBlaster. Connect qos:

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#2)[24414]:  
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#3)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#4)[24414]:

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#8)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#9)[24414]:   
true
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#10)[24414]:   
/instanceId/119070820156172
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#11)[24414]:   
maxSessions='10' clearSessions='true' reconnectSameClientOnly='true'/>

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#12)[24414]:
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#13)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#14)[24414]:   
storeSwapLevel='1468006' storeSwapBytes='524288' 
reloadSwapLevel='629145' reloadSwapBytes='524288'>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#15)[24414]:
bootstrapPort='0' dispatchPlugin='undef'>
Sep 25 10:16:41 vpngateway 
Objserv(2007,650,INFO,,,#16)[24414]:   socket://127.0.0.1
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#17)[24414]:

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#18)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#19)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#20)[24414]:   
storeSwapBytes='524288' reloadSwapLevel='629145' 
reloadSwapBytes='524288'>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#21)[24414]:
dispatchPlugin='undef'>
Sep 25 10:16:41 vpngateway 
Objserv(2007,650,INFO,,,#22)[24414]:   socket://127.0.0.1:3412
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#23)[24414]:

Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#24)[24414]:   


Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#25)[24414]:  
INFO  XmlBlasterAccess-client/[EMAIL PROTECTED]/99 Callback 
settings: type=CACHE onOverflow=deadMessage onFailure=deadMessage 
maxEntries=1000 type=SOCKET oneway=false burstMode.collectTime=0
WARN  ConnectionsHandler-1190708201563105000 Got exception when 
connecting, polling now: 
errorCode=user.configuration.identicalClient 
message=XmlBlasterException 
errorCode=[user.configuration.identicalClient] 
serverSideException=true location=[Authenticate.connect()] 
message=[#exportiert Only the creator of session 
/node/ZBAA_/client/[EMAIL PROTECTED]/99 may reconnect, access 
denied. : ] [See URL 
http://www.xmlblaster.org/xmlBlaster/doc/requirements/admin.errorcodes.listing.html#user.configuration.identicalClient] 


INFO  RamQueuePlugin Created queue [RAM][1.0]
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#1)[24414]: 
[EMAIL PROTECTED] successfully connected to xmlBlaster. Return qos:

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#2)[24414]:  
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#3)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#4)[24414]:

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#8)[24414]:   

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#9)[24414]:   
true
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#10)[24414]:   
client/[EMAIL PROTECTED]/99/instanceId/1190708201659905000 

Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#11)[24414]:   
maxSessions='10' clearSessions='true' reconnectSameClientOnly='true'/>

Sep 25 10:16:41 vpngateway Ob