我在安装后有个问题!

wagfy 02-12-31

我在安装后有个问题!
为什么总是在添加新贴子总,总是有一个空指针的错误,如下:
java.lang.NullPointerException
at jrun__post2ejsp9._jspService(jrun__post2ejsp9.java:142)
at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
at allaire.jrun.session.JRunSessionService.service(../session/JRunSessionService.java:1082)
at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispatcher.java:89)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)


请高手们指点,谢谢!

javapet
2003-01-02 15:09

那是因为在post.jsp中的myenv他定义为session变量了,而在global.jsp中定义的myenv是application变量,故它找不到myenv,你只需将myenv的scope 改为application 就好了

wagfy
2003-01-05 18:34

多谢,您是J道开发组的吗?
怎么我在调试的过程中,总是会有空指针的错误,是没有进行初使化的原故吗?