Link to home
Start Free TrialLog in
Avatar of damarasa
damarasa

asked on

Servicemix3.3.2 -IllegalStateException: component is not owner

We are using servicemix 3.3.2, servicemix-http-2010.01  and servicemix-jsr181-2010.01 On and off, we see an issue while sending response from service mix exchange to http-bc.

The whole transaction is success, but from exchange to http-bc we got java.lang.IllegalStateException: component is not owner and send 500 response to the client.

We are unable to reproduce it through load tests - unable to understand the root cause.
Appreciate any help in finding what causes this issue.

Below are the stacktrace of the issue.

java.lang.IllegalStateException: component is not owner when trying to set error: java.lang.IllegalStateException: component is not owner
	at org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setError(MessageExchangeImpl.java:264)
	at org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:239)
	at org.apache.servicemix.http.HttpBridgeServlet.service(HttpBridgeServlet.java:56)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:322)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:842)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.IllegalStateException: component is not owner
	at org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setStatus(MessageExchangeImpl.java:251)
	at org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:236)
	... 16 more
Avatar of Tomas Helgi Johannsson
Tomas Helgi Johannsson
Flag of Iceland image

Hi!

After some googling I found this
http://comments.gmane.org/gmane.comp.java.servicemix.user/24534

Can this be a similar issue ? That is, is the code trying to set an error or status on a object
that is in fact a null value/pointer ?

Hope this helps.

Regards,
    Tomas Helgi
ASKER CERTIFIED SOLUTION
Avatar of damarasa
damarasa

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of damarasa
damarasa

ASKER

Basically, we were looking for root cause. Once we realized the issue we could design a fix on our own in our APP rather than in Serivicemix software.