Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 87931 invoked from network); 13 Aug 2007 05:34:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2007 05:34:37 -0000 Received: (qmail 26794 invoked by uid 500); 13 Aug 2007 05:34:26 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 26766 invoked by uid 500); 13 Aug 2007 05:34:25 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 26755 invoked by uid 99); 13 Aug 2007 05:34:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Aug 2007 22:34:25 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [195.54.101.71] (HELO proxy1.bredband.net) (195.54.101.71) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 05:34:28 +0000 Received: from barahir-local.lingonpaj.se (217.209.167.91) by proxy1.bredband.net (7.3.127) (authenticated as joakolss) id 46BC71FA00089EEC for user@struts.apache.org; Mon, 13 Aug 2007 07:33:54 +0200 Received: from localhost ([127.0.0.1] helo=barahir.lingonpaj.com ident=www-data) by barahir.lingonpaj.se with esmtp (Exim 4.67) (envelope-from ) id 1IKSYn-00073y-Fo for user@struts.apache.org; Mon, 13 Aug 2007 07:33:49 +0200 Received: from 136.8.152.13 (SquirrelMail authenticated user argoyle) by barahir.lingonpaj.com with HTTP; Mon, 13 Aug 2007 07:33:49 +0200 (CEST) Message-ID: <5995.136.8.152.13.1186983229.squirrel@barahir.lingonpaj.com> In-Reply-To: References: <1186858160.6561.5.camel@localhost.localdomain> Date: Mon, 13 Aug 2007 07:33:49 +0200 (CEST) Subject: Re: Problem with optiontransferselect when loaded via an AJAX From: "Joakim Olsson" To: "Struts Users Mailing List" User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: argoyle@lingonpaj.com X-SA-Exim-Scanned: No (on barahir.lingonpaj.se); SAEximRunCond expanded to false X-Virus-Checked: Checked by ClamAV on apache.org 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 > (""). > 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: > 8: > 9: Struts2Test > 10: > 11: > 12: > 13: > > > 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" > To: "Struts Users Mailing List" > Sent: Saturday, August 11, 2007 2:49 PM > Subject: Problem with optiontransferselect when loaded via an AJAX > > >> 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 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