hi,
I got the following error when running http-binding example. I did not
change any configuration in the example, and followed instruction to run...
any idea on it ? thanks a lot
===
Buildfile: build.xml
init:
compile:
[javac] Compiling 1 source file to
C:\incubating-servicemix-3.0-SNAPSHOT\examples\http-binding\classes
run:
[echo] Running example client
[java] <?xml version="1.0" encoding="UTF-8"?><soapenv:Fault
xmlns:soapenv="http://schemas.xmlsoap.org/
[java] at java.net.PlainSocketImpl.socketConnect(Native Method)
[java] at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
[java] at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
[java] at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
[java] at
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
[java] at java.net.Socket.connect(Socket.java:516)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153
[java] at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120
[java] at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
[java] at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
[java] at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
[java] at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
[java] at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
[java] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
[java] at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
[java] at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
[java] at org.apache.axis.client.Call.invoke(Call.java:2767)
[java] at org.apache.axis.client.Call.invoke(Call.java:1870)
[java] at
org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:90)
[java] at
org.apache.servicemix.components.saaj.SaajBinding.onMessageExchange(SaajBinding.java:104
[java] at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelIm
[java] at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:168)
[java] at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:175)
[java] at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:226)
[java] at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
[java] at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
[java] at
java.lang.Thread.run(Thread.java:595)</ns1:stackTrace><ns2:hostname
xmlns:ns2="http://xm
BUILD SUCCESSFUL
Total time: 24 seconds
=====
by the way, there is the xml file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
xmlns:foo="http://servicemix.org/demo/">
<!-- the JBI container -->
<sm:container id="jbi"
useMBeanServer="true"
createMBeanServer="true"
dumpStats="true"
statsInterval="10">
<sm:activationSpecs>
<!-- Create a http server binding on port 8912 and have it
forward to the
foo:stockQuote -->
<sm:activationSpec componentName="httpReceiver"
service="foo:httpBinding"
endpoint="httpReceiver"
destinationService="foo:stockQuote">
<sm:component>
<bean
class="org.apache.servicemix.components.http.HttpConnector">
<property name="host" value="localhost"/>
<property name="port" value="8912"/>
</bean>
</sm:component>
</sm:activationSpec>
<!-- This just invokes another service -->
<sm:activationSpec componentName="stockQuote"
service="foo:stockQuote"
endpoint="stockQuote">
<sm:component>
<bean
class="org.apache.servicemix.components.saaj.SaajBinding">
<property name="soapEndpoint">
<bean
class="javax.xml.messaging.URLEndpoint">
<constructor-arg
value="http://64.124.140.30:9090/soap"/>
</bean>
</property>
</bean>
</sm:component>
</sm:activationSpec>
</sm:activationSpecs>
</sm:container>
</beans>
--
View this message in context:
http://www.nabble.com/http-binding-and-soap-binding--example-broken-tf1638798.html#a5653073
Sent from the ServiceMix - User forum at Nabble.com.