Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 28th, 2010, 05:34 PM
Registered User
 
Join Date: Dec 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem running JSP file (HTTP error)

Hi all,

I am trying to run a JSP page but it gives me HTTP error. If anybody knows solution, plz let me know.

HTTP ERROR 500

Problem accessing /xyz.jsp. Reason:

STREAM
Caused by:

java.lang.IllegalStateException: STREAM
at org.mortbay.jetty.Response.getWriter(Response.java :616)
at org.apache.jasper.runtime.JspWriterImpl.initOut(Js pWriterImpl.java:187)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffe r(JspWriterImpl.java:180)
at org.apache.jasper.runtime.PageContextImpl.release( PageContextImpl.java:237)
at org.apache.jasper.runtime.JspFactoryImpl.internalR eleasePageContext(JspFactoryImpl.java:173)
at org.apache.jasper.runtime.JspFactoryImpl.releasePa geContext(JspFactoryImpl.java:124)
at org.apache.jsp.doseResponseImage_jsp._jspService(o rg.apache.jsp.doseResponseImage_jsp:161)
at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:389)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:486)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:380)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:502)
at org.mortbay.jetty.servlet.ServletHandler.handle(Se rvletHandler.java:389)
at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(Se ssionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(Co ntextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebA ppContext.java:417)
at org.mortbay.jetty.handler.ContextHandlerCollection .handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(Htt pConnection.java:534)
at org.mortbay.jetty.HttpConnection$RequestHandler.he aderComplete(HttpConnection.java:864)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpPa rser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnec tion.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(Selec tChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run (QueuedThreadPool.java:520)
Reply With Quote
  #2 (permalink)  
Old December 28th, 2010, 07:12 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,652
Thanks: 3
Thanked 141 Times in 140 Posts
Default

How can we tell without seeing your JSP code????

It *FEELS* like you are trying to both write out a binary image *and* write out HTML text with the same Response stream, in which case the error makes sense. But it's really impossible to tell for sure from just that traceback.
Reply With Quote
  #3 (permalink)  
Old May 12th, 2012, 06:00 AM
Registered User
Points: 21, Level: 1
Points: 21, Level: 1 Points: 21, Level: 1 Points: 21, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default yourjspfilecode

Quote:
Originally Posted by vivekshah14 View Post
Hi all,

I am trying to run a JSP page but it gives me HTTP error. If anybody knows solution, plz let me know.

HTTP ERROR 500

Problem accessing /xyz.jsp. Reason:

STREAM
Caused by:

java.lang.IllegalStateException: STREAM
at org.mortbay.jetty.Response.getWriter(Response.java :616)
at org.apache.jasper.runtime.JspWriterImpl.initOut(Js pWriterImpl.java:187)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffe r(JspWriterImpl.java:180)
at org.apache.jasper.runtime.PageContextImpl.release( PageContextImpl.java:237)
at org.apache.jasper.runtime.JspFactoryImpl.internalR eleasePageContext(JspFactoryImpl.java:173)
at org.apache.jasper.runtime.JspFactoryImpl.releasePa geContext(JspFactoryImpl.java:124)
at org.apache.jsp.doseResponseImage_jsp._jspService(o rg.apache.jsp.doseResponseImage_jsp:161)
at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:389)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:486)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:380)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:502)
at org.mortbay.jetty.servlet.ServletHandler.handle(Se rvletHandler.java:389)
at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(Se ssionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(Co ntextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebA ppContext.java:417)
at org.mortbay.jetty.handler.ContextHandlerCollection .handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(Htt pConnection.java:534)
at org.mortbay.jetty.HttpConnection$RequestHandler.he aderComplete(HttpConnection.java:864)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpPa rser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnec tion.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(Selec tChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run (QueuedThreadPool.java:520)
Hi,vivekshah

send the code ,so that I can help you.

It is difficult to judge without code .
Reply With Quote
  #4 (permalink)  
Old March 8th, 2013, 01:02 AM
Registered User
Points: 33, Level: 1
Points: 33, Level: 1 Points: 33, Level: 1 Points: 33, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2013
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try to solve the codes first !
Reply With Quote
  #5 (permalink)  
Old July 4th, 2013, 05:25 AM
Staceysmith
Guest
 
Posts: n/a
Default

there is a deal here that once you reveal the code here it will be returned to you get solved .. but the asker is looking feared of getting it copied or stolen..
Reply With Quote
  #6 (permalink)  
Old March 12th, 2016, 02:10 AM
Registered User
Points: 28, Level: 1
Points: 28, Level: 1 Points: 28, Level: 1 Points: 28, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2016
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, please make sure that u have put your Jsp files into the WebRoot and check the location and even check your Web.xml and after that run and still if its not working then post your Web.xml here. Thanks
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP Status 404 - /TomcatProject/JSPDemo.jsp = ERROR gk03 Servlets 1 October 5th, 2009 01:15 AM
error running jsp anthony111 Apache Tomcat 1 March 23rd, 2009 11:50 PM
Error Http 500 using jsp nubileras Apache Tomcat 1 July 27th, 2008 11:35 PM
JSP FILE IS NOT RUNNING asif2979 JSP Basics 1 May 30th, 2008 09:34 AM
Problem running a JSP arzamendip Pro JSP 0 September 11th, 2006 03:48 PM



All times are GMT -4. The time now is 04:01 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.