[ 
https://issues.apache.org/jira/browse/QPID-3019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rajith Attapattu resolved QPID-3019.
------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 0.9)
                   0.10

Fixed along with a test case.

> 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.10
>
>
> When creating a message producer with an invalid destination an exception is 
> not thrown.
> When the send method on the producer (created with an invalid destination) is 
> invoked it results in exceptions.
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to