please help with transformation of a response by xslt

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

please help with transformation of a response by xslt

aioria3077
have a original Web Services, a proxy which has a transformation because you need to add data authentication, the request works fine, can consume the service, but I need to transform the response to the expectations created my webService proxy, the transformation applied in the same way which the request is armed, but I get an error:


2014-09-18 17:27:46,714 | WARN | qtp1787857896-70 | PhaseInterceptorChain | ? ? | 164 - org.apache.cxf.cxf-api - 2.7.0.redhat-610379 | Interceptor for {http://www.ampersand.mx/FiestaRewardsServices" target="_blank">http://www.ampersand.mx/FiestaRewardsServices}PointsExchangeFR2CPPortTypeService#{http://www.ampersand.mx/FiestaRewardsServices" target="_blank">http://www.ampersand.mx/FiestaRewardsServices}PointsExchangeFR2CPOp has thrown exception, unwinding now
java.lang.ClassCastException: java.io.ByteArrayInputStream cannot be cast to javax.xml.transform.Source
at org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:79)[162:org.apache.cxf.cxf-rt-core:2.7.0.redhat-610379]
at org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:54)[162:org.apache.cxf.cxf-rt-core:2.7.0.redhat-610379]
at org.apache.camel.component.cxf.HybridSourceDataBinding$1.write(HybridSourceDataBinding.java:100)[205:org.apache.camel.camel-cxf:2.12.0.redhat-610379]
at org.apache.camel.component.cxf.HybridSourceDataBinding$1.write(HybridSourceDataBinding.java:81)[205:org.apache.camel.camel-cxf:2.12.0.redhat-610379]
at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:123)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
at org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]


this is my camel-context.xml


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:spring-security="http://www.springframework.org/schema/security"
        xmlns="http://www.springframework.org/schema/beans" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/spring" xmlns:osgi="http://www.springframework.org/schema/osgi" xmlns:cxf="http://camel.apache.org/schema/cxf" xmlns:poin="http://www.ampersand.mx/PointsExchangeFR2CPReq"
        xsi:schemaLocation="
           http://camel.apache.org/schema/spring/security
       http://camel.apache.org/schema/spring/security/camel-spring-security.xsd
       http://www.springframework.org/schema/security
       http://www.springframework.org/schema/security/spring-security.xsd
       http://camel.apache.org/schema/security http://camel.apache.org/schema/security/camel-security.xsd
       http://www.springframework.org/schema/beans 
       http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/osgi 
       http://www.springframework.org/schema/osgi/spring-osgi.xsd
       http://camel.apache.org/schema/spring 
       http://camel.apache.org/schema/spring/camel-spring.xsd
       http://camel.apache.org/schema/cxf 
       http://camel.apache.org/schema/cxf/camel-cxf-2.8.3.xsd">


        <bean id="cleanerProcessor" class="mx.ampersand.processors.RequestCleanerProcessor" />
       
       
        <cxf:cxfEndpoint id="PointsExchangeFR2CPProxy" address="/PointsExchangeFR2CPService" serviceClass="mx.ampersand.fiestarewardsservices.PointsExchangeFR2CPPortType">
        </cxf:cxfEndpoint>

       
        <cxf:cxfEndpoint id="ClubPremierEndpoint" address="http://cr5w5cptest.clubpremier.com/Mercator.CRIS.WebService.TESTCRIS/MemberWebService.asmx" wsdlURL="wsdl/MemberWebService.wsdl">
                <cxf:properties>
                        <entry key="dataFormat" value="MESSAGE" />
                </cxf:properties>
        </cxf:cxfEndpoint>

        <camelContext id="mx.ampersand.fiestarewardsservices.PointsExchangeFR2CP-Proxy" xmlns="http://camel.apache.org/schema/spring">
                <route id="proxy">
                        <from uri="cxf:bean:PointsExchangeFR2CPProxy?dataFormat=PAYLOAD&amp;loggingFeatureEnabled=true" />
                        <to uri="log:output?showAll=true" />

                        <to uri="cleanerProcessor"/>
                       
                        <convertBodyTo type="java.lang.String" />
                       
                        <to uri="xslt:xslt/ClubPremier/request.xslt" />

                        <setHeader headerName="operationName">
                                <constant>CreateAccrualActivity</constant>
                        </setHeader>
                        <setHeader headerName="SOAPAction">
                                <constant>http://skywards.com/Mercator.CRIS.WS/CreateAccrualActivity</constant>
                        </setHeader>

                        <to uri="log:output?showAll=true"/>

                        <log message="Request antes de enviar a CP: ${body}" />                       
                        <to uri="cxf:bean:ClubPremierEndpoint" />
                        <log message="lo que nos respondio CP: ${body}" />
                       
                        <log message="SE TERMINO DE CORRER"/>
                        <convertBodyTo type="java.lang.String" />       
                        <to uri="xslt:xslt/ClubPremier/response.xslt" />
                       
                </route>
        </camelContext>
</beans>

I repeat, the transformation was effected my proxyWebService correctly, the request asking the WebServiceOriginal, the problem is the response.

appreciate your help

Reply | Threaded
Open this post in threaded view
|

Re: please help with transformation of a response by xslt

Henrique Viecili-2
After the xsl transformation, try to convert the body again to String.

Henrique Viecili

On 19 September 2014 10:16, aioria3077 <[hidden email]> wrote:

> *have a original Web Services, a proxy which has a transformation because
> you
> need to add data authentication, the request works fine, can consume the
> service, but I need to transform the response to the expectations created
> my
> webService proxy, the transformation applied in the same way which the
> request is armed, but I get an error:*
>
>
> 2014-09-18 17:27:46,714 | WARN | qtp1787857896-70 | PhaseInterceptorChain |
> ? ? | 164 - org.apache.cxf.cxf-api - 2.7.0.redhat-610379 | Interceptor for
> {http://www.ampersand.mx/FiestaRewardsServices"
> target="_blank">
> http://www.ampersand.mx/FiestaRewardsServices}PointsExchangeFR2CPPortTypeService#{http://www.ampersand.mx/FiestaRewardsServices
> "
> target="_blank">
> http://www.ampersand.mx/FiestaRewardsServices}PointsExchangeFR2CPOp
> has thrown exception, unwinding now
> java.lang.ClassCastException: java.io.ByteArrayInputStream cannot be cast
> to
> javax.xml.transform.Source
> at
>
> org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:79)[162:org.apache.cxf.cxf-rt-core:2.7.0.redhat-610379]
> at
>
> org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:54)[162:org.apache.cxf.cxf-rt-core:2.7.0.redhat-610379]
> at
>
> org.apache.camel.component.cxf.HybridSourceDataBinding$1.write(HybridSourceDataBinding.java:100)[205:org.apache.camel.camel-cxf:2.12.0.redhat-610379]
> at
>
> org.apache.camel.component.cxf.HybridSourceDataBinding$1.write(HybridSourceDataBinding.java:81)[205:org.apache.camel.camel-cxf:2.12.0.redhat-610379]
> at
>
> org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:123)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
> at
>
> org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
> at
>
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
> at
>
> org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77)[164:org.apache.cxf.cxf-api:2.7.0.redhat-610379]
>
>
> *this is my camel-context.xml*
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans
> xmlns:spring-security="http://www.springframework.org/schema/security"
>         xmlns="http://www.springframework.org/schema/beans"
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:camel="http://camel.apache.org/schema/spring"
> xmlns:osgi="http://www.springframework.org/schema/osgi"
> xmlns:cxf="http://camel.apache.org/schema/cxf"
> xmlns:poin="http://www.ampersand.mx/PointsExchangeFR2CPReq"
>         xsi:schemaLocation="
>            http://camel.apache.org/schema/spring/security
>
> http://camel.apache.org/schema/spring/security/camel-spring-security.xsd
>        http://www.springframework.org/schema/security
>        http://www.springframework.org/schema/security/spring-security.xsd
>        http://camel.apache.org/schema/security
> http://camel.apache.org/schema/security/camel-security.xsd
>        http://www.springframework.org/schema/beans
>        http://www.springframework.org/schema/beans/spring-beans.xsd
>        http://www.springframework.org/schema/osgi
>        http://www.springframework.org/schema/osgi/spring-osgi.xsd
>        http://camel.apache.org/schema/spring
>        http://camel.apache.org/schema/spring/camel-spring.xsd
>        http://camel.apache.org/schema/cxf
>        http://camel.apache.org/schema/cxf/camel-cxf-2.8.3.xsd">
>
>
>         <bean id="cleanerProcessor"
> class="mx.ampersand.processors.RequestCleanerProcessor" />
>
>
>         <cxf:cxfEndpoint id="PointsExchangeFR2CPProxy"
> address="/PointsExchangeFR2CPService"
>
> serviceClass="mx.ampersand.fiestarewardsservices.PointsExchangeFR2CPPortType">
>         </cxf:cxfEndpoint>
>
>
>         <cxf:cxfEndpoint id="ClubPremierEndpoint"
> address="
> http://cr5w5cptest.clubpremier.com/Mercator.CRIS.WebService.TESTCRIS/MemberWebService.asmx
> "
> wsdlURL="wsdl/MemberWebService.wsdl">
>                 <cxf:properties>
>                         <entry key="dataFormat" value="MESSAGE" />
>                 </cxf:properties>
>         </cxf:cxfEndpoint>
>
>         <camelContext
> id="mx.ampersand.fiestarewardsservices.PointsExchangeFR2CP-Proxy"
> xmlns="http://camel.apache.org/schema/spring">
>                 <route id="proxy">
>                         <from
>
> uri="cxf:bean:PointsExchangeFR2CPProxy?dataFormat=PAYLOAD&amp;loggingFeatureEnabled=true"
> />
>                         <to uri="log:output?showAll=true" />
>
>                         <to uri="cleanerProcessor"/>
>
>                         <convertBodyTo type="java.lang.String" />
>
>                         <to uri="xslt:xslt/ClubPremier/request.xslt" />
>
>                         <setHeader headerName="operationName">
>                                 <constant>CreateAccrualActivity</constant>
>                         </setHeader>
>                         <setHeader headerName="SOAPAction">
>
> <constant>http://skywards.com/Mercator.CRIS.WS/CreateAccrualActivity
> </constant>
>                         </setHeader>
>
>                         <to uri="log:output?showAll=true"/>
>
>                         <log message="Request antes de enviar a CP:
> ${body}" />
>                         <to uri="cxf:bean:ClubPremierEndpoint" />
>                         <log message="lo que nos respondio CP: ${body}" />
>
>                         <log message="SE TERMINO DE CORRER"/>
>                         <convertBodyTo type="java.lang.String" />
>                         <to uri="xslt:xslt/ClubPremier/response.xslt" />
>
>                 </route>
>         </camelContext>
> </beans>
>
> *I repeat, the transformation was effected my proxyWebService correctly,
> the
> request asking the WebServiceOriginal, the problem is the response.
>
> appreciate your help*
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/please-help-with-transformation-of-a-response-by-xslt-tp5756711.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: please help with transformation of a response by xslt

aioria3077

thanks for replying, really like right before calling xsl transformer, I have this line,,,,


         <convertBodyTo type="java.lang.String" />
         <to uri="xslt:xslt/ClubPremier/response.xslt" />

will try to put it back then see what happens.

any other suggestions?
Reply | Threaded
Open this post in threaded view
|

Re: please help with transformation of a response by xslt

aioria3077
In reply to this post by aioria3077
if the call to the original web service, the change will dataFormat MESSAGE  by PAYLOAD, The error is:

The PayLoad elements cannot fit with the message parts of the BindingOperation. Please check the BindingOperation and PayLoadMessage.


I make the first transformation successfully receiving the REQUEST as dataFormat PAYLOAD, I realize that a change to MESSAGE in the original WS call is where the transformation does not work,

There is some problem the xslt with MESSAGE dataFormat being that before sending the body convert STRING
Reply | Threaded
Open this post in threaded view
|

Re: please help with transformation of a response by xslt

Henrique Viecili-2
In reply to this post by aioria3077
Do the conversion after:
         <to uri="xslt:xslt/ClubPremier/response.xslt" />
         <convertBodyTo type="java.lang.String" />

Henrique Viecili

On 20 September 2014 00:00, aioria3077 <[hidden email]> wrote:

> *thanks for replying, really like right before calling xsl transformer, I
> have this line,,,,*
>
>
> *         <convertBodyTo type="java.lang.String" />*
>          <to uri="xslt:xslt/ClubPremier/response.xslt" />
>
> will try to put it back then see what happens.
>
> any other suggestions?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/please-help-with-transformation-of-a-response-by-xslt-tp5756711p5756748.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: please help with transformation of a response by xslt

Willem.Jiang
Administrator
In reply to this post by aioria3077
If you invoke the backend service with PAYLOAD data formate message you need to setup the BindingOperation for it.

My suggestion if you want to use xslt to the transformation, you can just use MESSAGE data formate  to invoke the back end service. 

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On September 20, 2014 at 8:56:05 PM, aioria3077 ([hidden email]) wrote:

> if the call to the original web service, the change will dataFormat MESSAGE
> by PAYLOAD, The error is:
>  
> The PayLoad elements cannot fit with the message parts of the
> BindingOperation. Please check the BindingOperation and PayLoadMessage.
>  
>  
> I make the first transformation successfully receiving the REQUEST as
> dataFormat PAYLOAD, I realize that a change to MESSAGE in the original WS
> call is where the transformation does not work,
>  
> There is some problem the xslt with MESSAGE dataFormat being that before
> sending the body convert STRING
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/please-help-with-transformation-of-a-response-by-xslt-tp5756711p5756757.html 
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  

Reply | Threaded
Open this post in threaded view
|

RE: please help with transformation of a response by xslt

siano
In reply to this post by aioria3077
Hi,

Just some comments about the convert to string workaround for XML documents. Though XML documents may look like strings, they are in fact binary data, so even if converting the data to string may help to work around an existing issue, it can cause other issues with specific XML documents. This will specifically happen if the document encoding is not the same as the default encoding of the platform (e.g. platform default encoding is ISO-8859-1 whereas the document is UTF-8 encoded (or vice versa)). In that case all documents containing non-ASCII characters will be destroyed by converting a byte-like representation into a character-like representation (e.g. file to string).

So if there is some type converter issue the best solution would be to analyze and resolve that issue. If you need a workaround, the second best solution is to convert the data to byte[] not to String, this will at least not destroy the encoding (and the BOM).

Best regards
Stephan

-----Original Message-----
From: aioria3077 [mailto:[hidden email]]
Sent: Samstag, 20. September 2014 00:27
To: [hidden email]
Subject: Re: please help with transformation of a response by xslt

if the call to the original web service, the change will dataFormat MESSAGE
by PAYLOAD, The error is:

The PayLoad elements cannot fit with the message parts of the
BindingOperation. Please check the BindingOperation and PayLoadMessage.


I make the first transformation successfully receiving the REQUEST as
dataFormat PAYLOAD, I realize that a change to MESSAGE in the original WS
call is where the transformation does not work,

There is some problem the xslt with MESSAGE dataFormat being that before
sending the body convert STRING



--
View this message in context: http://camel.465427.n5.nabble.com/please-help-with-transformation-of-a-response-by-xslt-tp5756711p5756757.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: please help with transformation of a response by xslt

aioria3077
In reply to this post by Henrique Viecili-2
thanks, run the transformation to String after the XSLT transformation, continuous error, I think it's my transformation which is having problems, I'll check, thank you very much for your help
Reply | Threaded
Open this post in threaded view
|

Re: please help with transformation of a response by xslt

aioria3077
In reply to this post by Willem.Jiang
effectively, since last week Always change a PAYLOAD to MESSAGE data format.

 I'm about to check out the transformation with the manager of that part because apparently that's where we're having problems, thank you very much
Reply | Threaded
Open this post in threaded view
|

RE: please help with transformation of a response by xslt

