You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Francois Mireaux (JIRA)" <ji...@apache.org> on 2009/02/26 14:07:59 UTC

[jira] Created: (SMXCOMP-466) WS-RM : the CreateSequenceResponse body is void

WS-RM : the CreateSequenceResponse body is void
-----------------------------------------------

                 Key: SMXCOMP-466
                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-466
             Project: ServiceMix Components
          Issue Type: Bug
          Components: servicemix-cxf-bc
         Environment: WIndws XP
            Reporter: Francois Mireaux


When WS-RM is activated, the CreateSequence request is correctly treated and a CreateSequenceResponse body is created and stored in content as List. But the only out interceptor JbiOutWsdl1Interceptor set by CxfBcConsumer is only aware of Source content and the resulted body is void which leads to an client error.

The proposed path of CxfBcConsumer adds two new out interceptor to the endpoint list WrappedOutInterceptor and BareOutInterceptor. Tests are OK but I am far to be sure that's the good solution or the best one.

Note : the RM surefire tests seems to test the CXF WS-RM capacities rather than the servicemix-cxf-bc one's.

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


[jira] Updated: (SMXCOMP-466) WS-RM : the CreateSequenceResponse body is void

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMXCOMP-466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang updated SMXCOMP-466:
---------------------------------


add your testcase in
http://svn.apache.org/viewvc?rev=750306&view=rev for 3.2 branch
http://svn.apache.org/viewvc?rev=750307&view=rev for servicemix-cxf-bc component project

> WS-RM : the CreateSequenceResponse body is void
> -----------------------------------------------
>
>                 Key: SMXCOMP-466
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-466
>             Project: ServiceMix Components
>          Issue Type: Test
>          Components: servicemix-cxf-bc
>         Environment: WIndws XP
>            Reporter: Francois Mireaux
>            Assignee: Freeman Fang
>             Fix For: 3.2.4, servicemix-cxf-bc-2009.01
>
>         Attachments: CxfBcRMBasicTest.java, smx-cxf-bc-2008.01.patch, smx-cxfbc.patch
>
>
> When WS-RM is activated, the CreateSequence request is correctly treated and a CreateSequenceResponse body is created and stored in content as List. But the only out interceptor JbiOutWsdl1Interceptor set by CxfBcConsumer is only aware of Source content and the resulted body is void which leads to an client error.
> The proposed path of CxfBcConsumer adds two new out interceptor to the endpoint list WrappedOutInterceptor and BareOutInterceptor. Tests are OK but I am far to be sure that's the good solution or the best one.
> Note : the RM surefire tests seems to test the CXF WS-RM capacities rather than the servicemix-cxf-bc one's.

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


[jira] Work started: (SMXCOMP-466) WS-RM : the CreateSequenceResponse body is void

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMXCOMP-466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on SMXCOMP-466 started by Freeman Fang.

> WS-RM : the CreateSequenceResponse body is void
> -----------------------------------------------
>
>                 Key: SMXCOMP-466
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-466
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>         Environment: WIndws XP
>            Reporter: Francois Mireaux
>            Assignee: Freeman Fang
>         Attachments: CxfBcRMBasicTest.java, smx-cxf-bc-2008.01.patch, smx-cxfbc.patch
>
>
> When WS-RM is activated, the CreateSequence request is correctly treated and a CreateSequenceResponse body is created and stored in content as List. But the only out interceptor JbiOutWsdl1Interceptor set by CxfBcConsumer is only aware of Source content and the resulted body is void which leads to an client error.
> The proposed path of CxfBcConsumer adds two new out interceptor to the endpoint list WrappedOutInterceptor and BareOutInterceptor. Tests are OK but I am far to be sure that's the good solution or the best one.
> Note : the RM surefire tests seems to test the CXF WS-RM capacities rather than the servicemix-cxf-bc one's.

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


[jira] Commented: (SMXCOMP-466) WS-RM : the CreateSequenceResponse body is void

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMXCOMP-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50038#action_50038 ] 

Freeman Fang commented on SMXCOMP-466:
--------------------------------------

Hi,
If you can attach testcase to expose this problem, it would be great.
Thanks
Freeman

> WS-RM : the CreateSequenceResponse body is void
> -----------------------------------------------
>
>                 Key: SMXCOMP-466
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-466
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>         Environment: WIndws XP
>            Reporter: Francois Mireaux
>         Attachments: smx-cxfbc.patch
>
>
> When WS-RM is activated, the CreateSequence request is correctly treated and a CreateSequenceResponse body is created and stored in content as List. But the only out interceptor JbiOutWsdl1Interceptor set by CxfBcConsumer is only aware of Source content and the resulted body is void which leads to an client error.
> The proposed path of CxfBcConsumer adds two new out interceptor to the endpoint list WrappedOutInterceptor and BareOutInterceptor. Tests are OK but I am far to be sure that's the good solution or the best one.
> Note : the RM surefire tests seems to test the CXF WS-RM capacities rather than the servicemix-cxf-bc one's.

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


[jira] Assigned: (SMXCOMP-466) WS-RM : the CreateSequenceResponse body is void

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMXCOMP-466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang reassigned SMXCOMP-466:
------------------------------------

    Assignee: Freeman Fang

> WS-RM : the CreateSequenceResponse body is void
> -----------------------------------------------
>
>                 Key: SMXCOMP-466
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-466
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>         Environment: WIndws XP
>            Reporter: Francois Mireaux
>            Assignee: Freeman Fang
>         Attachments: smx-cxfbc.patch
>
>
> When WS-RM is activated, the CreateSequence request is correctly treated and a CreateSequenceResponse body is created and stored in content as List. But the only out interceptor JbiOutWsdl1Interceptor set by CxfBcConsumer is only aware of Source content and the resulted body is void which leads to an client error.
> The proposed path of CxfBcConsumer adds two new out interceptor to the endpoint list WrappedOutInterceptor and BareOutInterceptor. Tests are OK but I am far to be sure that's the good solution or the best one.
> Note : the RM surefire tests seems to test the CXF WS-RM capacities rather than the servicemix-cxf-bc one's.

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


[jira] Updated: (SMXCOMP-466) WS-RM : the CreateSequenceResponse body is void

Posted by "Francois Mireaux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMXCOMP-466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francois Mireaux updated SMXCOMP-466:
-------------------------------------

    Attachment: smx-cxfbc.patch

Patch based on ServiceMix version 3.2.4 as this is the last one which contains the bindingcomponents directory in SVN repository.

> WS-RM : the CreateSequenceResponse body is void
> -----------------------------------------------
>
>                 Key: SMXCOMP-466
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-466
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>         Environment: WIndws XP
>            Reporter: Francois Mireaux
>         Attachments: smx-cxfbc.patch
>
>
> When WS-RM is activated, the CreateSequence request is correctly treated and a CreateSequenceResponse body is created and stored in content as List. But the only out interceptor JbiOutWsdl1Interceptor set by CxfBcConsumer is only aware of Source content and the resulted body is void which leads to an client error.
> The proposed path of CxfBcConsumer adds two new out interceptor to the endpoint list WrappedOutInterceptor and BareOutInterceptor. Tests are OK but I am far to be sure that's the good solution or the best one.
> Note : the RM surefire tests seems to test the CXF WS-RM capacities rather than the servicemix-cxf-bc one's.

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


[jira] Resolved: (SMXCOMP-466) WS-RM : the CreateSequenceResponse body is void

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMXCOMP-466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved SMXCOMP-466.
----------------------------------

    Resolution: Fixed

> WS-RM : the CreateSequenceResponse body is void
> -----------------------------------------------
>
>                 Key: SMXCOMP-466
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-466
>             Project: ServiceMix Components
>          Issue Type: Test
>          Components: servicemix-cxf-bc
>         Environment: WIndws XP
>            Reporter: Francois Mireaux
>            Assignee: Freeman Fang
>             Fix For: 3.2.4, servicemix-cxf-bc-2009.01
>
>         Attachments: CxfBcRMBasicTest.java, smx-cxf-bc-2008.01.patch, smx-cxfbc.patch
>
>
> When WS-RM is activated, the CreateSequence request is correctly treated and a CreateSequenceResponse body is created and stored in content as List. But the only out interceptor JbiOutWsdl1Interceptor set by CxfBcConsumer is only aware of Source content and the resulted body is void which leads to an client error.
> The proposed path of CxfBcConsumer adds two new out interceptor to the endpoint list WrappedOutInterceptor and BareOutInterceptor. Tests are OK but I am far to be sure that's the good solution or the best one.
> Note : the RM surefire tests seems to test the CXF WS-RM capacities rather than the servicemix-cxf-bc one's.

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


[jira] Updated: (SMXCOMP-466) WS-RM : the CreateSequenceResponse body is void

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMXCOMP-466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang updated SMXCOMP-466:
---------------------------------

    Fix Version/s: servicemix-cxf-bc-2009.01
                   3.2.4
       Issue Type: Test  (was: Bug)

> WS-RM : the CreateSequenceResponse body is void
> -----------------------------------------------
>
>                 Key: SMXCOMP-466
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-466
>             Project: ServiceMix Components
>          Issue Type: Test
>          Components: servicemix-cxf-bc
>         Environment: WIndws XP
>            Reporter: Francois Mireaux
>            Assignee: Freeman Fang
>             Fix For: 3.2.4, servicemix-cxf-bc-2009.01
>
>         Attachments: CxfBcRMBasicTest.java, smx-cxf-bc-2008.01.patch, smx-cxfbc.patch
>
>
> When WS-RM is activated, the CreateSequence request is correctly treated and a CreateSequenceResponse body is created and stored in content as List. But the only out interceptor JbiOutWsdl1Interceptor set by CxfBcConsumer is only aware of Source content and the resulted body is void which leads to an client error.
> The proposed path of CxfBcConsumer adds two new out interceptor to the endpoint list WrappedOutInterceptor and BareOutInterceptor. Tests are OK but I am far to be sure that's the good solution or the best one.
> Note : the RM surefire tests seems to test the CXF WS-RM capacities rather than the servicemix-cxf-bc one's.

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


[jira] Commented: (SMXCOMP-466) WS-RM : the CreateSequenceResponse body is void

Posted by "Francois Mireaux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMXCOMP-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50087#action_50087 ] 

Francois Mireaux commented on SMXCOMP-466:
------------------------------------------

I write the joined test (for directory servicemix\deployables\bindingcomponents\servicemix-cxf-bc\src\test\java\org\apache\servicemix\cxfbc\ws\rm) which fails whith this error in surefire report without the patch :

javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault code, not set
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)
	at $Proxy41.hello(Unknown Source)
	at org.apache.servicemix.cxfbc.ws.rm.CxfBcRMBasicTest.testRMEndpointWithExternalConsumer(CxfBcRMBasicTest.java:96)
Caused by: java.lang.NullPointerException
	at org.apache.cxf.ws.rm.Servant.createSequenceResponse(Servant.java:177)
	at org.apache.cxf.ws.rm.RMManager.getSequence(RMManager.java:341)
	at org.apache.cxf.ws.rm.RMOutInterceptor.handle(RMOutInterceptor.java:129)
	at org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:78)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:229)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:469)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:299)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:251)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
	... 28 more

The test is OK with the patch

> WS-RM : the CreateSequenceResponse body is void
> -----------------------------------------------
>
>                 Key: SMXCOMP-466
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-466
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>         Environment: WIndws XP
>            Reporter: Francois Mireaux
>            Assignee: Freeman Fang
>         Attachments: smx-cxfbc.patch
>
>
> When WS-RM is activated, the CreateSequence request is correctly treated and a CreateSequenceResponse body is created and stored in content as List. But the only out interceptor JbiOutWsdl1Interceptor set by CxfBcConsumer is only aware of Source content and the resulted body is void which leads to an client error.
> The proposed path of CxfBcConsumer adds two new out interceptor to the endpoint list WrappedOutInterceptor and BareOutInterceptor. Tests are OK but I am far to be sure that's the good solution or the best one.
> Note : the RM surefire tests seems to test the CXF WS-RM capacities rather than the servicemix-cxf-bc one's.

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


[jira] Commented: (SMXCOMP-466) WS-RM : the CreateSequenceResponse body is void

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMXCOMP-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50217#action_50217 ] 

Freeman Fang commented on SMXCOMP-466:
--------------------------------------

Hi Francois,
Only BareOutInterceptor is needed here to create sequence response message when use ws-rm, but it's not a general necessary interceptor for servicemix-cxf-bc.
So the solution should be add BareOutInterceptor yourself to the configure file when you need enable ws-rm.
something like in rminterceptors.xml which is used in your testcase
add 
{code}
<bean id="bareOut" class="org.apache.cxf.interceptor.BareOutInterceptor"/>
<property name="outInterceptors">
            <list>
                <ref bean="mapAggregator"/>
                <ref bean="mapCodec"/>
                <ref bean="rmLogicalOut"/>
                <ref bean="rmCodec"/>
                <ref bean="bareOut"/>
            </list>
        </property>
{code}

But I do like the testcase you append here, I'd like to add this test in our code.
Thanks
Freeman

> WS-RM : the CreateSequenceResponse body is void
> -----------------------------------------------
>
>                 Key: SMXCOMP-466
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-466
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>         Environment: WIndws XP
>            Reporter: Francois Mireaux
>            Assignee: Freeman Fang
>         Attachments: CxfBcRMBasicTest.java, smx-cxf-bc-2008.01.patch, smx-cxfbc.patch
>
>
> When WS-RM is activated, the CreateSequence request is correctly treated and a CreateSequenceResponse body is created and stored in content as List. But the only out interceptor JbiOutWsdl1Interceptor set by CxfBcConsumer is only aware of Source content and the resulted body is void which leads to an client error.
> The proposed path of CxfBcConsumer adds two new out interceptor to the endpoint list WrappedOutInterceptor and BareOutInterceptor. Tests are OK but I am far to be sure that's the good solution or the best one.
> Note : the RM surefire tests seems to test the CXF WS-RM capacities rather than the servicemix-cxf-bc one's.

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


