This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sangeetha Raja
Greenhorn
Posts: 28
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic