You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2013/01/16 19:49:08 UTC

svn commit: r1434104 - /axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/message/util/impl/SAAJConverterImpl.java

Author: veithen
Date: Wed Jan 16 18:49:08 2013
New Revision: 1434104

URL: http://svn.apache.org/viewvc?rev=1434104&view=rev
Log:
Avoid using an XMLStreamReader after calling close().

Modified:
    axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/message/util/impl/SAAJConverterImpl.java

Modified: axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/message/util/impl/SAAJConverterImpl.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/message/util/impl/SAAJConverterImpl.java?rev=1434104&r1=1434103&r2=1434104&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/message/util/impl/SAAJConverterImpl.java (original)
+++ axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/message/util/impl/SAAJConverterImpl.java Wed Jan 16 18:49:08 2013
@@ -362,8 +362,7 @@ public class SAAJConverterImpl implement
                         break;
                     }
                     case XMLStreamReader.END_DOCUMENT: {
-                        // Close reader and ignore
-                        reader.close();
+                        // Ignore
                         break;
                     }
                     case XMLStreamReader.PROCESSING_INSTRUCTION: {
@@ -382,6 +381,7 @@ public class SAAJConverterImpl implement
                         this._unexpectedEvent("EventID " + String.valueOf(eventID));
                 }
             }
+            reader.close();
         } catch (WebServiceException e) {
             throw e;
         } catch (XMLStreamException e) {