[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xmlblaster] perl demo cbServer.pl/testpub.pl causes null pointer error in server



Hello,

just to let you know that the demo cbServer.pl/testpub.pl in
 xmlBlaster/demo/perl/xmlrpc/ 
does not behave as expected:

1) Callback server seems OK
% perl cbServer.pl http://myhost:8080
Connected to xmlBlaster server on http://myhost:8080 

Login success with sessionId=sessionId:10.194.17.16-null-1064479945227--1096275414-14 

Listening for callbacks on http://127.0.0.1:9091/RPC2

Try 'perl testpub.pl http://myHost:8080' in another console, you should receive the update here
(waits here, no more messages)

2) testpub fails:
% perl testpub.pl http://myHost:8080

Trying to connect to xmlBlaster server on http://myHost:8080 ...

Login success on http://myHost:8080, got secret sessionId=sessionId:10.194.17.16-null-1064479992742--294181227-15 
Fault returned from XML RPC Server, fault code 0: java.lang.Exception: errorCode=internal.nullpointer message=errorCode=internal.publish: An internal error occurred when processing a publish() request. /node/xmlBlaster_10_194_17_16_3412/client/testpubUser/-14 : java.lang.NullPointerException
%

3) the last message in the server log is:
A null pointer is an xmlBlaster internal programming error, please post it to the mailing list.

So here I comply :-).
The full log excerpt is in annexe below.


This occurs in xmlblaster 0.85b on Solaris 9
with perl and java versions as follow:
% perl -version | head -3

This is perl, v5.6.1 built for sun4-solaris-64int
(with 48 registered patches, see perl -V for more detail)
% java -version
java version "1.4.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_03-b04)
Java HotSpot(TM) Client VM (build 1.4.0_03-b04, mixed mode)
%

Best regards,

Dominique
--
Mr Dominique Petitpierre       Email: User at Domain
Division Informatique                 User=Dominique.Petitpierre
University of Geneva                  Domain=adm.unige.ch
(Switzerland)                  WWW  : http://www.unige.ch/dinf/

Annexe: Server log excerpt

[Sep 25, 2003 10:53:12 AM INFO  Authenticate-/node/xmlBlaster_10_194_17_16_3412] Successful login for client /node/xmlBlaster_10_194_17_16_3412/client/testpubUser/-14, session expires after [ 24 h 0 millis ], 1 of 10 sessions are in use.
[Sep 25, 2003 10:53:12 AM ERROR TopicHandler-/node/xmlBlaster_10_194_17_16_3412/topic/xmlBlaster_10_194_17_16_3412-1064479992811000000] In UNREFERENCED -> DEAD: this.topicEntry == null
java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Thread.java:1071)
        at org.xmlBlaster.engine.TopicHandler.toDead(TopicHandler.java:1470)
        at org.xmlBlaster.engine.TopicHandler.timeout(TopicHandler.java:1707)
        at org.xmlBlaster.engine.TopicHandler.toUnreferenced(TopicHandler.java:1409)
        at org.xmlBlaster.engine.TopicHandler.administrativeInitialize(TopicHandler.java:246)
        at org.xmlBlaster.engine.TopicHandler.publish(TopicHandler.java:484)
        at org.xmlBlaster.engine.RequestBroker.publish(RequestBroker.java:1579)
        at org.xmlBlaster.engine.RequestBroker.publish(RequestBroker.java:1409)
        at org.xmlBlaster.engine.RequestBroker.publish(RequestBroker.java:1403)
        at org.xmlBlaster.engine.XmlBlasterImpl.publish(XmlBlasterImpl.java:172)
        at org.xmlBlaster.protocol.xmlrpc.XmlBlasterImpl.publish(XmlBlasterImpl.java:122)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.xmlrpc.Invoker.execute(Unknown Source)
        at org.apache.xmlrpc.XmlRpcServer$Worker.executeInternal(Unknown Source)
        at org.apache.xmlrpc.XmlRpcServer$Worker.execute(Unknown Source)
        at org.apache.xmlrpc.XmlRpcServer.execute(Unknown Source)
        at org.apache.xmlrpc.WebServer$Connection.run(Unknown Source)
        at org.apache.xmlrpc.WebServer$Runner.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:536)
[Sep 25, 2003 10:53:12 AM INFO  TopicHandler-/node/xmlBlaster_10_194_17_16_3412/topic/xmlBlaster_10_194_17_16_3412-1064479992811000000] Topic reached state DEAD. 0 history entries are destroyed.
[Sep 25, 2003 10:53:12 AM INFO  TopicHandler-/node/xmlBlaster_10_194_17_16_3412/topic/xmlBlaster_10_194_17_16_3412-1064479992811000000] New topic is ready, history/maxEntries=10, persistence/msgUnitStore/maxEntries=100000000
[Sep 25, 2003 10:53:12 AM INFO  XmlKey] DOM parsed the XmlKey xmlBlaster_10_194_17_16_3412-1064479992811000000
[Sep 25, 2003 10:53:12 AM INFO  XmlKey] XPath subscription '//service' matches message 'xmlBlaster_10_194_17_16_3412-1064479992811000000'
java.lang.NullPointerException
        at org.xmlBlaster.engine.TopicHandler.entryDestroyed(TopicHandler.java:747)
        at org.xmlBlaster.engine.MsgUnitWrapper.toDestroyed(MsgUnitWrapper.java:440)
        at org.xmlBlaster.engine.MsgUnitWrapper.incrementReferenceCounter(MsgUnitWrapper.java:190)
        at org.xmlBlaster.engine.TopicHandler.publish(TopicHandler.java:583)
        at org.xmlBlaster.engine.RequestBroker.publish(RequestBroker.java:1579)
        at org.xmlBlaster.engine.RequestBroker.publish(RequestBroker.java:1409)
        at org.xmlBlaster.engine.RequestBroker.publish(RequestBroker.java:1403)
        at org.xmlBlaster.engine.XmlBlasterImpl.publish(XmlBlasterImpl.java:172)
        at org.xmlBlaster.protocol.xmlrpc.XmlBlasterImpl.publish(XmlBlasterImpl.java:122)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.xmlrpc.Invoker.execute(Unknown Source)
        at org.apache.xmlrpc.XmlRpcServer$Worker.executeInternal(Unknown Source)
        at org.apache.xmlrpc.XmlRpcServer$Worker.execute(Unknown Source)
        at org.apache.xmlrpc.XmlRpcServer.execute(Unknown Source)
        at org.apache.xmlrpc.WebServer$Connection.run(Unknown Source)
        at org.apache.xmlrpc.WebServer$Runner.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:536)
[Sep 25, 2003 10:53:12 AM ERROR XmlBlasterImpl-/node/xmlBlaster_10_194_17_16_3412] publish() failed: XmlBlasterException serverSideException=true node=[xmlBlaster_10_194_17_16_3412] location=[RequestBroker-/node/xmlBlaster_10_194_17_16_3412]
java.lang.NullPointerException
stackTrace=java.lang.NullPointerException
        at org.xmlBlaster.engine.TopicHandler.entryDestroyed(TopicHandler.java:747)
        at org.xmlBlaster.engine.MsgUnitWrapper.toDestroyed(MsgUnitWrapper.java:440)
        at org.xmlBlaster.engine.MsgUnitWrapper.incrementReferenceCounter(MsgUnitWrapper.java:190)
        at org.xmlBlaster.engine.TopicHandler.publish(TopicHandler.java:583)
        at org.xmlBlaster.engine.RequestBroker.publish(RequestBroker.java:1579)
        at org.xmlBlaster.engine.RequestBroker.publish(RequestBroker.java:1409)
        at org.xmlBlaster.engine.RequestBroker.publish(RequestBroker.java:1403)
        at org.xmlBlaster.engine.XmlBlasterImpl.publish(XmlBlasterImpl.java:172)
        at org.xmlBlaster.protocol.xmlrpc.XmlBlasterImpl.publish(XmlBlasterImpl.java:122)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.xmlrpc.Invoker.execute(Unknown Source)
        at org.apache.xmlrpc.XmlRpcServer$Worker.executeInternal(Unknown Source)
        at org.apache.xmlrpc.XmlRpcServer$Worker.execute(Unknown Source)
        at org.apache.xmlrpc.XmlRpcServer.execute(Unknown Source)
        at org.apache.xmlrpc.WebServer$Connection.run(Unknown Source)
        at org.apache.xmlrpc.WebServer$Runner.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:536)
errorCode=internal.nullpointer message=errorCode=internal.publish: An internal error occurred when processing a publish() request. /node/xmlBlaster_10_194_17_16_3412/client/testpubUser/-14
        at org.xmlBlaster.util.XmlBlasterException.convert(XmlBlasterException.java:644)
        at org.xmlBlaster.util.XmlBlasterException.convert(XmlBlasterException.java:633)
        at org.xmlBlaster.engine.RequestBroker.publish(RequestBroker.java:1599)
        at org.xmlBlaster.engine.RequestBroker.publish(RequestBroker.java:1409)
        at org.xmlBlaster.engine.RequestBroker.publish(RequestBroker.java:1403)
        at org.xmlBlaster.engine.XmlBlasterImpl.publish(XmlBlasterImpl.java:172)
        at org.xmlBlaster.protocol.xmlrpc.XmlBlasterImpl.publish(XmlBlasterImpl.java:122)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.xmlrpc.Invoker.execute(Unknown Source)
        at org.apache.xmlrpc.XmlRpcServer$Worker.executeInternal(Unknown Source)
        at org.apache.xmlrpc.XmlRpcServer$Worker.execute(Unknown Source)
        at org.apache.xmlrpc.XmlRpcServer.execute(Unknown Source)
        at org.apache.xmlrpc.WebServer$Connection.run(Unknown Source)
        at org.apache.xmlrpc.WebServer$Runner.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:536)
versionInfo=version=0.85b,os.name=SunOS,os.version=5.9,java.vm.vendor=Sun Microsystems Inc.,java.vm.version=1.4.0_03-b04,os.arch=sparc,build.timestamp=09/25/2003 09:00 AM,build.java.vendor=Sun Microsystems Inc.,build.java.version=1.4.0_03
errorCode description=A null pointer is an xmlBlaster internal programming error, please post it to the mailing list.