• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Sangeetha Raja
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I tried in Tomcat5.5 and got the output given in whizlabs. Please let me know your server details.
 
Sudhaharan Siva
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

thanks
 
Milton Ochoa
Ranch Hand
Posts: 336
Firefox Browser Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tested this, and I havent any problems. The output is like say the explanation on Whizlab
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!