You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by johanp <ca...@live.se> on 2008/03/13 15:42:39 UTC

cxfbc eip cxfse problem

Hi,

CXFBC-consumer <-> CXFSE-pojo works fine.

When trying:
CXFBC-consumer <-> EIP-srs <-> CXFSE-pojo getting:


DEBUG - DeliveryChannelImpl            - Waiting for exchange
ID:10.47.31.187-118a844d8f1-14:7 (d41c75) to be answered i
n DeliveryChannel{servicemix-cxf-bc} from sendSync
DEBUG - SedaQueue                      -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1985730 dequeued
exchange:
InOut[
  id: ID:10.47.31.187-118a844d8f1-14:7
  status: Active
  role: provider
  service: {http://www.exampleURI.com/GetCustomer}routingSlip
  endpoint: endpoint
  operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
  in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
type="msg:GetCustomerInput" version="1.0"><jbi:par
t><s1:CustomerNumberRequest xmlns:s1="http://www.exampleURI.com/GetCustomer"
xmlns:soapenc="http://schemas.xmlsoap.org/s
oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <CompanyID>company</CompanyID>
         <Password>dsfkj</Password>
         <UserName>sdflkj</UserName>
         <CustomerNumber>129</CustomerNumber>
      </s1:CustomerNumberRequest></jbi:part></jbi:message>
]
DEBUG - EIPComponent                   - Received exchange: status: Active,
role: provider
DEBUG - EIPComponent                   - Retrieved correlation id:
ID:10.47.31.187-118a844d8f1-14:7
DEBUG - MemoryStore                    - Storing object with id:
ID:10.47.31.187-118a844d8f1-14:7
DEBUG - EIPComponent                   - Correlation id retrieved from
ThreadLocal: ID:10.47.31.187-118a844d8f1-14:7
DEBUG - DeliveryChannelImpl            - Send
ID:10.47.31.187-118a844d8f1-6:14 in DeliveryChannel{servicemix-eip}
DEBUG - SedaFlow                       - Called Flow send
DEBUG - SedaQueue                      -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@841a5c dequeued
exchange: I
nOut[
  id: ID:10.47.31.187-118a844d8f1-6:14
  status: Active
  role: provider
  interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
  service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
  endpoint: GetCustomerServiceImplPort
  in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
type="msg:GetCustomerInput" version="1.0"><jbi:par
t><s1:CustomerNumberRequest xmlns:s1="http://www.exampleURI.com/GetCustomer"
xmlns:soapenc="http://schemas.xmlsoap.org/s
oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <CompanyID>company</CompanyID>
         <Password>dsfkj</Password>
         <UserName>sdflkj</UserName>
         <CustomerNumber>129</CustomerNumber>
      </s1:CustomerNumberRequest></jbi:part></jbi:message>
]
DEBUG - CxfSeComponent                 - Received exchange: status: Active,
role: provider
DEBUG - CxfSeComponent                 - Retrieved correlation id:
ID:10.47.31.187-118a844d8f1-14:7
2008-mar-13 15:19:35 org.apache.cxf.transport.jbi.JBITransportFactory
setDeliveryChannel
INFO: configuring DeliveryChannel:     
org.apache.servicemix.common.EndpointDeliveryChannel@decacd
2008-mar-13 15:19:35 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
java.lang.NullPointerException
        at
org.apache.cxf.binding.jbi.interceptor.JBIWrapperInInterceptor.handleMessage(JBIWrapperInInterceptor.java:105
)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
        at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
        at
org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:151)
        at
org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:201)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
2008-mar-13 15:19:35 org.apache.cxf.transport.jbi.JBIDestinationOutputStream
commitOutputMessage
ALLVARLIG: error sending Out message
java.lang.ClassCastException: java.lang.NullPointerException
        at
org.apache.cxf.transport.jbi.JBIDestinationOutputStream.commitOutputMessage(JBIDestinationOutputStream.java:8
8)
        at
org.apache.cxf.transport.jbi.JBIDestinationOutputStream.doClose(JBIDestinationOutputStream.java:61)
        at
org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:154)
        at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
        at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSende
rInterceptor.java:62)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
        at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.
java:96)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:254)
        at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
        at
org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:151)
        at
org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:201)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
DEBUG - DeliveryChannelImpl            - Notified:
ID:10.47.31.187-118a844d8f1-14:7(d41c75) in DeliveryChannel{servicemi
x-cxf-bc} from sendSync
DEBUG - DeliveryChannelImpl            - Exchange
ID:10.47.31.187-118a844d8f1-14:7 has been aborted
2008-mar-13 15:19:45 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault
        at
org.apache.servicemix.cxfbc.CxfBcConsumer$JbiPostInvokerInterceptor.handleMessage(CxfBcConsumer.java:466)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
        at
org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:197)
        at
org.apache.servicemix.cxfbc.CxfBcConsumer.process(CxfBcConsumer.java:182)
        at
org.apache.servicemix.cxfbc.CxfBcConsumer$JbiInvokerInterceptor.handleMessage(CxfBcConsumer.java:442)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
        at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:278)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:252)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:62)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

Any ideas ?
Tia
-- 
View this message in context: http://www.nabble.com/cxfbc-eip-cxfse-problem-tp16026202s12049p16026202.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: cxfbc eip cxfse problem

Posted by rgavlin <rg...@yahoo.com>.
The same problem occurs when "eip pipeline" sends to "cxf-se
(cxf-wsdl-first)" in the following flow: 

file poller -> eip pipeline -> cxf-se (cxf-wsdl-first) --> file sender

- Ron


Freeman Fang wrote:
> 
> Hi,
> 
> Could you add log interceptor for your cxf se endpoint so that we can 
> see what the exact message cxf se get after the EIP-srs process
> 
> something like
> 
>        <cxfse:inInterceptors>
>           <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
>         </cxfse:inInterceptors>
>         <cxfse:outInterceptors>
>           <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>         </cxfse:outInterceptors>
>         <cxfse:inFaultInterceptors>
>           <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
>         </cxfse:inFaultInterceptors>
>         <cxfse:outFaultInterceptors>
>           <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>         </cxfse:outFaultInterceptors>
> 
> Please append the log with the EIP component and without the EIP 
> component, which is helpful for us.
> And the xbean for both bc and se.
> 
> Thanks
> 
> Freeman
> 
> johanp wrote:
>> Hi,
>>
>> CXFBC-consumer <-> CXFSE-pojo works fine.
>>
>> When trying:
>> CXFBC-consumer <-> EIP-srs <-> CXFSE-pojo getting:
>>
>>
>> DEBUG - DeliveryChannelImpl            - Waiting for exchange
>> ID:10.47.31.187-118a844d8f1-14:7 (d41c75) to be answered i
>> n DeliveryChannel{servicemix-cxf-bc} from sendSync
>> DEBUG - SedaQueue                      -
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1985730 dequeued
>> exchange:
>> InOut[
>>   id: ID:10.47.31.187-118a844d8f1-14:7
>>   status: Active
>>   role: provider
>>   service: {http://www.exampleURI.com/GetCustomer}routingSlip
>>   endpoint: endpoint
>>   operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
>>   in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
>> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
>> s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
>> type="msg:GetCustomerInput" version="1.0"><jbi:par
>> t><s1:CustomerNumberRequest
>> xmlns:s1="http://www.exampleURI.com/GetCustomer"
>> xmlns:soapenc="http://schemas.xmlsoap.org/s
>> oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>>          <CompanyID>company</CompanyID>
>>          <Password>dsfkj</Password>
>>          <UserName>sdflkj</UserName>
>>          <CustomerNumber>129</CustomerNumber>
>>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
>> ]
>> DEBUG - EIPComponent                   - Received exchange: status:
>> Active,
>> role: provider
>> DEBUG - EIPComponent                   - Retrieved correlation id:
>> ID:10.47.31.187-118a844d8f1-14:7
>> DEBUG - MemoryStore                    - Storing object with id:
>> ID:10.47.31.187-118a844d8f1-14:7
>> DEBUG - EIPComponent                   - Correlation id retrieved from
>> ThreadLocal: ID:10.47.31.187-118a844d8f1-14:7
>> DEBUG - DeliveryChannelImpl            - Send
>> ID:10.47.31.187-118a844d8f1-6:14 in DeliveryChannel{servicemix-eip}
>> DEBUG - SedaFlow                       - Called Flow send
>> DEBUG - SedaQueue                      -
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@841a5c dequeued
>> exchange: I
>> nOut[
>>   id: ID:10.47.31.187-118a844d8f1-6:14
>>   status: Active
>>   role: provider
>>   interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
>>   service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
>>   endpoint: GetCustomerServiceImplPort
>>   in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
>> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
>> s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
>> type="msg:GetCustomerInput" version="1.0"><jbi:par
>> t><s1:CustomerNumberRequest
>> xmlns:s1="http://www.exampleURI.com/GetCustomer"
>> xmlns:soapenc="http://schemas.xmlsoap.org/s
>> oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>>          <CompanyID>company</CompanyID>
>>          <Password>dsfkj</Password>
>>          <UserName>sdflkj</UserName>
>>          <CustomerNumber>129</CustomerNumber>
>>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
>> ]
>> DEBUG - CxfSeComponent                 - Received exchange: status:
>> Active,
>> role: provider
>> DEBUG - CxfSeComponent                 - Retrieved correlation id:
>> ID:10.47.31.187-118a844d8f1-14:7
>> 2008-mar-13 15:19:35 org.apache.cxf.transport.jbi.JBITransportFactory
>> setDeliveryChannel
>> INFO: configuring DeliveryChannel:     
>> org.apache.servicemix.common.EndpointDeliveryChannel@decacd
>> 2008-mar-13 15:19:35 org.apache.cxf.phase.PhaseInterceptorChain
>> doIntercept
>> INFO: Interceptor has thrown exception, unwinding now
>> java.lang.NullPointerException
>>         at
>> org.apache.cxf.binding.jbi.interceptor.JBIWrapperInInterceptor.handleMessage(JBIWrapperInInterceptor.java:105
>> )
>>         at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>>         at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
>>         at
>> org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:151)
>>         at
>> org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:201)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>         at
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>         at
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>         at java.lang.Thread.run(Thread.java:595)
>> 2008-mar-13 15:19:35
>> org.apache.cxf.transport.jbi.JBIDestinationOutputStream
>> commitOutputMessage
>> ALLVARLIG: error sending Out message
>> java.lang.ClassCastException: java.lang.NullPointerException
>>         at
>> org.apache.cxf.transport.jbi.JBIDestinationOutputStream.commitOutputMessage(JBIDestinationOutputStream.java:8
>> 8)
>>         at
>> org.apache.cxf.transport.jbi.JBIDestinationOutputStream.doClose(JBIDestinationOutputStream.java:61)
>>         at
>> org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:154)
>>         at
>> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>>         at
>> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSende
>> rInterceptor.java:62)
>>         at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>>         at
>> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.
>> java:96)
>>         at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:254)
>>         at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
>>         at
>> org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:151)
>>         at
>> org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:201)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>         at
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>         at
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>         at java.lang.Thread.run(Thread.java:595)
>> DEBUG - DeliveryChannelImpl            - Notified:
>> ID:10.47.31.187-118a844d8f1-14:7(d41c75) in DeliveryChannel{servicemi
>> x-cxf-bc} from sendSync
>> DEBUG - DeliveryChannelImpl            - Exchange
>> ID:10.47.31.187-118a844d8f1-14:7 has been aborted
>> 2008-mar-13 15:19:45 org.apache.cxf.phase.PhaseInterceptorChain
>> doIntercept
>> INFO: Interceptor has thrown exception, unwinding now
>> org.apache.cxf.interceptor.Fault
>>         at
>> org.apache.servicemix.cxfbc.CxfBcConsumer$JbiPostInvokerInterceptor.handleMessage(CxfBcConsumer.java:466)
>>         at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>>         at
>> org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:197)
>>         at
>> org.apache.servicemix.cxfbc.CxfBcConsumer.process(CxfBcConsumer.java:182)
>>         at
>> org.apache.servicemix.cxfbc.CxfBcConsumer$JbiInvokerInterceptor.handleMessage(CxfBcConsumer.java:442)
>>         at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>>         at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
>>         at
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:278)
>>         at
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:252)
>>         at
>> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:62)
>>         at
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
>>         at
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>>         at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>>         at org.mortbay.jetty.Server.handle(Server.java:324)
>>         at
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>>         at
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
>>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
>>         at
>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>>         at
>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>>         at
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>>         at
>> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
>>
>> Any ideas ?
>> Tia
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/cxfbc-eip-cxfse-problem-tp16026202s12049p16134010.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: cxfbc eip cxfse problem

Posted by johanp <ca...@live.se>.

Hi,

Thankyou Freeman it works now!

/Johan
-- 
View this message in context: http://www.nabble.com/cxfbc-eip-cxfse-problem-tp16026202s12049p16173579.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: cxfbc eip cxfse problem

Posted by Freeman Fang <fr...@gmail.com>.
Hi Johan,

I just go through the EIP component code, fortunately you can specify 
the operation for your EIP SRS, so your EIP SRS configuration should like
<eip:static-routing-slip service="front:routingSlip" endpoint="endpoint">
  <eip:targets>
    <eip:exchange-target service="front:GetCustomerService"
interface="front:GetCustomerPortType" operation="front:GetCustomer"/>
  </eip:targets>
</eip:static-routing-slip>      

Here I assume you define namespace front as 
http://www.exampleURI.com/GetCustomer
Would you please try with this configuration, this should work.

Regards

Freeman

Freeman Fang wrote:
> Hi Johan,
>
> After go through the log so many times, I found that the JBI message 
> cxf se received is exactly same with or without the EIP component.
> But the interesting thing is that the working flow without the EIP 
> component has operation
>
> operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
>
> in the exchange, but if you use EIP component between cxf bc and se, 
> the EIP component will remove the operation, which cause your error.
>
> I'm not sure for EIP configuration, if we can specify to keep the 
> operation of exchange, if not, I guess probably it's a bug of EIP 
> component, I will try to fix it asap.
>
> Regards
> Freeman
>
> johanp wrote:
>> This works fine (cxfbc-consumer to cxfse-pojo):
>> ===============================
>>
>> <cxfbc:consumer wsdl="classpath:GetCustomer.wsdl"
>> service="front:GetCustomerService"
>> endpoint="endpoint"
>> targetService="front:GetCustomerService"
>> targetInterface="front:GetCustomerPortType">
>> </cxfbc:consumer>
>>
>> <cxfse:endpoint>
>> <cxfse:pojo>
>>   <bean class="com.exampleuri.getcustomer.GetCustomerServiceImpl" />
>> </cxfse:pojo>
>> <cxfse:inInterceptors>
>>   <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
>> </cxfse:inInterceptors>
>> <cxfse:outInterceptors>
>>   <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>> </cxfse:outInterceptors>
>> <cxfse:inFaultInterceptors>
>>   <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
>> </cxfse:inFaultInterceptors>
>> <cxfse:outFaultInterceptors>
>>   <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>> </cxfse:outFaultInterceptors>         </cxfse:endpoint>
>>
>> @WebService(serviceName = "GetCustomerService",
>>     targetNamespace = "http://www.exampleURI.com/GetCustomer",
>>     endpointInterface = 
>> "com.exampleuri.getcustomer.GetCustomerPortType")
>> public class GetCustomerServiceImpl implements GetCustomerPortType{
>>     public Customer getCustomer(
>>         com.exampleuri.getcustomer.CustomerNumberRequest
>> customerNumberRequest) {
>>         Customer customer = new Customer();
>>         customer.setCustomerNumber(12);
>>         customer.setCustomerStatusKey("S");
>>         customer.setCustomerTypeKey("TK");
>>         customer.setEmail("sdf@sdf.sdf");
>>         customer.setExternalCustomerReference("extref");
>>         customer.setFamilyName("asdfd");
>>         customer.setFirstName("asdfds");
>>         customer.setPreferredLanguage("en");
>>         customer.setSegmentationKey(14);
>>         customer.setTitle("title");
>>         return customer;    }}
>>
>> DEBUG - CxfBcComponent                 - Created correlation id:
>> ID:192.168.0.187-118c65ed729-14:0
>> DEBUG - DeliveryChannelImpl            - SendSync
>> ID:192.168.0.187-118c65ed729-14:0 in DeliveryChannel{servicemix-cxf-bc
>> }
>> DEBUG - SedaFlow                       - Called Flow send
>> DEBUG - DeliveryChannelImpl            - Waiting for exchange
>> ID:192.168.0.187-118c65ed729-14:0 (cb03c4) to be answered
>> in DeliveryChannel{servicemix-cxf-bc} from sendSync
>> DEBUG - SedaQueue                      -
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@646a81 dequeued
>> exchange: I
>> nOut[
>>   id: ID:192.168.0.187-118c65ed729-14:0
>>   status: Active
>>   role: provider
>>   interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
>>   service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
>>   endpoint: GetCustomerServiceImplPort
>>   operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
>>   in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
>> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
>> s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
>> type="msg:GetCustomerInput" version="1.0"><jbi:par
>> t><s1:CustomerNumberRequest 
>> xmlns:s1="http://www.exampleURI.com/GetCustomer"
>> xmlns:soapenc="http://schemas.xmlsoap.org/s
>> oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>>          <CompanyID>comp</CompanyID>
>>          <Password>pass</Password>
>>          <UserName>usr</UserName>
>>          <CustomerNumber>1230</CustomerNumber>
>>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
>> ]
>> DEBUG - CxfSeComponent                 - Received exchange: status: 
>> Active,
>> role: provider
>> DEBUG - CxfSeComponent                 - Retrieved correlation id:
>> ID:192.168.0.187-118c65ed729-14:0
>> 2008-mar-19 10:31:33 org.apache.cxf.transport.jbi.JBITransportFactory
>> setDeliveryChannel
>> INFO: configuring DeliveryChannel:     
>> org.apache.servicemix.common.EndpointDeliveryChannel@174b423
>> 2008-mar-19 10:31:33 org.apache.cxf.interceptor.LoggingInInterceptor 
>> logging
>> INFO: Inbound Message
>> ----------------------------
>> Encoding:
>> Headers:
>> Messages:
>> Message:
>>
>> Payload: <?xml version="1.0" encoding="UTF-8"?><jbi:message
>> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" x
>> mlns:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
>> type="msg:GetCustomerInput" version="1.0"><jbi:
>> part><s1:CustomerNumberRequest
>> xmlns:s1="http://www.exampleURI.com/GetCustomer"
>> xmlns:soapenc="http://schemas.xmlsoap.or
>> g/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>>          <CompanyID>comp</CompanyID>
>>          <Password>pass</Password>
>>          <UserName>usr</UserName>
>>          <CustomerNumber>1230</CustomerNumber>
>>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
>> --------------------------------------
>> 2008-mar-19 10:31:34
>> org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
>> INFO: Outbound Message
>> ---------------------------
>> Encoding: UTF-8
>> Headers:
>> Messages:
>> Payload: <jbi:message
>> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"
>> xmlns:msg="http://www.exampleURI.com/Ge
>> tCustomer" type="msg:GetCustomerResponse"><jbi:part><ns2:Customer
>> xmlns:ns2="http://www.exampleURI.com/GetCustomer"><Cus
>> tomerNumber>12</CustomerNumber><CustomerStatusKey>S</CustomerStatusKey><CustomerTypeKey>TK</CustomerTypeKey>sdf@s 
>>
>> df.sdf<ExternalCustomerReference>extref</ExternalCustomerReference><FamilyName>asdfd</FamilyName><FirstName>asdf 
>>
>> ds</FirstName><PreferredLanguage>en</PreferredLanguage><SegmentationKey>14</SegmentationKey><Title>title</Title></ns2:Cu 
>>
>> stomer></jbi:part></jbi:message>
>> --------------------------------------
>> DEBUG - DeliveryChannelImpl            - Send
>> ID:192.168.0.187-118c65ed729-14:0 in DeliveryChannel{servicemix-cxf-se}
>> DEBUG - SedaFlow                       - Called Flow send
>> DEBUG - SedaQueue                      -
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@f05ce8 dequeued
>> exchange: I
>> nOut[
>>   id: ID:192.168.0.187-118c65ed729-14:0
>>   status: Active
>>   role: consumer
>>   interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
>>   service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
>>   endpoint: GetCustomerServiceImplPort
>>   operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
>>   in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
>> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
>> s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
>> type="msg:GetCustomerInput" version="1.0"><jbi:par
>> t><s1:CustomerNumberRequest 
>> xmlns:s1="http://www.exampleURI.com/GetCustomer"
>> xmlns:soapenc="http://schemas.xmlsoap.org/s
>> oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>>          <CompanyID>comp</CompanyID>
>>          <Password>pass</Password>
>>          <UserName>usr</UserName>
>>          <CustomerNumber>1230</CustomerNumber>
>>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
>>   out: <?xml version="1.0" encoding="UTF-8"?><jbi:message
>> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xml
>> ns:msg="http://www.exampleURI.com/GetCustomer"
>> type="msg:GetCustomerResponse"><jbi:part><ns2:Customer 
>> xmlns:ns2="http://
>> www.exampleURI.com/GetCustomer"><CustomerNumber>12</CustomerNumber><CustomerStatusKey>S</CustomerStatusKey><CustomerType 
>>
>> Key>TK</CustomerTypeKey>sdf@sdf.sdf<ExternalCustomerReference>extref</ExternalCustomerReference><FamilyNa 
>>
>> me>asdfd</FamilyName><FirstName>asdfds</FirstName><PreferredLanguage>en</PreferredLanguage><SegmentationKey>14</Segmenta 
>>
>> tionKey><Title>title</Title></ns2:Customer></jbi:part></jbi:message>
>> ]
>> DEBUG - DeliveryChannelImpl            - Notifying exchange
>> ID:192.168.0.187-118c65ed729-14:0(cb03c4) in DeliveryChannel
>> {servicemix-cxf-bc} from processInboundSynchronousExchange
>> DEBUG - DeliveryChannelImpl            - Notified:
>> ID:192.168.0.187-118c65ed729-14:0(cb03c4) in DeliveryChannel{servicem
>> ix-cxf-bc} from sendSync
>> DEBUG - DeliveryChannelImpl            - Send
>> ID:192.168.0.187-118c65ed729-14:0 in DeliveryChannel{servicemix-cxf-bc}
>> DEBUG - SedaFlow                       - Called Flow send
>> DEBUG - SedaQueue                      -
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@c1a0a6 dequeued
>> exchange: I
>> nOut[
>>   id: ID:192.168.0.187-118c65ed729-14:0
>>   status: Done
>>   role: provider
>>   interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
>>   service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
>>   endpoint: GetCustomerServiceImplPort
>>   operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
>>   in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
>> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
>> s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
>> type="msg:GetCustomerInput" version="1.0"><jbi:par
>> t><s1:CustomerNumberRequest 
>> xmlns:s1="http://www.exampleURI.com/GetCustomer"
>> xmlns:soapenc="http://schemas.xmlsoap.org/s
>> oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>>          <CompanyID>comp</CompanyID>
>>          <Password>pass</Password>
>>          <UserName>usr</UserName>
>>          <CustomerNumber>1230</CustomerNumber>
>>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
>>   out: <?xml version="1.0" encoding="UTF-8"?><jbi:message
>> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xml
>> ns:msg="http://www.exampleURI.com/GetCustomer"
>> type="msg:GetCustomerResponse"><jbi:part><ns2:Customer 
>> xmlns:ns2="http://
>> www.exampleURI.com/GetCustomer"><CustomerNumber>12</CustomerNumber><CustomerStatusKey>S</CustomerStatusKey><CustomerType 
>>
>> Key>TK</CustomerTypeKey>sdf@sdf.sdf<ExternalCustomerReference>extref</ExternalCustomerReference><FamilyNa 
>>
>> me>asdfd</FamilyName><FirstName>asdfds</FirstName><PreferredLanguage>en</PreferredLanguage><SegmentationKey>14</Segmenta 
>>
>> tionKey><Title>title</Title></ns2:Customer></jbi:part></jbi:message>
>> ]
>> DEBUG - CxfSeComponent                 - Received exchange: status: 
>> Done,
>> role: provider
>> DEBUG - CxfSeComponent                 - Retrieved correlation id:
>> ID:192.168.0.187-118c65ed729-14:0
>> 2008-mar-19 10:31:34 org.apache.cxf.transport.jbi.JBITransportFactory
>> setDeliveryChannel
>> INFO: configuring DeliveryChannel:     
>> org.apache.servicemix.common.EndpointDeliveryChannel@174b423
>>
>>
>> This does not work (cxfbc-consumer to eip-srs to cxfse-pojo):
>> ========================================
>>
>> <cxfbc:consumer wsdl="classpath:GetCustomer.wsdl"
>>           targetService="front:routingSlip"/>
>>           <eip:static-routing-slip service="front:routingSlip" 
>> endpoint="endpoint">
>>   <eip:targets>
>>     <eip:exchange-target service="front:GetCustomerService"
>> interface="front:GetCustomerPortType"/>
>>   </eip:targets>
>> </eip:static-routing-slip>         
>>
>> <cxfse:endpoint>
>> <cxfse:pojo>
>>   <bean class="com.exampleuri.getcustomer.GetCustomerServiceImpl" />
>> </cxfse:pojo>
>> <cxfse:inInterceptors>
>>   <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
>> </cxfse:inInterceptors>
>> <cxfse:outInterceptors>
>>   <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>> </cxfse:outInterceptors>
>> <cxfse:inFaultInterceptors>
>>   <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
>> </cxfse:inFaultInterceptors>
>> <cxfse:outFaultInterceptors>
>>   <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
>> </cxfse:outFaultInterceptors>         </cxfse:endpoint>
>>
>> @WebService(serviceName = "GetCustomerService",
>>     targetNamespace = "http://www.exampleURI.com/GetCustomer",
>>     endpointInterface = 
>> "com.exampleuri.getcustomer.GetCustomerPortType")
>> public class GetCustomerServiceImpl implements GetCustomerPortType{
>>     public Customer getCustomer(
>>         com.exampleuri.getcustomer.CustomerNumberRequest
>> customerNumberRequest) {
>>         Customer customer = new Customer();
>>         customer.setCustomerNumber(12);
>>         customer.setCustomerStatusKey("S");
>>         customer.setCustomerTypeKey("TK");
>>         customer.setEmail("sdf@sdf.sdf");
>>         customer.setExternalCustomerReference("extref");
>>         customer.setFamilyName("asdfd");
>>         customer.setFirstName("asdfds");
>>         customer.setPreferredLanguage("en");
>>         customer.setSegmentationKey(14);
>>         customer.setTitle("title");
>>         return customer;    }}
>>
>> DEBUG - CxfBcComponent                 - Created correlation id:
>> ID:192.168.0.187-118c6561bfe-14:0
>> DEBUG - DeliveryChannelImpl            - SendSync
>> ID:192.168.0.187-118c6561bfe-14:0 in DeliveryChannel{servicemix-cxf-bc
>> }
>> DEBUG - SedaFlow                       - Called Flow send
>> DEBUG - DeliveryChannelImpl            - Waiting for exchange
>> ID:192.168.0.187-118c6561bfe-14:0 (133e208) to be answered
>>  in DeliveryChannel{servicemix-cxf-bc} from sendSync
>> DEBUG - SedaQueue                      -
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@13cae19 dequeued
>> exchange:
>> InOut[
>>   id: ID:192.168.0.187-118c6561bfe-14:0
>>   status: Active
>>   role: provider
>>   service: {http://www.exampleURI.com/GetCustomer}routingSlip
>>   endpoint: endpoint
>>   operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
>>   in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
>> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
>> s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
>> type="msg:GetCustomerInput" version="1.0"><jbi:par
>> t><s1:CustomerNumberRequest 
>> xmlns:s1="http://www.exampleURI.com/GetCustomer"
>> xmlns:soapenc="http://schemas.xmlsoap.org/s
>> oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>>          <CompanyID>comp</CompanyID>
>>          <Password>pass</Password>
>>          <UserName>usr</UserName>
>>          <CustomerNumber>1230</CustomerNumber>
>>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
>> ]
>> DEBUG - EIPComponent                   - Received exchange: status: 
>> Active,
>> role: provider
>> DEBUG - EIPComponent                   - Retrieved correlation id:
>> ID:192.168.0.187-118c6561bfe-14:0
>> DEBUG - MemoryStore                    - Storing object with id:
>> ID:192.168.0.187-118c6561bfe-14:0
>> DEBUG - EIPComponent                   - Correlation id retrieved from
>> ThreadLocal: ID:192.168.0.187-118c6561bfe-14:0
>> DEBUG - DeliveryChannelImpl            - Send
>> ID:192.168.0.187-118c6561bfe-6:0 in DeliveryChannel{servicemix-eip}
>> DEBUG - SedaFlow                       - Called Flow send
>> DEBUG - SedaQueue                      -
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@14e983a dequeued
>> exchange:
>> InOut[
>>   id: ID:192.168.0.187-118c6561bfe-6:0
>>   status: Active
>>   role: provider
>>   interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
>>   service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
>>   endpoint: GetCustomerServiceImplPort
>>   in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
>> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
>> s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
>> type="msg:GetCustomerInput" version="1.0"><jbi:par
>> t><s1:CustomerNumberRequest 
>> xmlns:s1="http://www.exampleURI.com/GetCustomer"
>> xmlns:soapenc="http://schemas.xmlsoap.org/s
>> oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>>          <CompanyID>comp</CompanyID>
>>          <Password>pass</Password>
>>          <UserName>usr</UserName>
>>          <CustomerNumber>1230</CustomerNumber>
>>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
>> ]
>> DEBUG - CxfSeComponent                 - Received exchange: status: 
>> Active,
>> role: provider
>> DEBUG - CxfSeComponent                 - Retrieved correlation id:
>> ID:192.168.0.187-118c6561bfe-14:0
>> 2008-mar-19 10:21:35 org.apache.cxf.transport.jbi.JBITransportFactory
>> setDeliveryChannel
>> INFO: configuring DeliveryChannel:     
>> org.apache.servicemix.common.EndpointDeliveryChannel@1f9e414
>> 2008-mar-19 10:21:35 org.apache.cxf.interceptor.LoggingInInterceptor 
>> logging
>> INFO: Inbound Message
>> ----------------------------
>> Encoding:
>> Headers:
>> Messages:
>> Message:
>>
>> Payload: <?xml version="1.0" encoding="UTF-8"?><jbi:message
>> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" x
>> mlns:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
>> type="msg:GetCustomerInput" version="1.0"><jbi:
>> part><s1:CustomerNumberRequest
>> xmlns:s1="http://www.exampleURI.com/GetCustomer"
>> xmlns:soapenc="http://schemas.xmlsoap.or
>> g/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>>          <CompanyID>comp</CompanyID>
>>          <Password>pass</Password>
>>          <UserName>usr</UserName>
>>          <CustomerNumber>1230</CustomerNumber>
>>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
>> --------------------------------------
>> 2008-mar-19 10:21:35 org.apache.cxf.phase.PhaseInterceptorChain 
>> doIntercept
>> INFO: Interceptor has thrown exception, unwinding now
>> java.lang.NullPointerException
>>         at
>> org.apache.cxf.binding.jbi.interceptor.JBIWrapperInInterceptor.handleMessage(JBIWrapperInInterceptor.java:105 
>>
>> )
>>         at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) 
>>
>>         at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78) 
>>
>>         at
>> org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:151) 
>>
>>         at
>> org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:201) 
>>
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538) 
>>
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490) 
>>
>>         at
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) 
>>
>>         at
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610) 
>>
>>         at
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170) 
>>
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167) 
>>
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) 
>>
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) 
>>
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) 
>>
>>         at java.lang.Thread.run(Thread.java:595)
>> 2008-mar-19 10:21:35
>> org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
>> INFO: Outbound Message
>> ---------------------------
>> Encoding: UTF-8
>> Headers:
>> Messages:
>> Payload: <ns1:JBIFault 
>> xmlns:ns1="http://cxf.apache.org/bindings/jbi"><fault
>> /></ns1:JBIFault>
>> --------------------------------------
>> 2008-mar-19 10:21:35 
>> org.apache.cxf.transport.jbi.JBIDestinationOutputStream
>> commitOutputMessage
>> ALLVARLIG: error sending Out message
>> java.lang.ClassCastException: java.lang.NullPointerException
>>         at
>> org.apache.cxf.transport.jbi.JBIDestinationOutputStream.commitOutputMessage(JBIDestinationOutputStream.java:8 
>>
>> 8)
>>         at
>> org.apache.cxf.transport.jbi.JBIDestinationOutputStream.doClose(JBIDestinationOutputStream.java:61) 
>>
>>         at
>> org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:154)
>>         at
>> org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47) 
>>
>>         at
>> org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:157)
>>         at
>> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>>         at
>> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSende 
>>
>> rInterceptor.java:62)
>>         at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) 
>>
>>         at
>> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver. 
>>
>> java:96)
>>         at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:254) 
>>
>>         at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78) 
>>
>>         at
>> org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:151) 
>>
>>         at
>> org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:201) 
>>
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538) 
>>
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490) 
>>
>>         at
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) 
>>
>>         at
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610) 
>>
>>         at
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170) 
>>
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167) 
>>
>>         at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) 
>>
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) 
>>
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) 
>>
>>         at java.lang.Thread.run(Thread.java:595)
>> DEBUG - DeliveryChannelImpl            - Notified:
>> ID:192.168.0.187-118c6561bfe-14:0(133e208) in DeliveryChannel{service
>> mix-cxf-bc} from sendSync
>> DEBUG - DeliveryChannelImpl            - Exchange
>> ID:192.168.0.187-118c6561bfe-14:0 has been aborted
>> 2008-mar-19 10:21:45 org.apache.cxf.phase.PhaseInterceptorChain 
>> doIntercept
>> INFO: Interceptor has thrown exception, unwinding now
>> org.apache.cxf.interceptor.Fault
>>         at
>> org.apache.servicemix.cxfbc.CxfBcConsumer$JbiPostInvokerInterceptor.handleMessage(CxfBcConsumer.java:466) 
>>
>>         at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) 
>>
>>         at
>> org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:197) 
>>
>>         at
>> org.apache.servicemix.cxfbc.CxfBcConsumer.process(CxfBcConsumer.java:182) 
>>
>>         at
>> org.apache.servicemix.cxfbc.CxfBcConsumer$JbiInvokerInterceptor.handleMessage(CxfBcConsumer.java:442) 
>>
>>         at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) 
>>
>>         at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78) 
>>
>>         at
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:278) 
>>
>>         at
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:252) 
>>
>>         at
>> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:62) 
>>
>>         at
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
>>         at
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) 
>>
>>         at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>>         at org.mortbay.jetty.Server.handle(Server.java:324)
>>         at
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>>         at
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) 
>>
>>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
>>         at 
>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>>         at 
>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>>         at
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) 
>>
>>         at
>> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) 
>>
>>   
>
>


