HttpConnector / MuleMessageToHttpResponse issue after upgrading to Mule 2.2

View: New views
3 Messages — Rating Filter:   Alert me  

HttpConnector / MuleMessageToHttpResponse issue after upgrading to Mule 2.2

by Fabian Lange-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
currently we are running a Mule 2.1.2 in a project. It has a CXF Webservice exposed via the servlet/http connector connector. So mule is running inside a web application.
The client is accessing it using Axis 1.4 (cool interop at its best).

After upgrade to Mule 2.2 it stopped working, but on a low level. The HTTP connection has problems:
Caused by: java.io.IOException: Chunked input stream failed to receive valid chunk size:<soap:Envelopexmln

I figured out after hours of debugging, that regardless of what I do, I will always get an HTTP 1.1 chunked transfer.
As it looks the chunk size information is missing in each of the chunks, which is why I am getting the exception.

Even if I try to request via HTTP 1.0 (you can do this in Axis like this: context.setProperty(MessageContext.HTTP_TRANSPORT_VERSION, HTTPConstants.HEADER_PROTOCOL_V10); ) The response comes in 1.1.
I wish I could describe the problem better, but there are too many components involved, so my debugging ended up without useful results.

I saw some JIRA issues related to Servlet/Http Transport consolidation, so I am suspecting something now working differently than before.
If you give me some hints I can investigate further. Ideally you already have an idea what I can try out. There is also a rare chance that it is a problem with the ServletResponse coming back via JBoss 4.0.4


Mit freundlichen Grüßen / Best regards


Fabian Lange
Senior IT Consultant


codecentric GmbH, Merscheider Str. 1, 42699 Solingen

Büro: +49 (0) 212 233628-21, Mobil: +49 (0) 160 3673393, Fax: +49 (0) 212 23362-79

Internet:       www.codecentric.de
Blog:           blog.codecentric.de

Geschäftsführer: Peter Gierse, Mirko Novakovic und Rainer Vehns
Sitz der Gesellschaft: Solingen
Registergericht: Amtsgericht Wuppertal, HRB 19214

Diese E-Mail einschließlich evtl. angehängter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. anhängende Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. anhängender Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



AW: HttpConnector / MuleMessageToHttpResponse issue after upgrading to Mule 2.2

by Fabian Lange-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi again,
I just found a change that look suspicious to me:
http://fisheye.codehaus.org/browse/mule/branches/mule-2.x/transports/cxf/src/main/java/org/mule/transport/cxf/CxfConnector.java?r1=&r2=13581

So the CXF connector is no longer used on servlet:// protocol?

Why is this in here still:
http://fisheye.codehaus.org/browse/mule/branches/mule-2.x/transports/cxf/src/main/java/org/mule/transport/cxf/CxfConnector.java?r=14079#l223

Is this a bug? This could possibly cause my issue

Fabian

-----Ursprüngliche Nachricht-----
Von: Fabian Lange [mailto:lange@...]
Gesendet: Dienstag, 3. März 2009 20:14
An: dev@...
Betreff: [mule-dev] HttpConnector / MuleMessageToHttpResponse issue after upgrading to Mule 2.2

Hello,
currently we are running a Mule 2.1.2 in a project. It has a CXF Webservice exposed via the servlet/http connector connector. So mule is running inside a web application.
The client is accessing it using Axis 1.4 (cool interop at its best).

After upgrade to Mule 2.2 it stopped working, but on a low level. The HTTP connection has problems:
Caused by: java.io.IOException: Chunked input stream failed to receive valid chunk size:<soap:Envelopexmln

I figured out after hours of debugging, that regardless of what I do, I will always get an HTTP 1.1 chunked transfer.
As it looks the chunk size information is missing in each of the chunks, which is why I am getting the exception.

Even if I try to request via HTTP 1.0 (you can do this in Axis like this: context.setProperty(MessageContext.HTTP_TRANSPORT_VERSION, HTTPConstants.HEADER_PROTOCOL_V10); ) The response comes in 1.1.
I wish I could describe the problem better, but there are too many components involved, so my debugging ended up without useful results.

I saw some JIRA issues related to Servlet/Http Transport consolidation, so I am suspecting something now working differently than before.
If you give me some hints I can investigate further. Ideally you already have an idea what I can try out. There is also a rare chance that it is a problem with the ServletResponse coming back via JBoss 4.0.4


Mit freundlichen Grüßen / Best regards


Fabian Lange
Senior IT Consultant


codecentric GmbH, Merscheider Str. 1, 42699 Solingen

Büro: +49 (0) 212 233628-21, Mobil: +49 (0) 160 3673393, Fax: +49 (0) 212 23362-79

Internet:       www.codecentric.de
Blog:           blog.codecentric.de

Geschäftsführer: Peter Gierse, Mirko Novakovic und Rainer Vehns
Sitz der Gesellschaft: Solingen
Registergericht: Amtsgericht Wuppertal, HRB 19214

Diese E-Mail einschließlich evtl. angehängter Dateien enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese E-Mail und evtl. anhängende Dateien umgehend. Das unerlaubte Kopieren, Nutzen oder Öffnen evtl. anhängender Dateien sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: AW: HttpConnector / MuleMessageToHttpResponse issue after upgrading to Mule 2.2

by Marco Mascia-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Fabian,

Did you find any solution for this problem... I am also facing the same problem while trying to access CXF webservices deployed in servlet endpoint using Axis web client..

Thanks and regards
Ann Mathew

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email