You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Peter Jones (JIRA)" <ji...@apache.org> on 2009/07/22 18:49:14 UTC

[jira] Created: (CXF-2353) JAXRSClientServerSpringBookTest systest failure with ibm jdk

JAXRSClientServerSpringBookTest systest failure with ibm jdk
------------------------------------------------------------

                 Key: CXF-2353
                 URL: https://issues.apache.org/jira/browse/CXF-2353
             Project: CXF
          Issue Type: Bug
         Environment: ibm jdk 5
            Reporter: Peter Jones


Four of the tests in JAXRSClientServerSpringBookTest check for a specific string contained in expected_add_book_aegis.txt:

<ns1:Book xmlns:ns1="http://jaxrs.systest.cxf.apache.org" xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance" ns2:type="ns1:Book"><ns1:id>124</ns1:id><ns1:name>CXF in Action - 2</ns1:name></ns1:Book>

however, with the ibm jdk 5, the order of the id and name elements are switched in the actual result.  I'll update the test to check for a different expected result when using the ibm jdk, unless of course someone suggests that the ordering should be of any significance here.

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


[jira] Commented: (CXF-2353) JAXRSClientServerSpringBookTest systest failure with ibm jdk

Posted by "Peter Jones (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734602#action_12734602 ] 

Peter Jones commented on CXF-2353:
----------------------------------

Thanks Dan, that's a much better suggestion!

The only thing is, the propOrder doesn't seem to take effect for the test cases which are failing.

So, with no change testGetBookAegis, testGetBookUserResource, and testGetBookUserResource2 fail.

With the propOrder specified, the same tests still fail.

I know the propOrder does have an effect overall, since if I specify a propOrder of "name", "id", then those tests plus a whole bunch of additional tests fail.

I'll have to dig into this a bit more to see if I can work out what's up.

> JAXRSClientServerSpringBookTest systest failure with ibm jdk
> ------------------------------------------------------------
>
>                 Key: CXF-2353
>                 URL: https://issues.apache.org/jira/browse/CXF-2353
>             Project: CXF
>          Issue Type: Bug
>         Environment: ibm jdk 5
>            Reporter: Peter Jones
>
> Four of the tests in JAXRSClientServerSpringBookTest check for a specific string contained in expected_add_book_aegis.txt:
> <ns1:Book xmlns:ns1="http://jaxrs.systest.cxf.apache.org" xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance" ns2:type="ns1:Book"><ns1:id>124</ns1:id><ns1:name>CXF in Action - 2</ns1:name></ns1:Book>
> however, with the ibm jdk 5, the order of the id and name elements are switched in the actual result.  I'll update the test to check for a different expected result when using the ibm jdk, unless of course someone suggests that the ordering should be of any significance here.

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


[jira] Commented: (CXF-2353) JAXRSClientServerSpringBookTest systest failure with ibm jdk

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734608#action_12734608 ] 

Sergey Beryozkin commented on CXF-2353:
---------------------------------------

Hi Peter

the problem with some of those tests is that they do the string comparison, ideally they'd need to be converted to use restful client api.

Can you please just update 3 specific tests to this one  :

WebClient client = WebClient.create(endpointAddress, Collections.singletonList(new AegisElementProvider()));
Book book = client.accept("application/xml").get(Book.class);
// check book fields

the 4th test reads directly from the socket, just update it to check for the oocurence of some string, that test is more about checking that an arbitrary HTTP method can be supported

thanks, Sergey

> JAXRSClientServerSpringBookTest systest failure with ibm jdk
> ------------------------------------------------------------
>
>                 Key: CXF-2353
>                 URL: https://issues.apache.org/jira/browse/CXF-2353
>             Project: CXF
>          Issue Type: Bug
>         Environment: ibm jdk 5
>            Reporter: Peter Jones
>
> Four of the tests in JAXRSClientServerSpringBookTest check for a specific string contained in expected_add_book_aegis.txt:
> <ns1:Book xmlns:ns1="http://jaxrs.systest.cxf.apache.org" xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance" ns2:type="ns1:Book"><ns1:id>124</ns1:id><ns1:name>CXF in Action - 2</ns1:name></ns1:Book>
> however, with the ibm jdk 5, the order of the id and name elements are switched in the actual result.  I'll update the test to check for a different expected result when using the ibm jdk, unless of course someone suggests that the ordering should be of any significance here.

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


[jira] Commented: (CXF-2353) JAXRSClientServerSpringBookTest systest failure with ibm jdk

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734968#action_12734968 ] 

Sergey Beryozkin commented on CXF-2353:
---------------------------------------