Re: cxfbc eip cxfse problem

Posted by Freeman Fang <fr...@gmail.com>.
Hi Johan,

After go through the log so many times, I found that the JBI message cxf 
se received is exactly same with or without the EIP component.
But the interesting thing is that the working flow without the EIP 
component has operation

operation: {http://www.exampleURI.com/GetCustomer}GetCustomer

in the exchange, but if you use EIP component between cxf bc and se, the 
EIP component will remove the operation, which cause your error.

I'm not sure for EIP configuration, if we can specify to keep the 
operation of exchange, if not, I guess probably it's a bug of EIP 
component, I will try to fix it asap.

Regards
Freeman

johanp wrote:
> This works fine (cxfbc-consumer to cxfse-pojo):
> ===============================
>
> <cxfbc:consumer wsdl="classpath:GetCustomer.wsdl"
> service="front:GetCustomerService"
> endpoint="endpoint"
> targetService="front:GetCustomerService"
> targetInterface="front:GetCustomerPortType">
> </cxfbc:consumer>
>
> <cxfse:endpoint>
> <cxfse:pojo>
>   <bean class="com.exampleuri.getcustomer.GetCustomerServiceImpl" />
> </cxfse:pojo>
> <cxfse:inInterceptors>
>   <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
> </cxfse:inInterceptors>
> <cxfse:outInterceptors>
>   <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
> </cxfse:outInterceptors>
> <cxfse:inFaultInterceptors>
>   <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
> </cxfse:inFaultInterceptors>
> <cxfse:outFaultInterceptors>
>   <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
> </cxfse:outFaultInterceptors>         
> </cxfse:endpoint>
>
> @WebService(serviceName = "GetCustomerService",
> 	targetNamespace = "http://www.exampleURI.com/GetCustomer",
> 	endpointInterface = "com.exampleuri.getcustomer.GetCustomerPortType")
> public class GetCustomerServiceImpl implements GetCustomerPortType{
>     public Customer getCustomer(
>         com.exampleuri.getcustomer.CustomerNumberRequest
> customerNumberRequest) {
>         Customer customer = new Customer();
>         customer.setCustomerNumber(12);
>         customer.setCustomerStatusKey("S");
>         customer.setCustomerTypeKey("TK");
>         customer.setEmail("sdf@sdf.sdf");
>         customer.setExternalCustomerReference("extref");
>         customer.setFamilyName("asdfd");
>         customer.setFirstName("asdfds");
>         customer.setPreferredLanguage("en");
>         customer.setSegmentationKey(14);
>         customer.setTitle("title");
>         return customer;    }}
>
> DEBUG - CxfBcComponent                 - Created correlation id:
> ID:192.168.0.187-118c65ed729-14:0
> DEBUG - DeliveryChannelImpl            - SendSync
> ID:192.168.0.187-118c65ed729-14:0 in DeliveryChannel{servicemix-cxf-bc
> }
> DEBUG - SedaFlow                       - Called Flow send
> DEBUG - DeliveryChannelImpl            - Waiting for exchange
> ID:192.168.0.187-118c65ed729-14:0 (cb03c4) to be answered
> in DeliveryChannel{servicemix-cxf-bc} from sendSync
> DEBUG - SedaQueue                      -
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@646a81 dequeued
> exchange: I
> nOut[
>   id: ID:192.168.0.187-118c65ed729-14:0
>   status: Active
>   role: provider
>   interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
>   service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
>   endpoint: GetCustomerServiceImplPort
>   operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
>   in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
> s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
> type="msg:GetCustomerInput" version="1.0"><jbi:par
> t><s1:CustomerNumberRequest xmlns:s1="http://www.exampleURI.com/GetCustomer"
> xmlns:soapenc="http://schemas.xmlsoap.org/s
> oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>          <CompanyID>comp</CompanyID>
>          <Password>pass</Password>
>          <UserName>usr</UserName>
>          <CustomerNumber>1230</CustomerNumber>
>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
> ]
> DEBUG - CxfSeComponent                 - Received exchange: status: Active,
> role: provider
> DEBUG - CxfSeComponent                 - Retrieved correlation id:
> ID:192.168.0.187-118c65ed729-14:0
> 2008-mar-19 10:31:33 org.apache.cxf.transport.jbi.JBITransportFactory
> setDeliveryChannel
> INFO: configuring DeliveryChannel:     
> org.apache.servicemix.common.EndpointDeliveryChannel@174b423
> 2008-mar-19 10:31:33 org.apache.cxf.interceptor.LoggingInInterceptor logging
> INFO: Inbound Message
> ----------------------------
> Encoding:
> Headers:
> Messages:
> Message:
>
> Payload: <?xml version="1.0" encoding="UTF-8"?><jbi:message
> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" x
> mlns:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
> type="msg:GetCustomerInput" version="1.0"><jbi:
> part><s1:CustomerNumberRequest
> xmlns:s1="http://www.exampleURI.com/GetCustomer"
> xmlns:soapenc="http://schemas.xmlsoap.or
> g/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>          <CompanyID>comp</CompanyID>
>          <Password>pass</Password>
>          <UserName>usr</UserName>
>          <CustomerNumber>1230</CustomerNumber>
>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
> --------------------------------------
> 2008-mar-19 10:31:34
> org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
> INFO: Outbound Message
> ---------------------------
> Encoding: UTF-8
> Headers:
> Messages:
> Payload: <jbi:message
> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"
> xmlns:msg="http://www.exampleURI.com/Ge
> tCustomer" type="msg:GetCustomerResponse"><jbi:part><ns2:Customer
> xmlns:ns2="http://www.exampleURI.com/GetCustomer"><Cus
> tomerNumber>12</CustomerNumber><CustomerStatusKey>S</CustomerStatusKey><CustomerTypeKey>TK</CustomerTypeKey>sdf@s
> df.sdf<ExternalCustomerReference>extref</ExternalCustomerReference><FamilyName>asdfd</FamilyName><FirstName>asdf
> ds</FirstName><PreferredLanguage>en</PreferredLanguage><SegmentationKey>14</SegmentationKey><Title>title</Title></ns2:Cu
> stomer></jbi:part></jbi:message>
> --------------------------------------
> DEBUG - DeliveryChannelImpl            - Send
> ID:192.168.0.187-118c65ed729-14:0 in DeliveryChannel{servicemix-cxf-se}
> DEBUG - SedaFlow                       - Called Flow send
> DEBUG - SedaQueue                      -
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@f05ce8 dequeued
> exchange: I
> nOut[
>   id: ID:192.168.0.187-118c65ed729-14:0
>   status: Active
>   role: consumer
>   interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
>   service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
>   endpoint: GetCustomerServiceImplPort
>   operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
>   in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
> s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
> type="msg:GetCustomerInput" version="1.0"><jbi:par
> t><s1:CustomerNumberRequest xmlns:s1="http://www.exampleURI.com/GetCustomer"
> xmlns:soapenc="http://schemas.xmlsoap.org/s
> oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>          <CompanyID>comp</CompanyID>
>          <Password>pass</Password>
>          <UserName>usr</UserName>
>          <CustomerNumber>1230</CustomerNumber>
>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
>   out: <?xml version="1.0" encoding="UTF-8"?><jbi:message
> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xml
> ns:msg="http://www.exampleURI.com/GetCustomer"
> type="msg:GetCustomerResponse"><jbi:part><ns2:Customer xmlns:ns2="http://
> www.exampleURI.com/GetCustomer"><CustomerNumber>12</CustomerNumber><CustomerStatusKey>S</CustomerStatusKey><CustomerType
> Key>TK</CustomerTypeKey>sdf@sdf.sdf<ExternalCustomerReference>extref</ExternalCustomerReference><FamilyNa
> me>asdfd</FamilyName><FirstName>asdfds</FirstName><PreferredLanguage>en</PreferredLanguage><SegmentationKey>14</Segmenta
> tionKey><Title>title</Title></ns2:Customer></jbi:part></jbi:message>
> ]
> DEBUG - DeliveryChannelImpl            - Notifying exchange
> ID:192.168.0.187-118c65ed729-14:0(cb03c4) in DeliveryChannel
> {servicemix-cxf-bc} from processInboundSynchronousExchange
> DEBUG - DeliveryChannelImpl            - Notified:
> ID:192.168.0.187-118c65ed729-14:0(cb03c4) in DeliveryChannel{servicem
> ix-cxf-bc} from sendSync
> DEBUG - DeliveryChannelImpl            - Send
> ID:192.168.0.187-118c65ed729-14:0 in DeliveryChannel{servicemix-cxf-bc}
> DEBUG - SedaFlow                       - Called Flow send
> DEBUG - SedaQueue                      -
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@c1a0a6 dequeued
> exchange: I
> nOut[
>   id: ID:192.168.0.187-118c65ed729-14:0
>   status: Done
>   role: provider
>   interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
>   service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
>   endpoint: GetCustomerServiceImplPort
>   operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
>   in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
> s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
> type="msg:GetCustomerInput" version="1.0"><jbi:par
> t><s1:CustomerNumberRequest xmlns:s1="http://www.exampleURI.com/GetCustomer"
> xmlns:soapenc="http://schemas.xmlsoap.org/s
> oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>          <CompanyID>comp</CompanyID>
>          <Password>pass</Password>
>          <UserName>usr</UserName>
>          <CustomerNumber>1230</CustomerNumber>
>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
>   out: <?xml version="1.0" encoding="UTF-8"?><jbi:message
> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xml
> ns:msg="http://www.exampleURI.com/GetCustomer"
> type="msg:GetCustomerResponse"><jbi:part><ns2:Customer xmlns:ns2="http://
> www.exampleURI.com/GetCustomer"><CustomerNumber>12</CustomerNumber><CustomerStatusKey>S</CustomerStatusKey><CustomerType
> Key>TK</CustomerTypeKey>sdf@sdf.sdf<ExternalCustomerReference>extref</ExternalCustomerReference><FamilyNa
> me>asdfd</FamilyName><FirstName>asdfds</FirstName><PreferredLanguage>en</PreferredLanguage><SegmentationKey>14</Segmenta
> tionKey><Title>title</Title></ns2:Customer></jbi:part></jbi:message>
> ]
> DEBUG - CxfSeComponent                 - Received exchange: status: Done,
> role: provider
> DEBUG - CxfSeComponent                 - Retrieved correlation id:
> ID:192.168.0.187-118c65ed729-14:0
> 2008-mar-19 10:31:34 org.apache.cxf.transport.jbi.JBITransportFactory
> setDeliveryChannel
> INFO: configuring DeliveryChannel:     
> org.apache.servicemix.common.EndpointDeliveryChannel@174b423
>
>
> This does not work (cxfbc-consumer to eip-srs to cxfse-pojo):
> ========================================
>
> <cxfbc:consumer wsdl="classpath:GetCustomer.wsdl"
> 	      targetService="front:routingSlip"/>
> 	      
> <eip:static-routing-slip service="front:routingSlip" endpoint="endpoint">
>   <eip:targets>
>     <eip:exchange-target service="front:GetCustomerService"
> interface="front:GetCustomerPortType"/>
>   </eip:targets>
> </eip:static-routing-slip>	      
>
>
> <cxfse:endpoint>
> <cxfse:pojo>
>   <bean class="com.exampleuri.getcustomer.GetCustomerServiceImpl" />
> </cxfse:pojo>
> <cxfse:inInterceptors>
>   <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
> </cxfse:inInterceptors>
> <cxfse:outInterceptors>
>   <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
> </cxfse:outInterceptors>
> <cxfse:inFaultInterceptors>
>   <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
> </cxfse:inFaultInterceptors>
> <cxfse:outFaultInterceptors>
>   <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
> </cxfse:outFaultInterceptors>         
> </cxfse:endpoint>
>
> @WebService(serviceName = "GetCustomerService",
> 	targetNamespace = "http://www.exampleURI.com/GetCustomer",
> 	endpointInterface = "com.exampleuri.getcustomer.GetCustomerPortType")
> public class GetCustomerServiceImpl implements GetCustomerPortType{
>     public Customer getCustomer(
>         com.exampleuri.getcustomer.CustomerNumberRequest
> customerNumberRequest) {
>         Customer customer = new Customer();
>         customer.setCustomerNumber(12);
>         customer.setCustomerStatusKey("S");
>         customer.setCustomerTypeKey("TK");
>         customer.setEmail("sdf@sdf.sdf");
>         customer.setExternalCustomerReference("extref");
>         customer.setFamilyName("asdfd");
>         customer.setFirstName("asdfds");
>         customer.setPreferredLanguage("en");
>         customer.setSegmentationKey(14);
>         customer.setTitle("title");
>         return customer;    }}
>
> DEBUG - CxfBcComponent                 - Created correlation id:
> ID:192.168.0.187-118c6561bfe-14:0
> DEBUG - DeliveryChannelImpl            - SendSync
> ID:192.168.0.187-118c6561bfe-14:0 in DeliveryChannel{servicemix-cxf-bc
> }
> DEBUG - SedaFlow                       - Called Flow send
> DEBUG - DeliveryChannelImpl            - Waiting for exchange
> ID:192.168.0.187-118c6561bfe-14:0 (133e208) to be answered
>  in DeliveryChannel{servicemix-cxf-bc} from sendSync
> DEBUG - SedaQueue                      -
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@13cae19 dequeued
> exchange:
> InOut[
>   id: ID:192.168.0.187-118c6561bfe-14:0
>   status: Active
>   role: provider
>   service: {http://www.exampleURI.com/GetCustomer}routingSlip
>   endpoint: endpoint
>   operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
>   in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
> s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
> type="msg:GetCustomerInput" version="1.0"><jbi:par
> t><s1:CustomerNumberRequest xmlns:s1="http://www.exampleURI.com/GetCustomer"
> xmlns:soapenc="http://schemas.xmlsoap.org/s
> oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>          <CompanyID>comp</CompanyID>
>          <Password>pass</Password>
>          <UserName>usr</UserName>
>          <CustomerNumber>1230</CustomerNumber>
>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
> ]
> DEBUG - EIPComponent                   - Received exchange: status: Active,
> role: provider
> DEBUG - EIPComponent                   - Retrieved correlation id:
> ID:192.168.0.187-118c6561bfe-14:0
> DEBUG - MemoryStore                    - Storing object with id:
> ID:192.168.0.187-118c6561bfe-14:0
> DEBUG - EIPComponent                   - Correlation id retrieved from
> ThreadLocal: ID:192.168.0.187-118c6561bfe-14:0
> DEBUG - DeliveryChannelImpl            - Send
> ID:192.168.0.187-118c6561bfe-6:0 in DeliveryChannel{servicemix-eip}
> DEBUG - SedaFlow                       - Called Flow send
> DEBUG - SedaQueue                      -
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@14e983a dequeued
> exchange:
> InOut[
>   id: ID:192.168.0.187-118c6561bfe-6:0
>   status: Active
>   role: provider
>   interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
>   service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
>   endpoint: GetCustomerServiceImplPort
>   in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
> s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
> type="msg:GetCustomerInput" version="1.0"><jbi:par
> t><s1:CustomerNumberRequest xmlns:s1="http://www.exampleURI.com/GetCustomer"
> xmlns:soapenc="http://schemas.xmlsoap.org/s
> oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>          <CompanyID>comp</CompanyID>
>          <Password>pass</Password>
>          <UserName>usr</UserName>
>          <CustomerNumber>1230</CustomerNumber>
>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
> ]
> DEBUG - CxfSeComponent                 - Received exchange: status: Active,
> role: provider
> DEBUG - CxfSeComponent                 - Retrieved correlation id:
> ID:192.168.0.187-118c6561bfe-14:0
> 2008-mar-19 10:21:35 org.apache.cxf.transport.jbi.JBITransportFactory
> setDeliveryChannel
> INFO: configuring DeliveryChannel:     
> org.apache.servicemix.common.EndpointDeliveryChannel@1f9e414
> 2008-mar-19 10:21:35 org.apache.cxf.interceptor.LoggingInInterceptor logging
> INFO: Inbound Message
> ----------------------------
> Encoding:
> Headers:
> Messages:
> Message:
>
> Payload: <?xml version="1.0" encoding="UTF-8"?><jbi:message
> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" x
> mlns:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
> type="msg:GetCustomerInput" version="1.0"><jbi:
> part><s1:CustomerNumberRequest
> xmlns:s1="http://www.exampleURI.com/GetCustomer"
> xmlns:soapenc="http://schemas.xmlsoap.or
> g/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>          <CompanyID>comp</CompanyID>
>          <Password>pass</Password>
>          <UserName>usr</UserName>
>          <CustomerNumber>1230</CustomerNumber>
>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
> --------------------------------------
> 2008-mar-19 10:21:35 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> java.lang.NullPointerException
>         at
> org.apache.cxf.binding.jbi.interceptor.JBIWrapperInInterceptor.handleMessage(JBIWrapperInInterceptor.java:105
> )
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>         at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
>         at
> org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:151)
>         at
> org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:201)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>         at
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>         at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> 2008-mar-19 10:21:35
> org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
> INFO: Outbound Message
> ---------------------------
> Encoding: UTF-8
> Headers:
> Messages:
> Payload: <ns1:JBIFault xmlns:ns1="http://cxf.apache.org/bindings/jbi"><fault
> /></ns1:JBIFault>
> --------------------------------------
> 2008-mar-19 10:21:35 org.apache.cxf.transport.jbi.JBIDestinationOutputStream
> commitOutputMessage
> ALLVARLIG: error sending Out message
> java.lang.ClassCastException: java.lang.NullPointerException
>         at
> org.apache.cxf.transport.jbi.JBIDestinationOutputStream.commitOutputMessage(JBIDestinationOutputStream.java:8
> 8)
>         at
> org.apache.cxf.transport.jbi.JBIDestinationOutputStream.doClose(JBIDestinationOutputStream.java:61)
>         at
> org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:154)
>         at
> org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47)
>         at
> org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:157)
>         at
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>         at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSende
> rInterceptor.java:62)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>         at
> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.
> java:96)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:254)
>         at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
>         at
> org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:151)
>         at
> org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:201)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>         at
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>         at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> DEBUG - DeliveryChannelImpl            - Notified:
> ID:192.168.0.187-118c6561bfe-14:0(133e208) in DeliveryChannel{service
> mix-cxf-bc} from sendSync
> DEBUG - DeliveryChannelImpl            - Exchange
> ID:192.168.0.187-118c6561bfe-14:0 has been aborted
> 2008-mar-19 10:21:45 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault
>         at
> org.apache.servicemix.cxfbc.CxfBcConsumer$JbiPostInvokerInterceptor.handleMessage(CxfBcConsumer.java:466)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:197)
>         at
> org.apache.servicemix.cxfbc.CxfBcConsumer.process(CxfBcConsumer.java:182)
>         at
> org.apache.servicemix.cxfbc.CxfBcConsumer$JbiInvokerInterceptor.handleMessage(CxfBcConsumer.java:442)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>         at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
>         at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:278)
>         at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:252)
>         at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:62)
>         at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:324)
>         at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>         at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>         at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>         at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
>   


