Hi, It is looks like CXF will have some trouble to access the wsdl when it is starting up. Can you just remove the wsdlURL option from the camel-cxf endpoint uri, as you are using MESSAGE dataFormat, you don't need to specify the it.
-- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | 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 Thursday, May 16, 2013 at 10:01 PM, Daniel Bularzik wrote: > Hello! > > New to Camel, new to this list. Please let me know if this is the wrong place > to ask questions like this. > > I'm using Camel 2.11.0, and CXF 2.7.4; running Camel in Tomcat 7.0.25. I have > a basic route to prove that I can hit a web service: > > <camel:camelContext> > <camel:endpoint id="bvgService" > uri="cxf://http://buzz.akc.org:8080/bvg-service/services/bvgServicePort?wsdlURL=http://buzz.akc.org:8080/bvg-service/services/bvgServicePort?wsdl&serviceName={http://services.akc.org/v_2_0/bvg}bvg-service&portName={http://services.akc.org/v_2_0/bvg}bvgServicePort&dataFormat=MESSAGE"/> > <camel:route id="bvg-web-route"> > <camel:from uri="jetty:http://0.0.0.0:8380/bvg?matchOnUriPrefix=true"/> > <camel:wireTap uri="file:/akcdata/bvg-tap-web"/> > <camel:to ref="bvgService"/> > </camel:route> > </camel:camelContext> > > ...and 95% of the time, it works. 5% of the time, however, the route fails, > ultimately because of this: > > [qtp616904194-46] ERROR DefaultErrorHandler - Failed delivery for (MessageId: > ID-buzz-34212-1368475333170-0-30731 on ExchangeId: > ID-buzz-34212-1368475333170-0-30728). Exhausted after delivery attempt: 1 > caught: java.lang.IllegalStateException: IllegalStateException invoking > http://buzz.akc.org:8080/bvg-service/services/bvgServicePort: Already > connected > > [snip] > > Caused by: java.lang.IllegalStateException: Already connected > at > java.net.HttpURLConnection.setFixedLengthStreamingMode(HttpURLConnection.java:143) > at > org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.setFixedLengthStreamingMode(URLConnectionHTTPConduit.java:272) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.thresholdNotReached(HTTPConduit.java:1085) > at > org.apache.cxf.io.AbstractThresholdOutputStream.close(AbstractThresholdOutputStream.java:99) > at > org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1301) > > I've spent a lot of time combing through my pom, so I'm reasonably sure that > I'm not loading conflicting versions of any libraries. > > Anyone have any pointers? > > > Daniel Bularzik, Lead Software Engineer > 8051 Arco Corporate Drive, Suite 100, Raleigh, NC 27617 > 919-816-3818, d...@akc.org (mailto:d...@akc.org) > www.akc.org (http://www.akc.org)