You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Freihalter Thomas <th...@my-box.de> on 2014/01/07 20:02:49 UTC

CXF : Camel 2.12.2 : Karaf 3.0.0 : Soap-Timeout

Hello guys,

I am using Karaf 3.0.0 and Camel 2.12.2

If I send a Soap-Envelope to Jetty, the response
contains a '8000' before the Soap-Envelope.

What does this mean and how can I avoid this?
SoapUi (and my jQuery-Client) is running into timeout.

With Karaf 2.3.3 everything is okay (no '8000').

That's my route:
<route id="XmlTransferRoute">
 <from uri="cxf:bean:XmlTransferService" />
 <to uri="activemq:queue:XmlTransferQueue?requestTimeout=180000"/>
</route>

I guess this is related to the response-size, because a mirroring
response works (no '8000'):
<route id="XmlTransferRoute">
 <from uri="cxf:bean:XmlTransferService" />
 <log ..>
</route>


best regards
Thomas


SoapUi Http-Log:

>> "POST /cxf/XmlTransfer HTTP/1.1[\r][\n]"
>> "Accept-Encoding: gzip,deflate[\r][\n]"
>> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
>> "SOAPAction: ""[\r][\n]"
>> "Content-Length: 846[\r][\n]"
>> "Host: localhost:8181[\r][\n]"
>> "Connection: Keep-Alive[\r][\n]"
>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
>> "[\r][\n]"
>> "<soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:ns="http://xmltransfer.util.com">[\n]" "
>> <soapenv:Header/>[\n]" "   <soapenv:Body>[\n]" "
>> <ns:XmlTransfer>[\n]" "         <Request>...</Request>[\n]"
>> "         <Response>?</Response>[\n]"
>> "      </ns:XmlTransfer>[\n]"
>> "   </soapenv:Body>[\n]"
>> "</soapenv:Envelope> "
<< "HTTP/1.1 200 OK[\r][\n]"
<< "Content-Type: text/xml;charset=UTF-8[\r][\n]"
<< "Transfer-Encoding: chunked[\r][\n]"
<< "Server: Jetty(8.1.14.v20131031)[\r][\n]"
<< "[\r][\n]"
<< "8000[\r][\n]"
<< "<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><XmlTransfer><Response>...
<< "</Response></XmlTransfer></soap:Body></soap:Envelope>" 
<< "[\r][\n]"



Re: CXF : Camel 2.12.2 : Karaf 3.0.0 : Soap-Timeout

Posted by Achim Nierbeck <bc...@googlemail.com>.
I'm not sure this is a "bug" in PaxWeb, it might be in Jetty, but I think
I've seen this once with a Karaf 2.x version. But I can't remember how I
solved it.
Something from the back of my head tells me it's something in the
webservice.
Somehting more like the payload might be to big ...

regards, Achim


2014/1/8 Willem Jiang <wi...@gmail.com>

> Hi Thomas,
>
> If the route can work in Karaf 2.3.3 instead of Karaf 3.0.0.
> I think it’s bug of PaxWeb which provide the Servlet OSGi service.
>
>
> --
> Willem Jiang
>
> Red Hat, Inc.
> Web: http://www.redhat.com
> Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/)
> (English)
> http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese)
> Twitter: willemjiang
> Weibo: 姜宁willem
>
>
>
> On January 8, 2014 at 3:36:38 AM, Freihalter Thomas (
> thomas.freihalter@my-box.de) wrote:
> >
> > Hello guys,
> >
> > I am using Karaf 3.0.0 and Camel 2.12.2
> >
> > If I send a Soap-Envelope to Jetty, the response
> > contains a '8000' before the Soap-Envelope.
> >
> > What does this mean and how can I avoid this?
> > SoapUi (and my jQuery-Client) is running into timeout.
> >
> > With Karaf 2.3.3 everything is okay (no '8000').
> >
> > That's my route:
> >
> >
> >
> >
> >
> > I guess this is related to the response-size, because a mirroring
> > response works (no '8000'):
> >
> >
> >
> >
> >
> >
> > best regards
> > Thomas
> >
> >
> > SoapUi Http-Log:
> >
> > >> "POST /cxf/XmlTransfer HTTP/1.1[\r][\n]"
> > >> "Accept-Encoding: gzip,deflate[\r][\n]"
> > >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
> > >> "SOAPAction: ""[\r][\n]"
> > >> "Content-Length: 846[\r][\n]"
> > >> "Host: localhost:8181[\r][\n]"
> > >> "Connection: Keep-Alive[\r][\n]"
> > >> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
> > >> "[\r][\n]"
> > >> "> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > >> xmlns:ns="http://xmltransfer.util.com">[\n]" "
> > >> [\n]" " [\n]" "
> > >> [\n]" " ...[\n]"
> > >> " ?[\n]"
> > >> " [\n]"
> > >> " [\n]"
> > >> " "
> > << "HTTP/1.1 200 OK[\r][\n]"
> > << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
> > << "Transfer-Encoding: chunked[\r][\n]"
> > << "Server: Jetty(8.1.14.v20131031)[\r][\n]"
> > << "[\r][\n]"
> > << "8000[\r][\n]"
> > << "> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">...
> > << ""
> > << "[\r][\n]"
> >
> >
> >
>
>


-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Re: CXF : Camel 2.12.2 : Karaf 3.0.0 : Soap-Timeout

Posted by Willem Jiang <wi...@gmail.com>.
Hi Thomas,

If the route can work in Karaf 2.3.3 instead of Karaf 3.0.0.
I think it’s bug of PaxWeb which provide the Servlet OSGi service.


--  
Willem Jiang

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



On January 8, 2014 at 3:36:38 AM, Freihalter Thomas (thomas.freihalter@my-box.de) wrote:
>  
> Hello guys,
>  
> I am using Karaf 3.0.0 and Camel 2.12.2
>  
> If I send a Soap-Envelope to Jetty, the response
> contains a '8000' before the Soap-Envelope.
>  
> What does this mean and how can I avoid this?
> SoapUi (and my jQuery-Client) is running into timeout.
>  
> With Karaf 2.3.3 everything is okay (no '8000').
>  
> That's my route:
>  
>  
>  
>  
>  
> I guess this is related to the response-size, because a mirroring  
> response works (no '8000'):
>  
>  
>  
>  
>  
>  
> best regards
> Thomas
>  
>  
> SoapUi Http-Log:
>  
> >> "POST /cxf/XmlTransfer HTTP/1.1[\r][\n]"
> >> "Accept-Encoding: gzip,deflate[\r][\n]"
> >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
> >> "SOAPAction: ""[\r][\n]"
> >> "Content-Length: 846[\r][\n]"
> >> "Host: localhost:8181[\r][\n]"
> >> "Connection: Keep-Alive[\r][\n]"
> >> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"  
> >> "[\r][\n]"
> >> "> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"  
> >> xmlns:ns="http://xmltransfer.util.com">[\n]" "
> >> [\n]" " [\n]" "
> >> [\n]" " ...[\n]"  
> >> " ?[\n]"
> >> " [\n]"
> >> " [\n]"
> >> " "
> << "HTTP/1.1 200 OK[\r][\n]"
> << "Content-Type: text/xml;charset=UTF-8[\r][\n]"
> << "Transfer-Encoding: chunked[\r][\n]"
> << "Server: Jetty(8.1.14.v20131031)[\r][\n]"
> << "[\r][\n]"
> << "8000[\r][\n]"
> << "> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">...  
> << ""  
> << "[\r][\n]"
>  
>  
>