Re: cxfbc eip cxfse problem

Posted by rgavlin <rg...@yahoo.com>.
I opened JIRA https://issues.apache.org/activemq/browse/SM-1279 for this
issue.

- Ron

-- 
View this message in context: http://www.nabble.com/cxfbc-eip-cxfse-problem-tp16026202s12049p16142759.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: cxfbc eip cxfse problem

Posted by johanp <ca...@live.se>.
This works fine (cxfbc-consumer to cxfse-pojo):
===============================

<cxfbc:consumer wsdl="classpath:GetCustomer.wsdl"
service="front:GetCustomerService"
endpoint="endpoint"
targetService="front:GetCustomerService"
targetInterface="front:GetCustomerPortType">
</cxfbc:consumer>

<cxfse:endpoint>
<cxfse:pojo>
  <bean class="com.exampleuri.getcustomer.GetCustomerServiceImpl" />
</cxfse:pojo>
<cxfse:inInterceptors>
  <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
</cxfse:inInterceptors>
<cxfse:outInterceptors>
  <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
</cxfse:outInterceptors>
<cxfse:inFaultInterceptors>
  <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
</cxfse:inFaultInterceptors>
<cxfse:outFaultInterceptors>
  <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
</cxfse:outFaultInterceptors>         
</cxfse:endpoint>

@WebService(serviceName = "GetCustomerService",
	targetNamespace = "http://www.exampleURI.com/GetCustomer",
	endpointInterface = "com.exampleuri.getcustomer.GetCustomerPortType")
public class GetCustomerServiceImpl implements GetCustomerPortType{
    public Customer getCustomer(
        com.exampleuri.getcustomer.CustomerNumberRequest
customerNumberRequest) {
        Customer customer = new Customer();
        customer.setCustomerNumber(12);
        customer.setCustomerStatusKey("S");
        customer.setCustomerTypeKey("TK");
        customer.setEmail("sdf@sdf.sdf");
        customer.setExternalCustomerReference("extref");
        customer.setFamilyName("asdfd");
        customer.setFirstName("asdfds");
        customer.setPreferredLanguage("en");
        customer.setSegmentationKey(14);
        customer.setTitle("title");
        return customer;    }}

DEBUG - CxfBcComponent                 - Created correlation id:
ID:192.168.0.187-118c65ed729-14:0
DEBUG - DeliveryChannelImpl            - SendSync
ID:192.168.0.187-118c65ed729-14:0 in DeliveryChannel{servicemix-cxf-bc
}
DEBUG - SedaFlow                       - Called Flow send
DEBUG - DeliveryChannelImpl            - Waiting for exchange
ID:192.168.0.187-118c65ed729-14:0 (cb03c4) to be answered
in DeliveryChannel{servicemix-cxf-bc} from sendSync
DEBUG - SedaQueue                      -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@646a81 dequeued
exchange: I
nOut[
  id: ID:192.168.0.187-118c65ed729-14:0
  status: Active
  role: provider
  interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
  service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
  endpoint: GetCustomerServiceImplPort
  operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
  in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
type="msg:GetCustomerInput" version="1.0"><jbi:par
t><s1:CustomerNumberRequest xmlns:s1="http://www.exampleURI.com/GetCustomer"
xmlns:soapenc="http://schemas.xmlsoap.org/s
oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <CompanyID>comp</CompanyID>
         <Password>pass</Password>
         <UserName>usr</UserName>
         <CustomerNumber>1230</CustomerNumber>
      </s1:CustomerNumberRequest></jbi:part></jbi:message>
]
DEBUG - CxfSeComponent                 - Received exchange: status: Active,
role: provider
DEBUG - CxfSeComponent                 - Retrieved correlation id:
ID:192.168.0.187-118c65ed729-14:0
2008-mar-19 10:31:33 org.apache.cxf.transport.jbi.JBITransportFactory
setDeliveryChannel
INFO: configuring DeliveryChannel:     
org.apache.servicemix.common.EndpointDeliveryChannel@174b423
2008-mar-19 10:31:33 org.apache.cxf.interceptor.LoggingInInterceptor logging
INFO: Inbound Message
----------------------------
Encoding:
Headers:
Messages:
Message:

