Every new request gets IllegalStateException when calling
EventsSerializeFactory.deserialize once previous request fails.
Factory should reset the XMLObjectReader in finally block so if error is
thrown, still it resets the XMLObjectReader.
2012-07-05 09:54:59,746 302617347 ERROR
[org.apache.catalina.core.ContainerBase] (http-10.199.7.20-8080-102:)
Servlet.service() for servlet TestServlet threw exception
java.lang.IllegalStateException: Reader not closed or reset
at javolution.xml.XMLObjectReader.setInput(XMLObjectReader.java:152)
at org.mobicents.ussdgateway.EventsSerializeFactory.deserialize(EventsSerializeFactory.java:64)
at com.mtnn.nwg.npd.vas.mobiussd.handler.TestServlet.doPost(TestServlet.java:167)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
Original issue reported on code.google.com by amit.bha...@gmail.com on 5 Jul 2012 at 9:02
Original issue reported on code.google.com by
amit.bha...@gmail.com
on 5 Jul 2012 at 9:02