You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dimitris Mouchritsas <di...@eurodyn.com> on 2008/06/24 16:09:43 UTC

html:link throwing null pointer

Hi all,
I'm in the process of upgrading our J2EE app from struts 1.2.4 to 1.3.8. 
We're also using tiles.
I'm able to see the header tile but when it reaches the search.jsp tile 
I get:

javax.servlet.jsp.JspException: ServletException in '/WEB-INF/jsp/common/search.jsp': null
	at org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:927)
	at org.apache.struts.tiles.taglib.InsertTag.doEndTag(InsertTag.java:465)
	at _web_2d_inf._jsp._common._layout._jspService(_layout.java:142)
	[SRC:/WEB-INF/jsp/common/layout.jsp:81]
.....
.....

here's my jsp:

<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<html:xhtml />

<%--<bean:define id="currentDate" name="java.util.Date" type="java.util.Date" />--%>
<jsp:useBean id="curDate" class="java.util.Date" />
<div id="Search">
    <p class="Time">
        <bean:message key="prompt.Cyprus" /> 
        <bean:write name="curDate" format="HH:mm:ss zz" />
    </p>
    <form action="#">
        <p>
            <label for="SearchSelect"><bean:message key="prompt.search" />:</label> 
            <select name="SearchSelect" id="SearchSelect">
                <option selected="selected">Select...</option></select>
            <input type="text" name="SearchInput" id="SearchInput" class="Text" />
            <input type="submit" name="SearchBTN" id="SearchBTN" class="SearchBTN" value="Search" />
            <html:link href="http://www.google.gr">
                <bean:message key="prompt.advanced.search" />
            </html:link>
            <%--<a href="#">Advanced Search</a>--%>
        </p>
    </form>
</div><!-- Search -->

I'm certain it's html:link, because if I comment it out the tile is showing. I've also checked with 
html:img and it shows fine, so this must be specific to html:link. Any ideas?

Thanks
Dimitris



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:link throwing null pointer

Posted by Antonio Petrelli <an...@gmail.com>.
2008/6/24 Dimitris Mouchritsas <di...@eurodyn.com>:
> But 1.3.9 is still beta. btw do you know when it will be released?

Struts 1.3.9 is release. It was declared as beta for this bug:
https://issues.apache.org/struts/browse/STR-3081
See the mail thread:
http://www.nabble.com/-S1---VOTE--Struts-1.3.9-Quality-td11486284.html
Eventually you want Struts 1.3.10 to be released, but for these
questions I think you may want to ask the Struts Developers mailing
list:
http://struts.apache.org/dev/dev-mail.html

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:link throwing null pointer

Posted by Dimitris Mouchritsas <di...@eurodyn.com>.
Antonio Petrelli wrote:
> 2008/6/24 Dimitris Mouchritsas <di...@eurodyn.com>:
>   
>> I've corrected the code and I'm trying to find out how to rebuild struts.
>>     
>
> I don't think it is necessary, it has been released in 1.3.9.
> http://struts.apache.org/download.cgi#struts139
>
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>   
But 1.3.9 is still beta. btw do you know when it will be released?
Anyway I've just installed the new jar and everything is working great now.
A great thank you to you Antonio, for all your support.

Dimitris

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:link throwing null pointer

Posted by Antonio Petrelli <an...@gmail.com>.
2008/6/24 Dimitris Mouchritsas <di...@eurodyn.com>:
> I've corrected the code and I'm trying to find out how to rebuild struts.

I don't think it is necessary, it has been released in 1.3.9.
http://struts.apache.org/download.cgi#struts139

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:link throwing null pointer

Posted by Dimitris Mouchritsas <di...@eurodyn.com>.
Antonio Petrelli wrote:
> 2008/6/24 Dimitris Mouchritsas <di...@eurodyn.com>:
>   
>> javax.servlet.jsp.JspException: ServletException in
>> '/WEB-INF/jsp/common/search.jsp': null
>>        at
>> org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:927)
>>        at
>> org.apache.struts.tiles.taglib.InsertTag.doEndTag(InsertTag.java:465)
>>        at _web_2d_inf._jsp._common._layout._jspService(_layout.java:142)
>>        [SRC:/WEB-INF/jsp/common/layout.jsp:81]
>>     
>
> Is there a cause for this exception? Or a stack trace that appears
> before this one?
>
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>   
This is the stack trace following:

at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
	at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
	at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
	at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
	at oracle.security.jazn.oc4j.JAZNFilter$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
	at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
	at org.apache.struts.tiles.commands.TilesPreProcessor.doForward(TilesPreProcessor.java:260)
	at org.apache.struts.tiles.commands.TilesPreProcessor.execute(TilesPreProcessor.java:217)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
	at oracle.security.jazn.oc4j.JAZNFilter$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
	at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
	at com.ed.ecomm.edcore.web.filters.SecurityFilter.doFilter(SecurityFilter.java:196)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
	at com.ed.ecomm.edcore.web.filters.MonitoringFilter.doFilter(MonitoringFilter.java:138)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
	at com.ed.ecomm.edcore.web.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:92)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
	at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
	at java.lang.Thread.run(Thread.java:534)


I think it's a bug though. Check this out:
https://issues.apache.org/struts/browse/STR-3015

I've corrected the code and I'm trying to find out how to rebuild struts.

Dimitris



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:link throwing null pointer

Posted by Antonio Petrelli <an...@gmail.com>.
2008/6/24 Dimitris Mouchritsas <di...@eurodyn.com>:
> javax.servlet.jsp.JspException: ServletException in
> '/WEB-INF/jsp/common/search.jsp': null
>        at
> org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:927)
>        at
> org.apache.struts.tiles.taglib.InsertTag.doEndTag(InsertTag.java:465)
>        at _web_2d_inf._jsp._common._layout._jspService(_layout.java:142)
>        [SRC:/WEB-INF/jsp/common/layout.jsp:81]

Is there a cause for this exception? Or a stack trace that appears
before this one?

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org