[
https://issues.apache.org/jira/browse/AXIS2-5440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13479266#comment-13479266
]
Ladislav Lencucha commented on AXIS2-5440:
------------------------------------------
Tested also with Jetty. Result is the same. Using jconsole+jtop, the thread
with this stack trace is consuming all the CPU:
Name: qtp7979252-27
State: RUNNABLE
Total blocked: 0 Total waited: 87
Stack trace:
java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:587)
java.lang.StringBuilder.append(StringBuilder.java:214)
org.apache.axis2.json.AbstractJSONOMBuilder.processDocument(AbstractJSONOMBuilder.java:121)
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:179)
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:145)
org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:116)
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:837)
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:273)
javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:648)
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559)
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
org.eclipse.jetty.server.Server.handle(Server.java:365)
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
java.lang.Thread.run(Thread.java:722)
> Tomcat using 100% CPU when application/json (JSONMessageFormatter) is used
> --------------------------------------------------------------------------
>
> Key: AXIS2-5440
> URL: https://issues.apache.org/jira/browse/AXIS2-5440
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.6.0, 1.6.2
> Environment: Apache Tomcat/6.0.35 1.6.0_21-b07 Sun
> Microsystems Inc. Windows 7 6.1 x86
> Reporter: Ladislav Lencucha
> Labels: JSON
> Attachments: axis2.xml, ConsoleServer.aar, ws.zip
>
>
> I am trying to connect to my webservice using GET + JSON.
> I've added JSONMessageFormatter and JSONOMBuilder for "application/json"
> content type.
> When I try to call the webservice using jQuery and HTTP GET with content type
> "application/xml" I receive the response almost immediately (note that there
> is a jQuery error raised afterwards, because Xml cannot be parsed as JSON).
> When I try to call the webservice using the same code but with content type
> "application/json" there is no response and Tomcat uses 100% of CPU (there
> are also some messages in log file mentioning that it should have ended).
> See my aar file and jQuery example attached. Also see my axis2.xml
> configuration.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]