activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Using http transport from a Perl client
Date Thu, 28 Feb 2008 16:38:06 GMT
To talk to ActiveMQ via Perl, use the Perl Stomp client...

http://activemq.apache.org/cross-language-clients.html

On 28/02/2008, Ramit Arora <ramit.arora@gmail.com> wrote:
>
>  Hi All,
>  I am experimenting with ActiveMQ 5.0, & my clients are in Perl. While
>  tinkering around, I managed to get Java clients to communicate with the
>  broker using http.
>  It seems that JMS commands are serialized into xml using XStream & sent over
>  http. The broker deserializes them using XStream.
>  When I tried sending http messages from Perl (using LWP & simple xml as the
>  content of the messages), I got the following error on the broker:
>
>  ERROR log                            - /topic/fooHTTP
>  com.thoughtworks.xstream.alias.CannotResolveClassException: person : person
>         at
>  com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:35)
>         at
>  com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
>         at
>  com.thoughtworks.xstream.mapper.XmlFriendlyMapper.realClass(XmlFriendlyMapper.java:44)
>         at
>  com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
>         at
>  com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:49)
>         at
>  com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
>         at
>  com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
>         at
>  com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
>         at
>  com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:46)
>         at
>  com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
>         at
>  com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
>         at
>  com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
>         at
>  com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:52)
>         at
>  com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
>         at
>  com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
>         at
>  com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
>         at
>  com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:28)
>         at
>  com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:95)
>         at
>  com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:12)
>         at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:521)
>         at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:509)
>         at com.thoughtworks.xstream.XStream.fromXML(XStream.java:475)
>         at
>  org.apache.activemq.transport.xstream.XStreamWireFormat.unmarshalText(XStreamWireFormat.java:55)
>         at
>  org.apache.activemq.transport.http.HttpTunnelServlet.doPost(HttpTunnelServlet.java:102)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>         at
>  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>         at
>  org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
>         at
>  org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at
>  org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
>         at
>  org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:295)
>         at
>  org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
>         at
>  org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:841)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:639)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
>         at
>  org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
>         at
>  org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
>
>  How can I send http messages from Perl?
>
>  Thanks,
>  Ramit Arora
>
>
>  --
>  View this message in context: http://www.nabble.com/Using-http-transport-from-a-Perl-client-tp15738834s2354p15738834.html
>  Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message