camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdomingo ...@domingo.nl>
Subject Is camel cxf failover is working ? It doesn't seem to work at all. Please confirm.
Date Tue, 16 Mar 2010 20:32:25 GMT

It look like there is a huge bug in camel cxf failover, it doesn't seem to
work at all :(

Is there anybody who got it running ??

I just retested cxf failover using camel versions 2.0.0,  2.1.0 and even
1.6.2 (jdk1.5 and jdk6), but all resulting in same error:
...
org.apache.cxf.interceptor.Fault: Already connected
        at
org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:101)
        at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
...
Caused by: java.lang.IllegalStateException: Already connected
        at
java.net.HttpURLConnection.setFixedLengthStreamingMode(HttpURLConnection.java:121)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.thresholdNotReached(HTTPConduit.java:1888)
        at
org.apache.cxf.io.AbstractThresholdOutputStream.close(AbstractThresholdOutputStream.java:99)
        at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1979)
...

My Config:
 <route>
            <from
               
uri="cxf://http://0.0.0.0:8081/fooServer/echo?wsdlURL=http://localhost:8080/fooServer1-0.0.1a-SNAPSHOT/echo&#63;wsdl&amp;serviceName={http://www.telecats.nl/nl.telecats.bvibluenode.adt.server-push.fooService}EchoService&amp;portName={http://www.telecats.nl/nl.telecats.bvibluenode.adt.server-push.fooService}EchoServiceImplPort&amp;dataFormat=MESSAGE";
/>
            <loadBalance>
                <failover>
                    <exception>java.lang.Exception</exception>
                    <exception>java.io.IOException</exception>
                </failover>
<!-- first webservice -->
                <to
                   
uri="cxf://http://localhost:8080/fooServer1-0.0.1a-SNAPSHOT/echo?wsdlURL=http://localhost:8080/fooServer1-0.0.1a-SNAPSHOT/echo&#63;wsdl&amp;serviceName={http://www.telecats.nl/nl.telecats.bvibluenode.adt.server-push.fooService}EchoService&amp;portName={http://www.telecats.nl/nl.telecats.bvibluenode.adt.server-push.fooService}EchoServiceImplPort&amp;dataFormat=MESSAGE";
/>
<!-- second webservice -->
                    <to
                   
uri="cxf://http://localhost:8080/fooServer1-0.0.1b-SNAPSHOT/echo?wsdlURL=http://localhost:8080/fooServer1-0.0.1b-SNAPSHOT/echo&#63;wsdl&amp;serviceName={http://www.telecats.nl/nl.telecats.bvibluenode.adt.server-push.fooService}EchoService&amp;portName={http://www.telecats.nl/nl.telecats.bvibluenode.adt.server-push.fooService}EchoServiceImplPort&amp;dataFormat=MESSAGE";
/>
            </loadBalance>
        </route>


For more details see my other post "Problem with CXF Failover -> Already
connected error"

-- 
View this message in context: http://old.nabble.com/Is-camel-cxf-failover-is-working---It-doesn%27t-seem-to-work-at-all.-Please-confirm.-tp27924101p27924101.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message