Hey Clint,

This looks like a bug on our end. Would you mind filing an issue for us in
our tracker? Meanwhile, you can work around this by patching
DynamicClassLoader.java to not use sun.misc.Unsafe.

Change:

    public Class defineClassX(String className, byte[] b, int start, int
> end) {
>         totalClasses++;
>         if (sunJVM) {
>             return ((Unsafe) sunUnsafe).defineClass(className, b, start,
> end);
>         }
>         else {
>           return super.defineClass(className, b, start, end);
>         }
>     }
>

To:

    public Class defineClassX(String className, byte[] b, int start, int
> end) {
>         totalClasses++;
>         return super.defineClass(className, b, start, end);
>     }
>

App Engine doesn't allow access to sun.misc.Unsafe, so even after this
verifier error is fixed, the code path is identical.


On Sat, Sep 12, 2009 at 4:58 PM, Clint <[email protected]> wrote:

>
> I'm getting an exception using the MVEL2 library, but only in
> production... any ideas how to resolve this?  I'd love to set --
> noverify, but that's not really an option, right?
>
> Nested in javax.servlet.ServletException: init:
> java.lang.VerifyError: (class: org/mvel2/optimizers/dynamic/
> DynamicClassLoader, method: defineClassX signature: (Ljava/lang/String;
> [BII)Ljava/lang/Class;) Incompatible object argument for function call
>        at org.mvel2.optimizers.dynamic.DynamicOptimizer._init
> (DynamicOptimizer.java:46)
>        at org.mvel2.optimizers.dynamic.DynamicOptimizer.init
> (DynamicOptimizer.java:42)
>        at org.mvel2.optimizers.OptimizerFactory.setDefaultOptimizer
> (OptimizerFactory.java:106)
>        at org.mvel2.optimizers.OptimizerFactory.<clinit>
> (OptimizerFactory.java:64)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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