You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2011/01/17 09:51:43 UTC
[jira] Created: (CXF-3252)
org.apache.cxf.ws.addressing.ContextUtils.getAction should support to
namespace "http://www.w3.org/2005/08/addressing"
org.apache.cxf.ws.addressing.ContextUtils.getAction should support to namespace "http://www.w3.org/2005/08/addressing"
-----------------------------------------------------------------------------------------------------------------------
Key: CXF-3252
URL: https://issues.apache.org/jira/browse/CXF-3252
Project: CXF
Issue Type: Bug
Affects Versions: 2.3.1, 2.2.12, 2.2.11, 2.3.0, 2.2.10, 2.0.13, 2.1.10, 2.2.9
Reporter: Willem Jiang
Assignee: Willem Jiang
Fix For: 2.3.2, 2.2.13
Current CXF dosen't support the get the Address Action with the namespace " http://www.w3.org/2005/08/addressing",
You will get the NPE if the wsdl definition like this.
The test case can be ran successfully with JDK 1.6 's JAXWS implementation.
{code}
<wsdl:portType name="AccountStatusService" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsdl:operation name="getAccountStatus">
<wsdl:input message="tns:getAccountStatusRequest"
wsa:Action="http://example.com/webservices/AccountStatusRequest">
</wsdl:input>
<wsdl:output message="tns:getAccountStatusResponse"
wsa:Action="http://example.com/webservices/AccountStatusResponse" />
</wsdl:operation>
{code}
The stack trace is with CXF 2.2.9
{code}
Caused by: java.lang.NullPointerException
at org.apache.cxf.ws.addressing.ContextUtils.getAction(ContextUtils.java:830)
at org.apache.cxf.ws.addressing.ContextUtils.getActionFromMessageAttributes(ContextUtils.java:808)
at org.apache.cxf.ws.addressing.ContextUtils.getActionFromServiceModel(ContextUtils.java:744)
at org.apache.cxf.ws.addressing.ContextUtils.getAction(ContextUtils.java:712)
at org.apache.cxf.ws.addressing.MAPAggregator.assembleGeneric(MAPAggregator.java:511)
at org.apache.cxf.ws.addressing.MAPAggregator.aggregate(MAPAggregator.java:484)
at org.apache.cxf.ws.addressing.MAPAggregator.mediate(MAPAggregator.java:411)
at org.apache.cxf.ws.addressing.MAPAggregator.handleMessage(MAPAggregator.java:166)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
... 25 more
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-3252)
org.apache.cxf.ws.addressing.ContextUtils.getAction should support
namespace "http://www.w3.org/2005/08/addressing"
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang updated CXF-3252:
------------------------------
Summary: org.apache.cxf.ws.addressing.ContextUtils.getAction should support namespace "http://www.w3.org/2005/08/addressing" (was: org.apache.cxf.ws.addressing.ContextUtils.getAction should support to namespace "http://www.w3.org/2005/08/addressing" )
> org.apache.cxf.ws.addressing.ContextUtils.getAction should support namespace "http://www.w3.org/2005/08/addressing"
> --------------------------------------------------------------------------------------------------------------------
>
> Key: CXF-3252
> URL: https://issues.apache.org/jira/browse/CXF-3252
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.2.9, 2.1.10, 2.0.13, 2.2.10, 2.3.0, 2.2.11, 2.2.12, 2.3.1
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.3.2, 2.2.13, 2.4
>
>
> Current CXF dosen't support the get the Address Action with the namespace " http://www.w3.org/2005/08/addressing",
> You will get the NPE if the wsdl definition like this.
> The test case can be ran successfully with JDK 1.6 's JAXWS implementation.
> {code}
> <wsdl:portType name="AccountStatusService" xmlns:wsa="http://www.w3.org/2005/08/addressing">
> <wsdl:operation name="getAccountStatus">
> <wsdl:input message="tns:getAccountStatusRequest"
> wsa:Action="http://example.com/webservices/AccountStatusRequest">
> </wsdl:input>
> <wsdl:output message="tns:getAccountStatusResponse"
> wsa:Action="http://example.com/webservices/AccountStatusResponse" />
> </wsdl:operation>
> {code}
> The stack trace is with CXF 2.2.9, I can also reproduce the error with CXF trunk code.
> {code}
> Caused by: java.lang.NullPointerException
> at org.apache.cxf.ws.addressing.ContextUtils.getAction(ContextUtils.java:830)
> at org.apache.cxf.ws.addressing.ContextUtils.getActionFromMessageAttributes(ContextUtils.java:808)
> at org.apache.cxf.ws.addressing.ContextUtils.getActionFromServiceModel(ContextUtils.java:744)
> at org.apache.cxf.ws.addressing.ContextUtils.getAction(ContextUtils.java:712)
> at org.apache.cxf.ws.addressing.MAPAggregator.assembleGeneric(MAPAggregator.java:511)
> at org.apache.cxf.ws.addressing.MAPAggregator.aggregate(MAPAggregator.java:484)
> at org.apache.cxf.ws.addressing.MAPAggregator.mediate(MAPAggregator.java:411)
> at org.apache.cxf.ws.addressing.MAPAggregator.handleMessage(MAPAggregator.java:166)
> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
> at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
> at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
> ... 25 more
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-3252)
org.apache.cxf.ws.addressing.ContextUtils.getAction should support
namespace "http://www.w3.org/2005/08/addressing"
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CXF-3252.
-------------------------------
Resolution: Fixed
> org.apache.cxf.ws.addressing.ContextUtils.getAction should support namespace "http://www.w3.org/2005/08/addressing"
> --------------------------------------------------------------------------------------------------------------------
>
> Key: CXF-3252
> URL: https://issues.apache.org/jira/browse/CXF-3252
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.2.9, 2.1.10, 2.0.13, 2.2.10, 2.3.0, 2.2.11, 2.2.12, 2.3.1
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.3.2, 2.2.13, 2.4
>
>
> Current CXF dosen't support the get the Address Action with the namespace " http://www.w3.org/2005/08/addressing",
> You will get the NPE if the wsdl definition like this.
> The test case can be ran successfully with JDK 1.6 's JAXWS implementation.
> {code}
> <wsdl:portType name="AccountStatusService" xmlns:wsa="http://www.w3.org/2005/08/addressing">
> <wsdl:operation name="getAccountStatus">
> <wsdl:input message="tns:getAccountStatusRequest"
> wsa:Action="http://example.com/webservices/AccountStatusRequest">
> </wsdl:input>
> <wsdl:output message="tns:getAccountStatusResponse"
> wsa:Action="http://example.com/webservices/AccountStatusResponse" />
> </wsdl:operation>
> {code}
> The stack trace is with CXF 2.2.9, I can also reproduce the error with CXF trunk code.
> {code}
> Caused by: java.lang.NullPointerException
> at org.apache.cxf.ws.addressing.ContextUtils.getAction(ContextUtils.java:830)
> at org.apache.cxf.ws.addressing.ContextUtils.getActionFromMessageAttributes(ContextUtils.java:808)
> at org.apache.cxf.ws.addressing.ContextUtils.getActionFromServiceModel(ContextUtils.java:744)
> at org.apache.cxf.ws.addressing.ContextUtils.getAction(ContextUtils.java:712)
> at org.apache.cxf.ws.addressing.MAPAggregator.assembleGeneric(MAPAggregator.java:511)
> at org.apache.cxf.ws.addressing.MAPAggregator.aggregate(MAPAggregator.java:484)
> at org.apache.cxf.ws.addressing.MAPAggregator.mediate(MAPAggregator.java:411)
> at org.apache.cxf.ws.addressing.MAPAggregator.handleMessage(MAPAggregator.java:166)
> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
> at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
> at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
> ... 25 more
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-3252)
org.apache.cxf.ws.addressing.ContextUtils.getAction should support to
namespace "http://www.w3.org/2005/08/addressing"
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang updated CXF-3252:
------------------------------
Description:
Current CXF dosen't support the get the Address Action with the namespace " http://www.w3.org/2005/08/addressing",
You will get the NPE if the wsdl definition like this.
The test case can be ran successfully with JDK 1.6 's JAXWS implementation.
{code}
<wsdl:portType name="AccountStatusService" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsdl:operation name="getAccountStatus">
<wsdl:input message="tns:getAccountStatusRequest"
wsa:Action="http://example.com/webservices/AccountStatusRequest">
</wsdl:input>
<wsdl:output message="tns:getAccountStatusResponse"
wsa:Action="http://example.com/webservices/AccountStatusResponse" />
</wsdl:operation>
{code}
The stack trace is with CXF 2.2.9, I can also reproduce the error with CXF trunk code.
{code}
Caused by: java.lang.NullPointerException
at org.apache.cxf.ws.addressing.ContextUtils.getAction(ContextUtils.java:830)
at org.apache.cxf.ws.addressing.ContextUtils.getActionFromMessageAttributes(ContextUtils.java:808)
at org.apache.cxf.ws.addressing.ContextUtils.getActionFromServiceModel(ContextUtils.java:744)
at org.apache.cxf.ws.addressing.ContextUtils.getAction(ContextUtils.java:712)
at org.apache.cxf.ws.addressing.MAPAggregator.assembleGeneric(MAPAggregator.java:511)
at org.apache.cxf.ws.addressing.MAPAggregator.aggregate(MAPAggregator.java:484)
at org.apache.cxf.ws.addressing.MAPAggregator.mediate(MAPAggregator.java:411)
at org.apache.cxf.ws.addressing.MAPAggregator.handleMessage(MAPAggregator.java:166)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
... 25 more
{code}
was:
Current CXF dosen't support the get the Address Action with the namespace " http://www.w3.org/2005/08/addressing",
You will get the NPE if the wsdl definition like this.
The test case can be ran successfully with JDK 1.6 's JAXWS implementation.
{code}
<wsdl:portType name="AccountStatusService" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsdl:operation name="getAccountStatus">
<wsdl:input message="tns:getAccountStatusRequest"
wsa:Action="http://example.com/webservices/AccountStatusRequest">
</wsdl:input>
<wsdl:output message="tns:getAccountStatusResponse"
wsa:Action="http://example.com/webservices/AccountStatusResponse" />
</wsdl:operation>
{code}
The stack trace is with CXF 2.2.9
{code}
Caused by: java.lang.NullPointerException
at org.apache.cxf.ws.addressing.ContextUtils.getAction(ContextUtils.java:830)
at org.apache.cxf.ws.addressing.ContextUtils.getActionFromMessageAttributes(ContextUtils.java:808)
at org.apache.cxf.ws.addressing.ContextUtils.getActionFromServiceModel(ContextUtils.java:744)
at org.apache.cxf.ws.addressing.ContextUtils.getAction(ContextUtils.java:712)
at org.apache.cxf.ws.addressing.MAPAggregator.assembleGeneric(MAPAggregator.java:511)
at org.apache.cxf.ws.addressing.MAPAggregator.aggregate(MAPAggregator.java:484)
at org.apache.cxf.ws.addressing.MAPAggregator.mediate(MAPAggregator.java:411)
at org.apache.cxf.ws.addressing.MAPAggregator.handleMessage(MAPAggregator.java:166)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
... 25 more
{code}
Fix Version/s: 2.4
> org.apache.cxf.ws.addressing.ContextUtils.getAction should support to namespace "http://www.w3.org/2005/08/addressing"
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: CXF-3252
> URL: https://issues.apache.org/jira/browse/CXF-3252
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.2.9, 2.1.10, 2.0.13, 2.2.10, 2.3.0, 2.2.11, 2.2.12, 2.3.1
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.3.2, 2.2.13, 2.4
>
>
> Current CXF dosen't support the get the Address Action with the namespace " http://www.w3.org/2005/08/addressing",
> You will get the NPE if the wsdl definition like this.
> The test case can be ran successfully with JDK 1.6 's JAXWS implementation.
> {code}
> <wsdl:portType name="AccountStatusService" xmlns:wsa="http://www.w3.org/2005/08/addressing">
> <wsdl:operation name="getAccountStatus">
> <wsdl:input message="tns:getAccountStatusRequest"
> wsa:Action="http://example.com/webservices/AccountStatusRequest">
> </wsdl:input>
> <wsdl:output message="tns:getAccountStatusResponse"
> wsa:Action="http://example.com/webservices/AccountStatusResponse" />
> </wsdl:operation>
> {code}
> The stack trace is with CXF 2.2.9, I can also reproduce the error with CXF trunk code.
> {code}
> Caused by: java.lang.NullPointerException
> at org.apache.cxf.ws.addressing.ContextUtils.getAction(ContextUtils.java:830)
> at org.apache.cxf.ws.addressing.ContextUtils.getActionFromMessageAttributes(ContextUtils.java:808)
> at org.apache.cxf.ws.addressing.ContextUtils.getActionFromServiceModel(ContextUtils.java:744)
> at org.apache.cxf.ws.addressing.ContextUtils.getAction(ContextUtils.java:712)
> at org.apache.cxf.ws.addressing.MAPAggregator.assembleGeneric(MAPAggregator.java:511)
> at org.apache.cxf.ws.addressing.MAPAggregator.aggregate(MAPAggregator.java:484)
> at org.apache.cxf.ws.addressing.MAPAggregator.mediate(MAPAggregator.java:411)
> at org.apache.cxf.ws.addressing.MAPAggregator.handleMessage(MAPAggregator.java:166)
> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
> at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
> at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
> ... 25 more
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.