Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-219

Spring-ws reads the entier stream when logging set to debug

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.0.2
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Tomcat 5.5, JDK 1.4.2, Axiom 1.2.5

      Description

      Spring-ws reads the entire message for logging purposes (when logging is set to DEBUG) and Axiom complains that it has nothing else to process:

      DEBUG org.springframework.ws.soap.server.SoapMessageDispatcher - MessageDispatcher with name 'testing-ws' received request [<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><ns1:echoRequest xmlns:ns1="http://localhost:8080/testing-ws/services/echo">Hello</ns1:echoRequest></soapenv:Body></soapenv:Envelope>]
      DEBUG org.springframework.ws.soap.server.SoapMessageDispatcher - Endpoint mapping [org.springfram[email protected]11415c8] maps request to endpoint [[email protected]]
      DEBUG org.springframework.ws.soap.server.SoapMessageDispatcher - Testing endpoint adapter [org.sp[email protected]11df164]
      DEBUG org.springframework.ws.soap.server.SoapMessageDispatcher - Testing endpoint adapter [org.sp[email protected]67c1a6]
      DEBUG org.springframework.ws.soap.server.SoapMessageDispatcher - Testing endpoint exception resolver [org.spri[email protected]6279d]
      WARN org.springframework.ws.soap.server.SoapMessageDispatcher - Endpoint invocation resulted in exception - responding with SOAP Fault
      org.springframework.ws.soap.axiom.AxiomSoapBodyException: Could not access envelope: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,322]
      Message: already reached end document; nested exception is org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,322]
      Message: already reached end document
      Caused by:
      org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,322]
      Message: already reached end document
      at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:239)
      at org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:552)
      at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstOMChild(OMElementImpl.java:563)
      at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstElement(OMElementImpl.java:823)

      Setting the log level to INFO solves the problem but the info is quite hard to find and very unpleasant during development/debugging

        Attachments

          Activity

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              vbossica Vladimir Ritz Bossicard
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: