You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Thomas Diesler (JIRA)" <ji...@apache.org> on 2007/12/20 21:17:43 UTC

[jira] Commented: (CXF-1321) Unmarshal interceptor chokes on incoming RM CreateSequence

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

Thomas Diesler commented on CXF-1321:
-------------------------------------

This also occurs with Document endpoints 

[tdiesler@tdvaio trunk]$ ant -Dtest=jaxws/cxf/wsrm test

tests-run-internal:
    [junit] Running org.jboss.test.ws.jaxws.cxf.wsrm.BasicDocTestCase
    [junit] FIXME: [CXF-1310] Generated WSDL for an WS-RM endpoint does not contain RM policies
    [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 9.108 sec
    [junit] Test org.jboss.test.ws.jaxws.cxf.wsrm.BasicDocTestCase FAILED
    [junit] Running org.jboss.test.ws.jaxws.cxf.wsrm.BasicRPCTestCase
    [junit] FIXME: [CXF-1310] Generated WSDL for an WS-RM endpoint does not contain RM policies
    [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 10.572 sec
    [junit] Test org.jboss.test.ws.jaxws.cxf.wsrm.BasicRPCTestCase FAILED

2007-12-20 20:39:13,189 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Chain org.apache.cxf.phase.PhaseInterceptorChain@1584bf1 was modified. Current flow:
  receive [LoggingInInterceptor, ClientPolicyInInterceptor, ServerPolicyInInterceptor, AttachmentInInterceptor]
  post-stream [StaxInInterceptor]
  read [ReadHeadersInterceptor, SoapActionInInterceptor]
  pre-protocol [MustUnderstandInterceptor, MAPCodec, SOAPHandlerInterceptor, LogicalHandlerInInterceptor, RMSoapInterceptor]
  unmarshal [URIMappingInterceptor, DocLiteralInInterceptor, SoapHeaderInterceptor]
  pre-logical [RMInInterceptor, MAPAggregator]
  post-logical [WrapperClassInInterceptor]
  pre-invoke [PolicyVerificationInInterceptor, SwAInInterceptor, HolderInInterceptor]
  invoke [ServiceInvokerInterceptor]
  post-invoke [OutgoingChainInterceptor]

2007-12-20 20:39:13,189 INFO  [org.apache.cxf.ws.policy.ServerPolicyInInterceptor] Added interceptor of type MAPCodec
2007-12-20 20:39:13,196 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@4fe90
2007-12-20 20:39:13,196 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.interceptor.StaxInInterceptor@1e4a61a
2007-12-20 20:39:13,397 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor@798781
2007-12-20 20:39:13,407 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor@550344
2007-12-20 20:39:13,407 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.MustUnderstandInterceptor@af3cf6
2007-12-20 20:39:13,411 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.ws.addressing.soap.MAPCodec@aed52c
2007-12-20 20:39:13,417 INFO  [org.apache.cxf.ws.addressing.ContextUtils] retrieving MAPs from context property javax.xml.ws.addressing.context.inbound
2007-12-20 20:39:13,418 INFO  [org.apache.cxf.ws.addressing.ContextUtils] WS-Addressing - failed to retrieve Message Addressing Properties from context
2007-12-20 20:39:13,418 INFO  [org.apache.cxf.ws.addressing.soap.MAPCodec] Inbound WS-Addressing headers
2007-12-20 20:39:13,418 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@47cfb2
2007-12-20 20:39:13,422 DEBUG [org.apache.cxf.jaxws.handler.HandlerChainInvoker] invoker for chain size: 0
2007-12-20 20:39:13,423 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.jaxws.handler.logical.LogicalHandlerInInterceptor@8fa832
2007-12-20 20:39:13,423 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.ws.rm.soap.RMSoapInterceptor@d7373f
2007-12-20 20:39:13,557 INFO  [org.apache.cxf.ws.addressing.ContextUtils] retrieving MAPs from context property javax.xml.ws.addressing.context.inbound
2007-12-20 20:39:13,558 WARN  [org.apache.cxf.ws.addressing.ContextUtils] WS-Addressing - failed to retrieve Message Addressing Properties from context
2007-12-20 20:39:13,558 DEBUG [org.apache.cxf.ws.rm.soap.RMSoapInterceptor] action: null
2007-12-20 20:39:13,558 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.interceptor.URIMappingInterceptor@cb6b0a
2007-12-20 20:39:13,558 DEBUG [org.apache.cxf.interceptor.URIMappingInterceptor] Invoking HTTP method POST
2007-12-20 20:39:13,558 DEBUG [org.apache.cxf.interceptor.URIMappingInterceptor] URIMappingInterceptor can only handle HTTP GET, not HTTP POST
2007-12-20 20:39:13,558 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.interceptor.DocLiteralInInterceptor@149865b
2007-12-20 20:39:13,570 INFO  [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Message part {http://schemas.xmlsoap.org/ws/2005/02/rm}CreateSequence was not recognized.
	at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:179)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
	at org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:79)
	at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:256)
	at org.jboss.wsf.stack.cxf.ServletControllerExt.invoke(ServletControllerExt.java:133)
	at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:63)
	at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:136)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

> Unmarshal interceptor chokes on incoming RM CreateSequence
> ----------------------------------------------------------
>
>                 Key: CXF-1321
>                 URL: https://issues.apache.org/jira/browse/CXF-1321
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>    Affects Versions: 2.0.3
>            Reporter: Thomas Diesler
>
> /home/tdiesler/svn/jbossws/stack/cxf/trunk
> [tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.cxf.reliable.BasicRMTestCase one-test
> one-test:
>     [junit] Running org.jboss.test.ws.jaxws.cxf.reliable.BasicRMTestCase
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 18.941 sec
>     [junit] Test org.jboss.test.ws.jaxws.cxf.reliable.BasicRMTestCase FAILED
> 16:56:29,232 INFO  [LoggingInInterceptor] Inbound Message
> --------------------------------------
> Encoding: UTF-8
> Headers: {connection=[keep-alive], cache-control=[no-cache], host=[localhost:8080], user-agent=[Java/1.5.0_12], transfer-encoding=[chunked], pragma=[no-cache], content-type=[text/xml; charset=UTF-8], accept=[*], soapaction=["http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence"]}
> Message:
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns1:CreateSequence xmlns:ns1="http://schemas.xmlsoap.org/ws/2005/02/rm"><CreateSequence xmlns="http://schemas.xmlsoap.org/ws/2005/02/rm" xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"><AcksTo><ns2:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</ns2:Address></AcksTo><Expires>PT0S</Expires><Offer><Identifier>urn:uuid:cf97be9d-abda-4aab-954f-e16061e01f09</Identifier><Expires>PT0S</Expires></Offer></CreateSequence></ns1:CreateSequence></soap:Body></soap:Envelope>
> --------------------------------------
> 2007-12-20 17:03:32,652 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Chain org.apache.cxf.phase.PhaseInterceptorChain@653c7e was modified. Current flow:
>   receive [LoggingInInterceptor, ClientPolicyInInterceptor, ServerPolicyInInterceptor, AttachmentInInterceptor]
>   post-stream [StaxInInterceptor]
>   read [ReadHeadersInterceptor, SoapActionInInterceptor]
>   pre-protocol [MustUnderstandInterceptor, MAPCodec, SOAPHandlerInterceptor, LogicalHandlerInInterceptor, RMSoapInterceptor]
>   unmarshal [URIMappingInterceptor, RPCInInterceptor, SoapHeaderInterceptor]
>   pre-logical [RMInInterceptor, MAPAggregator]
>   post-logical [WrapperClassInInterceptor]
>   pre-invoke [PolicyVerificationInInterceptor, SwAInInterceptor, HolderInInterceptor]
>   invoke [ServiceInvokerInterceptor]
>   post-invoke [OutgoingChainInterceptor]
> 2007-12-20 17:03:32,652 INFO  [org.apache.cxf.ws.policy.ServerPolicyInInterceptor] Added interceptor of type MAPCodec
> 2007-12-20 17:03:32,653 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@1b4f7c5
> 2007-12-20 17:03:32,653 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.interceptor.StaxInInterceptor@1f6e3e9
> 2007-12-20 17:03:32,653 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor@17f4790
> 2007-12-20 17:03:32,654 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor@1ecdb1b
> 2007-12-20 17:03:32,655 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.MustUnderstandInterceptor@1335332
> 2007-12-20 17:03:32,655 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.ws.addressing.soap.MAPCodec@183c44d
> 2007-12-20 17:03:32,656 INFO  [org.apache.cxf.ws.addressing.ContextUtils] retrieving MAPs from context property javax.xml.ws.addressing.context.inbound
> 2007-12-20 17:03:32,657 INFO  [org.apache.cxf.ws.addressing.ContextUtils] WS-Addressing - failed to retrieve Message Addressing Properties from context
> 2007-12-20 17:03:32,657 INFO  [org.apache.cxf.ws.addressing.soap.MAPCodec] Inbound WS-Addressing headers
> 2007-12-20 17:03:32,658 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@191ce2a
> 2007-12-20 17:03:32,658 DEBUG [org.apache.cxf.jaxws.handler.HandlerChainInvoker] invoker for chain size: 0
> 2007-12-20 17:03:32,658 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.jaxws.handler.logical.LogicalHandlerInInterceptor@1365e01
> 2007-12-20 17:03:32,658 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.ws.rm.soap.RMSoapInterceptor@6d41c0
> 2007-12-20 17:03:32,659 INFO  [org.apache.cxf.ws.addressing.ContextUtils] retrieving MAPs from context property javax.xml.ws.addressing.context.inbound
> 2007-12-20 17:03:32,660 WARN  [org.apache.cxf.ws.addressing.ContextUtils] WS-Addressing - failed to retrieve Message Addressing Properties from context
> 2007-12-20 17:03:32,661 DEBUG [org.apache.cxf.ws.rm.soap.RMSoapInterceptor] action: null
> 2007-12-20 17:03:32,661 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.interceptor.URIMappingInterceptor@9b027d
> 2007-12-20 17:03:32,661 DEBUG [org.apache.cxf.interceptor.URIMappingInterceptor] Invoking HTTP method POST
> 2007-12-20 17:03:32,662 DEBUG [org.apache.cxf.interceptor.URIMappingInterceptor] URIMappingInterceptor can only handle HTTP GET, not HTTP POST
> 2007-12-20 17:03:32,662 DEBUG [org.apache.cxf.phase.PhaseInterceptorChain] Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.RPCInInterceptor@124e231
> 2007-12-20 17:03:32,663 INFO  [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: Message part {http://schemas.xmlsoap.org/ws/2005/02/rm}CreateSequence was not recognized.
> 	at org.apache.cxf.interceptor.BareInInterceptor.handleMessage(BareInInterceptor.java:133)
> 	at org.apache.cxf.binding.soap.interceptor.RPCInInterceptor.handleMessage(RPCInInterceptor.java:85)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
> 	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
> 	at org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:79)
> 	at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:256)
> 	at org.jboss.wsf.stack.cxf.ServletControllerExt.invoke(ServletControllerExt.java:133)
> 	at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:63)
> 	at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:136)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> It seems to be a problem that the RPCInInterceptor comes before the RMInInterceptor.
> I am going to see if this is a RPC specific problem

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