activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rolf <str8la...@hotmail.com>
Subject sending UTF8 messages using the ActiveMQ Console
Date Wed, 20 Apr 2011 11:09:06 GMT
Sending a Message Body to a queue that has some special characters i get a
stacktrace in the activemq log:

java.lang.IllegalArgumentException: !utf8
        at
org.eclipse.jetty.util.Utf8StringBuilder.append(Utf8StringBuilder.java:119)
        at
org.eclipse.jetty.util.UrlEncoded.decodeUtf8To(UrlEncoded.java:462)
        at org.eclipse.jetty.util.UrlEncoded.decodeTo(UrlEncoded.java:509)
        at
org.eclipse.jetty.server.Request.extractParameters(Request.java:255)
        at org.eclipse.jetty.server.Request.getParameter(Request.java:649)
        at
org.apache.activemq.web.handler.BindingBeanNameUrlHandlerMapping.getHandlerInternal(BindingBeanNameUrlHandlerMapping.java:57)
        at
org.springframework.web.servlet.handler.AbstractHandlerMapping.getHandler(AbstractHandlerMapping.java:184)
        at
org.springframework.web.servlet.DispatcherServlet.getHandler(DispatcherServlet.java:945)
        at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:753)
        at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
        at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
        at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:527)
        at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1216)
        at
org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
        at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
        at
org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)
        at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
        at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
        at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
        at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
        at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:421)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:493)
        at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
        at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:930)
        at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358)
        at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
        at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:866)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
        at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:456)
        at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
        at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
        at org.eclipse.jetty.server.Server.handle(Server.java:351)
        at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:594)
        at
org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1059)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:764)
        at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:211)
        at
org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:424)
        at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:506)
        at
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
        at java.lang.Thread.run(Thread.java:662)


This seems like a jetty problem, but im not sure how to fix it for the
embedded jetty in my activeMq installation. I can send and receive messages
from queues with special characters if i send them through the standard
tcp://localhost:61616 url, just not using the textarea in the ActiveMq
Console.

Can anyone help me out enabling the embedded jetty to handle this ?

Greets Rolf

--
View this message in context: http://activemq.2283324.n4.nabble.com/sending-UTF8-messages-using-the-ActiveMQ-Console-tp3462715p3462715.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message