HTTP Status 500 错误 myeclipse和tomcat里调试JSP的时候出现

错误具体如下 求教! myeclipse8.0 tomcat6.
type Exception report

message

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

exception

java.lang.NullPointerException
com.bean.LoginBean.login(LoginBean.java:20)
com.servlet.LoginServlet.doGet(LoginServlet.java:41)
com.servlet.LoginServlet.doPost(LoginServlet.java:76)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.

--------------------------------------------------------------------------------

Apache Tomcat/6.0.35
可是这个程序在别人机子上可以运行 但是我这里怎么都调试不好
com.bean.LoginBean.login(LoginBean.java:20)
这一绝前行出现空指针了,调用方法洞伍的那个对象是null、~你去纳宏或com.bean.LoginBean这个类的login方法的20行去查看下
空指针是搜歼弯最好解决也是最常见的bug,com.bean.LoginBean.login(LoginBean.java:20)
看一下这个地方的代码吧。空指针异常是因为对象为空的情况下改激调用了方世闷法或者属性。
调用LoginBean类的属性是没给该类的属性赋值
对了,你的电脑上有对应的数据没有?