You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jochen Riedlinger (JIRA)" <ji...@apache.org> on 2015/03/12 12:11:39 UTC
[jira] [Commented] (CXF-6274) NullPointerException in
DestinationSequence because of RMCaptureInInterceptor not in interceptor
chain
[ https://issues.apache.org/jira/browse/CXF-6274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14358502#comment-14358502 ]
Jochen Riedlinger commented on CXF-6274:
----------------------------------------
Found Workaround:
Configuring the capture interceptors myself on the endpoint, it works:
<jaxws:endpoint id="CMLResponseManagerAsyncWS" address="/cmlresponsemanagerasyncws"
implementor="de.lbank.ws_saml.ws.CMLResponseManagerAsyncWSImpl">
<jaxws:inInterceptors>
<ref bean="rmCapIn"/>
<ref bean="rmLogicalIn"/>
<ref bean="rmCodecIn"/>
</jaxws:inInterceptors>
<jaxws:inFaultInterceptors>
<ref bean="rmCapIn"/>
<ref bean="rmLogicalIn"/>
<ref bean="rmCodecIn"/>
</jaxws:inFaultInterceptors>
<jaxws:outInterceptors>
<ref bean="rmCapOut"/>
<ref bean="rmLogicalOut"/>
<ref bean="rmCodecOut"/>
</jaxws:outInterceptors>
<jaxws:outFaultInterceptors>
<ref bean="rmCapOut"/>
<ref bean="rmLogicalOut"/>
<ref bean="rmCodecOut"/>
</jaxws:outFaultInterceptors>
<jaxws:properties>
<entry key="ws-security.signature.properties" value="samlKeystore.properties" />
<entry key="ws-security.callback-handler" value="de.lbank.framework.ws.server.security.saml.ServiceKeystoreCallbackHandler" />
<entry key="ws-security.enable.streaming" value="false" />
</jaxws:properties>
</jaxws:endpoint>
<bean id="rmCapIn" class="org.apache.cxf.ws.rm.RMCaptureInInterceptor">
<property name="bus" ref="cxf"/>
</bean>
<bean id="rmCapOut" class="org.apache.cxf.ws.rm.RMCaptureOutInterceptor">
<property name="bus" ref="cxf"/>
</bean>
<bean id="rmLogicalOut" class="org.apache.cxf.ws.rm.RMOutInterceptor">
<property name="bus" ref="cxf"/>
</bean>
<bean id="rmLogicalIn" class="org.apache.cxf.ws.rm.RMInInterceptor">
<property name="bus" ref="cxf"/>
</bean>
<bean id="rmCodecOut" class="org.apache.cxf.ws.rm.soap.RMSoapOutInterceptor"/>
<bean id="rmCodecIn" class="org.apache.cxf.ws.rm.soap.RMSoapInInterceptor"/>
> NullPointerException in DestinationSequence because of RMCaptureInInterceptor not in interceptor chain
> ------------------------------------------------------------------------------------------------------
>
> Key: CXF-6274
> URL: https://issues.apache.org/jira/browse/CXF-6274
> Project: CXF
> Issue Type: Bug
> Components: WS-* Components
> Affects Versions: 3.0.4
> Reporter: Jochen Riedlinger
> Priority: Blocker
> Labels: WS-RM, WS-ReliableMessaging
> Fix For: 3.0.5
>
> Attachments: cxf-servlet.xml, ws-rm_saml.wsdl
>
>
> I'm building a prototype webservice using one-way WS-RM (in combination with SAML sender vouches).
> It works well as long as there's no persistence store configured.
> When using a jdbcStore (Oracle DB) I get this NullPointerException:
> 11:19:27,214 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (http-/0.0.0.0:8080-1) Interceptor for {...}CMLResponseManagerAsyncWSService#{...}respondGetInfo has thrown exception, unwinding now: java.lang.NullPointerException
> at org.apache.cxf.ws.rm.DestinationSequence.acknowledge(DestinationSequence.java:171)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)