Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2749

SAX2EventRecorder throws Out of Memory exception during Deserialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.4
    • None
    • None
    • Operating System: OS X 10.5.4, Java SE: 1.6, Java EE: 1.5, Axis: 1.4

    Description

      After an unspecified amount of time, usually less than twelve hours, a thread repeatedly deserializing SOAP calls will eventually throw a java.lang.OutOfMemoryError. For instance:
      Exception in thread "Thread-2" java.lang.OutOfMemoryError: Java heap space
      at org.apache.axis.message.SAX2EventRecorder$objArrayVector.add(SAX2EventRecorder.java:254)
      at org.apache.axis.message.SAX2EventRecorder.startEntity(SAX2EventRecorder.java:116)
      at org.apache.axis.encoding.DeserializationContext.startEntity(DeserializationContext.java:1178)
      at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:214)
      at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
      at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
      at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
      at org.apache.axis.client.Call.invoke(Call.java:2467)
      at org.apache.axis.client.Call.invoke(Call.java:2366)
      at org.apache.axis.client.Call.invoke(Call.java:1812)
      at com.opencalais.ws.CalaisSoapStub.enlighten(CalaisSoapStub.java:113)
      at com.opencalais.api.CalaisClient.enlighten(CalaisClient.java:155)
      at edu.caltech.cs.eventweb.calaistester.CalaisFeedSubmitter.processOne(CalaisFeedSubmitter.java:88)
      at edu.caltech.cs.eventweb.calaistester.CalaisFeedSubmitter.run(CalaisFeedSubmitter.java:143)
      at java.lang.Thread.run(Thread.java:637)

      It is worth noting that the thread in question maintains very little state itself. It pulls objects from a queue, makes a soap call with that object as a parameter, and then puts the result in another queue. That is all that is expected of that thread.

      This is either very similar or identical to the problem reported for version 1.2 reported here but unassigned: https://issues.apache.org/jira/browse/AXIS-2698

      I wanted to make sure this was also identified as a 1.4 problem. This bug is making the Axis library incredibly unstable for me.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              molson Michael Olson
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: