struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joakim Olsson" <argo...@lingonpaj.com>
Subject Re: Problem with optiontransferselect when loaded via an AJAX <s:a>
Date Mon, 13 Aug 2007 05:33:49 GMT
Hi,

But I don't get any null pointer exceptions (or are they hidden somewhere
inside the framework?).

Regards,
Joakim


> Joakkim take a look at this-
>
> Hi,
> There seems to be a bug in the struts 2 taglib, in the last release
> (Struts
> 2.0.6).
> If the jsp don't come from a struts 2 interceptor stack (from an action,
> for
> exemple), you get a null pointer exception when you hit the first struts
> tag
> ("<s:xxx...>").
> I hope it will be corrected soon. I will look to bug report to see if it
> has
> been reported; I think so.
> http://www.mail-archive.com/user@struts.apache.org/msg57582.html
> Cheers,
> Cyril
>
> /*I got as far as index.jsp producing NPE at line 10*/
> Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException: Exception in JSP: /index.jsp:10
>
> 7: <html xmlns="http://www.w3.org/1999/xhtml">
> 8: <head>
> 9: <title>Struts2Test</title>
> 10: <s:head debug="true" />
> 11: </head>
> 12: <body>
> 13: <s:div id="nonfooter">
>
>
> Stacktrace:
> 	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
> 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> root cause
>
> java.lang.NullPointerException
> 	org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58)
> /*The workaround is to have your action class actually create the jsp and
> then forward to it..
> i think this is a genuine bug..
> I dont know if there is jira or bugzilla available on struts206 but I
> would
> grep thru these entries..
>
> FWIW/
> M--
> */
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please
> notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
> ----- Original Message -----
> From: "Joakim Olsson" <argoyle@lingonpaj.com>
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Sent: Saturday, August 11, 2007 2:49 PM
> Subject: Problem with optiontransferselect when loaded via an AJAX <s:a>
>
>
>> Hi,
>>
>> I have a page with an optiontransferselect which works ok if called
>> directly via the action in the browser. If I load the page from within
>> another page via an AJAX <s:a> I get the following in the AJAX debug:
>> FATAL exception raised: bad srcObj for srcFunc: onsubmit
>>
>> What have I done wrong?
>>
>> I have a small test-project with my classes and jsp's etc. at:
>> http://lingonpaj.com/Struts2Test.tar.bz2
>>
>> Regards,
>> Joakim
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>



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


Mime
View raw message