Posted on 2011-04-29
Medium Priority
Last Modified: 2012-05-11
Can any of you explain me how to resolve this issue?

I am getting the following exception in my servlet

Apr 29, 2011 11:04:47 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
      at javax.servlet.ServletRequestWrapper.isAsyncSupported(ServletRequestWrapper.java:459)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:281)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:674)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:462)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:401)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
      at com.agastha.servlet.AGPatientServlet.requestProcess(AGPatientServlet.java:286)
      at com.agastha.servlet.AGPatientServlet.doPost(AGPatientServlet.java:40)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at com.agastha.servlet.AccessControlFilter.doFilter(AccessControlFilter.java:229)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:242)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:163)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:402)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:310)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:575)
      at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1555)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
Question by:ram_trb
LVL 86

Expert Comment

ID: 35493372
What version of Tomcat?
LVL 47

Expert Comment

ID: 35493380

is error can only occur at run time if the definition of some class has incompatibly changed since the currently executing method was last compiled
LVL 47

Assisted Solution

for_yan earned 664 total points
ID: 35493394
Probably the application code is incopatible with javax.servlet library used
by Tomcat
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 47

Expert Comment

ID: 35493406

look at this line:
at com.agastha.servlet.AGPatientServlet.requestProcess(AGPatientServlet.java:286)
LVL 92

Accepted Solution

objects earned 1336 total points
ID: 35494997
you have conflicting jars installed in your aplicatioin
check the jars in your apps web-inf/lib directory, in particular check you don't have a version of servlet or jsp api included.
Once you find the conflicting jar remove it and restart your app

Author Comment

ID: 35496248

Thanks for your help, It is due to Jars conflict.

Am using Tomcat 7.0.0.

 I had both servlet.jar and servlet-api.jar, Removed servlet.jar and it works Fine now..
LVL 92

Assisted Solution

objects earned 1336 total points
ID: 35496636
thought so. good to hear you got it solved

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month15 days, 3 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question