Hi

Check your Camel routes as somewhere you are consuming from a HTTP
endpoint, which cannot connect
org.apache.camel.RuntimeCamelException: java.net.SocketException:
Network is unreachable: connect
               at
org.apache.camel.component.http.HttpPollingConsumer.doReceive(HttpPollingConsumer.java:96)[340:org.apache.camel.camel-http:2.8.0.fuse-00-08]



On Tue, Nov 15, 2011 at 7:30 AM, farha <farha.ja...@wipro.com> wrote:
> Hi Guru,
>
>
>
> I am doing something similar but I am facing network error.
>
>
>
> This is my camelContext.xml file:
>
> <beans 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:cxf="http://camel.apache.org/schema/cxf";
>       xsi:schemaLocation="
>           http://www.springframework.org/schema/beans   
> http://www.springframework.org/schema/beans/spring-beans.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.xsd";>
>    <!--Create a new SpringBus -->
>    <import resource="classpath:META-INF/cxf/cxf.xml"/>
>    <!--Make sure the OSGi servlet transport is regirsted with the bus -->
>    <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
>
>    <cxf:cxfEndpoint id="pleaseRoute"
>                     address="http://www.webservicex.net/stockquote.asmx";
>                     wsdlURL="META-INF/wsdl/stockquote.wsdl"
>                     serviceClass="com.wipro.camel.StockEndPointService">
>    </cxf:cxfEndpoint>
>
> <bean id="myroutebuilder" class="com.wipro.camel.StockRouteBuilder"/>
>
>  <camel:camelContext xmlns="http://camel.apache.org/schema/spring";>
>                                <camel:routeBuilder ref="myroutebuilder"/>
> </camel:camelContext>
>
> </beans>
>
>
> This is my bean myroutebuilder:
>
> from("cxf:bean:pleaseRoute")
>        .convertBodyTo(StockBean.class)
>        .wireTap("file://target/inbox/")
>        .to("xslt:file:D:/apache-servicemix-4.4.1-fuse-00-08/rider/Stock.xsl")
>            .to(file://outbox/);
>
>
> This is the error:
>
> org.apache.camel.RuntimeCamelException: java.net.SocketException: Network is 
> unreachable: connect
>                at 
> org.apache.camel.component.http.HttpPollingConsumer.doReceive(HttpPollingConsumer.java:96)[340:org.apache.camel.camel-http:2.8.0.fuse-00-08]
>                at 
> org.apache.camel.component.http.HttpPollingConsumer.receiveNoWait(HttpPollingConsumer.java:56)[340:org.apache.camel.camel-http:2.8.0.fuse-00-08]
>                at 
> org.apache.camel.impl.DefaultScheduledPollConsumer.poll(DefaultScheduledPollConsumer.java:48)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08]
>                at 
> org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:134)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08]
>                at 
> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:89)[83:org.apache.camel.camel-core:2.8.0.fuse-00-08]
>                at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_24]
>                at 
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[:1.6.0_24]
>                at 
> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[:1.6.0_24]
>                at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[:1.6.0_24]
>                at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[:1.6.0_24]
>                at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[:1.6.0_24]
>                at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_24]
>                at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_24]
>                at java.lang.Thread.run(Thread.java:662)[:1.6.0_24]
> Caused by: java.net.SocketException: Network is unreachable: connect
>                at java.net.PlainSocketImpl.socketConnect(Native 
> Method)[:1.6.0_24]
>
>
>
>
> Thanks & Regards,
> Farha Jahan| Project Engineer
> ENTERPRISE BUSINESS INTEGRATION PRACTICE (BAS) >> " Connecting & Transforming 
> Enterprises"
> [new]
> Wipro Technologies,
> Keonics Electronic City
> Bangalore – 560 100
> Contact no. : 08867490192
> www.wipro.com |
> ________________________________
> From: Gnanaguru S [via Camel] [ml-node+s465427n4993470...@n5.nabble.com]
> Sent: Tuesday, November 15, 2011 11:31 AM
> To: Farha Jahan (WT01 - BAS)
> Subject: Re: From wsdl to wsdl
>
>
> Hi
>
> Below is the actual idea. I am struggling to deploy it in smx. Hope it helps 
> you some way.
>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
>           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>           
> xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0";
>           xmlns:camel-cxf="http://camel.apache.org/schema/blueprint/cxf";
>           xmlns:cxfcore="http://cxf.apache.org/blueprint/core";
>           xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd";>
>
>      <camel-cxf:cxfEndpoint id="routerEndpoint"
>                     address="http://localhost:9001/router";
>                     
> serviceClass="org.apache.servicemix.examples.cxf.HelloWorld">
>        <camel-cxf:properties>
>            <entry key="dataFormat" value="MESSAGE"/>
>        </camel-cxf:properties>
>     </camel-cxf:cxfEndpoint>
>
>     <camel-cxf:cxfEndpoint id="serviceEndpoint"
>                        address="http://localhost:9000/SoapContext/SoapPort";
>                     
> serviceClass="org.apache.servicemix.examples.cxf.HelloWorld">
>    </camel-cxf:cxfEndpoint>
>
>    <camelContext xmlns="http://camel.apache.org/schema/blueprint";>
>        <route>
>            <from uri="routerEndpoint"/>
>            <to uri="log:request"/>
>        </route>
>    </camelContext>
>
> </blueprint>
>
> I am trying to read something in log. But. :( .
>
> Regards
> Guru
>
> ________________________________
> If you reply to this email, your message will be added to the discussion 
> below:
> http://camel.465427.n5.nabble.com/From-wsdl-to-wsdl-tp4993447p4993470.html
> To unsubscribe from From wsdl to wsdl, click 
> here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4993447&code=ZmFyaGEuamFoYW5Ad2lwcm8uY29tfDQ5OTM0NDd8LTY4NjIwNjI2>.
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any attachments to 
> this message are intended for the exclusive use of the addressee(s) and may 
> contain proprietary, confidential or privileged information. If you are not 
> the intended recipient, you should not disseminate, distribute or copy this 
> e-mail. Please notify the sender immediately and destroy all copies of this 
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should 
> check this email and any attachments for the presence of viruses. The company 
> accepts no liability for any damage caused by any virus transmitted by this 
> email.
>
> www.wipro.com
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/From-wsdl-to-wsdl-tp4993447p4993522.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to