activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: NullPointerException from ActiveMQDestination
Date Sun, 22 Jul 2007 09:12:05 GMT
the c++ code must be passing in a null value for the destination name

On Jul 21, 2007, at 4:16 PM, seamuskerrigan wrote:

>
> I have succesfully set-up and ran the activemq-cpp example.  
> However, when I
> try integrating the HelloWorldProducer into an existing C++  
> process, I've
> been running into problems creating the TEST.FOO queue. I have  
> tested this
> using ActiveMQ 4.1.1 and 5.0 on Red Hat Linux with the same exception.
>
> I have started ActiveMQ succesfully and connect to
> "tcp://localhost:61616?wireFormat=openwire". But when the C++ code  
> attemps
> the queue creation of TEST.FOO, I get the following exception in the
> ActiveMQ console window (using 5.0):
>
> Exception in thread "ActiveMQ Transport: tcp:///localhost:49120"
> java.lang.NullPointerException
>         at
> org.apache.activemq.command.ActiveMQDestination.setPhysicalName 
> (ActiveMQDestination.java:204)
>         at
> org.apache.activemq.openwire.v2.ActiveMQDestinationMarshaller.looseUnm 
> arshal(ActiveMQDestinationMarshaller.java:98)
>         at
> org.apache.activemq.openwire.v2.ActiveMQQueueMarshaller.looseUnmarshal 
> (ActiveMQQueueMarshaller.java:101)
>         at
> org.apache.activemq.openwire.OpenWireFormat.looseUnmarshalNestedObject 
> (OpenWireFormat.java:450)
>         at
> org.apache.activemq.openwire.v2.BaseDataStreamMarshaller.looseUnmarsal 
> CachedObject(BaseDataStreamMarshaller.java:454)
>         at
> org.apache.activemq.openwire.v2.ProducerInfoMarshaller.looseUnmarshal( 
> ProducerInfoMarshaller.java:134)
>         at
> org.apache.activemq.openwire.OpenWireFormat.doUnmarshal 
> (OpenWireFormat.java:351)
>         at
> org.apache.activemq.openwire.OpenWireFormat.unmarshal 
> (OpenWireFormat.java:275)
>         at
> org.apache.activemq.transport.tcp.TcpTransport.readCommand 
> (TcpTransport.java:156)
>         at
> org.apache.activemq.transport.tcp.TcpTransport.run 
> (TcpTransport.java:136)
>         at java.lang.Thread.run(Thread.java:595)
>
>
> The port number in the above trace is 49120 but this varies between  
> runs of
> ActiveMQ.
>
> The executing C++ reports the following exception:
> free(): invalid pointer 0xb54ca26c!
> response from futureResponse was invalid
>         FILE: activemq/transport/ResponseCorrelator.cpp, LINE: 145
>         FILE: activemq/transport/ResponseCorrelator.cpp, LINE: 152
>         FILE: activemq/connector/openwire/ 
> OpenWireFormatNegotiator.cpp,
> LINE: 105
>         FILE: activemq/connector/openwire/OpenWireConnector.cpp,  
> LINE: 1468
>         FILE: activemq/connector/openwire/OpenWireConnector.cpp,  
> LINE: 757
>         FILE: activemq/core/ActiveMQSession.cpp, LINE: 376
>
>
> I'm not sure what is causing this issue. Any help would be  
> appreciated.
>
> -- 
> View this message in context: http://www.nabble.com/ 
> NullPointerException-from-ActiveMQDestination- 
> tf4122144s2354.html#a11723114
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


Mime
View raw message