请教这是什么类型的错误?

dyfh 2004-09-30 10:37:07
type Exception report

message

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

exception

org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.NullPointerException
org.apache.jsp.phsgl.phsaccount_jsp._jspService(phsaccount_jsp.java:415)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


note The full stack trace of the root cause is available in the Tomcat logs.
...全文
59 点赞 收藏 7
写回复
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
追求自由 2004-09-30
up
回复
chenxb1980 2004-09-30
vlst为null;
----
Vector vlst=null;
if (opertid=="none"){
vlst=getAllPersons();
}else
{
if (opertid.equals("query"))
{
String sv=request.getParameter("valuestr");
String[] asv=sv.split(",");
vlst=getPersons(asv);
}else{
//其他情况也要初始化
vlst = new Vector();

}
回复
dyfh 2004-09-30
Vector vlst=null;
if (opertid=="none"){
vlst=getAllPersons();
}else
{
if (opertid.equals("query"))
{
String sv=request.getParameter("valuestr");
String[] asv=sv.split(",");
vlst=getPersons(asv);
}else{

}
回复
hsdxhc 2004-09-30
在这句之前加System.out.println(vlst);
应该是vlst为null.
回复
禽兽v5 2004-09-30
vlst这个对象为null,初始化语句怎么写的?
回复
dyfh 2004-09-30
JAVA里提示的错误行是这句: out.print(vlst.size()-1);
回复
njeshop 2004-09-30
WEB-INF目录下的web.xml配置对吗?
回复
发动态
发帖子
Web 开发
创建于2007-09-28

7.9w+

社区成员

Java Web 开发
申请成为版主
社区公告
暂无公告