Payload: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" x
mlns:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
type="msg:GetCustomerInput" version="1.0"><jbi:
part><s1:CustomerNumberRequest
xmlns:s1="http://www.exampleURI.com/GetCustomer"
xmlns:soapenc="http://schemas.xmlsoap.or
g/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <CompanyID>comp</CompanyID>
         <Password>pass</Password>
         <UserName>usr</UserName>
         <CustomerNumber>1230</CustomerNumber>
      </s1:CustomerNumberRequest></jbi:part></jbi:message>
--------------------------------------
2008-mar-19 10:31:34
org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
INFO: Outbound Message
---------------------------
Encoding: UTF-8
Headers:
Messages:
Payload: <jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"
xmlns:msg="http://www.exampleURI.com/Ge
tCustomer" type="msg:GetCustomerResponse"><jbi:part><ns2:Customer
xmlns:ns2="http://www.exampleURI.com/GetCustomer"><Cus
tomerNumber>12</CustomerNumber><CustomerStatusKey>S</CustomerStatusKey><CustomerTypeKey>TK</CustomerTypeKey>sdf@s
df.sdf<ExternalCustomerReference>extref</ExternalCustomerReference><FamilyName>asdfd</FamilyName><FirstName>asdf
ds</FirstName><PreferredLanguage>en</PreferredLanguage><SegmentationKey>14</SegmentationKey><Title>title</Title></ns2:Cu
stomer></jbi:part></jbi:message>
--------------------------------------
DEBUG - DeliveryChannelImpl            - Send
ID:192.168.0.187-118c65ed729-14:0 in DeliveryChannel{servicemix-cxf-se}
DEBUG - SedaFlow                       - Called Flow send
DEBUG - SedaQueue                      -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@f05ce8 dequeued
exchange: I
nOut[
  id: ID:192.168.0.187-118c65ed729-14:0
  status: Active
  role: consumer
  interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
  service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
  endpoint: GetCustomerServiceImplPort
  operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
  in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
type="msg:GetCustomerInput" version="1.0"><jbi:par
t><s1:CustomerNumberRequest xmlns:s1="http://www.exampleURI.com/GetCustomer"
xmlns:soapenc="http://schemas.xmlsoap.org/s
oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <CompanyID>comp</CompanyID>
         <Password>pass</Password>
         <UserName>usr</UserName>
         <CustomerNumber>1230</CustomerNumber>
      </s1:CustomerNumberRequest></jbi:part></jbi:message>
  out: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xml
ns:msg="http://www.exampleURI.com/GetCustomer"
type="msg:GetCustomerResponse"><jbi:part><ns2:Customer xmlns:ns2="http://
www.exampleURI.com/GetCustomer"><CustomerNumber>12</CustomerNumber><CustomerStatusKey>S</CustomerStatusKey><CustomerType
Key>TK</CustomerTypeKey>sdf@sdf.sdf<ExternalCustomerReference>extref</ExternalCustomerReference><FamilyNa
me>asdfd</FamilyName><FirstName>asdfds</FirstName><PreferredLanguage>en</PreferredLanguage><SegmentationKey>14</Segmenta
tionKey><Title>title</Title></ns2:Customer></jbi:part></jbi:message>
]
DEBUG - DeliveryChannelImpl            - Notifying exchange
ID:192.168.0.187-118c65ed729-14:0(cb03c4) in DeliveryChannel
{servicemix-cxf-bc} from processInboundSynchronousExchange
DEBUG - DeliveryChannelImpl            - Notified:
ID:192.168.0.187-118c65ed729-14:0(cb03c4) in DeliveryChannel{servicem
ix-cxf-bc} from sendSync
DEBUG - DeliveryChannelImpl            - Send
ID:192.168.0.187-118c65ed729-14:0 in DeliveryChannel{servicemix-cxf-bc}
DEBUG - SedaFlow                       - Called Flow send
DEBUG - SedaQueue                      -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@c1a0a6 dequeued
exchange: I
nOut[
  id: ID:192.168.0.187-118c65ed729-14:0
  status: Done
  role: provider
  interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
  service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
  endpoint: GetCustomerServiceImplPort
  operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
  in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
type="msg:GetCustomerInput" version="1.0"><jbi:par
t><s1:CustomerNumberRequest xmlns:s1="http://www.exampleURI.com/GetCustomer"
xmlns:soapenc="http://schemas.xmlsoap.org/s
oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <CompanyID>comp</CompanyID>
         <Password>pass</Password>
         <UserName>usr</UserName>
         <CustomerNumber>1230</CustomerNumber>
      </s1:CustomerNumberRequest></jbi:part></jbi:message>
  out: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xml
ns:msg="http://www.exampleURI.com/GetCustomer"
type="msg:GetCustomerResponse"><jbi:part><ns2:Customer xmlns:ns2="http://
www.exampleURI.com/GetCustomer"><CustomerNumber>12</CustomerNumber><CustomerStatusKey>S</CustomerStatusKey><CustomerType
Key>TK</CustomerTypeKey>sdf@sdf.sdf<ExternalCustomerReference>extref</ExternalCustomerReference><FamilyNa
me>asdfd</FamilyName><FirstName>asdfds</FirstName><PreferredLanguage>en</PreferredLanguage><SegmentationKey>14</Segmenta
tionKey><Title>title</Title></ns2:Customer></jbi:part></jbi:message>
]
DEBUG - CxfSeComponent                 - Received exchange: status: Done,
role: provider
DEBUG - CxfSeComponent                 - Retrieved correlation id:
ID:192.168.0.187-118c65ed729-14:0
2008-mar-19 10:31:34 org.apache.cxf.transport.jbi.JBITransportFactory
setDeliveryChannel
INFO: configuring DeliveryChannel:     
org.apache.servicemix.common.EndpointDeliveryChannel@174b423


This does not work (cxfbc-consumer to eip-srs to cxfse-pojo):
========================================

<cxfbc:consumer wsdl="classpath:GetCustomer.wsdl"
	      targetService="front:routingSlip"/>
	      
<eip:static-routing-slip service="front:routingSlip" endpoint="endpoint">
  <eip:targets>
    <eip:exchange-target service="front:GetCustomerService"
interface="front:GetCustomerPortType"/>
  </eip:targets>
</eip:static-routing-slip>	      


<cxfse:endpoint>
<cxfse:pojo>
  <bean class="com.exampleuri.getcustomer.GetCustomerServiceImpl" />
</cxfse:pojo>
<cxfse:inInterceptors>
  <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
</cxfse:inInterceptors>
<cxfse:outInterceptors>
  <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
</cxfse:outInterceptors>
<cxfse:inFaultInterceptors>
  <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
</cxfse:inFaultInterceptors>
<cxfse:outFaultInterceptors>
  <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
</cxfse:outFaultInterceptors>         
</cxfse:endpoint>

@WebService(serviceName = "GetCustomerService",
	targetNamespace = "http://www.exampleURI.com/GetCustomer",
	endpointInterface = "com.exampleuri.getcustomer.GetCustomerPortType")
public class GetCustomerServiceImpl implements GetCustomerPortType{
    public Customer getCustomer(
        com.exampleuri.getcustomer.CustomerNumberRequest
customerNumberRequest) {
        Customer customer = new Customer();
        customer.setCustomerNumber(12);
        customer.setCustomerStatusKey("S");
        customer.setCustomerTypeKey("TK");
        customer.setEmail("sdf@sdf.sdf");
        customer.setExternalCustomerReference("extref");
        customer.setFamilyName("asdfd");
        customer.setFirstName("asdfds");
        customer.setPreferredLanguage("en");
        customer.setSegmentationKey(14);
        customer.setTitle("title");
        return customer;    }}

DEBUG - CxfBcComponent                 - Created correlation id:
ID:192.168.0.187-118c6561bfe-14:0
DEBUG - DeliveryChannelImpl            - SendSync
ID:192.168.0.187-118c6561bfe-14:0 in DeliveryChannel{servicemix-cxf-bc
}
DEBUG - SedaFlow                       - Called Flow send
DEBUG - DeliveryChannelImpl            - Waiting for exchange
ID:192.168.0.187-118c6561bfe-14:0 (133e208) to be answered
 in DeliveryChannel{servicemix-cxf-bc} from sendSync
DEBUG - SedaQueue                      -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@13cae19 dequeued
exchange:
InOut[
  id: ID:192.168.0.187-118c6561bfe-14:0
  status: Active
  role: provider
  service: {http://www.exampleURI.com/GetCustomer}routingSlip
  endpoint: endpoint
  operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
  in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
type="msg:GetCustomerInput" version="1.0"><jbi:par
t><s1:CustomerNumberRequest xmlns:s1="http://www.exampleURI.com/GetCustomer"
xmlns:soapenc="http://schemas.xmlsoap.org/s
oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <CompanyID>comp</CompanyID>
         <Password>pass</Password>
         <UserName>usr</UserName>
         <CustomerNumber>1230</CustomerNumber>
      </s1:CustomerNumberRequest></jbi:part></jbi:message>
]
DEBUG - EIPComponent                   - Received exchange: status: Active,
role: provider
DEBUG - EIPComponent                   - Retrieved correlation id:
ID:192.168.0.187-118c6561bfe-14:0
DEBUG - MemoryStore                    - Storing object with id:
ID:192.168.0.187-118c6561bfe-14:0
DEBUG - EIPComponent                   - Correlation id retrieved from
ThreadLocal: ID:192.168.0.187-118c6561bfe-14:0
DEBUG - DeliveryChannelImpl            - Send
ID:192.168.0.187-118c6561bfe-6:0 in DeliveryChannel{servicemix-eip}
DEBUG - SedaFlow                       - Called Flow send
DEBUG - SedaQueue                      -
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@14e983a dequeued
exchange:
InOut[
  id: ID:192.168.0.187-118c6561bfe-6:0
  status: Active
  role: provider
  interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
  service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
  endpoint: GetCustomerServiceImplPort
  in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
type="msg:GetCustomerInput" version="1.0"><jbi:par
t><s1:CustomerNumberRequest xmlns:s1="http://www.exampleURI.com/GetCustomer"
xmlns:soapenc="http://schemas.xmlsoap.org/s
oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <CompanyID>comp</CompanyID>
         <Password>pass</Password>
         <UserName>usr</UserName>
         <CustomerNumber>1230</CustomerNumber>
      </s1:CustomerNumberRequest></jbi:part></jbi:message>
]
DEBUG - CxfSeComponent                 - Received exchange: status: Active,
role: provider
DEBUG - CxfSeComponent                 - Retrieved correlation id:
ID:192.168.0.187-118c6561bfe-14:0
2008-mar-19 10:21:35 org.apache.cxf.transport.jbi.JBITransportFactory
setDeliveryChannel
INFO: configuring DeliveryChannel:     
org.apache.servicemix.common.EndpointDeliveryChannel@1f9e414
2008-mar-19 10:21:35 org.apache.cxf.interceptor.LoggingInInterceptor logging
INFO: Inbound Message
----------------------------
Encoding:
Headers:
Messages:
Message:

Payload: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" x
mlns:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
type="msg:GetCustomerInput" version="1.0"><jbi:
part><s1:CustomerNumberRequest
xmlns:s1="http://www.exampleURI.com/GetCustomer"
xmlns:soapenc="http://schemas.xmlsoap.or
g/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <CompanyID>comp</CompanyID>
         <Password>pass</Password>
         <UserName>usr</UserName>
         <CustomerNumber>1230</CustomerNumber>
      </s1:CustomerNumberRequest></jbi:part></jbi:message>
--------------------------------------
2008-mar-19 10:21:35 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
java.lang.NullPointerException
        at
org.apache.cxf.binding.jbi.interceptor.JBIWrapperInInterceptor.handleMessage(JBIWrapperInInterceptor.java:105
)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
        at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
        at
org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:151)
        at