hi Peter - thanks for taking care of this issue...

> JAXRSClientServerSpringBookTest systest failure with ibm jdk
> ------------------------------------------------------------
>
>                 Key: CXF-2353
>                 URL: https://issues.apache.org/jira/browse/CXF-2353
>             Project: CXF
>          Issue Type: Bug
>         Environment: ibm jdk 5
>            Reporter: Peter Jones
>
> Four of the tests in JAXRSClientServerSpringBookTest check for a specific string contained in expected_add_book_aegis.txt:
> <ns1:Book xmlns:ns1="http://jaxrs.systest.cxf.apache.org" xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance" ns2:type="ns1:Book"><ns1:id>124</ns1:id><ns1:name>CXF in Action - 2</ns1:name></ns1:Book>
> however, with the ibm jdk 5, the order of the id and name elements are switched in the actual result.  I'll update the test to check for a different expected result when using the ibm jdk, unless of course someone suggests that the ordering should be of any significance here.

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


[jira] Commented: (CXF-2353) JAXRSClientServerSpringBookTest systest failure with ibm jdk

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734195#action_12734195 ] 

Daniel Kulp commented on CXF-2353:
----------------------------------

Probably should just put:

@XmlType(name = "", propOrder = {
    "id",
    "name"
})

annotation on the Book class to force an order.

> JAXRSClientServerSpringBookTest systest failure with ibm jdk
> ------------------------------------------------------------
>
>                 Key: CXF-2353
>                 URL: https://issues.apache.org/jira/browse/CXF-2353
>             Project: CXF
>          Issue Type: Bug
>         Environment: ibm jdk 5
>            Reporter: Peter Jones
>
> Four of the tests in JAXRSClientServerSpringBookTest check for a specific string contained in expected_add_book_aegis.txt:
> <ns1:Book xmlns:ns1="http://jaxrs.systest.cxf.apache.org" xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance" ns2:type="ns1:Book"><ns1:id>124</ns1:id><ns1:name>CXF in Action - 2</ns1:name></ns1:Book>
> however, with the ibm jdk 5, the order of the id and name elements are switched in the actual result.  I'll update the test to check for a different expected result when using the ibm jdk, unless of course someone suggests that the ordering should be of any significance here.

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


[jira] Commented: (CXF-2353) JAXRSClientServerSpringBookTest systest failure with ibm jdk

Posted by "Peter Jones (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734686#action_12734686 ] 

Peter Jones commented on CXF-2353:
----------------------------------

That works!  Thanks Sergey!

> JAXRSClientServerSpringBookTest systest failure with ibm jdk
> ------------------------------------------------------------
>
>                 Key: CXF-2353
>                 URL: https://issues.apache.org/jira/browse/CXF-2353
>             Project: CXF
>          Issue Type: Bug
>         Environment: ibm jdk 5
>            Reporter: Peter Jones
>
> Four of the tests in JAXRSClientServerSpringBookTest check for a specific string contained in expected_add_book_aegis.txt:
> <ns1:Book xmlns:ns1="http://jaxrs.systest.cxf.apache.org" xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance" ns2:type="ns1:Book"><ns1:id>124</ns1:id><ns1:name>CXF in Action - 2</ns1:name></ns1:Book>
> however, with the ibm jdk 5, the order of the id and name elements are switched in the actual result.  I'll update the test to check for a different expected result when using the ibm jdk, unless of course someone suggests that the ordering should be of any significance here.

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


[jira] Resolved: (CXF-2353) JAXRSClientServerSpringBookTest systest failure with ibm jdk

Posted by "Peter Jones (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Jones resolved CXF-2353.
------------------------------

    Resolution: Fixed

> JAXRSClientServerSpringBookTest systest failure with ibm jdk
> ------------------------------------------------------------
>
>                 Key: CXF-2353
>                 URL: https://issues.apache.org/jira/browse/CXF-2353
>             Project: CXF
>          Issue Type: Bug
>         Environment: ibm jdk 5
>            Reporter: Peter Jones
>
> Four of the tests in JAXRSClientServerSpringBookTest check for a specific string contained in expected_add_book_aegis.txt:
> <ns1:Book xmlns:ns1="http://jaxrs.systest.cxf.apache.org" xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance" ns2:type="ns1:Book"><ns1:id>124</ns1:id><ns1:name>CXF in Action - 2</ns1:name></ns1:Book>
> however, with the ibm jdk 5, the order of the id and name elements are switched in the actual result.  I'll update the test to check for a different expected result when using the ibm jdk, unless of course someone suggests that the ordering should be of any significance here.

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