VerifyError with @ActiveMethod

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

VerifyError with @ActiveMethod

nabblee
I've run into this issue multiple times when trying to use the Actor annotations.  It seems to be kind of random when it occurs versus when it doesn't.  But when it does occur, I haven't found anything that gets rid of it but removing the @ActiveMethod annotation.  This happens whether using def or void and whether I specify the parameter type or not.  I've also seen it happen without blocking=true.

@Slf4j
@Singleton
@ActiveObject
class TUActor {
        @ActiveMethod(blocking=true) void updateSwarm(Swarm s) { ... }
}

results in

Exception in thread "main" java.lang.VerifyError: (class: com/tradeunafraid/TUActor, method: activeObject_updateSwarm signature: (Lcom/lossless/strategy/swarm/Swarm;)Ljava/lang/Object;) Incompatible argument to function
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493)
        at java.lang.Class.getDeclaredConstructors(Class.java:1901)
        at org.codehaus.groovy.reflection.CachedClass$2$1.run(CachedClass.java:69)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.codehaus.groovy.reflection.CachedClass$2.initValue(CachedClass.java:66)
        at org.codehaus.groovy.reflection.CachedClass$2.initValue(CachedClass.java:64)
        at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
        at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
        at org.codehaus.groovy.reflection.CachedClass.getConstructors(CachedClass.java:258)
        at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:189)
        at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:193)
        at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createNormalMetaClass(MetaClassRegistry.java:158)
        at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createWithCustomLookup(MetaClassRegistry.java:148)
        at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.create(MetaClassRegistry.java:131)
        at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:175)
        at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:192)
        at org.codehaus.groovy.runtime.callsite.ClassMetaClassGetPropertySite.<init>(ClassMetaClassGetPropertySite.java:35)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.createClassMetaClassGetPropertySite(AbstractCallSite.java:296)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.createGetPropertySite(AbstractCallSite.java:248)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.acceptGetProperty(AbstractCallSite.java:235)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
        at com.tradeunafraid.TradeUnafraid.<clinit>(TradeUnafraid.groovy)

What could be causing this?