jsp访问报错HTTP Status 500

HTTP Status 500 - org.apache.jasper.JasperException: java.lang.NullPointerException
type Exception report

message org.apache.jasper.JasperException: java.lang.NullPointerException

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root cause

org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
org.apache.jsp.index_jsp._jspService(index_jsp.java:129)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root cause

java.lang.NullPointerException
com.frameworkset.common.poolman.util.SQLManager.getDBAdapter(SQLManager.java:337)
org.frameworkset.persitent.util.SQLUtil.getSQL(SQLUtil.java:174)
com.frameworkset.common.poolman.ConfigSQLExecutor.getSql(ConfigSQLExecutor.java:56)
com.frameworkset.common.poolman.ConfigSQLExecutor.queryListBeanWithDBName(ConfigSQLExecutor.java:528)
com.frameworkset.common.poolman.ConfigSQLExecutor.queryListBean(ConfigSQLExecutor.java:398)
com.runsi.system.adverts.dao.impl.AdvertDaoImpl.showfrontadvt(AdvertDaoImpl.java:82)
com.runsi.system.adverts.service.impl.AdvertServiceImpl.showfrontadvt(AdvertServiceImpl.java:80)
org.apache.jsp.header_jsp._jspService(header_jsp.java:142)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
org.apache.jsp.index_jsp._jspService(index_jsp.java:129)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.41 logs.

百度 式了几种方法都不行

7个回答

frameworkset数据库配置问题,或者frameworkset没找到配置

JSP里面空指针异常,贴出你的jsp代码

你这是报空指针了,仔细检查哪个数据为null了。

没有源码的。。。。。。。。。。。。只有打包 在服务上跑的。。。。。

java.lang.NullPointerException空指针异常

com.runsi.system.adverts.dao.impl.AdvertDaoImpl.showfrontadvt(AdvertDaoImpl.java:82)
com.runsi.system.adverts.service.impl.AdvertServiceImpl.showfrontadvt(AdvertServiceImpl.java:80)
你看这两行接收的参数 里面的属性是不是有空的 或者你换个常量再运行一遍

com.runsi.system.adverts.dao.impl.AdvertDaoImpl.showfrontadvt(AdvertDaoImpl.java:82) 这一块 debug 看看是否空指针

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!