I am trying to add rest support to my activemq-5.6 based server. 
I added the MessageServlet and started a http get request to a topic, but
when the message is sent I receive this exception:

java.lang.NullPointerException: null
        at org.apache.catalina.connector.Request.setAttribute(Request.java:1559)
~[com.springsource.org.apache.catalina-7.0.21.jar:7.0.21]
        at
org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:543)
~[com.springsource.org.apache.catalina-7.0.21.jar:7.0.21]
        at
org.eclipse.jetty.continuation.Servlet3Continuation.setAttribute(Servlet3Continuation.java:222)
~[jetty-all-server-7.6.1.v20120215.jar:7.6.1.v20120215]
        at
org.apache.activemq.web.MessageServlet$Listener.onMessageAvailable(MessageServlet.java:364)
~[activemq-web-5.6.0.jar:5.6.0]
        at
org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1320)
[activemq-core-5.6.0.jar:5.6.0]
        at
org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131)
[activemq-core-5.6.0.jar:5.6.0]
        at
org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202)
[activemq-core-5.6.0.jar:5.6.0]
        at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
[activemq-core-5.6.0.jar:5.6.0]
        at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
[activemq-core-5.6.0.jar:5.6.0]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)
[na:1.6.0_32]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[na:1.6.0_32]
        at java.lang.Thread.run(Unknown Source) [na:1.6.0_32]

Any idea why this is happening ?



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/NullPointerException-in-rest-MessageServlet-when-new-message-arrives-tp4656833.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to