Yes, it was my fault. I had an embedded broker running and I have only
changed the transport of the client and the broker to HTTP. I have missed
the broker URL of the connection factory of the producer. 

Thanks a lot for the prompt response !



James.Strachan wrote:
> 
> From the stack trace you are using TCP; are you connecting TCP on the
> client to HTTP on the server?
> 
> On 20/01/2008, Yohan Liyanage <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I was trying out ActiveMQ 5 transports (using Spring 2.5 JmsTemplate) and
>> I
>> get this strange error when I am using HTTP Transport :
>>
>>  org.apache.activemq.ConnectionFailedException: The JMS connection has
>> failed: Unknown data type: 47
>>         at
>> org.apache.activemq.ActiveMQConnection.checkClosedOrFailed(ActiveMQConnection.java:1233)
>>         at
>> org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:291)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>> Source)
>>         at java.lang.reflect.Method.invoke(Unknown Source)
>>         at
>> org.springframework.jms.connection.SingleConnectionFactory$SharedConnectionInvocationHandler.invoke(SingleConnectionFactory.java:423)
>>         at $Proxy0.createSession(Unknown Source)
>>         at
>> org.springframework.jms.support.JmsAccessor.createSession(JmsAccessor.java:200)
>>         at
>> org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:429)
>>         ... 3 more
>> Caused by: java.io.IOException: Unknown data type: 47
>>         at
>> org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:355)
>>         at
>> org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:275)
>>         at
>> org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:192)
>>         at
>> org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:184)
>>         at
>> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:172)
>>         at java.lang.Thread.run(Unknown Source)
>>
>>
>> The code works fine when I am using the TCP Transport. Whats wrong here?
>>
>> Thanks for help.
>> --
>> View this message in context:
>> http://www.nabble.com/Unknown-data-type%3A-47---tp14981933s2354p14981933.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> James
> -------
> http://macstrac.blogspot.com/
> 
> Open Source Integration
> http://open.iona.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Unknown-data-type%3A-47---tp14981933s2354p14997092.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to