It's a bit difficult to figure out from your description. Could you please attach the complete stack trace for the exception ?
Also could you please describe the events again? What did u mean by " However, after I kill the test JMS > Client. It seems that my JMS application, connects to broker" Maybe you meant you killed the broker ? If not what exactly did u mean by kill the JMS Client ? Regards, Rajith On Wed, Dec 28, 2011 at 4:19 PM, dmounessa <[email protected]> wrote: > I am using C++ Broker with JMS JAVA Client. When I just start up the broker, > I am able to connect and run my tests. However, after I kill the test JMS > Client. It seems that my JMS application, connects to broker > but gets JMSException when it tries to createProducer() call. and I do not > see any thing in the broker log. > The JMS Excepttion has the following info: > *"Error creating producer" > local_msg:Error creating producer| > error_code|null| > * > Note -- My subscribe is connecting and continues receiving the old messages > that was queued from last time that I ran. > > Question: How do I figure out what is wrong and what do i need to do to > Handle this exception? > > Thanks > > > // Non Persistance queue > String dest_string = "ADDR:"+ dest_name + > "; {create: always, node:{ > type: queue }}"; > > dest = new AMQAnyDestination(dest_string); > > session.createProducer(dest); > > --------------------------------------------- some logs ---------- > > org.apache.qpid.client.security.DynamicSaslRegistrar|Additional SASL > providers successfully registered.| > org.apache.qpid.client.AMQConnection|Connection:amqp://guest:********@clientid/test?brokerlist='tcp://devfoxvm01:5672?reconnect_limit='0'&connectdelay='1'&reconnect='false'&connecttimeout='1'&heartbeat='0''| > org.apache.qpid.client.protocol.AMQProtocolSession|Using ProtocolVersion for > Session:0-10| > org.apache.qpid.client.handler.ClientMethodDispatcherImpl|New Method > Dispatcher:AMQProtocolSession[null]| > org.apache.qpid.client.AMQConnection|Connecting with ProtocolHandler > Version:0-10| > org.apache.qpid.client.AMQConnection|Connected with ProtocolHandler > Version:0-10| > org.apache.qpid.client.AMQSession|Created > session:org.apache.qpid.client.AMQSession_0_10@44d6b059| > org.apache.qpid.client.AMQConnection|Connection:amqp://guest:********@clientid/test?brokerlist='tcp://devfoxvm01:5672?reconnect_limit='0'&connectdelay='1'&reconnect='false'&connecttimeout='1'&heartbeat='0''| > org.apache.qpid.client.protocol.AMQProtocolSession|Using ProtocolVersion for > Session:0-10| > org.apache.qpid.client.handler.ClientMethodDispatcherImpl|New Method > Dispatcher:AMQProtocolSession[null]| > org.apache.qpid.client.AMQConnection|Connecting with ProtocolHandler > Version:0-10| > org.apache.qpid.client.AMQConnection|Connected with ProtocolHandler > Version:0-10| > org.apache.qpid.client.AMQSession|Created > session:org.apache.qpid.client.AMQSession_0_10@67c7980c| > org.apache.qpid.client.BasicMessageProducer|MessageProducer > org.apache.qpid.client.BasicMessageProducer_0_10@7f636e4e using publish mode > : ASYNC_PUBLISH_ALL| > > > -- > View this message in context: > http://qpid.2158936.n2.nabble.com/JMSException-Error-creating-producer-tp7134041p7134041.html > Sent from the Apache Qpid users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:[email protected] > --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]
