[xgws-user] WS-Messenger UnSubcriptions
Yi Huang
yihuan_at_cs.indiana.edu
Thu, 5 Apr 2007 22:10:31 -0400
Hi,
I tested subscriptions with Topic+XPath and topic only cases with repeated
subscribe and unsubscribe, but I do not get this error. I tested from
command line as following.
Can you try to run the subscribe and unsubscribe at the command line and see
if you still get the error?
Thanks,
Yi
[hunk /u/yihuan/a/temp/codes/xsul/messenger/java]$ java
wsmg.demo.TestWSE_Subscriber -consumer localhost:19999 -producer
localhost:12346 -topic TestTopic -xpath "//words[text()=\"Hello World\"]"
-epr yihuan
SubscriptionID received=<wse:Identifier
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">Xsub2_at_11758246638
06</wse:Identifier>
SubscriptionId=<wse:Identifier
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">Xsub2_at_11758246638
06</wse:Identifier>
[hunk /u/yihuan/a/temp/codes/xsul/messenger/java]$ java
wsmg.demo.WSE_DeleteSubscription -subManager localhost:12346 -subId
Xsub2_at_1175824663806 Finished!
[hunk /u/yihuan/a/temp/codes/xsul/messenger/java]$ java
wsmg.demo.TestWSE_Subscriber -consumer localhost:19999 -producer
localhost:12346 -topic TestTopic -xpath "//words[text()=\"Hello World\"]"
-epr yihuan
SubscriptionID received=<wse:Identifier
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">Xsub3_at_11758246638
06</wse:Identifier>
SubscriptionId=<wse:Identifier
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">Xsub3_at_11758246638
06</wse:Identifier>
[hunk /u/yihuan/a/temp/codes/xsul/messenger/java]$ java
wsmg.demo.WSE_DeleteSubscription -subManager localhost:12346 -subId
Xsub3_at_1175824663806 Finished!
[hunk /u/yihuan/a/temp/codes/xsul/messenger/java]$ java
wsmg.demo.TestWSE_Subscriber -consumer localhost:19999 -producer
localhost:12346 -topic TestTopic -xpath "//words[text()=\"Hello World\"]"
-epr yihuan
SubscriptionID received=<wse:Identifier
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">Xsub4_at_11758246638
06</wse:Identifier>
SubscriptionId=<wse:Identifier
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">Xsub4_at_11758246638
06</wse:Identifier>
[hunk /u/yihuan/a/temp/codes/xsul/messenger/java]$ java
wsmg.demo.WSE_DeleteSubscription -subManager localhost:12346 -subId
Xsub4_at_1175824663806 Finished!
*******Following are topic-only tests
[hunk /u/yihuan/a/temp/codes/xsul/messenger/java]$ java
wsmg.demo.TestWSE_Subscriber -consumer localhost:19999 -producer
localhost:12346 -topic TestTopic -epr yihuan
SubscriptionID received=<wse:Identifier
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">Tsub5_at_11758246638
06</wse:Identifier>
SubscriptionId=<wse:Identifier
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">Tsub5_at_11758246638
06</wse:Identifier>
[hunk /u/yihuan/a/temp/codes/xsul/messenger/java]$ java
wsmg.demo.WSE_DeleteSubscription -subManager localhost:12346 -subId
Tsub5_at_1175824663806 Finished!
[hunk /u/yihuan/a/temp/codes/xsul/messenger/java]$ java
wsmg.demo.TestWSE_Subscriber -consumer localhost:19999 -producer
localhost:12346 -topic TestTopic -epr yihuan
SubscriptionID received=<wse:Identifier
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">Tsub6_at_11758246638
06</wse:Identifier>
SubscriptionId=<wse:Identifier
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">Tsub6_at_11758246638
06</wse:Identifier>
[hunk /u/yihuan/a/temp/codes/xsul/messenger/java]$ java
wsmg.demo.WSE_DeleteSubscription -subManager localhost:12346 -subId
Tsub6_at_1175824663806 Finished!
[hunk /u/yihuan/a/temp/codes/xsul/messenger/java]$ java
wsmg.demo.TestWSE_Subscriber -consumer localhost:19999 -producer
localhost:12346 -topic TestTopic -epr yihuan
SubscriptionID received=<wse:Identifier
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">Tsub7_at_11758246638
06</wse:Identifier>
SubscriptionId=<wse:Identifier
xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">Tsub7_at_11758246638
06</wse:Identifier>
[hunk /u/yihuan/a/temp/codes/xsul/messenger/java]$ java
wsmg.demo.WSE_DeleteSubscription -subManager localhost:12346 -subId
Tsub7_at_1175824663806 Finished!
[hunk /u/yihuan/a/temp/codes/xsul/messenger/java]$
-----Original Message-----
From: xgws-user-admin_at_cs.indiana.edu [mailto:xgws-user-admin_at_cs.indiana.edu]
On Behalf Of Alex Piqueras
Sent: Tuesday, April 03, 2007 11:46 AM
To: xgws-user_at_cs.indiana.edu
Subject: Re: [xgws-user] WS-Messenger UnSubcriptions
Hi,
A little more information. When "CleanUpThread" has to remove an old
subscription I get the same error:
Exception in thread "Thread-3" java.lang.NullPointerException
at
wsmg.adapter.XPath.YFilterInfo.removeSubscription(YFilterInfo.java:85)
at
wsmg.adapter.XPath.YFilterAdapter.handleUnsubscribe(YFilterAdapter.java:175)
at
wsmg.processors.SubscriptionManager.removeSubscription(SubscriptionManager.j
ava:556)
at
wsmg.processors.SubscriptionManager.access$200(SubscriptionManager.java:61)
at
wsmg.processors.SubscriptionManager$CleanUpThread.run(SubscriptionManager.ja
va:676)
at java.lang.Thread.run(Unknown Source)
Thanks.
Alex Piqueras escribió:
> Hi all,
>
> I've found another strange behavior in unsubscriptions. When a client
> subscribe and unsubscribe the same topic twice, i.e. Subscribe,
> Unsubscribe, Subscribe, Unsubscribe.
> On second unsubscription a get the next stack trace:
>
> Exception in thread "AWT-EventQueue-0"
> xsul.invoker.DynamicInfosetInvokerException: HTTP server error 500
> Runtime exception when processing request connection398on12345 body="
> <html>
> <head>
> <title>Runtime exception when processing request connection398on12345:
> null</title>
> </head>
> <body>
> <h1>Runtime exception when processing request connection398on12345:
> null</h1>
> <p><pre>java.lang.NullPointerException
> at
>
wsmg.adapter.XPath.YFilterInfo.removeSubscription(YFilterInfo.java:85)
>
> at
>
wsmg.adapter.XPath.YFilterAdapter.handleUnsubscribe(YFilterAdapter.java:174)
>
> at
>
wsmg.processors.SubscriptionManager.removeSubscription(SubscriptionManager.j
ava:548)
>
> at
>
wsmg.processors.SubscriptionManager.unsubscribe(SubscriptionManager.java:533
)
>
> at wsmg.WSMGService.executeSoapEnvelope(WSMGService.java:325)
> at
>
wsmg.xsul.XSULDedicatedBrockerService.processHttpXml(XSULDedicatedBrockerSer
vice.java:180)
>
> at
>
xsul.processor.http.HttpDynamicInfosetProcessor.service(HttpDynamicInfosetPr
ocessor.java:189)
>
> at
>
wsmg.xsul.XSULDedicatedBrockerService.service(XSULDedicatedBrockerService.ja
va:257)
>
> at
>
xsul.processor.http.HttpDynamicInfosetProcessor$HdisServlet.service(HttpDyna
micInfosetProcessor.java:267)
>
> at
>
xsul.http_server.impl.HttpMiniServerConnection.process(HttpMiniServerConnect
ion.java:183)
>
> at
>
xsul.http_server.impl.HttpMiniServerConnection.run(HttpMiniServerConnection.
java:112)
>
> at java.lang.Thread.run(Unknown Source)
> </pre></p>
> </body>
> </html>"
> at
>
xsul.invoker.http.HttpDynamicInfosetInvoker.invokeXml(HttpDynamicInfosetInvo
ker.java:369)
>
> at xsul.ws_addressing.WsaInvoker.sendXml(WsaInvoker.java:318)
> at
> xsul.ws_addressing.WsaInvoker.invokeMessageOptimzed(WsaInvoker.java:233)
> at
> xsul.ws_addressing.WsaInvoker.invokeMessage(WsaInvoker.java:224)
> at
> wsmg.CommonClientProcessing.unSubscribe(CommonClientProcessing.java:314)
> at wsmg.WseClientAPI.unSubscribe(WseClientAPI.java:53)
>
> The subscription info sent to the broker is okey, so I think this
> error could be in broker.
> (I'm using WS Eventing API (WseClientAPI) and subscriptions with topic
> and xpath condition).
>
> Thanks.
>
--
-------------------------------------------------------
Alejandro Piqueras Meseguer (apiqueras_at_dif.um.es)
Dept. Ingeniería de la Información y las Comunicaciones
Facultad de Informática
Universidad de Murcia
_______________________________________________
xgws-user mailing list
xgws-user_at_cs.indiana.edu
http://mailman.cs.indiana.edu/mailman/listinfo/xgws-user