Hi Leo,

I followed Toby's suggestion but I get this error on GAE (the method works 
fine on localhost)
Does your assertion work on sdk 1.7.0?

java.lang.NoClassDefFoundError: Could not initialize class

Thanks!


On Thursday, March 3, 2011 12:14:35 PM UTC+8, Leo Kuznetsov wrote:
>
> Hi Toby, 
>
> Thank you very much. I juste verified on GAE production. It works. 
> (I wonder why nobody has asked before - everyone figured it out on his/ 
> her own or no one bothered?) 
> PS: May be a word or two in GAE docs about assertions in java may help 
> (I've searched and found nothing). 
>
> Thanks again 
>
> Leo 
>
> On Mar 2, 2:43 pm, Toby Reyelts <[email protected]> wrote: 
> > Try doing 
> YourClass.class.getClassLoader().setDefaultAssertionStatus(true); 
> > 
> > On Sat, Feb 26, 2011 at 10:48 PM, Leo Kuznetsov 
> > <[email protected]>wrote: 
>
> > 
> > 
> > 
> > > of course, I can do it on local host, but is the a way to do it via 
> some 
> > > tag in e.g. appengine-web.xml? 
> > > I tried to put 
> > >     static { 
> > >         
> ClassLoader.getSystemClassLoader().setDefaultAssertionStatus(true); 
> > >     } 
> > > but this does make servlet loading fail... (almost as expected). 
> > 
> > > Any help would be appreciated. 
> > 
> > > PS: It really helps to have asserts working in production environment. 
> > 
> > >  -- 
> > > You received this message because you are subscribed to the Google 
> Groups 
> > > "Google App Engine" group. 
> > > To post to this group, send email to 
> > > [email protected]<javascript:>. 
>
> > > To unsubscribe from this group, send email to 
> > > [email protected] <javascript:>. 
> > > For more options, visit this group at 
> > >http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/eAKLIajWwGsJ.
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?hl=en.

Reply via email to