java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • java.lang.IllegalStateException: Method on class [geit.domain.entity.experimental.reku.Animal] was used outside of a Grails application. If running in the context of a test using the mocking API or bootstrap Grails correctly. at geit.domain.entity.experimental.reku.Animal.currentGormStaticApi(Animal.groovy) at geit.domain.entity.experimental.reku.Animal.$static_methodMissing(Animal.groovy) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1493) at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1481) at groovy.lang.ExpandoMetaClass.invokeStaticMethod(ExpandoMetaClass.java:1123) at org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:50) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at geit.api.experimental.reku.AnimalsResource.greet(AnimalsResource.groovy:32) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
No Bugmate found.