[jira] Commented: (SMXCOMP-466) WS-RM : the CreateSequenceResponse body is void

Posted by "Francois Mireaux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMXCOMP-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50041#action_50041 ] 

Francois Mireaux commented on SMXCOMP-466:
------------------------------------------

Sure, it would be great...
But I don't master the servicemix-cxf-bc tests. I need to start a CXF-BC 
Consumer and a CXF-Client, each one with RM configuration (with any service 
oneway or two way) and I can't find an example to help me in existing tests.

François Mireaux
tél : 04 78 34 05 15


> WS-RM : the CreateSequenceResponse body is void
> -----------------------------------------------
>
>                 Key: SMXCOMP-466
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-466
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>         Environment: WIndws XP
>            Reporter: Francois Mireaux
>            Assignee: Freeman Fang
>         Attachments: smx-cxfbc.patch
>
>
> When WS-RM is activated, the CreateSequence request is correctly treated and a CreateSequenceResponse body is created and stored in content as List. But the only out interceptor JbiOutWsdl1Interceptor set by CxfBcConsumer is only aware of Source content and the resulted body is void which leads to an client error.
> The proposed path of CxfBcConsumer adds two new out interceptor to the endpoint list WrappedOutInterceptor and BareOutInterceptor. Tests are OK but I am far to be sure that's the good solution or the best one.
> Note : the RM surefire tests seems to test the CXF WS-RM capacities rather than the servicemix-cxf-bc one's.

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


[jira] Updated: (SMXCOMP-466) WS-RM : the CreateSequenceResponse body is void

Posted by "Francois Mireaux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMXCOMP-466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francois Mireaux updated SMXCOMP-466:
-------------------------------------

    Attachment: smx-cxf-bc-2008.01.patch

Here is the patch for the branch 2008.01 of component CXF-BC, as the problem is the same with this version(the test source file applies to this version).

> WS-RM : the CreateSequenceResponse body is void
> -----------------------------------------------
>
>                 Key: SMXCOMP-466
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-466
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>         Environment: WIndws XP
>            Reporter: Francois Mireaux
>            Assignee: Freeman Fang
>         Attachments: CxfBcRMBasicTest.java, smx-cxf-bc-2008.01.patch, smx-cxfbc.patch
>
>
> When WS-RM is activated, the CreateSequence request is correctly treated and a CreateSequenceResponse body is created and stored in content as List. But the only out interceptor JbiOutWsdl1Interceptor set by CxfBcConsumer is only aware of Source content and the resulted body is void which leads to an client error.
> The proposed path of CxfBcConsumer adds two new out interceptor to the endpoint list WrappedOutInterceptor and BareOutInterceptor. Tests are OK but I am far to be sure that's the good solution or the best one.
> Note : the RM surefire tests seems to test the CXF WS-RM capacities rather than the servicemix-cxf-bc one's.

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


[jira] Updated: (SMXCOMP-466) WS-RM : the CreateSequenceResponse body is void

Posted by "Francois Mireaux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMXCOMP-466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francois Mireaux updated SMXCOMP-466:
-------------------------------------

    Attachment: CxfBcRMBasicTest.java

Test to add in deployables\bindingcomponents\servicemix-cxf-bc\src\test\java\org\apache\servicemix\cxfbc\ws\rm

As I said, I don't know very mutch about the servicemix-cxf-bf tests and may be this test could be written to say more about the problem.

> WS-RM : the CreateSequenceResponse body is void
> -----------------------------------------------
>
>                 Key: SMXCOMP-466
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-466
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>         Environment: WIndws XP
>            Reporter: Francois Mireaux
>            Assignee: Freeman Fang
>         Attachments: CxfBcRMBasicTest.java, smx-cxfbc.patch
>
>
> When WS-RM is activated, the CreateSequence request is correctly treated and a CreateSequenceResponse body is created and stored in content as List. But the only out interceptor JbiOutWsdl1Interceptor set by CxfBcConsumer is only aware of Source content and the resulted body is void which leads to an client error.
> The proposed path of CxfBcConsumer adds two new out interceptor to the endpoint list WrappedOutInterceptor and BareOutInterceptor. Tests are OK but I am far to be sure that's the good solution or the best one.
> Note : the RM surefire tests seems to test the CXF WS-RM capacities rather than the servicemix-cxf-bc one's.

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