[
https://issues.apache.org/jira/browse/CXF-3871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aki Yoshida resolved CXF-3871.
------------------------------
Resolution: Fixed
> NPE is thrown when ws-addr is configured using policy and ws-addr Action is
> absent
> ----------------------------------------------------------------------------------
>
> Key: CXF-3871
> URL: https://issues.apache.org/jira/browse/CXF-3871
> Project: CXF
> Issue Type: Bug
> Components: WS-* Components
> Affects Versions: 2.3.7, 2.4.3
> Reporter: Aki Yoshida
> Assignee: Aki Yoshida
> Priority: Trivial
> Fix For: 2.3.8, 2.4.4, 2.5
>
>
> When using ws-policy to configure ws-addressing and when the addressing's
> Action is not correctly given (e.g., the Action is not set or the namespace
> is given incorrectly), an NPE is thrown from ws-a's ContextUtils' getAction
> method shown below (using trunk):
> Caused by: java.lang.NullPointerException
> at
> org.apache.cxf.ws.addressing.ContextUtils.getAction(ContextUtils.java:921)
> at
> org.apache.cxf.ws.addressing.ContextUtils.getActionFromMessageAttributes(ContextUtils.java:896)
> at
> org.apache.cxf.ws.addressing.ContextUtils.getActionFromServiceModel(ContextUtils.java:832)
> at
> org.apache.cxf.ws.addressing.ContextUtils.getAction(ContextUtils.java:800)
> at
> org.apache.cxf.ws.addressing.MAPAggregator.assembleGeneric(MAPAggregator.java:687)
> at
> org.apache.cxf.ws.addressing.MAPAggregator.aggregate(MAPAggregator.java:660)
> at
> org.apache.cxf.ws.addressing.MAPAggregator.mediate(MAPAggregator.java:515)
> at
> org.apache.cxf.ws.addressing.MAPAggregator.handleMessage(MAPAggregator.java:228)
> Instead, in this case, a null should be returned from this method so that the
> subsequent fallback logic gets the addressing action value from the soap
> action value.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira