Re: [appengine-java] How active is GAE team in fixing bugs?
Hi Ikai, in other words you just say here that entering bugs (taking the time to see if a bug already exists, trying to build the smallest example to reproduce the problem, ...) is nearly lost time for GAE users :-( Cheers, Marc. Ikai L (Google) wrote: Pretty active. We don't use that issue tracker, so we occasionally have to scrub it. It's all a question of balancing priorities. On Wed, Jun 9, 2010 at 12:57 AM, Marc Guillemot mguille...@yahoo.fr mailto:mguille...@yahoo.fr wrote: Hi, I wonder how active GAE team is to fix bugs. I see only a very very limited activity in the bugs I've reported and in the numerous ones I've starred. Cheers, Marc. -- Blog: http://mguillem.wordpress.com -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] How active is GAE team in fixing bugs?
Hi, I wonder how active GAE team is to fix bugs. I see only a very very limited activity in the bugs I've reported and in the numerous ones I've starred. Cheers, Marc. -- Blog: http://mguillem.wordpress.com -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: JSONMarshaller on GAE
Hi François, does the problem occur in unit tests too? Do you custom types? JSONMarshaller has some problems with classloaders and custom types: http://code.google.com/p/jsonmarshaller/issues/detail?id=25 Cheers, Marc. -- Blog: http://mguillem.wordpress.com François wrote: This is happening locally. I'm using eclipse galileo. I tested all the tips i found on this page http://groups.google.com/group/google-appengine-java/browse_thread/thread/67cb7cdaefc8429f but i'm still stuck. Thank you for your time. On 2 juin, 00:42, Ikai L (Google) ika...@google.com wrote: Is this exception happening locally or in production? Are you using an IDE? Which one? On Tue, Jun 1, 2010 at 7:01 AM, François francois.poi...@gmail.com wrote: I'm trying to add the jar of jsonmarshaller to my application but i'm getting the classdefnotfound exception even though my jar is inside the web-inf/lib folder and has been added to the build path. here is the jar i'm adding http://code.google.com/p/jsonmarshaller/downloads/detail?name=json-0 -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: java.lang.NullPointerException cannot be cast to javax.servlet.ServletException
Don, I've tried to produce a unit test to open an issue for Jasper... and failed. I'm now quite sure that this is a bug in the JVM used for GAE. The JavaDoc of AccessController.doPrivileged (which is a native method) says that it propagates unchecked exceptions and throws a PrivilegedActionException only if a *checked* exception was thrown. Therefore Jasper code is correct not to await a RuntimeException as a PrivilegedActionException can't contain a NullPointerException and GAE's JVM is buggy here. Cheers, Marc. Don Schwarz a écrit : Ah, you're right actually. I hadn't looked closely enough at that bug. We'll have to get the Jasper guys to fix that and then upgrade. Thanks, Don On Mon, Oct 19, 2009 at 10:39 AM, Marc Guillemot mguille...@yahoo.fr mailto:mguille...@yahoo.fr wrote: This seems to be a really old issue that relates to something different... or do you mean that GAE uses a 5 years old version of Jasper? I've just look at the current sources of PageContextImpl http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/jasper/runtime/PageContextImpl.java and it seems to me that the problem still exists there. Cheers, Marc. Don Schwarz a écrit : 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 mguille...@yahoo.fr mailto:mguille...@yahoo.fr mailto:mguille...@yahoo.fr mailto:mguille...@yahoo.fr 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 PrivilegedExceptionActionVoid() { 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 blessedg...@gmail.com mailto:blessedg...@gmail.com mailto:blessedg...@gmail.com mailto:blessedg...@gmail.com mailto:blessedg...@gmail.com mailto:blessedg...@gmail.com mailto:blessedg...@gmail.com mailto:blessedg...@gmail.com 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 google-appengine-java@googlegroups.com To unsubscribe from this group
[appengine-java] Load order WEB-INF/classes not always before WEB-INF/*.jar?
Hi, my application encounters occasionally strange errors that I can only explain by an incorrect load order (Servlet spec specifies that the webapp class loader must load first from WEB-INF/classes and then from WEB-INF/lib/*.jar). Is it possible? For the details: to allow HtmlUnit to work with AppEngine, I've hacked 2 classes and I've put my hacked version of these classes in WEB-INF/classes whereas the normal jar resides in WEB-INF/lib. This means that these two classes exist twice in the classpath what should not be a problem as WEB-INF/classes has priority but some error messages show that the original version in WEB-INF/lib/htmlunit-x.x.jar is used from time to time. Cheers, Marc. --~--~-~--~~~---~--~~ 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 google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: java.lang.NullPointerException cannot be cast to javax.servlet.ServletException
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 PrivilegedExceptionActionVoid() { 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 blessedg...@gmail.com mailto:blessedg...@gmail.com 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 google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Load order WEB-INF/classes not always before WEB-INF/*.jar?
Hi Toby, thanks for the quick answer. I'll open an issue if I'm able to make the problem reproducible. Cheers, Marc. Toby Reyelts a écrit : Hey Marc, We're not aware of this being a problem. As far as we know, we're conforming to the standard by preferring classes in WEB-INF/lib. Can you reproduce this definitively? For example, check the value of TheHtmlUnitClassThatYouAreShadowing.class.getCodeSource().getProtectionDomain().getLocation(). If you can provide a sample app that shows this behavior, that would be great. On Mon, Oct 19, 2009 at 11:02 AM, Marc Guillemot mguille...@yahoo.fr mailto:mguille...@yahoo.fr wrote: Hi, my application encounters occasionally strange errors that I can only explain by an incorrect load order (Servlet spec specifies that the webapp class loader must load first from WEB-INF/classes and then from WEB-INF/lib/*.jar). Is it possible? For the details: to allow HtmlUnit to work with AppEngine, I've hacked 2 classes and I've put my hacked version of these classes in WEB-INF/classes whereas the normal jar resides in WEB-INF/lib. This means that these two classes exist twice in the classpath what should not be a problem as WEB-INF/classes has priority but some error messages show that the original version in WEB-INF/lib/htmlunit-x.x.jar is used from time to time. Cheers, Marc. --~--~-~--~~~---~--~~ 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 google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: java.lang.NullPointerException cannot be cast to javax.servlet.ServletException
This seems to be a really old issue that relates to something different... or do you mean that GAE uses a 5 years old version of Jasper? I've just look at the current sources of PageContextImpl http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/jasper/runtime/PageContextImpl.java and it seems to me that the problem still exists there. Cheers, Marc. Don Schwarz a écrit : 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 mguille...@yahoo.fr mailto:mguille...@yahoo.fr 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 PrivilegedExceptionActionVoid() { 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 blessedg...@gmail.com mailto:blessedg...@gmail.com mailto:blessedg...@gmail.com mailto:blessedg...@gmail.com 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 google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---