HTTP Status 500 报错 [问题点数:10分,结帖人stories_]

Bbs1
本版专家分:0
结帖率 100%
Bbs7
本版专家分:14644
Bbs2
本版专家分:316
Bbs1
本版专家分:9
Bbs4
本版专家分:1233
Bbs1
本版专家分:0
Bbs2
本版专家分:293
Bbs1
本版专家分:34
http status 500 -
各位大侠,小弟这到底是怎么了?其他的jsp文件都运行正常。。怎么这个就不行了呢??rn 帮忙指导一下。。不胜感激!rnrnrnrnrnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSPrnrnGenerated servlet error:rnD:\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\test\org\apache\jsp\_1_1\index_jsp.java:6: package kjb.main does not existrnimport kjb.main.DealString;rn ^rnrnrnAn error occurred at line: 20 in the jsp file: /1.1/index.jsprnGenerated servlet error:rnD:\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\test\org\apache\jsp\_1_1\index_jsp.java:68: cannot find symbolrnsymbol : class DealStringrnlocation: class org.apache.jsp._1_1.index_jsprn DealString ds = new DealString();rn ^rnrnrnAn error occurred at line: 20 in the jsp file: /1.1/index.jsprnGenerated servlet error:rnD:\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\test\org\apache\jsp\_1_1\index_jsp.java:68: cannot find symbolrnsymbol : class DealStringrnlocation: class org.apache.jsp._1_1.index_jsprn DealString ds = new DealString();rn ^rn3 errorsrnrnrnrn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)rn org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rnrn
呼救:HTTP Status 500!!!!
IE:<em>http</em>://localhost:8080/auction0/regist.dornrntype Exception reportrnmessage rndescription The server encountered an internal error () that prevented it from fulfilling this request.rnexception rnorg.apache.jasper.JasperException: Cannot retrieve mapping for action /ProcessRegistryrn……rnroot cause rnjavax.servlet.ServletException: Cannot retrieve mapping for action /ProcessRegistryrn……rnrnrn关键代码:rn 如果您还有没有注册,请点这里注册新用户rnrn rn rn……rn其他模块都是好好的,就是不能进入注册页面,晕啊!rnrn
HTTP Status 500 求救。
最近在写大作业,JAVA新手,发布到Tomcat报<em>500</em>错误,信息如下:rntype Exception reportrnrnmessage Servlet execution threw an exceptionrnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexceptionrnrnjavax.servlet.ServletException: Servlet execution threw an exceptionrn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rnroot causernrnjava.lang.NoClassDefFoundError: org/apache/lucene/store/Directoryrn SearchEngine.SearchServlet.doGet(SearchServlet.java:47)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:622)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:729)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rnroot causernrnjava.lang.ClassNotFoundException: org.apache.lucene.store.Directoryrn org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)rn org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)rn SearchEngine.SearchServlet.doGet(SearchServlet.java:47)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:622)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:729)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rnnote The full stack trace of the root cause is available in the Apache Tomcat/8.0.39 logs.rnrnApache Tomcat/8.0.39rn求各位大神帮忙看一下,感激不尽[img=<em>http</em>s://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]
救急.HTTP Status 500 -
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Java heap spacern org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:453)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnjavax.servlet.ServletException: Java heap spacern org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)rn org.apache.jsp.index.sc_jsp._jspService(sc_jsp.java:153)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnjava.lang.OutOfMemoryError: Java heap spacernrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.17rnrn上传小文件(50多KB)时正常,大文件(超过100KB)就出现这个错误,是什么原因?谢谢!
HTTP Status 500的问题
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperExceptionrn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)rn org.apache.jsp.index_jsp._jspService(index_jsp.java:91)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn org.apache.jsp.left_jsp._jspService(left_jsp.java:182)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)rn org.apache.jsp.index_jsp._jspService(index_jsp.java:91)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.0.30rn怎么解决?rn
java HTTP Status 500
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjava.lang.NullPointerExceptionrn com.myschool.util.DB.prepareStatement(DB.java:96)rn com.myschool.teacher.dao.TeacherDAO.findTeacherByNumber(TeacherDAO.java:152)rn com.myschool.teacher.dao.TeacherDAO.login(TeacherDAO.java:219)rn com.myschool.common.servlet.LoginServlet.doPost(LoginServlet.java:79)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rn com.myschool.common.servlet.EncodingFilter.doFilter(EncodingFilter.java:23)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.rn
HTTP Status 500 - java.lang.NullPointerException
这个问题怎么解决啊,代码都是我从网上找的源代码,一直都是这个原因,求各位大神帮帮;
HTTP Status 500错误问题
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSPrnrnAn error occurred at line: 14 in the jsp file: /index.jsprnGenerated servlet error:rnsSystem.out cannot be resolved to a typernrnrnorg.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)rnorg.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)rnorg.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)rnorg.apache.jasper.compiler.Compiler.compile(Compiler.java:297)rnorg.apache.jasper.compiler.Compiler.compile(Compiler.java:276)rnorg.apache.jasper.compiler.Compiler.compile(Compiler.java:264)rnorg.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)rnorg.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)rnorg.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rnorg.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rnjavax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.15
HTTP Status 500 - Error
如题,第一次用myeclipse 就出问题了,唉、、、rnimport java.io.IOException;rnimport java.io.OutputStream;rnimport javax.servlet.GenericServlet;rnimport javax.servlet.ServletException;rnimport javax.servlet.ServletRequest;rnimport javax.servlet.ServletResponse;rnpublic class ServletDemo1 extends GenericServletrnrn @Overridern public void service(ServletRequest req, ServletResponse res)rn throws ServletException, IOException rn OutputStream out = res.getOutputStream();rn out.write("Servlet!!!!".getBytes());rn rn rn[/code]rn这是Java代码、、、rnrnrn rn ServletDemo1rn /Web_Servlet/src/com/fox/ServletDemo1rn rn rn rn ServletDemo1rn /ServletDemo1rn rn rn rn index.jsprn rnrnrn这是配置文件,好了,然后我把server启动,在IE里面访问<em>http</em>://localhost:8080/Web_Servlet/ServletDemo1就出问题了。rn首先,ie里面显示<em>500</em>错误,服务器那段抛出java.lang.ClassNotFoundException: /Web_Servlet/src/com/fox/ServletDemo1这个异常、、、rn百度了好多,实在搞不明白,求大神啊!!!!!!
HTTP Status 500 错误
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: java.sql.SQLException: Column 'grade' not found.rn org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rnrnrnroot cause rnrnjava.sql.SQLException: Column 'grade' not found.rn com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)rn com.mysql.jdbc.ResultSet.findColumn(ResultSet.java:987)rn com.mysql.jdbc.ResultSet.getString(ResultSet.java:5584)rn org.apache.commons.dbcp.DelegatingResultSet.getString(DelegatingResultSet.java:263)rn org.apache.commons.dbcp.DelegatingResultSet.getString(DelegatingResultSet.java:263)rn j2eebbs.User.getUserGrade(User.java:113)rn j2eebbs.admin.action.AdminLoginAction.execute(AdminLoginAction.java:39)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.rnrn
HTTP Status 500 - 的错误
异常如下:rnHTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: No selector attribute (cookie/header/name/parameter) was specifiedrn org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)rn org.apache.jsp.form.hello_jsp._jspService(hello_jsp.java:96)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnjavax.servlet.jsp.JspException: No selector attribute (cookie/header/name/parameter) was specifiedrn org.apache.struts.taglib.logic.PresentTag.condition(PresentTag.java:99)rn org.apache.struts.taglib.logic.PresentTag.condition(PresentTag.java:54)rn org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagBase.java:174)rn org.apache.jsp.form.hello_jsp._jspx_meth_logic_present_0(hello_jsp.java:232)rn org.apache.jsp.form.hello_jsp._jspx_meth_html_html_0(hello_jsp.java:138)rn org.apache.jsp.form.hello_jsp._jspService(hello_jsp.java:87)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rnrn不知道是什么问题呢
HTTP Status 500 - 错误?
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: An exception occurred processing JSP page /loadEmps.jsp at line 11rnrn8: pageEncoding="utf-8"%>rn9: rn10: rn11: ;rnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rnrnrnroot cause rnrnjavax.servlet.ServletException: java.lang.ClassNotFoundException: com.mysql.jdbc.Driverrn org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)rn org.apache.jsp.loadEmps_jsp._jspService(loadEmps_jsp.java:122)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rnrnrnroot cause rnrnjava.lang.ClassNotFoundException: com.mysql.jdbc.Driverrn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)rn java.lang.Class.forName0(Native Method)rn java.lang.Class.forName(Class.java:186)rn org.apache.jsp.loadEmps_jsp._jspService(loadEmps_jsp.java:68)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.rn
求助:HTTP Status 500 ???
用tomcat打开jsp网页时出现错误,显示HTTP Status <em>500</em> ,提示<em>http</em>内部错误,请高手帮助解决,多谢。
http status 500 java.lang.NullPointerException
HTTP Status <em>500</em> - java.lang.NullPointerExceptionrnrnrntype Exception reportrnrnmessage java.lang.NullPointerExceptionrnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexception rnorg.apache.jasper.JasperException: java.lang.NullPointerExceptionrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:723)rnrnrnrnroot cause rnjava.lang.NullPointerExceptionrn hospital.Patient.checkUser(Patient.java:321)rn hospital.DBOperation.(DBOperation.java:31)rn hospital.Patient.(Patient.java:29)rn org.apache.jsp.patient.login_jsp._jspService(login_jsp.java:134)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:723)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:723)rnrnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.41 logs.rnrnrnApache Tomcat/6.0.41rnrnrnrnrnrnrn提到的错误地方的代码rnrnrnrnpublic static Connection getConnection()rn tryrn if(conn == null)rn Class.forName("com.mysql.jdbc.Driver");rn conn=DriverManager.getConnection("jdbc:mysql://pc-win8/hospital","root","1234");rn Debug.log("Connecion created.");rn rnrn elsern Statement stmt=conn.createStatement();rn ResultSet rs=stmt.executeQuery("SELECT COUNT(*) FROM administrator");rn if(rs==null||!rs.next())rn Class.forName("com.mysql.jdbc.Driver");rn conn=DriverManager.getConnection("jdbc:mysql://pc-win8/hospital","root","1234");rn Debug.log("Connecion re-created.");rn rnrn rn rn catch(Exception ex)rn Debug.log(Debug.getExceptionMsg(ex));rn rn finallyrn return conn;rn rn rnrnrnrnpublic class Patientrn extends DBOperationrn public static final String NAME="Name";rn public static final String SECTION="Section";rn public static final String ANONYMOUS="anonymous";rnrn private int PID;rnrn /**rn * 构造器rn *rn * 参数:rn * id-用户名rn */rn public Patient(String id)rn throws InvalidUserExceptionrn super(id);rn rnrnrnrnrnprotected void checkUser(String id)rn throws InvalidUserExceptionrn conn=DBConnection.getConnection();rnrn strSQL="SELECT Username FROM patient WHERE Username='" + id + "'";rnrn if(id.equals(Patient.ANONYMOUS))rn return;rn tryrn stmt=conn.createStatement();rn rs=stmt.executeQuery(strSQL);rnrn if(!rs.next())rn throw new InvalidUserException();rn rn catch(SQLException sqle)rn Debug.log(Debug.getExceptionMsg(sqle));rn rn rn
HTTP Status 500 什么情况
初学jsp,碰到问题了,帮帮忙看下吧rnrnHTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: /ticket_list.jsp(5,0) /public.jsp(12,3) Unterminated <%! tagrn org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)rn org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)rn org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)rn org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:339)rn org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372)rn org.apache.jasper.compiler.Parser.parseDirective(Parser.java:484)rn org.apache.jasper.compiler.Parser.parseElements(Parser.java:1556)rn org.apache.jasper.compiler.Parser.parse(Parser.java:126)rn org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)rn org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.rnrn
HTTP Status 500 - 问题
各位jsp高手帮帮忙 我刚开始学jsp 请问: HTTP Status <em>500</em> - ?问题如何解决?? 出现问题的页面提示如下: rnrnrnrnHTTP Status <em>500</em> - rnrn-------------------------------------------------------------------------------- rnrntype Exception report rnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request. rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSP rnrnNo Java compiler was found to compile the generated source for the JSP. rnThis can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK rnto the common/lib directory of the Tomcat server, followed by a Tomcat restart. rnIf using an alternate Java compiler, please check its installation and access path. rnrnorg.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127) rnorg.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351) rnorg.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415) rnorg.apache.jasper.compiler.Compiler.compile(Compiler.java:458) rnorg.apache.jasper.compiler.Compiler.compile(Compiler.java:439) rnorg.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552) rnorg.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) rnorg.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) rnorg.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) rnjavax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:856) rnrnrnnote The full stack trace of the root cause is available in the Tomcat logs. rnrnrn-------------------------------------------------------------------------------- rnrnApache Tomcat/5.5.20,mysql-4.1.21,mysql-connector-java-3.1.14,j2sdk-1_4_2_02这是在测试jsp网页时出现的问题。请问该问题如何解决。
HTTP Status 500 - 很急!!
HTTP Status <em>500</em> -rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjava.lang.NullPointerExceptionrn com.dj.model.Shop.addShop(Shop.java:108)rn com.dj.servlet.ShopS.addShop(ShopS.java:92)rn com.dj.servlet.ShopS.doGet(ShopS.java:45)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:617)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rnrnrnshop.java:rnrnpackage com.dj.model;rnrnimport java.sql.Connection;rnimport java.sql.PreparedStatement;rnimport java.sql.ResultSet;rnimport java.sql.SQLException;rnimport java.util.ArrayList;rnimport java.util.List;rnrnpublic class Shop rnrn private int id;rn private String name;rn private String add;rn private String tel;rn rn Connection conn;rn rn PreparedStatement pre;rn rn rnrn public Shop() rn super();rn // TODO Auto-generated constructor stubrn rnrn public Shop(int id) rn super();rn // TODO Auto-generated constructor stubrn this.id = id;rn conn = new Conn().getConn();rn rn rn public Shop(String name) rn super();rn this.name = name;rn conn = new Conn().getConn();rn rn rn public Shop(String sname, String saddress, String sphone) rn super();rn this.name = sname;rn this.add = saddress;rn this.tel = sphone;rn rnrn public Shop(int id, String name, String add, String tel) rn super();rn this.id = id;rn this.name = name;rn this.add = add;rn this.tel = tel;rn rnrn public String getAdd() rn return add;rn rnrn public void setAdd(String add) rn this.add = add;rn rnrn public int getId() rn return id;rn rnrn public void setId(int id) rn this.id = id;rn rnrn public String getName() rn return name;rn rnrn public void setName(String name) rn this.name = name;rn rnrn public String getTel() rn return tel;rn rnrn public void setTel(String tel) rn this.tel = tel;rn rn rn rn public List getAllShops() //List!!!!!!!!!!!!!!!!!!!!!!rn List shopList=new ArrayList(); //list数组,存放查询出来的用户信息。通过一个while循环,将所有的用户一一超找出来并且存入数组rn try rn pre = conn.prepareStatement("select fsid,fsname,fsaddress,fsphone from fflowershop order by fsaddress");rn ResultSet rs = pre.executeQuery();rn rn while(rs.next())rn Shop shop=new Shop(rs.getInt(1),rs.getString(2),rs.getString(3),rs.getString(4));rn shopList.add(shop);rn rn catch (SQLException e) rn // TODO 自动生成 catch 块rn e.printStackTrace();rn rn return shopList;rn rn rn public boolean addShop()rn try rn pre = conn.prepareStatement("insert into fflowershop values(10,?,?,?)"); rn //sspre.setInt(1, id);rn pre.setString(1, name);rn pre.setString(2, add);rn pre.setString(3, tel);rn int rs = pre.executeUpdate(); //若成功了就返回1,没有成功就是0rn if(rs>0)rn return true;rn rn catch (SQLException e) rn // TODO 自动生成 catch 块rn e.printStackTrace();rn rn return false;rn rn rnrnrnrnshops.java:rnrnpackage com.dj.servlet;rnrnimport java.io.IOException;rnimport java.io.PrintWriter;rnimport java.util.List;rnrnimport javax.servlet.ServletException;rnimport javax.servlet.<em>http</em>.HttpServlet;rnimport javax.servlet.<em>http</em>.HttpServletRequest;rnimport javax.servlet.<em>http</em>.HttpServletResponse;rnrnimport com.dj.model.Shop;rnrnpublic class ShopS extends HttpServlet rnrnrn private HttpServletRequest request;rnrn public ShopS() rn super();rn rnrn rn public void destroy() rn super.destroy(); // Just puts "destroy" string in logrn // Put your code herern rnrn rn public void doGet(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rnrn response.setContentType("text/html");rn response.setCharacterEncoding("gb2312");rn PrintWriter out = response.getWriter();rn this.request = request;rn rn String sname = request.getParameter("shopname");rn String saddress = request.getParameter("shopadd");rn String sphone = request.getParameter("shopphone");rn int state = Integer.parseInt(request.getParameter("state"));rn rn switch (state) rn case 1: //添加店铺rn out.println(addShop(sname,saddress,sphone));rnrn break;rn case 2: //查询所有用户rn List list = getShoplist(); //在此生成list,可rn if(getShoplist().size()==0) out.println("当前没有用户");rn elsern request.getSession().setAttribute("shopList", list);rn response.sendRedirect("flowershop/shopList.jsp");rn rn break;rn default:rn break;rn rn rn rn out.flush();rn out.close();rn rnrn rn public void doPost(HttpServletRequest request, HttpServletResponse response)rn throws ServletException, IOException rnrn response.setContentType("text/html");rn PrintWriter out = response.getWriter();rn outrn .println("");rn out.println("");rn out.println(" A Servlet");rn out.println(" ");rn out.print(" This is ");rn out.print(this.getClass());rn out.println(", using the POST method");rn out.println(" ");rn out.println("");rn out.flush();rn out.close();rn rnrn rn public void init() throws ServletException rn // Put your code herern rn rn public String addShop(String sname,String saddress,String sphone) rn if(new Shop(sname,saddress,sphone).addShop())rn //request.getSession().setAttribute("uname", name);rn return "添加成功!返回店铺管理页面。";rn elsern return "添加失败!返回店铺管理页面。";rn rn rn rn public List getShoplist() rn return new Shop().getAllShops(); rnrnrnrnrnshop的结构:rnrnSQL> desc fflowershop;rn 名称 是否为空? 类型rn ----------------------------------------- -------- ---------------rn FSID NOT NULL NUMBERrn FSNAME VARCHAR2(20)rn FSADDRESS VARCHAR2(20)rn FSPHONE VARCHAR2(20)
JSP的HTTP Status 500
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSPrn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)rn org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnUnable to find a javac compiler;rncom.sun.tools.javac.Main is not on the classpath.rnPerhaps JAVA_HOME does not point to the JDKrn org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)rn org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)rn org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)rn org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rnrn跪求高手解决,谢谢哈……
[求助]HTTP Status 500 - ??
为什么错误??rn代码如下: rnrnrnrnrnrnrnrnrn rn 核对是否正确rnrnrnrnrnrn rnrnrnrnrnrnrnrnrnrn rnrnrnrnrnrnHTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperExceptionrn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:346)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:853)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn org.apache.jsp.star_005fcheck_jsp._jspService(star_005fcheck_jsp.java:105)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:853)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:853)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.25 logs.rnrnrn--------------------------------------------------------------------------------rn
HTTP Status 500 - 错误
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: java.lang.NullPointerExceptionrn org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn nm.User.checkUser(User.java:77)rn nm.user.action.UserLoginAction.execute(UserLoginAction.java:39)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/6.0.18
久违的“HTTP Status 500
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: /qlc7/qlc/shoppinglist.jsp(8,0) The value for the useBean class attribute myplug.shoppingCar is invalid.rn org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)rn org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)rn org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)rn org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1203)rn org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1160)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:489)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)rn org.apache.jasper.compiler.Generator.generate(Generator.java:3365)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/6.0.18rnrnrn第一次出现这种错误,在别的机子上完全没问题,我自己的机子也一直用得好好的,配置方面应该没问题吧?rn
HTTP Status 500 - 求解
[code=Java]rnHTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperExceptionrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn org.apache.jsp.login_jsp._jspService(login_jsp.java:72)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.rn[/code]
struts HTTP Status 500 -
学习struts时,遇到这个错误,求大家帮忙解答。rn源代码我贴在我的博客上了:rn[url=<em>http</em>://blog.csdn.net/cyber_telecaster/article/details/8512422][/url]rn谢谢!
jsp访问报错HTTP Status 500
HTTP Status <em>500</em> - org.apache.jasper.JasperException: java.lang.NullPointerExceptionntype Exception reportnnmessage org.apache.jasper.JasperException: java.lang.NullPointerExceptionnndescription The server encountered an internal error that prevented it from fulfilling this request.nnexceptionnnorg.apache.jasper.JasperException: org.apache.jasper.JasperException: java.lang.NullPointerExceptionn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)n org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)n org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)n org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)n javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:723)nroot causennorg.apache.jasper.JasperException: java.lang.NullPointerExceptionn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)n org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)n org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)n org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)n javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:723)n org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)n org.apache.jsp.index_jsp._jspService(index_jsp.java:129)n org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)n javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:723)n org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)n org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)n org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)n javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:723)nroot causennjava.lang.NullPointerExceptionn com.frameworkset.common.poolman.util.SQLManager.getDBAdapter(SQLManager.java:337)n org.frameworkset.persitent.util.SQLUtil.getSQL(SQLUtil.java:174)n com.frameworkset.common.poolman.ConfigSQLExecutor.getSql(ConfigSQLExecutor.java:56)n com.frameworkset.common.poolman.ConfigSQLExecutor.queryListBeanWithDBName(ConfigSQLExecutor.java:528)n com.frameworkset.common.poolman.ConfigSQLExecutor.queryListBean(ConfigSQLExecutor.java:398)n com.runsi.system.adverts.dao.impl.AdvertDaoImpl.showfrontadvt(AdvertDaoImpl.java:82)n com.runsi.system.adverts.service.impl.AdvertServiceImpl.showfrontadvt(AdvertServiceImpl.java:80)n org.apache.jsp.header_jsp._jspService(header_jsp.java:142)n org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)n javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:723)n org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)n org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)n org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)n javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:723)n org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)n org.apache.jsp.index_jsp._jspService(index_jsp.java:129)n org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)n javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:723)n org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)n org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)n org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)n javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:723)nnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.41 logs.nn百度 式了几种方法都不行
关于HTTP Status 500 - 报错问题
下面是我运行是报的错什么意思啊?rn怎么改我的错误让它能编译通过?我JSP 的代码在最后,帮忙看看吧,有加分,谢谢!rnorg.apache.jasper.JasperException: Unable to compile class for JSPrnrnAn error occurred at line: 111 in the jsp file: /WebContent/search.jsprnGenerated servlet error:rnSearchResultBean cannot be resolved to a typernrnAn error occurred at line: 111 in the jsp file: /WebContent/search.jsprnGenerated servlet error:rnSearchResultBean cannot be resolved to a typernrnrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnorg.apache.jasper.JasperException: Unable to compile class for JSPrnrnAn error occurred at line: 111 in the jsp file: /WebContent/search.jsprnGenerated servlet error:rnSearchResultBean cannot be resolved to a typernrnAn error occurred at line: 111 in the jsp file: /WebContent/search.jsprnGenerated servlet error:rnSearchResultBean cannot be resolved to a typernrnrn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)rn org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnJSP 部分代码rnrnrn rn rn rn rn Lucene Search Engine Demo Clientrn rn rn rn rn rn rn Lucene Search Engine Demo Clientrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn < resultCount; i++)rn SearchResultBean resultBean = (SearchResultBean)searchResult.get(i);rn String title = resultBean.getHtmlTitle();rn String path = resultBean.getHtmlPath();rn %>rn rn rn rn rn rn rn rn rn rn rn rnrnrn
http status 500
HTTP Status <em>500</em> - Servlet.init() for servlet lmsstudent threw exceptionrnrntype Exception reportrnrnmessage Servlet.init() for servlet lmsstudent threw exceptionrnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexceptionrnrnjavax.servlet.ServletException: Servlet.init() for servlet lmsstudent threw exceptionrn org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)rn org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)rn org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)rn org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn org.apache.coyote.<em>http</em>11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)rn org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)rn org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)rn java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn java.lang.Thread.run(Thread.java:722)
HTTP Status 500啦!
本人菜啊,看不懂啊.....[img=<em>http</em>s://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]rnrnrnHTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Exception in JSP: /guest_do.jsp:18rnrn15: String pwd=request.getParameter("guest_pwd");rn16: %>rn17: <%rn18: if (rand.equals(input)) rn19: int isSave=gg.addMessage(gu,pwd);rn20: if(isSave==1)rn21: rnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:729)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn org.apache.jsp.guest_005fdo_jsp._jspService(guest_005fdo_jsp.java:84)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:729)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:729)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.28 logs.rnrnrnrn
HTTP status 500 错误
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: An exception occurred processing JSP page /chooseCourse.jsp at line 123rnrn120: rs1=stmt.executeQuery(sql1);rn121: rs2=stmt.executeQuery(sql2);rn122: int number;rn123: number=rs1.getInt(1);rn124: for ( int i=0; i< number; i++ )rn125: rn126: if(rs2.next())rnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rnrnrnroot cause rnrnjavax.servlet.ServletException: com.microsoft.sqlserver.jdbc.SQLServerException: 结果集已关闭。rn org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)rn org.apache.jsp.chooseCourse_jsp._jspService(chooseCourse_jsp.java:281)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rnrnrnroot cause rnrncom.microsoft.sqlserver.jdbc.SQLServerException: 结果集已关闭。rn com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)rn com.microsoft.sqlserver.jdbc.SQLServerResultSet.checkClosed(Unknown Source)rn com.microsoft.sqlserver.jdbc.SQLServerResultSet.getterGetColumn(Unknown Source)rn com.microsoft.sqlserver.jdbc.SQLServerResultSet.getInt(Unknown Source)rn org.apache.jsp.chooseCourse_jsp._jspService(chooseCourse_jsp.java:183)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.rnrn
HTTP Status 500 -错误
HTTP Status <em>500</em> - このリクエストを処理するために設定されたコンテキストがありませんrnrntype Status reportrnrnmessage このリクエストを処理するために設定されたコンテキストがありませんrnrndescription The server encountered an internal error (このリクエストを処理するために設定されたコンテキストがありません) that prevented it from fulfilling this request.rn这个问题怎么解决呀,谢谢各位关注.在线等.
帮帮忙 HTTP Status 500 -
[code=Java]rnHTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperExceptionrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn org.apache.jsp.login_jsp._jspService(login_jsp.java:72)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.rnrn[/code]rnrnrnrnrnrn[color=#FF0000]login_jsp.java[/color]rn[code=Java]package org.apache.jsp;rnrnimport javax.servlet.*;rnimport javax.servlet.<em>http</em>.*;rnimport javax.servlet.jsp.*;rnimport java.io.*;rnimport java.sql.*;rnrnpublic final class login_jsp extends org.apache.jasper.runtime.HttpJspBasern implements org.apache.jasper.runtime.JspSourceDependent rnrn private static java.util.List _jspx_dependants;rnrn public Object getDependants() rn return _jspx_dependants;rn rnrn public void _jspService(HttpServletRequest request, HttpServletResponse response)rn throws java.io.IOException, ServletException rnrn JspFactory _jspxFactory = null;rn PageContext pageContext = null;rn HttpSession session = null;rn ServletContext application = null;rn ServletConfig config = null;rn JspWriter out = null;rn Object page = this;rn JspWriter _jspx_out = null;rn PageContext _jspx_page_context = null;rnrnrn try rn _jspxFactory = JspFactory.getDefaultFactory();rn response.setContentType("text/html;charset=gb2312");rn pageContext = _jspxFactory.getPageContext(this, request, response,rn null, true, 8192, true);rn _jspx_page_context = pageContext;rn application = pageContext.getServletContext();rn config = pageContext.getServletConfig();rn session = pageContext.getSession();rn out = pageContext.getOut();rn _jspx_out = out;rnrn out.write('\n');rn out.write('\n');rn com.mingri.dbconn.DBResult rst = null;rn synchronized (_jspx_page_context) rn rst = (com.mingri.dbconn.DBResult) _jspx_page_context.getAttribute("rst", PageContext.PAGE_SCOPE);rn if (rst == null)rn rst = new com.mingri.dbconn.DBResult();rn _jspx_page_context.setAttribute("rst", rst, PageContext.PAGE_SCOPE);rn rn rn out.write('\n');rn com.mingri.showtime.ShowTime calendar = null;rn synchronized (_jspx_page_context) rn calendar = (com.mingri.showtime.ShowTime) _jspx_page_context.getAttribute("calendar", PageContext.PAGE_SCOPE);rn if (calendar == null)rn calendar = new com.mingri.showtime.ShowTime();rn _jspx_page_context.setAttribute("calendar", calendar, PageContext.PAGE_SCOPE);rn rn rn out.write('\n');rnrn request.setCharacterEncoding("gb2312");//对请求进行统一编码,能正常接受到中文rn String username=request.getParameter("username"); //接收表单中的username属性rn String password=request.getParameter("password");//接收表单中的password属性rn String str="select * from tb_user where "+rn "username='"+username+"' and password='"+password+"'";rn ResultSet rs=rst.getResult(str);//执行SQL语句获得结果集对象rn session.setAttribute("isLog",new String("0"));//判断用户是否登陆,当isLog的属性为0时,说明用户并没有登陆rn if(!rs.next())//结果集没有找到所要查找的行rn rn out.println(" ");rn rn elsern rn session.setAttribute("username",rs.getString("username"));//保存登录信息到session对象中rn session.setAttribute("password",rs.getString("password"));rn session.setAttribute("isLog",new String("1"));//将isLog属性设置为1rn //获得用户上次登陆系统的时间rn session.setAttribute("userLastLogTime",rs.getString("userLastLogTime"));rn String strsql=calendar.getDate();rn int id=rs.getInt("ID");rn //将该用户本次登陆系统的时间在用户信息表中更新rn String strUpdate="update tb_user set userLastLogTime='"+strsql+"' where ID="+id+"";rn rst.getResult(strUpdate);//执行SQL语句rn response.sendRedirect("chat.jsp");//登陆成功后转到系统主页面rn rnrn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn out.write("\n");rn catch (Throwable t) rn if (!(t instanceof SkipPageException))rn out = _jspx_out;rn if (out != null && out.getBufferSize() != 0)rn out.clearBuffer();rn if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);rn rn finally rn if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);rn rn rnrn[/code]rn
急急---HTTP Status 500 -
环境JSP+Tomcat/5.0.27出现如下错误信息:rnrnHTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: /fenye2.jsp(2,0) The value for the useBean class attribute javaBean.dbBean is invalid.rn org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)rn org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)rn org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)rn org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1225)rn org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:456)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)rn org.apache.jasper.compiler.Generator.generate(Generator.java:3269)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.rnrnJAVABEAN的目录如下:rn--jspBeanrn ------fenye2.jsprn ------WEB_INFrn ------classesrn -------javaBeanrn ---dbBean.classrnrn
HTTP Status 500 - java.lang.NoClassDefFoundError
<em>报错</em>是:HTTP Status <em>500</em> - java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImplrnrntype Exception reportrnrnmessage java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImplrnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImplrn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:728)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImplrn org.apache.jasper.compiler.Validator$ValidateVisitor.prepareExpression(Validator.java:1568)rn org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:747)rn org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:954)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)rn org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428)rn org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2434)rn org.apache.jasper.compiler.Node$Root.accept(Node.java:475)rn org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)rn org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1795)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:217)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:728)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/7.0.39 logs.rnrn请问问题出在哪儿了。rnrn哦,我的class包el-api已经复制到jre里面去了
jsp无法运行,报错HTTP Status 500
别人的项目在在Myeclipse中编译,发布到tomcat 6。键入地址<em>http</em>://localhost:8080/XXX/的时候出现错误rn在另外的帖子:<em>http</em>://topic.csdn.net/u/20080405/05/16f8c3a0-8410-4c36-b8f7-773ec3f679ac.html?965601731rn看到类似内容照搬发现找不到tomcat/shared/lib 目录只有tomcat/lib 目录,复制el-api.jar, el-ri.jar错误依然。。。rn错误内容如下:rnHTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/el/ELResolverrn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnjava.lang.NoClassDefFoundError: javax/el/ELResolverrn java.lang.ClassLoader.defineClass1(Native Method)rn java.lang.ClassLoader.defineClass(Unknown Source)rn java.security.SecureClassLoader.defineClass(Unknown Source)rn java.net.URLClassLoader.defineClass(Unknown Source)rn java.net.URLClassLoader.access$100(Unknown Source)rn java.net.URLClassLoader$1.run(Unknown Source)rn java.security.AccessController.doPrivileged(Native Method)rn java.net.URLClassLoader.findClass(Unknown Source)rn java.lang.ClassLoader.loadClass(Unknown Source)rn sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rn java.lang.ClassLoader.loadClass(Unknown Source)rn java.lang.ClassLoader.loadClass(Unknown Source)rn java.lang.ClassLoader.loadClassInternal(Unknown Source)rn org.apache.jasper.runtime.JspFactoryImpl.getJspApplicationContext(JspFactoryImpl.java:200)rn org.apache.jsp.index_jsp._jspInit(index_jsp.java:24)rn org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)rn org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/6.0.16
遇到HTTP Status 500 - 问题
description The server encountered an internal error () that prevented it from fulfilling this request.rnexception rnjava.lang.NullPointerExceptionrn bookp.Datebase.queryboolen(Datebase.java:79)rn Servlet.Tianjia.doPost(Tianjia.java:50)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:717)rnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.24 logs.rnrnrnrnbookp.Datebase.queryboolen(Datebase.java:79)那个空指针怎么解决啊 在下面红色代码段rnrnpackage bookp;rnrnimport java.io.InputStream;rnimport java.sql.Connection;rnimport java.sql.DriverManager;rnimport java.sql.PreparedStatement;rnimport java.sql.ResultSet;rnimport java.sql.SQLException;rnimport java.sql.Statement;rnimport java.util.Properties;rnrnrnpublic class Datebase rn String dbDriver = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; // 连接sql数据库的方法rn String url = "";rn String username = "";rn String password = "";rn Connection dbcon=null;rn Statement stmt=null;rn ResultSet rs=null;rn PreparedStatement statement=null;rn private static String FILE_PATH_NAME = "/database.properties";//数据库路径名rnrn /*rn * 初始化操作,包括给变量赋初值和连接数据库rn */rn public Datebase() rn try rn InputStream in = getClass().getResourceAsStream(FILE_PATH_NAME);rn Properties props = new Properties();rn props.load(in);rn in.close();rn System.out.println(getClass().getResourceAsStream(FILE_PATH_NAME));rn username = props.getProperty("username");rn password = props.getProperty("password");rn url = "jdbc:sqlserver://localhost:" + props.getProperty("port")rn + ";DatabaseName=library";rn Class.forName(dbDriver); // 声明所调用的类包rn dbcon = DriverManager.getConnection(url, username, password); // 获得数据库的连接对象rn catch (Exception e) rn e.printStackTrace();rn rn rn rn /*rn * 对数据库执行插入、删除、更新 等操作,返回一个布尔值。rn */rn public boolean exeSql(String strSql) rn try rn stmt = dbcon.createStatement(); //由Connection对象创建Statement对象。rn stmt.executeUpdate(strSql); //可以返回受影响的行数。rn return true;rn catch (Exception e) rn System.out.println(e.toString());rn return false;rn rn rn /*rn * 执行查询操作,返回一个ResultSet类型的对象。rn */rn public ResultSet exeSqlQuery(String strSql) rn try rn stmt = dbcon.createStatement();rn rs = stmt.executeQuery(strSql); //返回单个ResultSet对象即查询结果集。rn catch (SQLException e) rn System.out.println(e.toString());rn rs = null;rn rn return rs;rn rn rn /*rn *执行查询,返回boolean型。rn */rn [color=#FF0000]public boolean queryboolen(String strSql)rn boolean bb=false;rn tryrn stmt=dbcon.createStatement();rn rs=stmt.executeQuery(strSql);rn if(rs.next())rn bb=true;rn rn catch(SQLException e)rn System.out.println(e.toString());rn bb=false;rn rn return bb;rn rn [/color]rn /*rn * 使用预编译语句,由Connection对象创建PrepareStatement对象。rn * 然后执行sql语句中的每一个问号【从1开始编号】,比如statement.setString(1,username);rn * 然后执行ResultSet rest=statement.executeQuery() 来执行sql语句;即返回的是ResultSet查询结果集,rn * 然后可用while(rest.next())来列出,比如rest。getString("name")等。rn * 如果查询语句没有问号的话直接执行PrepareStatement对象statement的executeQuery()返回ResultSet结果集。rn * rn * 如果是插入语句也是先设置预处理语句参数即问号。然后执行statement.executeUpdate()执行sql语句。rn */rn public PreparedStatement exeprepared(String strSql)rn rn try rn statement=dbcon.prepareStatement(strSql); //只是返回PrepareStatement对象,不是结果集。rn catch (SQLException e) rnrn e.printStackTrace();rn rn return statement;rn rn rn /*rn * 返回满足条件的记录条数【此法是通用方法】,要求sql语句必须是:countnumrn * select count(user_id) countnum from userinfo where education='硕士'rn * */rn public int get_number(String sql)rn int num=0;rn tryrn rn stmt=dbcon.createStatement();rn rs=stmt.executeQuery(sql);rn if(rs.next())rn num=rs.getInt("countnum");rn rn rs.close();rn catch(SQLException e)rn System.out.println(e.toString());rn rn return num; rn rnrn rnrn/*rn *关闭数据库连接rn */rn public void close()rn rn tryrn if(rs!=null)rn rs.close();rn if(stmt!=null)rn stmt.close();rn if(dbcon!=null)rn dbcon.close();rn catch(Exception e)rn rn System.out.println(e.getMessage());rn rn rnrn rn public static void main(String[] args) rn ResultSet rs1;rn Datebase db=new Datebase();rn rs1=db.exeSqlQuery("select * from userinfo");rn try rn while(rs1.next())rn rn System.out.println(rs1.getString(2)); rn rn catch (Exception e) rn e.printStackTrace();rn rn db.close(); rn rnrnrnrn
HTTP Status 500 怎么解决
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletExceptionrn org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn com.quotation.util.EncodingFilter.doFilter(EncodingFilter.java:28)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn com.quotation.daoimp.UserLoginDaoImp.findUser(UserLoginDaoImp.java:22)rn com.quotation.serviceimp.UserLoginImp.findUser(UserLoginImp.java:18)rn com.quotation.action.LoginAction.one(LoginAction.java:31)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:585)rn org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)rn org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)rn org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:169)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn com.quotation.util.EncodingFilter.doFilter(EncodingFilter.java:28)rnrnrnJAVA页面的代码rnpublic class UserLoginDaoImp implements UserLoginDao rn List list=null;rn public List findUser(String name, String password) rn Session session=HibernateSessionFactory.getSession();rn Transaction tx=null;rn String hql=null;rn try rn hql="from User as a where a.YONGHU_YHMC='"+name+"' and a.YONGHU_YHMM='"+password+"'";rn tx=session.beginTransaction();rn list=session.createQuery(hql).list();rn tx.commit();rn return list;rn catch (HibernateException e) rn e.printStackTrace();rn if(tx!=null) tx.rollback();rn return null;rn finallyrn HibernateSessionFactory.closeSession();rn rn rnrn貌似是Session session=HibernateSessionFactory.getSession();这一句出了问题session取不到值rnrn我是一个新手,这是别人写的代码,先还可以运行的,我也没有改代码,就调试了之后就不知道怎么回事不能运行了rn谢谢那位大哥帮帮小弟吧,小弟在这跟你磕头了
500 - " jsp+tomcat5.0.28+jdk1.4.2+sql server">"HTTP Status 500 - " jsp+tomcat5.0.28+jdk1.4.2+sql server
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.rn org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)rn org.apache.jsp.test_jsp._jspService(test_jsp.java:65)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnjava.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.rn com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)rn com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)rn com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)rn com.microsoft.jdbc.sqlserver.tds.TDSConnection.(Unknown Source)rn com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)rn com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)rn com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)rn com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)rn java.sql.DriverManager.getConnection(DriverManager.java:512)rn java.sql.DriverManager.getConnection(DriverManager.java:171)rn org.apache.jsp.test_jsp._jspService(test_jsp.java:54)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrn请高手指教rnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rnrn
HTTP Status 500 -错误提示 怎么办??
在eclips+tomcat下运行JSP文件出现HTTP Status <em>500</em> -错误提示!没有连接数据库的!rn如何解决?请教各位大哥???
HTTP Status 500 - 错误求解
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessorrn org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnjava.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessorrn org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:146)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnjsp代码如下:rnrnrn JSP Expressionsrn rn rn rnrnrnrn JSP Expressionsrn rn Current time: rn Your hostname: rn Your session ID: rn The testParam form parameter:rn rnrnrnrnrn
HTTP Status 500 是什么错误?
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: An exception occurred processing JSP page /login_in.jsp at line 10rnrn7: rn8: ;rn12: Sql.dbconnection();rn13: Sql.dbhandle(sql, 1);rnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnjava.lang.NumberFormatException: nullrn java.lang.Integer.parseInt(Integer.java:415)rn java.lang.Integer.parseInt(Integer.java:497)rn org.apache.jsp.login_005fin_jsp._jspService(login_005fin_jsp.java:140)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/6.0.13rnrn各位大侠如何解救啊?
跪求帮忙HTTP Status 500 -
2012-10-18 16:58:06 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\myeclipse\bin;D:\tomcat 6.0\binrn2012-10-18 16:58:07 org.apache.coyote.<em>http</em>11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on <em>http</em>-8080rn2012-10-18 16:58:07 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1309 msrn2012-10-18 16:58:07 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2012-10-18 16:58:07 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.35rn2012-10-18 16:58:07 org.apache.catalina.startup.HostConfig deployDescriptorrn信息: Deploying configuration descriptor manager.xmlrn2012-10-18 16:58:08 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory docsrn2012-10-18 16:58:08 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory JSPExamplern2012-10-18 16:58:08 org.apache.catalina.loader.WebappClassLoader validateJarFilern信息: validateJarFile(D:\tomcat 6.0\webapps\JSPExample\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.classrn2012-10-18 16:58:08 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory ROOTrn2012-10-18 16:58:08 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory strutsrn2012-10-18 16:58:10 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-default.xml]rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Unable to locate configuration files of the name struts-plugin.xml, skippingrn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-plugin.xml]rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Unable to locate configuration files of the name struts.xml, skippingrn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts.xml]rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.FileManager)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)rn2012-10-18 16:58:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)rn2012-10-18 16:58:11 org.apache.coyote.<em>http</em>11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on <em>http</em>-8080rn2012-10-18 16:58:11 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2012-10-18 16:58:11 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/44 config=nullrn2012-10-18 16:58:12 org.apache.catalina.startup.Catalina startrn信息: Server startup in 4710 msrn2012-10-18 17:04:02 org.apache.catalina.startup.HostConfig checkResourcesrn信息: Reloading context [/struts]rn2012-10-18 17:04:05 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-default.xml]rn2012-10-18 17:04:06 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Unable to locate configuration files of the name struts-plugin.xml, skippingrn2012-10-18 17:04:06 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-plugin.xml]rn2012-10-18 17:04:06 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Unable to locate configuration files of the name struts.xml, skippingrn2012-10-18 17:04:06 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts.xml]rn2012-10-18 17:04:06 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)rn2012-10-18 17:04:06 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.FileManager)rn2012-10-18 17:04:06 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)rn2012-10-18 17:04:06 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)rn2012-10-18 17:04:06 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)rn2012-10-18 17:04:06 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)rn2012-10-18 17:04:06 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)rn2012-10-18 17:04:06 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)rnrn[color=#FF00FF]rn一下是WEB.XML[/color]rnrnrn rn struts 2rn org.apache.struts2.dispatcher.FilterDispatcherrn rn rn struts 2rn /*rn rnrnrnrn[color=#FF00FF]以下是STRUTS.XML[/color]rnrnrnrn rn rn /welcome.jsprn /hello.jsprn rn rn rnrn刚开始学,各种错误,,都快崩溃了,拜托各位哥哥姐姐帮个忙,小妹在此谢过了
HTTP Status 500 - java.lang.ClassNotFoundException: org.apache.jsp.register_jsp
求助啊!!!![img=<em>http</em>s://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/83.gif][/img]rnrnrn截图:[img=<em>http</em>s://img-bbs.csdn.net/upload/201308/09/1376031188_36350.jpg][/img]rnrn刷新后又变成这样:[img=<em>http</em>s://img-bbs.csdn.net/upload/201308/09/1376031219_261214.jpg][/img]rnrnrn
Eclipse+Tomcat HTTP Status 500问题
问题描述:rn在jsp页面中用到javabean 如下:rnrnrn引用的类[color=#0000FF]SparqlGeneration[/color]中用到了jena的相关库,在调试时提示如下:rnrnHTTP Status <em>500</em> - javax.servlet.ServletException: java.lang.NoClassDefFoundError: [color=#0000FF]com/hp/hpl/jena/rdf/model/Model[/color]rn--------------------------------------------------------------------------------rntype Exception reportrnrnmessage javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/hp/hpl/jena/rdf/model/Modelrnrndescription The server encountered an internal error (javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/hp/hpl/jena/rdf/model/Model) that prevented it from fulfilling this request.rnrn但是在SparqlGeneration.java 中import声明了相关的库,eclipse编译没有<em>报错</em>: rn[color=#0000FF]import com.hp.hpl.jena.rdf.model.[/color]*;rnimport com.hp.hpl.jena.util.*;rnrn请问是什么原因,导致eclipse找不到com/hp/hpl/jena/rdf/model/Model 这个类???rn谢谢!!!问题解决尽快结贴~~~rn
求救:HTTP Status 500 出错??????????
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSPrnrnNo Java compiler was found to compile the generated source for the JSP. rnThis can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK rnto the common/lib directory of the Tomcat server, followed by a Tomcat restart. rnIf using an alternate Java compiler, please check its installation and access path.rnrn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)rn org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:856)rnrnrnnote The full stack trace of the root cause is available in the Tomcat logs.rnrn
JSP出错 HTTP Status 500 -
请看一看, 问题出在哪里? 谢谢!rnHTTP Status <em>500</em> - rn rntype Exception reportrnmessage rndescription The server encountered an internal error () that prevented it from fulfilling this request.rnexception rnjavax.servlet.ServletException: Error allocating a servlet instancernorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)rnorg.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)rnorg.apache.coyote.<em>http</em>11.Http11Processor.process(Http11Processor.java:833)rnorg.apache.coyote.<em>http</em>11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)rnorg.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)rnorg.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)rnjava.lang.Thread.run(Thread.java:534)rnroot cause rnjava.lang.NoClassDefFoundError: Illegal name: /TestServletrnjava.lang.ClassLoader.defineClass(ClassLoader.java:538)rnjava.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)rnorg.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1677)rnorg.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:900)rnorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1350)rnorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)rnorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)rnorg.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)rnorg.apache.coyote.<em>http</em>11.Http11Processor.process(Http11Processor.java:833)rnorg.apache.coyote.<em>http</em>11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)rnorg.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)rnorg.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)rnjava.lang.Thread.run(Thread.java:534)rnnote The full stack trace of the root cause is available in the Tomcat logs.rn rnApache Tomcat/5.0.19rnrnrnrn Welcome to myjsprn rn Welcome to myjsprn rnrn rn TestServletrn myjsp/servlet/TestServletrn rn rn TestServletrn /myjsp/servlet/TestServletrn rnrnrn*************************************************************************rnrnrn rn Test Htmlrnrnrn rn请输入姓名:rn rn您的兴趣:rnrnSleeprnDancernTravelrn rn rn rnrnrnrnimport java.io.*;rnimport javax.servlet.*;rnimport javax.servlet.<em>http</em>.*;rnpublic class TestServlet extends HttpServlet rn rn public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOExceptionrn res.setContentType("text/html;charset=ISO-8859-1");rn PrintWriter out=res.getWriter();rn out.println("");rn out.println("name:"+req.getParameter("myname")+" ");rn out.println("love:"+req.getParameter("love")+" ");rn out.close();rn rn public void deGet(HttpServletRequest req, HttpServletResponse res)rnthrows ServletException, IOExceptionrn doPost(req,res);rnrnrn *********************************************************rntomcat 5.0rntomcat\webapps\rntomcat\webapps\myjsp\TestServlet.htmlrntomcat\webapps\myjsp\WEB-INF\ web.xmlrntomcat\webapps\myjsp\WEB-INF\classes\TestServletrnCATALINA_HOME=C:\Tomcat 5.0rnCATALINA_BASE=C:\Tomcat 5.0; rnCLASSPATH=.;C:\j2sdk1.4.2_14\lib\dt.jar;C:\j2sdk1.4.2_14\lib\tools.jar;C:\Tomcat rn5.0\common\lib\servlet-api.jar; rnPath=C:\j2sdk1.4.2_14\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; tomcat 5.0\binrn测试<em>http</em>://localhost:8080能够成功显示。rn
急需解决的问题HTTP Status 500
我的JSP是一个提交表单,删除功能的,删除前要先显示数据库的内容,但是调试一步一步走是对的,能够显示,若不用调试就出现如下错误,真不知道是什么问题,请解决
HTTP Status 500 - java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.j
[img=<em>http</em>s://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/32.gif][/img]rn本人新建一个表client_info.sql,通过反射机制,得到vo,然后做ssh处理,把dao service controller层都添好后,运行程序,就报以下错误,而且有个规律,只要一新建新的表,就出现这样的问题rnrntype Exception reportrnrnmessage java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.jsp.System.clientinfolist_jsprnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexceptionrnrnorg.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.jsp.System.clientinfolist_jsprn org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:177)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:728)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)rn org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)rn org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262)rn org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180)rn org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950)rn org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:621)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:728)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rnroot causernrnjava.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.jsp.System.clientinfolist_jsprn java.net.URLClassLoader$1.run(URLClassLoader.java:366)rn java.net.URLClassLoader$1.run(URLClassLoader.java:355)rn java.security.AccessController.doPrivileged(Native Method)rn java.net.URLClassLoader.findClass(URLClassLoader.java:354)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)rn org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:172)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:728)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)rn org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)rn org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262)rn org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180)rn org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950)rn org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:621)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:728)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rnnote The full stack trace of the root cause is available in the Apache Tomcat/7.0.47 logs.rnrnrnrnrnrn严重: Servlet.service() for servlet [Libsys] in context with path [/Libsys] threw exception [java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.jsp.System.clientinfolist_jsp] with root causernjava.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.jsp.System.clientinfolist_jsprn at java.net.URLClassLoader$1.run(URLClassLoader.java:366)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:355)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:354)rn at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)rn at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)rn at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:148)rn at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:172)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)rn at javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:728)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)rn at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)rn at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262)rn at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)rn at javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:621)rn at javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:728)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:rn210)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.<em>http</em>11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnrnrnrnrn
jsp 问题:HTTP Status 500 -
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjava.lang.NullPointerExceptionrn com.wy.tool.JDBConnection.executeQuery(JDBConnection.java:52)rn com.wy.dao.ConsumerDao.getConsumerForm(ConsumerDao.java:98)rn com.wy.webiter.ConsumerServlet.checkConsumer(ConsumerServlet.java:169)rn com.wy.webiter.ConsumerServlet.doGet(ConsumerServlet.java:16)rn com.wy.webiter.ConsumerServlet.doPost(ConsumerServlet.java:186)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.20rnrnrn请问如何解决?
关于 HTTP Status 500 内部错误
我一周前买了一本求是科技的<>,配置好环境后,运行第一个图书馆管理系统时出现了HTTP Status <em>500</em> 内部错误:rnrnHTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnroot cause rnrnjava.lang.NullPointerExceptionrn kjb.main.DataBase.getOnePage(DataBase.java:677)rn kjb.main.DataBase.getOnePage(DataBase.java:653)rn kjb.main.ParentBean.getOnePage(ParentBean.java:475)rn kjb2.library.bean.BookBean.getData(BookBean.java:50)rn org.apache.jsp._1_1.list_jsp._jspService(list_jsp.java:116)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)rn org.apache.jsp._1_1.index_jsp._jspService(index_jsp.java:146)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)rn org.apache.jsp.frame_jsp._jspService(frame_jsp.java:215)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)rn org.apache.jsp.index_jsp._jspService(index_jsp.java:116)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.17rnrn//------------------------------------------------------------------------------------rn我的运行环境是 jdk1.5 + tomcat 5 + mysql + jdbc for mysqlrn我把问题的源代码附上:rnDataBase.java:rnrn//查询总页数rn// pstm.clearBatch();rn pstm = conn.prepareStatement(sql,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE); //这就是677行rn rs = pstm.executeQuery();rn int rows = 0;rn while(rs.next())rn rn rows++;rn rn int sum = rows/zdrecords;rn if(rows%zdrecords!=0||rows==0)sum++;rn vect.add(""+sum);rnrn rs.close();pstm.close();rn请哪位大哥帮忙指点一下,小弟在此感激不尽!!
急!!HTTP Status 500 - 错误
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to load class for JSPrn org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnorg.apache.jasper.JasperException: Unable to load class for JSPrn org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:600)rn org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnjava.lang.ClassNotFoundException: org.apache.jsp.snackbook.index_jsprn java.net.URLClassLoader$1.run(URLClassLoader.java:200)rn java.security.AccessController.doPrivileged(Native Method)rn java.net.URLClassLoader.findClass(URLClassLoader.java:188)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)rn org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:598)rn org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/6.0.14rn刚学tomcat 不知道错在那里?? rn
HTTP Status 500 - 问题求解决!!!
Apache 用的是6.0.14版本,struts 1.2 架构 在做登录的页面跳转时出现这个错误 rnHTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: java.lang.NullPointerExceptionrn org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:710)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn com.action.Manager.managerLogin(Manager.java:35)rn com.action.Manager.execute(Manager.java:24)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:710)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.rnrn
自定义标签问题HTTP Status 500
楼主是一枚菜鸟,望大神指教rn以下是全部代码rnrnrnrnrnrnrn rn JSP简介rnrnrn rn rn rn 年龄: rn $'hello EL' rn rn rn rnrnrnrnrnrn错误信息:rnorg.apache.jasper.JasperException: /index.jsp (line: 19, column: 25) attribute value for [value] is not properly terminatedrn org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)rn org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:291)rn org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:97)rn org.apache.jasper.compiler.Parser.parseAttributeValue(Parser.java:286)rn org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:248)rn org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:169)rn org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:160)rn org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1254)rn org.apache.jasper.compiler.Parser.parseElements(Parser.java:1473)rn org.apache.jasper.compiler.Parser.parse(Parser.java:145)rn org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)rn org.apache.jasper.compiler.ParserController.parse(ParserController.java:105)rn org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:201)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:372)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:333)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:600)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:368)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:729)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
HTTP Status 500 - 帮忙看看
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSP: rnrnAn error occurred at line: 24 in the jsp file: /cxtj/xsxxquest.jsprnDuplicate local variable strCountrn21: qu.setAndor(andor); qu.setSdate(sdate); qu.setEdate(edate);rn22: String strCount=qu.getCount(table);rn23: //调用Bean中getDateCount()方法来获得在用户调教的时间段里查询到的记录总数rn24: String strCount=qu.getDateCount(table,date);rn25: if(pages==null||pages.equals("null"))rn26: pages="0";rn27: rnrnrnAn error occurred at line: 24 in the jsp file: /cxtj/xsxxquest.jsprnThe method getDateCount(String) in the type QuestString is not applicable for the arguments (String, String)rn21: qu.setAndor(andor); qu.setSdate(sdate); qu.setEdate(edate);rn22: String strCount=qu.getCount(table);rn23: //调用Bean中getDateCount()方法来获得在用户调教的时间段里查询到的记录总数rn24: String strCount=qu.getDateCount(table,date);rn25: if(pages==null||pages.equals("null"))rn26: pages="0";rn27: rnrnrnAn error occurred at line: 30 in the jsp file: /cxtj/xsxxquest.jsprnThe method getDateString(String) in the type QuestString is not applicable for the arguments (String, String)rn27: rn28: qu.setQuerySql(<em>http</em>File,pages,strCount);rn29: //用来获得在表tb_sell中在用户提交的时间段里查询到的记录的结果集rn30: ResultSet rs=rst.getResult((String)qu.getDateString(table,date));rn31: int i=0,Page=qu.getCurPage(),pagesize=qu.getPageSize();rn32: while(rs.next())rn33: if(i>(Page-1)*pagesize-1)rnrnrnStacktrace:rn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)rn org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.26rnrnrnrnrn代码:rnrn[code=Java]rnrnrnrnrnrn 查询rn rnrn(Page-1)*pagesize-1)rn%>rnrn rn rn 销售票号:rn rn 药品编号:rn rn 药品名称:rn rn rn rn 简称:rn rn 产地:rn rn 规格:rn rn rn rn 包装:rn rn 单价:rn rn 数量:rn rn rn rn 金额:rn rn 客户全称:rn rn 销售日期:rn rn rn rn 操作员:rn rn 经手人:rn rn 结算方式:rn rn rn rnrnrnrnrnrn[/code]
HTTP Status 500 - java.lang.ClassNotFoundException: org.apache.jsp.index_html
eclipse换成idea启动项目,一直报这个错。rn找了一天的问题,网上说的各种办法都试了,一直报这个错。rntype Exception reportrnrnmessage java.lang.ClassNotFoundException: org.apache.jsp.index_htmlrnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexceptionrnrnorg.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.index_htmlrn org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:176)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:729)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)rn org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)rn org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)rn org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)rn org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)rn org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)rn org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)rn org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)rn org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)rnroot causernrnjava.lang.ClassNotFoundException: org.apache.jsp.index_htmlrn java.net.URLClassLoader.findClass(URLClassLoader.java:381)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)rn org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:62)rn org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:171)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:729)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)rn org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)rn org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)rn org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)rn org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)rn org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)rn org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)rn org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)rn org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)rnnote The full stack trace of the root cause is available in the Apache Tomcat/8.0.33 logs.
HTTP Status 500 小白求教
导入了一个工程,可是怎么调试都是<em>500</em>错误,初接触,已晕,求教,谢谢啦rntype Exception reportrnrnmessage An exception occurred processing JSP page /ManagementInsertBook.jsp at line 75rnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexception rnorg.apache.jasper.JasperException: An exception occurred processing JSP page /ManagementInsertBook.jsp at line 75rnrn72: String Publish=request.getParameter("Publish");rn73: if(BookName!=null)rn74: rn75: Class.forName("com.mysql.jdbc.Driver");rn76: Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/book","root","root");rn77: Statement stmt =conn.createStatement();rn78: ResultSet rss=stmt.executeQuery("Select BookNO,BookName,Author,Publish from bookdb where BookNO='"+BookNO+"'");rnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:727)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rnrn
status 500!!!!
这两天就写了一个很简单的登录页面,就是前端页面,后台页面,和服务器之间的简单数据传输。但是,遇见了<em>status</em> <em>500</em>!  我就不明白了,为什么啊! 然后,一看 <em>500</em>,擦嘞~ 不信邪,点点点,就是这个。 之后 ,看了JQuery的代码,说是,jquery.ajax中的回调函数没有执行。崩溃! 都说是我的源文件有问题,真的不知道是怎么了。把数据库,改
关于HTTP Status 500报错问题!在线等
我尝试着写了一个功能运用了spring但是出了<em>500</em>的错误 哪位给指点一下啊rnJSP文件rnrnrnrnrnrnrnrn rn rn rn rn rnrn rn rn 添加应聘信息rn rnrn rn rn rn rn rn rn rn rn rn rn 应聘职位:rn rn rn rn rn  rn 姓名:rn rn rn rn rn rn 性别:rn rn rn rn rn rn 年龄:rn rn rn rn rn 学历:rn rn rn rn rn rn 居住地址:rn rn rn rn rn 联系电话:rn rn rn rn rn 邮箱:rn rn rn rn rn 发布日期:rn rn rn rn  rn rn rn rn rnrnrnrnrnJAVA文件rn/**rn * rn */rnpackage com.longxin.struts.action.zhaoPin;rnrnimport java.util.Date;rnrnimport javax.servlet.<em>http</em>.HttpServletRequest;rnimport javax.servlet.<em>http</em>.HttpServletResponse;rnrnimport org.apache.struts.action.Action;rnimport org.apache.struts.action.ActionForm;rnimport org.apache.struts.action.ActionForward;rnimport org.apache.struts.action.ActionMapping;rnrnimport com.longxin.dao.zhaoPin.YingpinDAO;rnimport com.longxin.dao.zhaoPin.ZhaopinDAO;rnimport com.longxin.struts.form.yingPin.YingPinForm;rnimport com.longxin.util.StringtoDate;rnimport com.longxin.vo.zhaoPin.Yingpin;rnimport com.longxin.vo.zhaoPin.Zhaopin;rnrnpublic class YingPinAction extends Actionrnrn private YingpinDAO yingpinDao;rn private ZhaopinDAO zhaopinDao;rnrn public ZhaopinDAO getZhaopinDao() rn return zhaopinDao;rn rn public void setZhaopinDao(ZhaopinDAO zhaopinDao) rn this.zhaopinDao = zhaopinDao;rn rn public YingpinDAO getYingpinDao() rn return yingpinDao;rn rn public void setYingpinDao(YingpinDAO yingpinDao) rn this.yingpinDao = yingpinDao;rn rn public ActionForward execute(ActionMapping mapping, ActionForm form,rn HttpServletRequest request, HttpServletResponse response)rn YingPinForm yingPinForm = (YingPinForm) form;rn Yingpin yingPin=new Yingpin();rn StringtoDate stringtoDate=new StringtoDate();rn //取得页面参数zhaoPinListIDrn Integer zhaopinListID = Integer.parseInt(request.getParameter("zhaoPinListID"));rn //根据参数zhaoPinListID,取得相应记录rn Zhaopin zhaopin = zhaopinDao.findById(zhaopinListID);rn Date publishDatetime;rn //发布日期若为空,则初始化日期,若不为空,则进行日期转换处理rn if(yingPinForm.getPUBLISH_DATETIME().trim()==null || "".equals(yingPinForm.getPUBLISH_DATETIME().trim()))rn publishDatetime=new Date();rn elsern publishDatetime=stringtoDate.parseDate(yingPinForm.getPUBLISH_DATETIME().trim());rn yingPin.setPublishDatetime(publishDatetime);rn yingPin.setYingpinZhiwei(zhaopin.getZhaopinZhiwei());rn yingPin.setName(yingPinForm.getNAME());rn yingPin.setSex(yingPinForm.getSEX());rn yingPin.setAge(yingPinForm.getAGE());rn yingPin.setEdu(yingPinForm.getEDU());rn yingPin.setAddress(yingPinForm.getADDRESS());rn yingPin.setPhone(yingPinForm.getPHONE());rn yingPin.setEmail(yingPinForm.getEMAIL());rn tryrn yingpinDao.save(yingPin);rn //持久化成功,进行跳转rn return mapping.findForward("success");rn catch (RuntimeException e)rn throw(e);rn rn rnrn
请教大侠们HTTP Status 500页面报错
11/02/06 10:45:29 [-0.0.0.0-8080-2] ERROR - Partno Maintenance Create - javax.naming.NameNotFoundException: Part_NoMaintenance not boundrn11/02/06 10:45:29 [-0.0.0.0-8080-1] ERROR - Partno Maintenance Create - javax.naming.NameNotFoundException: Part_NoMaintenance not boundrn
HTTP Status 500 - 报错是怎么回事?先谢过
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: java.lang.NullPointerExceptionrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rn com.bjsxt.shopping.util.filter.IPFilter.doFilter(IPFilter.java:31)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn com.bjsxt.shopping.category.CategoryService.getCategories(CategoryService.java:102)rn org.apache.jsp.Index_jsp._jspService(Index_jsp.java:95)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:803)rn com.bjsxt.shopping.util.filter.IPFilter.doFilter(IPFilter.java:31)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/6.0.13
HTTP Status 500报错数据库登录的用户密码问题
HTTP Status <em>500</em> - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prev...
JSP报错http status 500 ,请帮忙解决,谢谢
rnrnrnrnrnrnrnrnrnrn rnrn rn 入学测试试题rn rnrnrnrnrn rn rn 入学测试 rn rn rn rn 考试时间: rn minutesrn rnrn 开始时间: rn rn 使用时间: rn rn rn rn rnrn rn rn rn 入学测试rn rnrnrnrnrn rn rn rn 答案rn (单选题)rn rn rn A rn rn B rn rn C rn rn D rn rn rn 答案rn (多选题)rn rn rn A rn rn B rn rn C rn rn D rn rn rn rn rn rn rn rnrnrnrnrn
菜鸟求助啊 HTTP Status 500 - java.lang.NullPointerException
2013-6-12 14:03:47 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet [jsp] in context with path [/Work] threw exception [java.lang.NullPointerException] with root causernjava.lang.NullPointerExceptionrn at org.apache.jsp.searchResult_jsp._jspService(searchResult_jsp.java:107)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:728)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)rn at javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:728)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)rn at org.apache.coyote.<em>http</em>11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)rnrn求各位大大帮忙啊 折腾好久了T_Trn
JAVA EE 出现HTTP Status 500
这几天在学习JAVA EE 进行一个简单服务端eclipse+tomcat7.0 rn只要添加这行username = new String(username.getBytes("ISO8859-1"), "GBK");就出现HTTP <em>500</em> 不添加但不能解决中文乱码rnpublic class test004 extends HttpServlet rn private static final long serialVersionUID = 1L;rnrn rn protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException rn String username = request.getParameter("username");rn String password = request.getParameter("password");rn只要添加这行就出现HTTP <em>500</em>不添加但不能解决中文乱码 username = new String(username.getBytes("ISO8859-1"), "GBK");rn System.out.println("用户名:" +username);rn System.out.println("密码:" + password);rn if("zhangsan".equals(username)&&"123".equals(password))rn rn response.getOutputStream().write("登录成功".getBytes("gbk"));rn rn elsern response.getOutputStream().write("登录失败".getBytes("gbk"));rn //<em>http</em>://localhost:8811/Mytest/loginservlet?username=zhangsan&password=123rn rnrn
JSP:HTTP Status 500 - java.lang.NullPointerException错误
HTTP Status <em>500</em> - java.lang.NullPointerExceptionrnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage java.lang.NullPointerExceptionrnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: java.lang.NullPointerExceptionrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:556)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:731)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn com.yxq.dao.FriendDao.queryFriend(FriendDao.java:47)rn com.yxq.servlet.IndexServlet.doPost(IndexServlet.java:52)rn com.yxq.servlet.IndexServlet.doGet(IndexServlet.java:25)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:624)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:731)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:750)rn org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:720)rn org.apache.jsp.index_jsp._jspService(index_jsp.java:85)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:731)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:731)rn org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/7.0.67 logs.rn
第一次接触java出现HTTP Status 500
[img=<em>http</em>s://img-bbs.csdn.net/upload/201707/11/1499707041_653013.png][/img]rnrn这样的,麻烦大神帮忙看一下,是怎么个情况。
HTTP Status 500,己上源码
HTTP Status <em>500</em> - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: String index out of range: -112438rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.jdon.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:92)rnrnrnroot cause rnrnjava.lang.StringIndexOutOfBoundsException: String index out of range: -112438rn java.lang.String.checkBounds(String.java:283)rn java.lang.String.(String.java:319)rn xiaoxiang.fileUpload.upBean.upload(upBean.java:178)rn org.apache.jsp.qsecofrSystem.Cpxxsave_jsp._jspService(Cpxxsave_jsp.java:106)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.<em>http</em>.HttpServlet.service(HttpServlet.java:802)rn org.jdon.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:92)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.0.30rnrnrn[code=XML]rnrnrnrnrnrnrn rn rnrn rn rnrnrnrnrnrn rn rn rn rn rn rn rn rnrn rn rn rn 分类:rn rn rn rn rn rn 请选择rn arn brn c rn drn ern rn rn 请选择rn rn rn 请选择rn rn rn 请选择rn rn rn rn rn rn rn rn rnrnrn rn rn 名称:rn rn rn rn rn rn rn rn rn rn rn rn 说明:rn rn rn rn rn rn 胎别信息:rn rn rn arn rn brn rn crn rn drn rn e)rn rn frn rn grn rnrn rn rnrn rn rn rn rn 图片上传:rn rn rnrn rn rn rnrnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rnrn rn rnrnrnrn[/code]rnrn
java远程远程协助小程序下载
本程序主要功能远程协助和远程传送,其中远程协助在线程的控制上有一点一点问题,别的就没什么问题了。并且自带一些系统工具 相关下载链接:[url=//download.csdn.net/download/limin914245697/3021310?utm_source=bbsseo]//download.csdn.net/download/limin914245697/3021310?utm_source=bbsseo[/url]
时间管理--ppt你管理时间的利器下载
很好的时间管理,总结的很好,平常我们浪费的时间都可以利用起来,特别在这个it行业 相关下载链接:[url=//download.csdn.net/download/guhonglul/3276974?utm_source=bbsseo]//download.csdn.net/download/guhonglul/3276974?utm_source=bbsseo[/url]
VB语音报数下载
VB语音报数程序,可以自动播放0-9的数字. 相关下载链接:[url=//download.csdn.net/download/sdfsefsfsdf/5016734?utm_source=bbsseo]//download.csdn.net/download/sdfsefsfsdf/5016734?utm_source=bbsseo[/url]
相关热词 c# 去空格去转义符 c#用户登录窗体代码 c# 流 c# linux 可视化 c# mvc 返回图片 c# 像素空间 c# 日期 最后一天 c#字典序排序 c# 截屏取色 c#中的哪些属于托管机制
我们是很有底线的