Hi Gert,
I am getting the below message for my Java client as a response to the POST
request. But I was expecting HTTP OK or ACCEPTED response. Do I need to
override any specific methods in DefaultHttpConsumerMarshaler ?

$ java HttpURLConnectionTest
Exception in thread "main" java.io.IOException: Server returned HTTP
response code: 500 for URL: http://localhost:8192/service/hotelpublish/

Here are the log statements that appear in Servicemix after I process the
posted XML using servicemix-bean (HotelPublishBean).
2010-08-04 13:07:40,641 | INFO  |
com.orbitz.hotel.publish.services.HotelPublishBean  264 | MasterId:2582151
OnegId:787 NotifyStatusCode:200
2010-08-04 13:08:45,953 | DEBUG |
x.http.jetty.JettyContextManager$ThreadPoolWrapper  467 | Dispatching job:
retrycontinuat...@25149369,pending,expired
2010-08-04 13:08:45,954 | DEBUG | org.apache.servicemix.http.jetty.JCLLogger    
      
70 | resume continuation retrycontinuat...@25149369,pending,expired
2010-08-04 13:08:45,954 | DEBUG | org.apache.servicemix.http.jetty.JCLLogger    
      
70 | REQUEST /service/hotelpublish/ on
org.mortbay.jetty.httpconnect...@1e9d5e0
2010-08-04 13:08:45,954 | DEBUG | org.apache.servicemix.http.jetty.JCLLogger    
      
70 | servlet=jbiServlet
2010-08-04 13:08:45,955 | DEBUG | org.apache.servicemix.http.jetty.JCLLogger    
      
70 | chain=null
2010-08-04 13:08:45,955 | DEBUG | org.apache.servicemix.http.jetty.JCLLogger    
      
70 | servlet holder=jbiServlet
2010-08-04 13:08:45,955 | DEBUG |
che.servicemix.http.endpoints.HttpConsumerEndpoint  266 | Receiving HTTP
request: POST /service/hotelpublish/ HTTP/1.1
Authorization: Basic aG90ZWxtYXN0ZXI6aG90ZWxtYXN0ZXI=
User-Agent: Java/1.6.0_0
Host: bdabbigodla.duncllc.com:8192
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 252


2010-08-04 13:08:45,956 | DEBUG | org.apache.servicemix.http.jetty.JCLLogger    
      
70 | RESPONSE /service/hotelpublish/  500
2010-08-04 13:08:45,956 | DEBUG | org.apache.servicemix.http.jetty.JCLLogger    
      
70 | continuation still pending null
2010-08-04 13:08:45,956 | DEBUG | org.apache.servicemix.http.jetty.JCLLogger    
      
70 | continuation retrycontinuat...@25149369
2010-08-04 13:08:45,967 | DEBUG |
x.http.jetty.JettyContextManager$ThreadPoolWrapper  467 | Dispatching job:
s...@4034043[d=true,io=1,w=true,b=false|false]
2010-08-04 13:08:45,968 | DEBUG | org.apache.servicemix.http.jetty.JCLLogger    
      
65 | EXCEPTION 
java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
        at sun.nio.ch.IOUtil.read(IOUtil.java:206)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
        at org.mortbay.io.nio.ChannelEndPoint.fill(ChannelEndPoint.java:131)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:283)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:377)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
2010-08-04 13:08:45,969 | DEBUG | org.apache.servicemix.http.jetty.JCLLogger    
      
70 | EOF
2010-08-04 13:08:45,969 | DEBUG | org.apache.servicemix.http.jetty.JCLLogger    
      
70 | continuation retrycontinuat...@25149369

Thanks,
Bhaskar
-- 
View this message in context: 
http://servicemix.396122.n5.nabble.com/servicemix-http-consumer-issue-tp2262037p2264462.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to