jsp调用javabean出错,希望各位帮忙看一下
发布网友
发布时间:2022-05-29 09:36
我来回答
共2个回答
热心网友
时间:2023-10-14 15:43
type :Exception report
类型:意外报告
message :Internal Server Error
消息:内部服务器错误
description :The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
描述:服务器发生了一个内部错误(内部服务器错误),不能执行这个请求。
exception:
意外:
下面概要说一下错误
主要是说编译器遇见了一个语法错误,在/hyp/logon2.jsp的第0行,20列,
下面是衍生出来的错误,主要是错误的调用了java库造成的,你修改logon2.jsp就行了。
org.apache.jasper.compiler.ParseException: /hyp/logon2.jsp(0,20) Attribute contentTyp has no value at org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:563) at org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:681) at org.apache.jasper.compiler.ParserController.figureOutJspDocument(ParserController.java:265) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:194) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext
问题补充:java.lang.NullPointerException //空指针错误,可能是你变量声明了,但在引用之前,未做定义或者赋值,结果发生了这个错误,建议看看logon2.jsp中,那些变量(对象)在引用之前尚未分配值,
t org.apache.jsp.logon2$jsp._jspService(logon2$jsp.java:105)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke
这些是什么意思?
热心网友
时间:2023-10-14 15:43
内部服务器错误!
/hyp/logon2.jsp(0,20) Attribute contentTyp has no value
没有值,你检查下 logon2.jsp 文件