This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Async Request Processing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Async Request Processing" Watch "Async Request Processing" New topic
Author

Async Request Processing

Anup Om
Ranch Hand

Joined: Dec 30, 2009
Posts: 62
Hello,

I am trying to prepare for the beta exam (couldn't give up the opportunity to get certified for $50 ).

I am trying an example of async request processing. Copied the code from "examples" from Tomcat7. When I try to run this servlet, I am getting an IOException:


Exception:


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.io.IOException: Socket error.
org.apache.catalina.connector.CoyoteAdapter.asyncDispatch(CoyoteAdapter.java:274)
org.apache.coyote.http11.Http11Processor.asyncDispatch(Http11Processor.java:340)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:267)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:260)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:619)



Could somebody please explain what is going on?

Moderators,

If this is not the right forum for this question, please move to the appropriate one.

Thanks for help.


SCJP6
Liviu Carausu
Ranch Hand

Joined: Oct 07, 2004
Posts: 158
Hi Anu,

I also could not give up the opportunity ....

I have tried the example that you posted on GlassFish 3.0.1 And it runs with no problems.


Greetings,

Liviu


Oracle Certified Master Java SE6 Developer(SCJD),
OCE JEE 6 JSP and Servlets Developer.
 
 
subject: Async Request Processing