Folks,
I have the following environment settings :

java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)

ServiceMix ESB: 2.0.3-SNAPSHOT

Upon running http-binding example, I recieve the following error:

C:\servicemix-2.0.3\examples\http-binding>ant
Buildfile: build.xml

init:

compile:

run:
     [echo] Running example client
     [java] Exception in thread "main" java.io.IOException: Server returned HTTP response code: 500 for URL: http://loc
lhost:8912
     [java]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1133)
     [java]     at HttpClient.main(Unknown Source)
     [java] Java Result: 1

BUILD SUCCESSFUL
Total time: 22 seconds

On Servicemix container, I get the following error:

[INFO] DeliveryChannel - default destination serviceName for httpReceiver = {http://servicemix.org/demo/}stockQuote
23-Jan-2006 16:11:04 com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post
SEVERE: SAAJ0009: Message send failed
16:11:04.568 WARN!! Exception for /
java.lang.NullPointerException
        at org.servicemix.components.http.HttpMarshaler.toResponse(HttpMarshaler.java:72)
        at org.servicemix.components.http.HttpInOutBinding.processInOut(HttpInOutBinding.java:63)
        at org.servicemix.components.http.HttpInOutBinding.process(HttpInOutBinding.java:46)
        at org.servicemix.components.http.BindingServlet.doPost(BindingServlet.java:77)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
        at org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:657)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
        at org.mortbay.http.HttpServer.service(HttpServer.java:879)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)

Terminate batch job (Y/N)? y

I have also tried running the same with ServiceMix ESB: 2.1-SNAPSHOT but got same error. Please help.


View this message in context: Http-binding example not working
Sent from the servicemix - user forum at Nabble.com.

Reply via email to