org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:201)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
2008-mar-19 10:21:35
org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
INFO: Outbound Message
---------------------------
Encoding: UTF-8
Headers:
Messages:
Payload: <ns1:JBIFault xmlns:ns1="http://cxf.apache.org/bindings/jbi"><fault
/></ns1:JBIFault>
--------------------------------------
2008-mar-19 10:21:35 org.apache.cxf.transport.jbi.JBIDestinationOutputStream
commitOutputMessage
ALLVARLIG: error sending Out message
java.lang.ClassCastException: java.lang.NullPointerException
        at
org.apache.cxf.transport.jbi.JBIDestinationOutputStream.commitOutputMessage(JBIDestinationOutputStream.java:8
8)
        at
org.apache.cxf.transport.jbi.JBIDestinationOutputStream.doClose(JBIDestinationOutputStream.java:61)
        at
org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:154)
        at
org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47)
        at
org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:157)
        at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
        at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSende
rInterceptor.java:62)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
        at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.
java:96)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:254)
        at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
        at
org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:151)
        at
org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:201)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
DEBUG - DeliveryChannelImpl            - Notified:
ID:192.168.0.187-118c6561bfe-14:0(133e208) in DeliveryChannel{service
mix-cxf-bc} from sendSync
DEBUG - DeliveryChannelImpl            - Exchange
ID:192.168.0.187-118c6561bfe-14:0 has been aborted
2008-mar-19 10:21:45 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault
        at
org.apache.servicemix.cxfbc.CxfBcConsumer$JbiPostInvokerInterceptor.handleMessage(CxfBcConsumer.java:466)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
        at
org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:197)
        at
org.apache.servicemix.cxfbc.CxfBcConsumer.process(CxfBcConsumer.java:182)
        at
org.apache.servicemix.cxfbc.CxfBcConsumer$JbiInvokerInterceptor.handleMessage(CxfBcConsumer.java:442)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
        at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:278)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:252)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:62)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
-- 
View this message in context: http://www.nabble.com/cxfbc-eip-cxfse-problem-tp16026202s12049p16141953.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: cxfbc eip cxfse problem

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

Could you add log interceptor for your cxf se endpoint so that we can 
see what the exact message cxf se get after the EIP-srs process

something like

       <cxfse:inInterceptors>
          <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
        </cxfse:inInterceptors>
        <cxfse:outInterceptors>
          <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
        </cxfse:outInterceptors>
        <cxfse:inFaultInterceptors>
          <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
        </cxfse:inFaultInterceptors>
        <cxfse:outFaultInterceptors>
          <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
        </cxfse:outFaultInterceptors>

Please append the log with the EIP component and without the EIP 
component, which is helpful for us.
And the xbean for both bc and se.

Thanks

Freeman

johanp wrote:
> Hi,
>
> CXFBC-consumer <-> CXFSE-pojo works fine.
>
> When trying:
> CXFBC-consumer <-> EIP-srs <-> CXFSE-pojo getting:
>
>
> DEBUG - DeliveryChannelImpl            - Waiting for exchange
> ID:10.47.31.187-118a844d8f1-14:7 (d41c75) to be answered i
> n DeliveryChannel{servicemix-cxf-bc} from sendSync
> DEBUG - SedaQueue                      -
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1985730 dequeued
> exchange:
> InOut[
>   id: ID:10.47.31.187-118a844d8f1-14:7
>   status: Active
>   role: provider
>   service: {http://www.exampleURI.com/GetCustomer}routingSlip
>   endpoint: endpoint
>   operation: {http://www.exampleURI.com/GetCustomer}GetCustomer
>   in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
> s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
> type="msg:GetCustomerInput" version="1.0"><jbi:par
> t><s1:CustomerNumberRequest xmlns:s1="http://www.exampleURI.com/GetCustomer"
> xmlns:soapenc="http://schemas.xmlsoap.org/s
> oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>          <CompanyID>company</CompanyID>
>          <Password>dsfkj</Password>
>          <UserName>sdflkj</UserName>
>          <CustomerNumber>129</CustomerNumber>
>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
> ]
> DEBUG - EIPComponent                   - Received exchange: status: Active,
> role: provider
> DEBUG - EIPComponent                   - Retrieved correlation id:
> ID:10.47.31.187-118a844d8f1-14:7
> DEBUG - MemoryStore                    - Storing object with id:
> ID:10.47.31.187-118a844d8f1-14:7
> DEBUG - EIPComponent                   - Correlation id retrieved from
> ThreadLocal: ID:10.47.31.187-118a844d8f1-14:7
> DEBUG - DeliveryChannelImpl            - Send
> ID:10.47.31.187-118a844d8f1-6:14 in DeliveryChannel{servicemix-eip}
> DEBUG - SedaFlow                       - Called Flow send
> DEBUG - SedaQueue                      -
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@841a5c dequeued
> exchange: I
> nOut[
>   id: ID:10.47.31.187-118a844d8f1-6:14
>   status: Active
>   role: provider
>   interface: {http://www.exampleURI.com/GetCustomer}GetCustomerPortType
>   service: {http://www.exampleURI.com/GetCustomer}GetCustomerService
>   endpoint: GetCustomerServiceImplPort
>   in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
> xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmln
> s:msg="http://www.exampleURI.com/GetCustomer" name="GetCustomerInput"
> type="msg:GetCustomerInput" version="1.0"><jbi:par
> t><s1:CustomerNumberRequest xmlns:s1="http://www.exampleURI.com/GetCustomer"
> xmlns:soapenc="http://schemas.xmlsoap.org/s
> oap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>          <CompanyID>company</CompanyID>
>          <Password>dsfkj</Password>
>          <UserName>sdflkj</UserName>
>          <CustomerNumber>129</CustomerNumber>
>       </s1:CustomerNumberRequest></jbi:part></jbi:message>
> ]
> DEBUG - CxfSeComponent                 - Received exchange: status: Active,
> role: provider
> DEBUG - CxfSeComponent                 - Retrieved correlation id:
> ID:10.47.31.187-118a844d8f1-14:7
> 2008-mar-13 15:19:35 org.apache.cxf.transport.jbi.JBITransportFactory
> setDeliveryChannel
> INFO: configuring DeliveryChannel:     
> org.apache.servicemix.common.EndpointDeliveryChannel@decacd
> 2008-mar-13 15:19:35 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> java.lang.NullPointerException
>         at
> org.apache.cxf.binding.jbi.interceptor.JBIWrapperInInterceptor.handleMessage(JBIWrapperInInterceptor.java:105
> )
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>         at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
>         at
> org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:151)
>         at
> org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:201)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>         at
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>         at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> 2008-mar-13 15:19:35 org.apache.cxf.transport.jbi.JBIDestinationOutputStream
> commitOutputMessage
> ALLVARLIG: error sending Out message
> java.lang.ClassCastException: java.lang.NullPointerException
>         at
> org.apache.cxf.transport.jbi.JBIDestinationOutputStream.commitOutputMessage(JBIDestinationOutputStream.java:8
> 8)
>         at
> org.apache.cxf.transport.jbi.JBIDestinationOutputStream.doClose(JBIDestinationOutputStream.java:61)
>         at
> org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:154)
>         at
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>         at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSende
> rInterceptor.java:62)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>         at
> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.
> java:96)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:254)
>         at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
>         at
> org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcherUtil.java:151)
>         at
> org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:201)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>         at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>         at
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>         at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>         at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>         at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)
> DEBUG - DeliveryChannelImpl            - Notified:
> ID:10.47.31.187-118a844d8f1-14:7(d41c75) in DeliveryChannel{servicemi
> x-cxf-bc} from sendSync
> DEBUG - DeliveryChannelImpl            - Exchange
> ID:10.47.31.187-118a844d8f1-14:7 has been aborted
> 2008-mar-13 15:19:45 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault
>         at
> org.apache.servicemix.cxfbc.CxfBcConsumer$JbiPostInvokerInterceptor.handleMessage(CxfBcConsumer.java:466)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:197)
>         at
> org.apache.servicemix.cxfbc.CxfBcConsumer.process(CxfBcConsumer.java:182)
>         at
> org.apache.servicemix.cxfbc.CxfBcConsumer$JbiInvokerInterceptor.handleMessage(CxfBcConsumer.java:442)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>         at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
>         at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:278)
>         at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:252)
>         at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:62)
>         at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:324)
>         at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>         at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>         at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>         at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
>
> Any ideas ?
> Tia
>