You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Rich Scheuerle (JIRA)" <ji...@apache.org> on 2008/03/24 14:59:24 UTC

[jira] Created: (AXIS2-3652) JAXWS: Not correctly detecting version mismatch

JAXWS: Not correctly detecting version mismatch
-----------------------------------------------

                 Key: AXIS2-3652
                 URL: https://issues.apache.org/jira/browse/AXIS2-3652
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: jaxws
            Reporter: Rich Scheuerle
            Assignee: Roy A. Wood Jr.
            Priority: Critical
             Fix For: 1.4


Problem:
To comply with JAXWS, the client must receive a SOAPFaultException containing a fault code that is a javax.xml.soap.SOAPConstants.SOAP_VERSIONMISMATCH_FAULT.

Testcase:
Recreate the problem:
In the jaxws-integration module, edit the samples/MtomSampleTests.java testcase.
Change CHECK_VERSIONMISMATCH=false to CHECK_VERSIONMISMATCH=true;
Rerun the tests and it will fail with:

  <testcase classname="org.apache.axis2.jaxws.sample.MtomSampleTests" name="testSendImageAttachmentProperty12" time="0.11">
    <failure type="junit.framework.AssertionFailedError" message="Expected SOAPFaultException, but received: class javax.xml.ws.WebServiceException">junit.framework.AssertionFailedError: Expected SOAPFaultException, but received: class javax.xml.ws.WebServiceException

	at junit.framework.Assert.fail(Assert.java:47)

	at junit.framework.Assert.assertTrue(Assert.java:20)

	at org.apache.axis2.jaxws.sample.MtomSampleTests.testSendImageAttachmentProperty12(MtomSampleTests.java:237)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3652) JAXWS: Not correctly detecting version mismatch

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581540#action_12581540 ] 

Rich Scheuerle commented on AXIS2-3652:
---------------------------------------

Usually this issue occurs because: 
 1) The server is wrapping a VERSION_MISMATCH failure in such a way that the wrong SOAPFault is returned.  AND/OR
 2) The client is not detecting the VERSION_MISMATCH and instantiating the wrong kind of exception.

> JAXWS: Not correctly detecting version mismatch
> -----------------------------------------------
>
>                 Key: AXIS2-3652
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3652
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Rich Scheuerle
>            Assignee: Roy A. Wood Jr.
>            Priority: Critical
>             Fix For: 1.4
>
>
> Problem:
> To comply with JAXWS, the client must receive a SOAPFaultException containing a fault code that is a javax.xml.soap.SOAPConstants.SOAP_VERSIONMISMATCH_FAULT.
> Testcase:
> Recreate the problem:
> In the jaxws-integration module, edit the samples/MtomSampleTests.java testcase.
> Change CHECK_VERSIONMISMATCH=false to CHECK_VERSIONMISMATCH=true;
> Rerun the tests and it will fail with:
>   <testcase classname="org.apache.axis2.jaxws.sample.MtomSampleTests" name="testSendImageAttachmentProperty12" time="0.11">
>     <failure type="junit.framework.AssertionFailedError" message="Expected SOAPFaultException, but received: class javax.xml.ws.WebServiceException">junit.framework.AssertionFailedError: Expected SOAPFaultException, but received: class javax.xml.ws.WebServiceException
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.assertTrue(Assert.java:20)
> 	at org.apache.axis2.jaxws.sample.MtomSampleTests.testSendImageAttachmentProperty12(MtomSampleTests.java:237)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Closed: (AXIS2-3652) JAXWS: Not correctly detecting version mismatch

Posted by "Roy A. Wood Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roy A. Wood Jr. closed AXIS2-3652.
----------------------------------


