[ 
https://issues.apache.org/jira/browse/QPID-6103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14135279#comment-14135279
 ] 

Rob Godfrey commented on QPID-6103:
-----------------------------------

The issue was occuring because the initial flow carrying the initial transfer 
id had not yet been received from the broker.  If this is the case the client 
should simply not set the nextOutgoingTransferId value.

> [Java AMQP 1.0 Common] NPE when sending flow before receiving initial flow 
> from partner 
> ----------------------------------------------------------------------------------------
>
>                 Key: QPID-6103
>                 URL: https://issues.apache.org/jira/browse/QPID-6103
>             Project: Qpid
>          Issue Type: Bug
>          Components: JMS AMQP 1.0 Client
>    Affects Versions: 0.28
>         Environment: JDK: 1.7.0_67
> QPID broker JAVA: 0.28
>            Reporter: Yong Deng
>            Assignee: Rob Godfrey
>
> 1. AMQP URL: amqp://localhost:5672
> 2. Connecting to QPID broker, NPE below will happen:
> Note: URL "amqp://localhost:5672/?remote-host=default" will work without 
> exception.
> ...........
> Caused by: com.vitria.dataflow.helper.TestComponentException: DFJMS-1102: 
> Fail to connect to JMS provider and the reason
>  is "null"
>         at 
> com.vitria.dataflow.jms.source.JMSSourceHelper.connect(JMSSourceHelper.java:117)
>         at 
> com.vitria.dataflow.jms.source.JMSSourceHelper.testConnection(JMSSourceHelper.java:58)
>         at 
> com.vitria.dataflow.helper.DesignTimeInteraction$1.run(DesignTimeInteraction.java:223)
>         at 
> com.vitria.dataflow.helper.ComponentRunContainer.runComponent(ComponentRunContainer.java:57)
>         ... 72 more
> Caused by: java.lang.NullPointerException
>         at 
> org.apache.qpid.amqp_1_0.transport.SessionEndpoint.sendFlow(SessionEndpoint.java:775)
>         at 
> org.apache.qpid.amqp_1_0.transport.LinkEndpoint.sendFlow(LinkEndpoint.java:506)
>         at 
> org.apache.qpid.amqp_1_0.transport.LinkEndpoint.sendFlow(LinkEndpoint.java:487)
>         at 
> org.apache.qpid.amqp_1_0.transport.LinkEndpoint.sendFlowConditional(LinkEndpoint.java:469)
>         at 
> org.apache.qpid.amqp_1_0.transport.ReceivingLinkEndpoint.setCreditWindow(ReceivingLinkEndpoint.java:291)
>         at 
> org.apache.qpid.amqp_1_0.client.Receiver.setCredit(Receiver.java:232)
>         at 
> org.apache.qpid.amqp_1_0.jms.impl.MessageConsumerImpl.start(MessageConsumerImpl.java:460)
>         at 
> org.apache.qpid.amqp_1_0.jms.impl.SessionImpl.start(SessionImpl.java:682)
>         at 
> org.apache.qpid.amqp_1_0.jms.impl.ConnectionImpl.start(ConnectionImpl.java:353)
>         at 
> com.vitria.dataflow.jms.source.JMSSourceHelper.connect(JMSSourceHelper.java:113)
>         ... 75 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to