• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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

thanks
 
Ranch Hand
Posts: 336
Firefox Browser Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have tested this, and I havent any problems. The output is like say the explanation on Whizlab
 
reply
    Bookmark Topic Watch Topic
  • New Topic