Yes, this is:
https://issues.apache.org/bugzilla/show_bug.cgi?id=31171

We need to bundle a later version of Jasper with the App Engine SDK to fix
this.

On Mon, Oct 19, 2009 at 10:24 AM, Marc Guillemot <[email protected]>wrote:

>
> Hi,
>
> any progress on this issue?
>
> Is it possible that it comes from a bug in Jasper, not able to recognize
> RuntimeException occurring in a PrivilegedExceptionAction?
>
> // org.apache.jasper.runtime.PageContextImpl
>
> public void handlePageException(final Throwable t) throws IOException,
>     ServletException {
>   if (t == null)
>     throw new NullPointerException("null Throwable");
>
>   if (SecurityUtil.isPackageProtectionEnabled()) {
>     try {
>       AccessController.doPrivileged(
>           new PrivilegedExceptionAction<Void>() {
>         public Void run() throws Exception {
>           doHandlePageException(t);
>           return null;
>         }
>       });
>     } catch (PrivilegedActionException e) {
>       Exception ex = e.getException();
>       if (ex instanceof IOException) {
>         throw (IOException) ex;
>       } else {
>         throw (ServletException) ex; <------ here?
>       }
>     }
>   } else {
>     doHandlePageException(t);
>   }
>
> }
>
> Cheers,
> Marc.
>
> Toby Reyelts a écrit :
> > There's an outstanding issue in the version of Jasper App Engine is
> > currently using that can cause exceptions escaping a JSP to be
> > incorrectly cast to ServletException. As a temporary workaround, you can
> > wrap the body of your JSP in a try-catch block to get the actual
> exception.
> >
> > On Thu, Jul 30, 2009 at 1:13 PM, Blessed Geek <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >
> >     http://cuckooberra.blessed-are-the-geek.com/TableMgr/TableMgr.jsp
> >
> >     Any idea what this error log means? LoggedIn.jsp is a rather simple
> >     jsp, getting a temp authtoken and exchanging it for a permanent one.
> >     My app runs fine on local eclipse plugin, but on deployment this
> error
> >     resulted.
> >
> >     07-30 07:30AM 49.848
> >     /TableMgr/LoggedIn.jsp
> >     java.lang.ClassCastException: java.lang.NullPointerException cannot
> be
> >     cast to javax.servlet.ServletException
> >            at
> org.apache.jasper.runtime.PageContextImpl.handlePageException
> >     (PageContextImpl.java:754)
> >
> >
> >
> >
> > >
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to