New to qpid. Looking to implement transparent interface to amqp/jms servers.
Currently running Rabbitmq (amqp 0.9.1) and old version of OpenMQ (IMQ) on
Centos 5.2.
Tried to run the packaged examples prior to jumping into integrating with
current code. When I try to run the hello.java example
(org.apache.qpid.example.Hello.java) it generates a null pointer exception
as follows:
java.lang.NullPointerException
at
org.apache.qpid.client.BasicMessageProducer_0_8.declareDestination(BasicMessageProducer_0_8.java:56)
at
org.apache.qpid.client.BasicMessageProducer.<init>(BasicMessageProducer.java:150)
at
org.apache.qpid.client.BasicMessageProducer_0_8.<init>(BasicMessageProducer_0_8.java:49)
at
org.apache.qpid.client.AMQSession_0_8.createMessageProducer(AMQSession_0_8.java:463)
at
org.apache.qpid.client.AMQSession_0_8.createMessageProducer(AMQSession_0_8.java:56)
at org.apache.qpid.client.AMQSession$7.execute(AMQSession.java:2622)
at org.apache.qpid.client.AMQSession$7.execute(AMQSession.java:2613)
at
org.apache.qpid.client.AMQConnectionDelegate_8_0.executeRetrySupport(AMQConnectionDelegate_8_0.java:324)
at
org.apache.qpid.client.AMQConnection.executeRetrySupport(AMQConnection.java:577)
at
org.apache.qpid.client.failover.FailoverRetrySupport.execute(FailoverRetrySupport.java:102)
at
org.apache.qpid.client.AMQSession.createProducerImpl(AMQSession.java:2611)
at org.apache.qpid.client.AMQSession.createProducer(AMQSession.java:1193)
at org.apache.qpid.client.AMQSession.createProducer(AMQSession.java:97)
at com.pason.transport.example.Hello.runTest(Hello.java:129)
at com.pason.transport.example.Hello.main(Hello.java:46)
BasicMessageProducer_0_8 fails due to the exchange name being set to null.
The subsequent toString causes the NPE. Should the exchange name not default
to "/" when undefined?
Roger
--
View this message in context: http://qpid.2158936.n2.nabble.com/Java-example-Hello-java-throws-NPE-tp7581155.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
|