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.

mzan.com | 4 months ago
  1. 0

    spring-boot does not honour @EntityScan in multimodule gradle build using GORM

    Stack Overflow | 2 years ago | runeaen
    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.
  2. 0

    spring-boot does not honour @EntityScan in multimodule gradle build using GORM - codes fans

    mzan.com | 4 months ago
    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.
  3. 0

    Grails context.GrailsContextLoader Error initializing the application: Method on class [] was used outside of a Grails application

    Stack Overflow | 3 years ago | user3246290
    java.lang.IllegalStateException: Method on class [etezia.Role] was used outside of a Grails application. If running in the context of a test using the mocking API or bootstrap Grails correctly.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Grails - severe IllegalStateException - Method on class [] was used outside of a Grails application

    Stack Overflow | 4 years ago | Makavelli
    java.lang.IllegalStateException: Method on class [pl.edu.caspar.analyzer.GameStateTransition] was used outside of a Grails application. If running in the context of a test using the mocking API or bootstrap Grails correctly.
  6. 0

    Domain classes cannot be used in BootStrap.groovy when using postgresql-extensions grails plugin version 4.6.3

    GitHub | 12 months ago | make
    java.lang.IllegalStateException: Method on class [my.app.JobStatus] was used outside of a Grails application. If running in the context of a test using the mocking API or bootstrap Grails correctly.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. geit.domain.entity
      Animal.$static_methodMissing
      1. geit.domain.entity.experimental.reku.Animal.currentGormStaticApi(Animal.groovy)
      2. geit.domain.entity.experimental.reku.Animal.$static_methodMissing(Animal.groovy)
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    4. Springloaded
      ReflectiveInterceptor.jlrMethodInvoke
      1. org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
      1 frame
    5. Groovy
      AbstractCallSite.call
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
      2. groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1493)
      3. groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1481)
      4. groovy.lang.ExpandoMetaClass.invokeStaticMethod(ExpandoMetaClass.java:1123)
      5. org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:50)
      6. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
      7. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
      8. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      8 frames
    6. geit.api.experimental
      AnimalsResource.greet
      1. geit.api.experimental.reku.AnimalsResource.greet(AnimalsResource.groovy:32)
      1 frame
    7. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame