noushadali / ussdgateway

Automatically exported from code.google.com/p/ussdgateway
0 stars 0 forks source link

Every new request gets IllegalStateException when calling EventsSerializeFactory.deserialize once previous request fails. #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by amit.bha...@gmail.com on 22 Aug 2012 at 9:14