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.IllegalStateExce ption: 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.IllegalStateExce ption: component is not owner when trying to set error: java.lang.IllegalStateExce ption: component is not owner
	at org.apache.servicemix.jbi. messaging. MessageExc hangeImpl. setError(M essageExch angeImpl.j ava:264)
	at org.apache.servicemix.http .processor s.Consumer Processor. process(Co nsumerProc essor.java :239)
	at org.apache.servicemix.http .HttpBridg eServlet.s ervice(Htt pBridgeSer vlet.java: 56)
	at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 690)
	at org.mortbay.jetty.servlet. ServletHol der.handle (ServletHo lder.java: 511)
	at org.mortbay.jetty.servlet. ServletHan dler.handl e(ServletH andler.jav a:390)
	at org.mortbay.jetty.handler. ContextHan dler.handl e(ContextH andler.jav a:765)
	at org.mortbay.jetty.handler. ContextHan dlerCollec tion.handl e(ContextH andlerColl ection.jav a:230)
	at org.mortbay.jetty.handler. HandlerCol lection.ha ndle(Handl erCollecti on.java:11 4)
	at org.mortbay.jetty.handler. HandlerWra pper.handl e(HandlerW rapper.jav a:152)
	at org.mortbay.jetty.Server.h andle(Serv er.java:32 2)
	at org.mortbay.jetty.HttpConn ection.han dleRequest (HttpConne ction.java :542)
	at org.mortbay.jetty.HttpConn ection$Req uestHandle r.content( HttpConnec tion.java: 938)
	at org.mortbay.jetty.HttpPars er.parseNe xt(HttpPar ser.java:8 42)
	at org.mortbay.jetty.HttpPars er.parseAv ailable(Ht tpParser.j ava:218)
	at org.mortbay.jetty.HttpConn ection.han dle(HttpCo nnection.j ava:404)
	at org.mortbay.io.nio.SelectC hannelEndP oint.run(S electChann elEndPoint .java:409)
	at org.mortbay.thread.QueuedT hreadPool$ PoolThread .run(Queue dThreadPoo l.java:582 )
Caused by: java.lang.IllegalStateExce ption: component is not owner
	at org.apache.servicemix.jbi. messaging. MessageExc hangeImpl. setStatus( MessageExc hangeImpl. java:251)
	at org.apache.servicemix.http .processor s.Consumer Processor. process(Co nsumerProc essor.java :236)
	... 16 more
The whole transaction is success, but from exchange to http-bc we got java.lang.IllegalStateExce
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.IllegalStateExce
	at org.apache.servicemix.jbi.
	at org.apache.servicemix.http
	at org.apache.servicemix.http
	at javax.servlet.http.HttpSer
	at org.mortbay.jetty.servlet.
	at org.mortbay.jetty.servlet.
	at org.mortbay.jetty.handler.
	at org.mortbay.jetty.handler.
	at org.mortbay.jetty.handler.
	at org.mortbay.jetty.handler.
	at org.mortbay.jetty.Server.h
	at org.mortbay.jetty.HttpConn
	at org.mortbay.jetty.HttpConn
	at org.mortbay.jetty.HttpPars
	at org.mortbay.jetty.HttpPars
	at org.mortbay.jetty.HttpConn
	at org.mortbay.io.nio.SelectC
	at org.mortbay.thread.QueuedT
Caused by: java.lang.IllegalStateExce
	at org.apache.servicemix.jbi.
	at org.apache.servicemix.http
	... 16 more
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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