openwire-c runs error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

openwire-c runs error

dontcrash
I downloaded activemq-4.0-RC2.zip and compiled openwire-c client code successfully.but when i start activemq-4.0-RC2\bin\activemq and run openwire-c client,show this error message:    "Exception in thread "tcp:///127.0.0.1:1107" java.lang.IllegalArgumentException:Invalid version: 1358954496, could not load org.apache.activemq.openwire.v1358954496.MarshallerFactory at org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:325) at org.apache.activemq.openwire.OpenWireFormat.renegociatWireFormat(OpenWireFormat.java:565) at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:100)at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:139)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.activemq.openwire.v1358954496.MarshallerFactory at org.apache.activemq.util.ClassLoading.loadClass(ClassLoading.java:104) at org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:323)
... 6 more"

What's wrong?If anyone can help me,Thks!
Reply | Threaded
Open this post in threaded view
|

Re: openwire-c runs error

marisg
It could be a problem with the wireFormatInfo negotiation between client and  broker. The client sends wireFormatInfo version as '1', but the broker reads different version. Possible solution is comment line 148 in ow.c (rc = ow_byte_buffer_append_bit_buffer(buffer, bitbuffer);. This may fix the error that you are seeing. But I am sure whether this will impact the remaining function.

Hope this will fix your problem.

dontcrash wrote
I downloaded activemq-4.0-RC2.zip and compiled openwire-c client code successfully.but when i start activemq-4.0-RC2\bin\activemq and run openwire-c client,show this error message:    "Exception in thread "tcp:///127.0.0.1:1107" java.lang.IllegalArgumentException:Invalid version: 1358954496, could not load org.apache.activemq.openwire.v1358954496.MarshallerFactory at org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:325) at org.apache.activemq.openwire.OpenWireFormat.renegociatWireFormat(OpenWireFormat.java:565) at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:100)at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:139)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.activemq.openwire.v1358954496.MarshallerFactory at org.apache.activemq.util.ClassLoading.loadClass(ClassLoading.java:104) at org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:323)
... 6 more"

What's wrong?If anyone can help me,Thks!