Hi,
 We are using SMX 4.3 and our usecase flow is like below

http client --> smx http  consumer --> camel uri --->external http service

beans.xml:
----------
  <import resource="classpath:org/apache/servicemix/camel/nmr/camel-nmr.xml"
/>
          <http:endpoint service="picf:httpMIB401Req"
                 endpoint="endpoint"
                 targetService="picf:MIB401Req"
                                 role="consumer" 
                 locationURI="http://0.0.0.0:8192/http401MIBReq/";
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"; />



<camel:camelContext xmlns="http://camel.apache.org/schema/spring";
streamCache="true">
      <camel:properties>
           <camel:property key="CamelCachedOutputStreamThreshold"
value="10000000"/>

     </camel:properties>
    <camel:route>
     <camel:from uri="nmr:http://planetsoft.com/picf2/MIB401Req/endpoint"/>
        <camel:to
uri="nmr:http://localhost:8080/jsp-examples/checkbox/tpsStub.jsp"/>
    </camel:route>




Http consumer unable to send the payload to camel uri and got below
exception.
Please suggest me is there any changes at http consumer endpoint
configuration
http://servicemix.396122.n5.nabble.com/file/n4825988/beans.xml beans.xml 
http://servicemix.396122.n5.nabble.com/file/n4825988/servicemix.log
servicemix.log  

Exception:

16:39:50,734 | DEBUG |  /http401MIBReq/ | HttpComponent                    |
121 - servicemix-common - 2011.01.0 | Created correlation id:
9573b432-0867-48b1-8f1d-f178b120d3c0
16:39:50,734 | DEBUG |  /http401MIBReq/ | NMR                              |
83 - org.apache.servicemix.nmr.core - 1.4.0 | Channel
org.apache.servicemix.nmr.core.ChannelImpl@bf817e dispatching exchange: [
  id:        9573b432-0867-48b1-8f1d-f178b120d3c0
  mep:       InOut
  status:    Active
  role:      Consumer
  target:   
PropertyMatchingReference[{SERVICE_NAME={http://planetsoft.com/picf2}MIB401Req}]
  properties: [
      org.apache.servicemix.senderEndpoint =
{http://planetsoft.com/picf2}httpMIB401Req:endpoint
      javax.jbi.messaging.MessageExchange =
org.apache.servicemix.jbi.runtime.impl.InOutImpl@70d6c5
      javax.jbi.messaging.sendSync = <null>
      javax.jbi.InterfaceName = <null>
      org.apache.servicemix.correlationId =
9573b432-0867-48b1-8f1d-f178b120d3c0
      javax.jbi.ServiceName = {http://planetsoft.com/picf2}MIB401Req
  ]
]

16:39:50,734 | WARN  |  /http401MIBReq/ | NMR                              |
83 - org.apache.servicemix.nmr.core - 1.4.0 | Error processing exchange [
  id:        9573b432-0867-48b1-8f1d-f178b120d3c0
  mep:       InOut
  status:    Active
  role:      Consumer
  target:   
PropertyMatchingReference[{SERVICE_NAME={http://planetsoft.com/picf2}MIB401Req}]
  properties: [
      org.apache.servicemix.senderEndpoint =
{http://planetsoft.com/picf2}httpMIB401Req:endpoint
      javax.jbi.messaging.MessageExchange =
org.apache.servicemix.jbi.runtime.impl.InOutImpl@70d6c5
      javax.jbi.messaging.sendSync = <null>
      javax.jbi.InterfaceName = <null>
      org.apache.servicemix.correlationId =
9573b432-0867-48b1-8f1d-f178b120d3c0
      javax.jbi.ServiceName = {http://planetsoft.com/picf2}MIB401Req
  ]
]

org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch
exchange. No matching endpoints.
        at
org.apache.servicemix.nmr.core.FlowRegistryImpl.dispatch(FlowRegistryImpl.java:110)[83:org.apache.servicemix.nmr.core:1.4.0]
        at
org.apache.servicemix.nmr.core.ChannelImpl.dispatch(ChannelImpl.java:286)[83:org.apache.servicemix.nmr.core:1.4.0]
        at
org.apache.servicemix.nmr.core.ChannelImpl.send(ChannelImpl.java:117)[83:org.apache.servicemix.nmr.core:1.4.0]
        at
org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.send(DeliveryChannelImpl.java:178)[122:org.apache.servicemix.jbi.runtime:1.4.0]
        at
org.apache.servicemix.common.EndpointDeliveryChannel.send(EndpointDeliveryChannel.java:89)[121:servicemix-common:2011.01.0]
        at
org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:177)[170:servicemix-http:2011.01.0]
        at
org.apache.servicemix.http.HttpBridgeServlet.service(HttpBridgeServlet.java:56)[170:servicemix-http:2011.01.0]
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[93:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0]
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.Server.handle(Server.java:322)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:943)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
16:39:50,734 | WARN  |  /http401MIBReq/ | jetty                            |
133 - org.ops4j.pax.web.pax-web-jetty - 0.7.4 | /http401MIBReq/
java.lang.IllegalStateException: Cannot write non xml faults for non soap
messages
        at
org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:124)[169:servicemix-soap:2011.01.0]
        at
org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)[169:servicemix-soap:2011.01.0]
        at
org.apache.servicemix.http.processors.ConsumerProcessor.sendFault(ConsumerProcessor.java:330)[170:servicemix-http:2011.01.0]
        at
org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:202)[170:servicemix-http:2011.01.0]
        at
org.apache.servicemix.http.HttpBridgeServlet.service(HttpBridgeServlet.java:56)[170:servicemix-http:2011.01.0]
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[93:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0]
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.Server.handle(Server.java:322)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:943)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
        at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]

Regards,
Praveen Chakinala



--
View this message in context: 
http://servicemix.396122.n5.nabble.com/http-consumer-calls-camel-nmr-endpoint-tp4825988p4825988.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to