[ 
https://issues.apache.org/jira/browse/CXF-6274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14358235#comment-14358235
 ] 

Jochen Riedlinger commented on CXF-6274:
----------------------------------------

After some debugging sessions I found out that the "RMCaptureInInterceptor" was 
not added to the chain.

The logfile on my server shows this:
08:29:39,655 FINE  [org.apache.cxf.phase.PhaseInterceptorChain] 
(http-/0.0.0.0:8080-1) Chain 
org.apache.cxf.phase.PhaseInterceptorChain@3a17df00 was modified. Current flow:
  receive [PolicyInInterceptor, AttachmentInInterceptor]
  pre-stream [CertConstraintsInterceptor]
  post-stream [StaxInInterceptor, PolicyBasedWSS4JStaxInInterceptor]
  read [WSDLGetInterceptor, ReadHeadersInterceptor, SoapActionInInterceptor, 
StartBodyInterceptor]
  pre-protocol [MustUnderstandInterceptor, MAPCodec, RMSoapInInterceptor, 
PolicyBasedWSS4JInInterceptor, SamlTokenInterceptor]
  post-protocol [CheckFaultInterceptor, JAXBAttachmentSchemaValidationHack]
  unmarshal [DocLiteralInInterceptor, BareInInterceptor, SoapHeaderInterceptor]
  pre-logical [RMInInterceptor, MAPAggregatorImpl, OneWayProcessorInterceptor]
  post-logical [WrapperClassInInterceptor]
  pre-invoke [StaxInEndingInterceptor, SwAInInterceptor, HolderInInterceptor, 
SubjectCreatingSAMLPolicyInterceptor, PolicyVerificationInInterceptor]
  invoke [ServiceInvokerInterceptor, UltimateReceiverMustUnderstandInterceptor]
  post-invoke [RMDeliveryInterceptor, OutgoingChainInterceptor, 
SubjectCreatingSAMLPolicyCleanUpInterceptor]


If "RMCaptureInInterceptor" is not executed
    message.put(RMMessageConstants.SAVED_CONTENT, ris);
there's no SAVED_CONTENT in the message.
That causes my NullPointerException.

I'll attach my "cxf-servlet.xml", so that you can see my configuration.
Since other RM*INterceptos are added to the chain, I'm quite convinced that 
there's a bug.

> NullPointerException in DestinationSequence
> -------------------------------------------
>
>                 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: Critical
>         Attachments: 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)

Reply via email to