> JAXWS: Not correctly detecting version mismatch
> -----------------------------------------------
>
>                 Key: AXIS2-3652
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3652
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Rich Scheuerle
>            Assignee: Roy A. Wood Jr.
>            Priority: Critical
>             Fix For: 1.4
>
>
> Problem:
> To comply with JAXWS, the client must receive a SOAPFaultException containing a fault code that is a javax.xml.soap.SOAPConstants.SOAP_VERSIONMISMATCH_FAULT.
> Testcase:
> Recreate the problem:
> In the jaxws-integration module, edit the samples/MtomSampleTests.java testcase.
> Change CHECK_VERSIONMISMATCH=false to CHECK_VERSIONMISMATCH=true;
> Rerun the tests and it will fail with:
>   <testcase classname="org.apache.axis2.jaxws.sample.MtomSampleTests" name="testSendImageAttachmentProperty12" time="0.11">
>     <failure type="junit.framework.AssertionFailedError" message="Expected SOAPFaultException, but received: class javax.xml.ws.WebServiceException">junit.framework.AssertionFailedError: Expected SOAPFaultException, but received: class javax.xml.ws.WebServiceException
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.assertTrue(Assert.java:20)
> 	at org.apache.axis2.jaxws.sample.MtomSampleTests.testSendImageAttachmentProperty12(MtomSampleTests.java:237)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3652) JAXWS: Not correctly detecting version mismatch

Posted by "Roy A. Wood Jr. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582328#action_12582328 ] 

Roy A. Wood Jr. commented on AXIS2-3652:
----------------------------------------

Changed the assertion in the testcase to compare against the SOAP 1.1 NS rather than the SOAP 1.2 NS (which would never have been successful for this test)

               assertTrue("Expected VERSION MISMATCH but received: "+ faultCode,
            		  new QName(SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE, "VersionMismatch",  SOAPConstants.SOAP_ENV_PREFIX).equals(faultCode));


> JAXWS: Not correctly detecting version mismatch
> -----------------------------------------------
>
>                 Key: AXIS2-3652
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3652
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Rich Scheuerle
>            Assignee: Roy A. Wood Jr.
>            Priority: Critical
>             Fix For: 1.4
>
>
> Problem:
> To comply with JAXWS, the client must receive a SOAPFaultException containing a fault code that is a javax.xml.soap.SOAPConstants.SOAP_VERSIONMISMATCH_FAULT.
> Testcase:
> Recreate the problem:
> In the jaxws-integration module, edit the samples/MtomSampleTests.java testcase.
> Change CHECK_VERSIONMISMATCH=false to CHECK_VERSIONMISMATCH=true;
> Rerun the tests and it will fail with:
>   <testcase classname="org.apache.axis2.jaxws.sample.MtomSampleTests" name="testSendImageAttachmentProperty12" time="0.11">
>     <failure type="junit.framework.AssertionFailedError" message="Expected SOAPFaultException, but received: class javax.xml.ws.WebServiceException">junit.framework.AssertionFailedError: Expected SOAPFaultException, but received: class javax.xml.ws.WebServiceException
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.assertTrue(Assert.java:20)
> 	at org.apache.axis2.jaxws.sample.MtomSampleTests.testSendImageAttachmentProperty12(MtomSampleTests.java:237)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-3652) JAXWS: Not correctly detecting version mismatch

Posted by "Roy A. Wood Jr. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roy A. Wood Jr. resolved AXIS2-3652.
------------------------------------

    Resolution: Fixed

This is now fixed as a testcase and the version mismatch check re-enablement is working as well

> JAXWS: Not correctly detecting version mismatch
> -----------------------------------------------
>
>                 Key: AXIS2-3652
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3652
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Rich Scheuerle
>            Assignee: Roy A. Wood Jr.
>            Priority: Critical
>             Fix For: 1.4
>
>
> Problem:
> To comply with JAXWS, the client must receive a SOAPFaultException containing a fault code that is a javax.xml.soap.SOAPConstants.SOAP_VERSIONMISMATCH_FAULT.
> Testcase:
> Recreate the problem:
> In the jaxws-integration module, edit the samples/MtomSampleTests.java testcase.
> Change CHECK_VERSIONMISMATCH=false to CHECK_VERSIONMISMATCH=true;
> Rerun the tests and it will fail with:
>   <testcase classname="org.apache.axis2.jaxws.sample.MtomSampleTests" name="testSendImageAttachmentProperty12" time="0.11">
>     <failure type="junit.framework.AssertionFailedError" message="Expected SOAPFaultException, but received: class javax.xml.ws.WebServiceException">junit.framework.AssertionFailedError: Expected SOAPFaultException, but received: class javax.xml.ws.WebServiceException
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.assertTrue(Assert.java:20)
> 	at org.apache.axis2.jaxws.sample.MtomSampleTests.testSendImageAttachmentProperty12(MtomSampleTests.java:237)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org