java.io.IOException: org.apache.xml.serializer.ToXMLSAXHandler

Oracle Community | 392 Guest | 8 years ago
  1. 0

    help with io exception

    Oracle Community | 8 years ago | 392 Guest
    java.io.IOException: org.apache.xml.serializer.ToXMLSAXHandler
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    i have developed a webservice using spring , jaxb for marshalling and unmarshalling. Sometimes when i restart my server after redeploying my war , it throws an exception. org.springframework.ws.soap.saaj.SaajSoapMessageException: Could not write message to OutputStream: Error during saving a multipart message&#59; nested exception is com.sun.xml.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message at org.springframework.ws.soap.saaj.SaajSoapMessage.writeTo(SaajSoapMessage.java:123) at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:172) at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:88) at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:57) at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:231) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:512) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:821) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:176) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3404) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1398) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200) at weblogic.work.ExecuteThread.run(ExecuteThread.java:172) Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1126) at org.springframework.ws.soap.saaj.Saaj13Implementation.writeTo(Saaj13Implementation.java:264) at org.springframework.ws.soap.saaj.SaajSoapMessage.writeTo(SaajSoapMessage.java:119) at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:173) at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:89) ... 18 more Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to get header stream in saveChanges: at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1103) ... 22 more Caused by: java.io.IOException: org.apache.xml.serializer.ToXMLSAXHandler at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.output(EnvelopeImpl.java:298) at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.output(EnvelopeImpl.java:309) at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:305) at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:947) at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1098) ... 22 more I am unable to understand why this exception is getting thrown when the server is restarted. I am using xalan 2.7.0 , spring ws core/oxm/xml 1.5.4 and spring core 2.5.5

    Spring JIRA | 4 years ago | shrey khandelwal
    org.springframework.ws.soap.saaj.SaajSoapMessageException: Could not write message to OutputStream: Error during saving a multipart message&#59; nested exception is com.sun.xml.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message
  4. 0

    i have developed a webservice using spring , jaxb for marshalling and unmarshalling. Sometimes when i restart my server after redeploying my war , it throws an exception. org.springframework.ws.soap.saaj.SaajSoapMessageException: Could not write message to OutputStream: Error during saving a multipart message&#59; nested exception is com.sun.xml.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message at org.springframework.ws.soap.saaj.SaajSoapMessage.writeTo(SaajSoapMessage.java:123) at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:172) at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:88) at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:57) at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:231) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:512) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:821) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:176) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3404) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1398) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200) at weblogic.work.ExecuteThread.run(ExecuteThread.java:172) Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1126) at org.springframework.ws.soap.saaj.Saaj13Implementation.writeTo(Saaj13Implementation.java:264) at org.springframework.ws.soap.saaj.SaajSoapMessage.writeTo(SaajSoapMessage.java:119) at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:173) at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:89) ... 18 more Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to get header stream in saveChanges: at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1103) ... 22 more Caused by: java.io.IOException: org.apache.xml.serializer.ToXMLSAXHandler at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.output(EnvelopeImpl.java:298) at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.output(EnvelopeImpl.java:309) at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:305) at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:947) at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1098) ... 22 more I am unable to understand why this exception is getting thrown when the server is restarted. I am using xalan 2.7.0 , spring ws core/oxm/xml 1.5.4 and spring core 2.5.5

    Spring JIRA | 4 years ago | shrey khandelwal
    org.springframework.ws.soap.saaj.SaajSoapMessageException: Could not write message to OutputStream: Error during saving a multipart message&#59; nested exception is com.sun.xml.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      org.apache.xml.serializer.ToXMLSAXHandler

      at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.output()
    2. Metro Web Services Runtime OSGi Bundle
      MessageImpl.saveChanges
      1. com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.output(EnvelopeImpl.java:329)
      2. com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.output(EnvelopeImpl.java:340)
      3. com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:336)
      4. com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:979)
      5. com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1130)
      5 frames