activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giovani Seben (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AMQ-2117) View message from Admin gui throws exception (Failed to build body from bytes.)
Date Wed, 11 Mar 2009 18:09:39 GMT

    [ https://issues.apache.org/activemq/browse/AMQ-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50444#action_50444
] 

Giovani Seben commented on AMQ-2117:
------------------------------------

See AMQ-2154 for a suggested fix and workaround for displaying ObjectMessages in the Admin
Console.

> View message from Admin gui throws exception (Failed to build body from bytes.) 
> --------------------------------------------------------------------------------
>
>                 Key: AMQ-2117
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2117
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.2.0
>         Environment: Firefox 2.0.0.19, server @red hat
>            Reporter: Erik Drolshammer
>
> Navigated to Views and pressed the "Browse" link on a queue with plenty of messages.
The overview page works, but when I click on a message I get a http 500 error in the browser
and the following exception in the log. While it might be difficult to display the message
if it is a complex java-object or so, I think perhaps the situation could be handled in another
way. 
> WDYT?  
> 2009-02-16 14:11:04,407 DEBUG [log] EXCEPTION 
> org.apache.jasper.JasperException: javax.el.ELException: javax.jms.JMSException: Failed
to build body from bytes. Reason: java.io.IOException: com.company.SomeResponse
>         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:402)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
>         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:1084)
>         at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:43)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>         at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>         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:1084)
>         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>         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:726)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>         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:320)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
> Caused by: javax.el.ELException: javax.jms.JMSException: Failed to build body from bytes.
Reason: java.io.IOException: com.company.SomeResponse
>         at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
>         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
>         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:984)
>         at org.apache.jsp.message_jsp._jspx_meth_form_tooltip_1(org.apache.jsp.message_jsp:488)
>         at org.apache.jsp.message_jsp._jspx_meth_c_otherwise_0(org.apache.jsp.message_jsp:341)
>         at org.apache.jsp.message_jsp._jspx_meth_c_choose_0(org.apache.jsp.message_jsp:157)
>         at org.apache.jsp.message_jsp._jspService(org.apache.jsp.message_jsp:99)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
>         ... 30 more
> Caused by: javax.jms.JMSException: Failed to build body from bytes. Reason: java.io.IOException:
com.company.SomeResponse
>         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(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
>         ... 41 more
> Caused by: java.io.IOException: com.company.SomeResponse
>         at org.apache.activemq.command.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:179)
>         ... 47 more
> 2009-02-16 14:11:04,408 ERROR [log] Nested in org.apache.jasper.JasperException: javax.el.ELException:
javax.jms.JMSException: Failed to build body from bytes. Reason: java.io.IOException: com.company.SomeResponse:
> javax.el.ELException: javax.jms.JMSException: Failed to build body from bytes. Reason:
java.io.IOException: com.company.SomeResponse
>         at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
>         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
>         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:984)
>         at org.apache.jsp.message_jsp._jspx_meth_form_tooltip_1(org.apache.jsp.message_jsp:488)
>         at org.apache.jsp.message_jsp._jspx_meth_c_otherwise_0(org.apache.jsp.message_jsp:341)
>         at org.apache.jsp.message_jsp._jspx_meth_c_choose_0(org.apache.jsp.message_jsp:157)
>         at org.apache.jsp.message_jsp._jspService(org.apache.jsp.message_jsp:99)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
>         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:1084)
>         at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:43)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>         at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>         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:1084)
>         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>         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:726)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>         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:320)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
> Caused by: javax.jms.JMSException: Failed to build body from bytes. Reason: java.io.IOException:
com.company.SomeResponse
>         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(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
>         ... 41 more
> Caused by: java.io.IOException: com.company.SomeResponse
>         at org.apache.activemq.command.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:179)
>         ... 47 more
> 2009-02-16 14:11:04,409 ERROR [log] /admin/message.jsp
> javax.el.ELException: javax.jms.JMSException: Failed to build body from bytes. Reason:
java.io.IOException: com.company.SomeResponse
>         at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
>         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
>         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:984)
>         at org.apache.jsp.message_jsp._jspx_meth_form_tooltip_1(org.apache.jsp.message_jsp:488)
>         at org.apache.jsp.message_jsp._jspx_meth_c_otherwise_0(org.apache.jsp.message_jsp:341)
>         at org.apache.jsp.message_jsp._jspx_meth_c_choose_0(org.apache.jsp.message_jsp:157)
>         at org.apache.jsp.message_jsp._jspService(org.apache.jsp.message_jsp:99)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
>         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:1084)
>         at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:43)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>         at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
>         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:1084)
>         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>         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:726)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>         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:320)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
> Caused by: javax.jms.JMSException: Failed to build body from bytes. Reason: java.io.IOException:
com.company.SomeResponse
>         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(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
>         ... 41 more
> Caused by: java.io.IOException: com.company.SomeResponse
>         at org.apache.activemq.command.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:179)
>         ... 47 more
> 2009-02-16 14:11:04,410 DEBUG [log] GET /admin/message.jsp?id=ID:host02-54266-1234788117175-0:1:3:1:7&JMSDestination=app1.resultqueue
HTTP/1.1
> Host: 192.168.51.200:8161
> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081216 Fedora/2.0.0.19-1.fc8
Firefox/2.0.0.19
> Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Referer: http://host02:8161/admin/browse.jsp?JMSDestination=app1.resultqueue
> Cookie: JSESSIONID=1fjp8jvyw3mum
> 2009-02-16 14:11:04,412 DEBUG [log] RESPONSE /admin/message.jsp  500
> 2009-02-16 14:11:05,154 DEBUG [log] REQUEST /favicon.ico on org.mortbay.jetty.HttpConnection@2e9c76
> 2009-02-16 14:11:05,154 DEBUG [log] RESPONSE /favicon.ico  200
> 2009-02-16 14:11:05,154 DEBUG [log] REQUEST /favicon.ico on org.mortbay.jetty.HttpConnection@1239780
> 2009-02-16 14:11:05,154 DEBUG [log] RESPONSE /favicon.ico  200
> 2009-02-16 14:11:05,155 DEBUG [log] EOF
> 2009-02-16 14:11:05,187 DEBUG [log] REQUEST /favicon.ico on org.mortbay.jetty.HttpConnection@18b3fee
> 2009-02-16 14:11:05,188 DEBUG [log] RESPONSE /favicon.ico  200

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message