请教:NullPointerException 问题

05-07-07 wyl8927
运行

http://localhost:8080/testWeb/index.jsp时,出现下列提示,

2005-07-07 19:45:35,859 ERROR [com.jg.test.ejb.TestEJBBean] java.lang.NullPointerException

2005-07-07 19:45:35,859 DEBUG [com.jdon.bussinessproxy.dyncproxy.DynamicProxyWeaving] call method:getAllUsers finish!

2005-07-07 19:45:35,859 DEBUG [com.jdon.strutsutil.ModelListAction] listForm 's property: getList size is 0

2005-07-07 19:45:39,171 ERROR [StandardWrapper[/testWeb:jsp]] Servlet.service() for servlet jsp threw exception

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:

The method _jspx_meth_html_errors_0(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (HtmlTag, PageContext)

Generated servlet error:

The method _jspx_meth_bean_write_0(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (IterateTag, PageContext)

Generated servlet error:

The method _jspx_meth_bean_write_1(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (IterateTag, PageContext)

Generated servlet error:

The method _jspx_meth_bean_write_2(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (IterateTag, PageContext)

Generated servlet error:

The method _jspx_meth_html_link_0(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (HtmlTag, PageContext)

Generated servlet error:

The method _jspx_meth_MultiPages_pager_0(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (HtmlTag, PageContext)

Generated servlet error:

The method _jspx_meth_MultiPages_prev_0(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (MPageTag, PageContext)

Generated servlet error:

The method _jspx_meth_MultiPages_index_0(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (MPageTag, PageContext)

Generated servlet error:

The method _jspx_meth_MultiPages_next_0(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (MPageTag, PageContext)

at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)

at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)

at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)

at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

banq
2005-07-08 15:34
com.jg.test.ejb.TestEJBBean

代码中有空值。

将本贴附件中的log4j.xml拷贝到jboss/server/defaul/conf下,这样

显示报错是,会显示具体代码第几行,我们就能知道TestEJBBean中大概在什么位置出现空值

banq7ocx8N0L1G.xml

wyl8927
2005-07-10 22:54
用您提供的log4j.xml后,显示如下信息:请教

2005-07-09 10:08:27 ERROR [ApplicationDispatcher.java:704] StandardWrapper[/testWeb:jsp].invoke() - Servlet.service() for servlet jsp threw exception

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:

The method _jspx_meth_html_errors_0(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (HtmlTag, PageContext)

Generated servlet error:

The method _jspx_meth_bean_write_0(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (IterateTag, PageContext)

Generated servlet error:

The method _jspx_meth_bean_write_1(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (IterateTag, PageContext)

Generated servlet error:

The method _jspx_meth_bean_write_2(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (IterateTag, PageContext)

Generated servlet error:

The method _jspx_meth_html_link_0(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (HtmlTag, PageContext)

Generated servlet error:

The method _jspx_meth_MultiPages_pager_0(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (HtmlTag, PageContext)

Generated servlet error:

The method _jspx_meth_MultiPages_prev_0(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (MPageTag, PageContext)

Generated servlet error:

The method _jspx_meth_MultiPages_index_0(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (MPageTag, PageContext)

Generated servlet error:

The method _jspx_meth_MultiPages_next_0(JspTag, PageContext) in the type userlist_jsp is not applicable for the arguments (MPageTag, PageContext)

at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)

at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)

at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)

at org.apache.jasper.JspCompilationContext.compile(JspCompilationCo

banq
2005-07-11 08:33
错误是Unable to compile class for JSP

说明你的容器无法编译JSP了,这是你的Servlet容器脑子坏了,也许你可能没有提供struts驱动包,建议重新安装Servlet服务器。注意安装两种包:struts和Jdon。

猜你喜欢