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

Spring JIRA | shrey khandelwal | 4 years ago
  1. 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
  2. 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
  3. 0

    SOAP Calls in Java application

    Stack Overflow | 4 years ago | user1486987
    com.sun.xml.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: get back the response message

    incubator-agila-user | 1 decade ago | tnguyen@symcor.com
    com.sun.xml.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart me ssage
  6. 0

    Cant redeploy without restarting, JAXMServlet

    Oracle Community | 10 years ago | 843833
    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:298)
      2. com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.output(EnvelopeImpl.java:309)
      3. com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:305)
      4. com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:947)
      5. com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1098)
      5 frames
    3. Spring WS Core
      MessageDispatcherServlet.doService
      1. org.springframework.ws.soap.saaj.Saaj13Implementation.writeTo(Saaj13Implementation.java:264)
      2. org.springframework.ws.soap.saaj.SaajSoapMessage.writeTo(SaajSoapMessage.java:119)
      3. org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:173)
      4. org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:89)
      5. org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:57)
      6. org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:231)
      6 frames
    4. Spring MVC
      FrameworkServlet.doPost
      1. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
      2. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:512)
      2 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
      2 frames
    6. Atmosphere weblogic
      WebAppServletContext$ServletInvocationAction.run
      1. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
      2. weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
      3. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
      4. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:176)
      5. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3404)
      5 frames
    7. weblogic.security.acl
      AuthenticatedSubject.doAs
      1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      1 frame
    8. weblogic.security.service
      SecurityManager.runAs
      1. weblogic.security.service.SecurityManager.runAs(Unknown Source)
      1 frame
    9. Atmosphere weblogic
      ServletRequestImpl.run
      1. weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
      2. weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
      3. weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1398)
      3 frames
    10. weblogic.work
      ExecuteThread.run
      1. weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
      2. weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
      2 frames