2 u010824109 u010824109 于 2013.05.24 19:33 提问

在MyEclipse中写一个JSP页面出现的问题

at ytl.ServerThread.run(ServerThread.java:18)
==========ServerThread============
java.lang.NullPointerException
at ytl.ServerThread.run(ServerThread.java:18)
==========ServerThread============
java.lang.NullPointerException
at ytl.ServerThread.run(ServerThread.java:18)
==========ServerThread============
java.lang.NullPointerException
at ytl.ServerThread.run(ServerThread.java:18)
==========ServerThread============
java.lang.NullPointerException
at ytl.ServerThread.run(ServerThread.java:18)
==========ServerThread============
java.lang.NullPointerException
at ytl.ServerThread.run(ServerThread.java:18)
==========ServerThread============
java.lang.NullPointerException
at ytl.ServerThread.run(ServerThread.java:18)
==========ServerThread============
java.lang.NullPointerException
at ytl.ServerThread.run(ServerThread.java:18)
==========ServerThread============
java.lang.NullPointerException
at ytl.ServerThread.run(ServerThread.java:18)
在console下面会出现这种异常,不能在8080窗口打开tomcat?

2个回答

lgx062800
lgx062800   2013.05.24 21:16

空指针异常。。。在Servlet层是不是有对象没有被实例化啊?

tgl186
tgl186   2013.05.24 21:59

是不是少了getter和setter方法,或是页面没有传有效值

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!