[jbossws-issues] [JBoss JIRA] Commented: (JBWS-862) Return SOAP Fault for invalid soap messages

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Thu Jun 21 07:15:52 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBWS-862?page=comments#action_12366296 ] 
            
Thomas Diesler commented on JBWS-862:
-------------------------------------

one-test:
    [junit] Running org.jboss.test.ws.common.soap.MessageFactoryTestCase
    [junit] [Fatal Error] :-1:-1: Premature end of file.
    [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0.419 sec


> Return SOAP Fault for invalid soap messages
> -------------------------------------------
>
>                 Key: JBWS-862
>                 URL: http://jira.jboss.com/jira/browse/JBWS-862
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-jaxws
>            Reporter: Anil Saldhana
>         Assigned To: Thomas Diesler
>            Priority: Minor
>             Fix For: jbossws-2.0.0
>
>
> Please refer to Branch_4_0 testcase - org.jboss.test.wsrp.MarkupTestCase and the test is "testBlankSOAPMessage"
> The error in server.log is
> =======================================================================================
> 01:03:50,718 ERROR [SOAPFaultExceptionHelper] SOAP request exception
> javax.xml.soap.SOAPException: Cannot obtain SOAPBody from SOAPMessage
>         at javax.xml.soap.SOAPMessage.getSOAPBody(SOAPMessage.java:182)
>         at org.jboss.ws.soap.SOAPMessageDispatcher.getDispatchDestination(SOAPMessageDispatcher.java:77)
>         at org.jboss.ws.soap.SOAPMessageImpl.getOperationMetaData(SOAPMessageImpl.java:285)
>         at org.jboss.ws.server.ServiceEndpointInvoker.getDispatchDestination(ServiceEndpointInvoker.java:153)
>         at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:110)
>         at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:236)
>         at org.jboss.ws.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:113)
> .....
> Caused by: java.lang.NullPointerException
>         at org.jboss.ws.soap.SOAPMessageContextImpl.getNamespaceRegistry(SOAPMessageContextImpl.java:168)
>         at org.jboss.ws.soap.SOAPMessageContextImpl.getSerializationContext(SOAPMessageContextImpl.java:153)
>         at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.toSOAPMessage(SOAPFaultExceptionHelper.java:222)
>         at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.exceptionToFaultMessage(SOAPFaultExceptionHelper.java:177)
> =======================================================================================
> To run the testcase:  
> ===============================================================================
> asaldhana~/jboss-4.0/testsuite>ant -Dtest=org.jboss.test.wsrp.MarkupTestCase one-test
> Buildfile: build.xml
> Overriding previous definition of reference to xdoclet.task.classpath
> one-test:
>   [delete] Deleting: C:\cygwin\home\asaldhana\jboss-4.0\testsuite\output\log\test.log
>    [junit] Running org.jboss.test.wsrp.MarkupTestCase
>    [junit] Tests run: 6, Failures: 2, Errors: 0, Time elapsed: 10.594 sec
>    [junit] Test org.jboss.test.wsrp.MarkupTestCase FAILED
> BUILD SUCCESSFUL
> Total time: 14 seconds
> ============================================================================
> Please ignore the other failing testcase - testBEAPortalInterop.
> Please change the priority and schedule of this JIRA issue. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list