JBAS-8579 not (completely) solved?
feijtel Jan 3, 2011 5:33 AMHello,
This morning I've downloaded the new JBoss AS 6.0.0 final.
In this version the bug JBAS-8579 is supposed to be resolved. However, running my Struts application still gives the same NPE on the html:link tag, which is part of the Struts framework. For reference, this is a link to JBAS-8579:
The only difference I can see is that our html:link tag that gives the NPE does contain a body:
<html:link page="/MenuAction.do" paramName="menuItem" paramId="id" paramProperty="id" styleClass="smallDBlue">
<bean:write name="menuItem" property="label"/>
</html:link>
Here's the stacktrace:
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CiVMK].[jsp]] Servlet.service() for servlet jsp threw exception: java.lang.NullPointerException
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1598) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:976) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1247) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1633) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:976) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1247) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1633) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:976) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1247) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parse(Parser.java:130) [:6.0.0.Final]
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255) [:6.0.0.Final]
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:196) [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:358) [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:338) [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:325) [:6.0.0.Final]
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:607) [:6.0.0.Final]
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312) [:6.0.0.Final]
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [:6.0.0.Final]
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [:6.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:639) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:576) [:6.0.0.Final]
Checking the source code, it appears to be this line of code causing the NPE. The bodyType seems to be null:
if (bodyType.equalsIgnoreCase(TagInfo.BODY_CONTENT_TAG_DEPENDENT)) {
Hopefully someone can give me confirmation this bug isn't completely solved or tell me where I'm doing something wrong.
We are trying to port a Struts 1.2 application that has been running on JBoss 4 to the new JBoss 6.0.0 final.
Regards
Leon Feijtel