• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error while requesting JSP

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am getting this error while running JSP with apache cocoon 2.0.45 in Websphere 5.0. Can any one help me by giving some suggestion to clear this error....
Error 500: Server caught unhandled exception from servlet [Cocoon2]: clearBuffer(): illegal state--> stream is committed

Mohan.G
[ January 22, 2004: Message edited by: Mohan Ganesan ]
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there another exception being shown as well? This looks like the servlet container trying to redirect to an error page after an exception, except that it has already started sending the current page.
I'd start looking for that exception instead - the error you are seeing is the side effect of an error elsewhere.
Dave.
 
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could u please paste your code snippet, letz see where extactly things are going wrong.
This exception is one of those weird exceptions which sometimes gives you a totally irrelevant message.It happens that if your code throwing some other excpetions and you are not handling it, sometimes it misleads us by giving irrelevant exceptions like one you are getting.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
here is a stack trace as it was sent to me.
It doesn't look like there are any other exceptions, so it may be a configuration error. It's been about 2 years since I touched Cocoon, so I'm already out of my depth
 
himanshu patel
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you had posted Code snippet, It would have been a great help to us.
From Stack trace, I suspect the problem is with IO streams.
Did you close IO streams?
Are you forwarding to any other page? If yes, are you sending anything
to browser after redirecting? Stack trace reveals that the problem is with
clearBuffer() method? Where have you used this method in your code? Did you put this method in try{}catch{} block so that exception thrown by this method can be cought.
[ January 23, 2004: Message edited by: himanshu patel ]
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While it's not clear exactly what the issue here is, it is pretty clear that it's not a JSP issue per se. As such, I'm moving this along to the Other Java Products and Servers Forum.
 
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic