Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5440

Tomcat using 100% CPU when application/json (JSONMessageFormatter) is used

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.6.0, 1.6.2
    • 1.7.0
    • None
    • Apache Tomcat/6.0.35 1.6.0_21-b07 Sun Microsystems Inc. Windows 7 6.1 x86

    Description

      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.

      Attachments

        1. ws.zip
          180 kB
          Ladislav Lencucha
        2. ConsoleServer.aar
          6 kB
          Ladislav Lencucha
        3. axis2.xml
          28 kB
          Ladislav Lencucha

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            lacike Ladislav Lencucha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment