Exception not reported properly when creating a Producer with an invalid
destination
------------------------------------------------------------------------------------
Key: QPID-3019
URL: https://issues.apache.org/jira/browse/QPID-3019
Project: Qpid
Issue Type: Bug
Components: Java Client
Affects Versions: 0.8
Reporter: Rajith Attapattu
Assignee: Rajith Attapattu
Fix For: 0.9
When creating a message producer with an invalid destination an exception is
not thrown.
When the send method on the producer is invoked it results in errors and
exception (Ex. an NPE as follows).
Exception in thread "main" java.lang.NullPointerException
at
org.apache.qpid.client.BasicMessageProducer_0_10.sendMessage(BasicMessageProducer_0_10.java:166)
at
org.apache.qpid.client.BasicMessageProducer.sendImpl(BasicMessageProducer.java:490)
at
org.apache.qpid.client.BasicMessageProducer.sendImpl(BasicMessageProducer.java:445)
at
org.apache.qpid.client.BasicMessageProducer.send(BasicMessageProducer.java:283)
at org.apache.qpid.example.Spout.<init>(Spout.java:98)
at org.apache.qpid.example.Spout.main(Spout.java:146)
Therefore it's important an exception to be thrown at the time of creating a
producer (or consumer) when an invalid destination is supplied.
(Note. the consumer creation code path does throw an exception as expected.)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]