aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in WhizLab SCWCD 5.0 Mock Test Q.No:41 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in WhizLab SCWCD 5.0 Mock Test Q.No:41" Watch "Doubt in WhizLab SCWCD 5.0 Mock Test Q.No:41" New topic
Author

Doubt in WhizLab SCWCD 5.0 Mock Test Q.No:41

Sangeetha Raja
Greenhorn

Joined: Dec 18, 2008
Posts: 28
The question is on getting values from html page through servet;
Post.Html



PostTest.java



values 500 and 600 are enterd in html page and what would be the output.


I am getting the error. " java.lang.IllegalStateException: Reader already obtained"

The correct answer in the WhizLab dump is
Value obtained manually = value1=500&value2=600&AddButton=Submit+Query Value obtained again manually = null Value obtained again = null Value obtained again = null.

Can anyone of you help me to understand, what is this error "Reader already obtained" explains?
Sudhaharan Siva
Greenhorn

Joined: Jan 14, 2009
Posts: 7
Did you try this in WebSphere App Server? There is a bug in their container implementation, i don't know why this is not fixed yet. Here is the reference to that http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.waszos40.doc/html/WebSphere_Application_Server_for_z_OS/swg1PQ80846.html

If you try the same in tomcat you would see the expected result.

thanks
Shruthi Sam
Ranch Hand

Joined: Jul 09, 2008
Posts: 73
Hi,
I tried in Tomcat5.5 and got the output given in whizlabs. Please let me know your server details.
Sudhaharan Siva
Greenhorn

Joined: Jan 14, 2009
Posts: 7
Hi,

I used WebSphere Application test server V6.0 which comes with IBM RAD 6.0.1.

thanks
Milton Ochoa
Ranch Hand

Joined: Oct 23, 2007
Posts: 336

I have tested this, and I havent any problems. The output is like say the explanation on Whizlab
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt in WhizLab SCWCD 5.0 Mock Test Q.No:41