8 Replies Latest reply on Apr 17, 2009 9:14 PM by Dave Stubbs

    Serialisation errors in ActiveMQ.DLQ

    Dave Stubbs Newbie

      I've started to get serialisation errors. Messages get written to the ActiveMQ.DLQ queue and when I click to view them I get the following errors....

       

      javax.el.ELException: javax.jms.JMSException: Failed to build body from bytes. Reason: java.io.IOException: com.myclass

           at javax.el.BeanELResolver.getValue(BeanELResolver.java:298)

           at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)

           at com.sun.el.parser.AstValue.getValue(AstValue.java:138)

           at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)

           at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1001)

           at org.apache.jsp.message_jsp._jspx_meth_c_out_0(org.apache.jsp.message_jsp:489)

           at org.apache.jsp.message_jsp._jspx_meth_c_otherwise_0(org.apache.jsp.message_jsp:345)

           at org.apache.jsp.message_jsp._jspx_meth_c_choose_0(org.apache.jsp.message_jsp:160)

           at org.apache.jsp.message_jsp._jspService(org.apache.jsp.message_jsp:101)

           at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)

           at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)

           at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)

           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)

           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)

           at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)

           at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)

           at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124)

           at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)

           at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

           at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)

           at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:43)

           at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)

           at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)

           at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)

           at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)

           at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

           at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)

           at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)

           at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)

           at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)

           at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)

           at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)

           at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

           at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

           at org.mortbay.jetty.Server.handle(Server.java:324)

           at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)

           at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)

           at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)

           at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)

           at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)

           at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)

           at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)

      Caused by: javax.jms.JMSException: Failed to build body from bytes. Reason: java.io.IOException: com.myclass

           at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)

           at org.apache.activemq.command.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:183)

           at org.apache.activemq.web.MessageQuery.getBody(MessageQuery.java:81)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

           at java.lang.reflect.Method.invoke(Method.java:597)

           at javax.el.BeanELResolver.getValue(BeanELResolver.java:293)

           ... 41 more

      Caused by: java.io.IOException: com.myclass

           at org.apache.activemq.command.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:179)

           ... 47 more

       

      Not quite sure what is wrong. The messages work 99% of the time but this is proving to be unreliable.

       

      I never had this problem before with 5.1, but this has started now on 5.3 so I'm assuming a bug has been introduced.