Announcement Announcement Module
Collapse
No announcement yet.
Another issue with sending empty body Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Another issue with sending empty body

    When I'm sending message with empty body, i receive this exception:
    Exception I've met:
    Code:
    java.lang.NullPointerException
    	org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:418)
    	org.springframework.ws.server.endpoint.support.PayloadRootUtils.getPayloadRootQName(PayloadRootUtils.java:83)
    	org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping.getLookupKeyForMessage(PayloadRootAnnotationMethodEndpointMapping.java:57)
    	org.springframework.ws.server.endpoint.mapping.AbstractMethodEndpointMapping.getEndpointInternal(AbstractMethodEndpointMapping.java:54)
    	org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping.getEndpoint(AbstractEndpointMapping.java:83)
    	org.springframework.ws.server.MessageDispatcher.getEndpoint(MessageDispatcher.java:242)
    	org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:195)
    	org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:162)
    	org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:87)
    	org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:57)
    	org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:197)
    	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
    	org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    	org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:63)
    	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
    	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    Part of my configuration:
    HTML Code:
    	<bean id="marshallingEndpointAdapter" class="org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter">
    		<constructor-arg ref="jaxb2Marshaller" />
    	</bean>
    
    	<bean id="jaxb2Marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
    		<property name="contextPath" value="model" />
    		<property name="mtomEnabled">
    			<value>false</value>
    		</property>
    	</bean>
    
    	<bean id="endpointMapping" class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping">
    		<property name="interceptors">
    			<list>
    				<bean class="org.springframework.ws.soap.server.endpoint.interceptor.PayloadValidatingInterceptor">
    					<property name="schema" value="/xsd/session.xsd" />
    					<property name="validateRequest" value="true" />
    					<property name="validateResponse" value="false" />
    				</bean>
    			</list>
    		</property>
    	</bean>
    
    	<bean id="session" class="org.springframework.ws.wsdl.wsdl11.SimpleWsdl11Definition">
    		<property name="wsdl" value="/WEB-INF/wsdl/session.wsdl" />
    	</bean>
    
    	<bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory">
    		<property name="messageFactory">
    			<bean class="com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl" />
    		</property>
    	</bean>
    I'm using Spring-WS 1.0.2.

    Is it something with my configuration or is it bug? I saw SWS-164 but I don't know if it is the same situation (different stack trace).

    And message causing this:
    Code:
    <soapenv:Envelope
    	xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    	xmlns:q0="http://nevermind"
    	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    	<soapenv:Header>
    		<q0:sessionId>0PPAacL8UUACtCG7kdBp6MfNQ47FwUZd</q0:sessionId>
    	</soapenv:Header>
    	<soapenv:Body></soapenv:Body>
    </soapenv:Envelope>
    Last edited by Teree; Nov 21st, 2007, 02:52 AM.

  • #2
    Looks like a bug I can solve. Can you please create a JIRA issue?
    Thanks

    Comment


    • #3
      Done. SWS-241

      Comment

      Working...
      X