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

Re: [xmlblaster-devel] Clarification on socket protocol exception..



Brad Clements wrote:
On 21 Apr 2006 at 13:43, Marcel Ruff wrote:

Example of an XmlBlasterException as a response on a publish() (a
content is not shown):

" 84**E**17711*publish*oxf6hZs**QueueOverflow*The
destination queue is full*0*"
  qos      key    len   content
+-----*---------*-----*----------+

I think the "0*" trail is the 'len' == 0 which ends with '\0',
the content is nothing here.

So you're saying, in the case of message_type = E, then

errorCode is in the qos position
message is in the key position

and if there is a byteDump, it's treated as content.. ?

But to confirm, an exception message can only have one message Unit, right?
Yes and yes.

If you start xmlBlaster like this (the current from svn):

java org.xmlBlaster.Main -logging/org.xmlBlaster.util.protocol.RequestReplyExecutor FINEST

and a java client

java HelloWorld3 -logging/org.xmlBlaster.util.protocol.RequestReplyExecutor FINEST

you can see nicely the SOCKET dump.

This will cause a nice exception thrown (the name is too short):

java HelloWorld3 -logging/org.xmlBlaster.util.protocol.RequestReplyExecutor FINEST -session.name a

Marcel

PS: Here is a more complete exception:

> 2194**E**1xmlblast:1145654990599000001*subscribe*sessionId:127.0.0.2-null-1145654988836-1972484571-3**resource.configuration*XmlBlasterException errorCode=[resource.configuration] serverSideException=true location=[PluginInfo-AccessPluginManager] message=[#15072:15073M Plugin 'MimeAccessPlugin[xpath][1.0]' not found, please check your configuration : ] [See URL http://www.xmlblaster.org/xmlBlaster/doc/requirements/admin.errorcodes.listing.html#resource.configuration]*1711*resource.configuration*xmlBlaster_127_0_0_2_3412*PluginInfo-AccessPluginManager*en*#15072:15073M Plugin 'MimeAccessPlugin[xpath][1.0]' not found, please check your configuration*version=1.2,revision=15072:15073M,os.name=Linux,os.version=2.6.13-15-default,java.vm.vendor=Sun Microsystems Inc.,java.vm.version=1.5.0_06-b05,os.arch=i386,build.timestamp=04/20/2006 03:52 PM,build.java.vendor=Sun Microsystems Inc.,build.java.version=1.5.0_06*2006-04-21 23:29:50.64*errorCode=resource.configuration message=#15072:15073M Plugin 'MimeAccessPlugin[xpath][1.0]' not found, please check your configuration
at org.xmlBlaster.util.plugin.PluginInfo.init(PluginInfo.java:169)
at org.xmlBlaster.util.plugin.PluginInfo.<init>(PluginInfo.java:106)
at org.xmlBlaster.util.plugin.PluginInfo.<init>(PluginInfo.java:115)
at org.xmlBlaster.util.plugin.PluginManagerBase.getPluginObject(PluginManagerBase.java:79)
at org.xmlBlaster.engine.mime.AccessPluginManager.getPlugin(AccessPluginManager.java:63)
at org.xmlBlaster.engine.mime.AccessPluginManager.addAccessFilterPlugin(AccessPluginManager.java:192)
at org.xmlBlaster.engine.SubscriptionInfo.init(SubscriptionInfo.java:108)
at org.xmlBlaster.engine.SubscriptionInfo.<init>(SubscriptionInfo.java:84)
at org.xmlBlaster.engine.RequestBroker.subscribe(RequestBroker.java:827)
at org.xmlBlaster.engine.XmlBlasterImpl.subscribe(XmlBlasterImpl.java:93)
at org.xmlBlaster.util.protocol.RequestReplyExecutor.receiveReply(RequestReplyExecutor.java:480)
at org.xmlBlaster.protocol.socket.HandleClient.handleMessage(HandleClient.java:232)
at org.xmlBlaster.protocol.socket.HandleClient.run(HandleClient.java:354)
at java.lang.Thread.run(Thread.java:595)**<transaction/>*true*<