aioria3077
In reply to this post by siano
Thank you very much for this information, and check the coding of the original RESPONSE and matches my XSLT transformation, both are UTF-8.
Reply | Threaded
Open this post in threaded view
|

RE: please help with transformation of a response by xslt

Jaishankar
After XSLT transformation try converting to  "org.w3c.dom.Document".

<to uri="xslt:xslt/ClubPremier/response.xslt" />
<convertBodyTo type="org.w3c.dom.Document" />   
   

Reply | Threaded
Open this post in threaded view
|

RE: please help with transformation of a response by xslt

dpravin
My route is very similar to the route what is being discussed on this thread and I too am facing same issues. I have tried all the options suggested, however nothing works.

Did anyone fixed this problem in their route. Appreciate any inputs.

Thanks,
Pravin
- Pravin
Reply | Threaded
Open this post in threaded view
|

RE: please help with transformation of a response by xslt

dpravin
This post has NOT been accepted by the mailing list yet.
No response on this thread yet. My route requirements/details are as following,

We are using Fuse 6.2.1 version

<route id="orderRoute">
        <from uri="cxf:bean:orderservice?dataFormat=PAYLOAD" />
        <to uri="xslt:xsl/processRequest.xsl" />
        <removeHeaders pattern="CamelHttp*"/>

        <setHeader headerName="operationName">
        <constant>getdata</constant>
        </setHeader>       
        <setHeader headerName="operationNamespace">
        <constant>http://abc.com</constant>
        </setHeader>               
        <setHeader headerName="soapAction">
        <constant>getdata</constant>
        </setHeader>                                     

        <to uri="cxf:bean:externalws?dataFormat=MESSAGE"/>   

       

                                       

        <to uri="xslt:xsl/processResponse.xsl" /> 
        <convertBodyTo type="org.w3c.dom.Document" />   
        <log message="${body}" />

        <log message="End of Order Route" loggingLevel="INFO" />
       

</route>
__________________________________

Getting following errors,
java.lang.ClassCastException: java.io.ByteArrayInputStream cannot be cast to javax.xml.transform.Source
        at org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:79)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621107]
        at org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:54)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621107]
        at org.apache.camel.component.cxf.HybridSourceDataBinding$1.write(HybridSourceDataBinding.java:100)[214:org.apache.camel.camel-cxf:2.15.1.redhat-621107]
        at org.apache.camel.component.cxf.HybridSourceDataBinding$1.write(HybridSourceDataBinding.java:81)[214:org.apache.camel.camel-cxf:2.15.1.redhat-621107]
        at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:141)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621107]
        at org.apache.cxf.wsdl.interceptors.BareOutInterceptor.handleMessage(BareOutInterceptor.java:69)[78:org.apache.cxf.cxf-rt-wsdl:3.0.4.redhat-621107]
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621107]
        at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:83)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621107]
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621107]
        at org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:277)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621107]
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)[74:org.apache.cxf.cxf-core:3.0.4.redhat-621107]
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[96:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621107]
        at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)[96:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621107]
        at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)[96:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621107]
        at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)[96:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621107]
        at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)[96:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621107]
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:293)[96:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621107]
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:212)[96:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621107]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)[82:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0.0]
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:268)[96:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621107]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)[93:org.ops4j.pax.web.pax-web-jetty:3.2.9]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)[93:org.ops4j.pax.web.pax-web-jetty:3.2.9]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:427)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)[93:org.ops4j.pax.web.pax-web-jetty:3.2.9]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.eclipse.jetty.server.Server.handleAsync(Server.java:410)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:519)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:79)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[86:org.eclipse.jetty.aggregate.jetty-all-server:8.1.19.v20160209]
        at java.lang.Thread.run(Thread.java:744)[:1.7.0_45]


_____
- Pravin
Reply | Threaded
Open this post in threaded view
|

RE: please help with transformation of a response by xslt

dpravin
One quick update, I replace cxf producer end point with http4 component and the route ran with no issues/problems.

However I still would like to understand why cxf end point is failing.

Thanks,
Pravin
- Pravin