Note that there are some explanatory texts on larger screens.

plurals
  1. POjavax.jms.MessageNotReadableException: Message body is write-only
    primarykey
    data
    text
    <p>Am having a weird problem </p> <p>ActiveMQ is the messaging server and am using AMQP for sending messages</p> <p>When I have both the publisher and subscriber in the same eclipse project. I can send send ObjectMessage and receive without any problem</p> <p>But , when I split the subscriber and publisher to two different eclipse project, am getting</p> <pre><code>javax.jms.MessageNotReadableException: Message body is write-only </code></pre> <p>This is my Class of the object am sending</p> <pre><code>public class Test1 implements Serializable{ private String x; public Test1( String x){ this.x = x; } } </code></pre> <p>And this is the exception</p> <pre><code>javax.jms.MessageNotReadableException: Message body is write-only at org.apache.activemq.command.ActiveMQBytesMessage.checkWriteOnlyBody(ActiveMQBytesMessage.java:863) at org.apache.activemq.command.ActiveMQBytesMessage.initializeReading(ActiveMQBytesMessage.java:868) at org.apache.activemq.command.ActiveMQBytesMessage.getBodyLength(ActiveMQBytesMessage.java:190) at org.apache.qpid.proton.jms.AMQPNativeOutboundTransformer.transform(AMQPNativeOutboundTransformer.java:63) at org.apache.qpid.proton.jms.AutoOutboundTransformer.transform(AutoOutboundTransformer.java:37) at org.apache.activemq.transport.amqp.AmqpProtocolConverter$ConsumerContext.pumpOutbound(AmqpProtocolConverter.java:751) at org.apache.activemq.transport.amqp.AmqpProtocolConverter$ConsumerContext.onMessageDispatch(AmqpProtocolConverter.java:710) at org.apache.activemq.transport.amqp.AmqpProtocolConverter.onActiveMQCommand(AmqpProtocolConverter.java:300) at org.apache.activemq.transport.amqp.AmqpTransportFilter.oneway(AmqpTransportFilter.java:64) at org.apache.activemq.broker.TransportConnection.dispatch(TransportConnection.java:1378) at org.apache.activemq.broker.TransportConnection.processDispatch(TransportConnection.java:897) at org.apache.activemq.broker.TransportConnection.iterate(TransportConnection.java:943) at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129) at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:47) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) </code></pre> <p>This is the Code am following</p> <p><a href="https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSClientTest.java?r=1406466&amp;r=1414990" rel="nofollow">https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSClientTest.java?r=1406466&amp;r=1414990</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload