org.grails.datastore.mapping.engine.NonPersistentTypeException: [Club]

GitHub | mburak | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 20#254642832

    GitHub | 5 months ago | mburak
    org.grails.datastore.mapping.engine.NonPersistentTypeException: [Club]
  2. 0

    Cannot load entities with dynamic labels (on latest snapshot)

    GitHub | 5 months ago | mburak
    org.grails.datastore.mapping.engine.NonPersistentTypeException: [Player, club_FC Barcelona]
  3. 0

    Loading instances with dynamic relationships fails

    GitHub | 1 year ago | mburak
    org.grails.datastore.mapping.engine.NonPersistentTypeException: [User, user]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.grails.datastore.mapping.engine.NonPersistentTypeException

      [Club]

      at org.grails.datastore.gorm.neo4j.Neo4jMappingContext.findPersistentEntityForLabels()
    2. org.grails.datastore
      Neo4jResultList.nextDecoded
      1. org.grails.datastore.gorm.neo4j.Neo4jMappingContext.findPersistentEntityForLabels(Neo4jMappingContext.java:144)
      2. org.grails.datastore.gorm.neo4j.engine.Neo4jEntityPersister.unmarshall(Neo4jEntityPersister.java:561)
      3. org.grails.datastore.gorm.neo4j.engine.Neo4jEntityPersister.unmarshallOrFromCache(Neo4jEntityPersister.java:281)
      4. org.grails.datastore.gorm.neo4j.collection.Neo4jResultList.nextDecodedInternal(Neo4jResultList.groovy:91)
      5. org.grails.datastore.gorm.neo4j.collection.Neo4jResultList.nextDecoded(Neo4jResultList.groovy:79)
      5 frames
    3. Grails GORM
      AbstractResultList.get
      1. org.grails.datastore.gorm.query.AbstractResultList.convertObject(AbstractResultList.java:97)
      2. org.grails.datastore.gorm.query.AbstractResultList.get(AbstractResultList.java:82)
      2 frames
    4. Grails GORM
      Query.singleResult
      1. org.grails.datastore.mapping.query.Query.singleResult(Query.java:580)
      1 frame
    5. Grails GORM
      AbstractFindByFinder$1.doInSession
      1. org.grails.datastore.gorm.finders.AbstractFindByFinder.invokeQuery(AbstractFindByFinder.java:35)
      2. org.grails.datastore.gorm.finders.AbstractFindByFinder$1.doInSession(AbstractFindByFinder.java:29)
      2 frames
    6. Grails GORM
      DatastoreUtils.execute
      1. org.grails.datastore.mapping.core.DatastoreUtils.execute(DatastoreUtils.java:318)
      1 frame
    7. Grails GORM
      GormStaticApi$_methodMissing_closure2.doCall
      1. org.grails.datastore.gorm.finders.AbstractFinder.execute(AbstractFinder.java:42)
      2. org.grails.datastore.gorm.finders.AbstractFindByFinder.doInvokeInternal(AbstractFindByFinder.java:27)
      3. org.grails.datastore.gorm.finders.DynamicFinder.invoke(DynamicFinder.java:174)
      4. org.grails.datastore.gorm.finders.DynamicFinder.invoke(DynamicFinder.java:374)
      5. org.grails.datastore.gorm.finders.FinderMethod$invoke$0.call(Unknown Source)
      6. org.grails.datastore.gorm.GormStaticApi$_methodMissing_closure2.doCall(GormStaticApi.groovy:169)
      6 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor223.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    9. Springloaded
      ReflectiveInterceptor.jlrMethodInvoke
      1. org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1426)
      1 frame
    10. Groovy
      AbstractCallSite.call
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      3. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
      4. groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
      5. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
      6. groovy.lang.Closure.call(Closure.java:426)
      7. org.codehaus.groovy.runtime.metaclass.ClosureStaticMetaMethod.invoke(ClosureStaticMetaMethod.java:62)
      8. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      9. org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.invoke(StaticMetaMethodSite.java:46)
      10. org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:91)
      11. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      12. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
      13. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
      13 frames
    11. Unknown
      BootStrap.initUEFA
      1. BootStrap.initUEFA(BootStrap.groovy:140)
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    13. Springloaded
      ReflectiveInterceptor.jlrMethodInvoke
      1. org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1426)
      1 frame
    14. Groovy
      GroovyObjectSupport.invokeMethod
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      3. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
      4. groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
      5. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
      6. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1155)
      7. groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
      8. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
      9. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
      10. groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:46)
      10 frames
    15. Unknown
      BootStrap$_closure1.invokeMethod
      1. BootStrap$_closure1.invokeMethod(BootStrap.groovy)
      1 frame
    16. Groovy
      AbstractCallSite.callCurrent
      1. groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1275)
      2. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1169)
      3. groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
      4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
      5. org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
      6. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
      7. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
      8. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:158)
      8 frames
    17. Unknown
      BootStrap$_closure1$_closure6.doCall
      1. BootStrap$_closure1$_closure6.doCall(BootStrap.groovy:34)
      1 frame
    18. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    19. Springloaded
      ReflectiveInterceptor.jlrMethodInvoke
      1. org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1426)
      1 frame
    20. Groovy
      Closure.call
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      3. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
      4. groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
      5. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
      6. groovy.lang.Closure.call(Closure.java:426)
      6 frames
    21. Unknown
      BootStrap$_closure1$_closure6.call
      1. BootStrap$_closure1$_closure6.call(BootStrap.groovy)
      1 frame
    22. Groovy
      Closure.call
      1. groovy.lang.Closure.call(Closure.java:442)
      1 frame
    23. Unknown
      BootStrap$_closure1$_closure6.call
      1. BootStrap$_closure1$_closure6.call(BootStrap.groovy)
      1 frame
    24. grails.gorm.transactions
      GrailsTransactionTemplate$2.doInTransaction
      1. grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:90)
      1 frame
    25. Spring Tx
      TransactionTemplate.execute
      1. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
      1 frame
    26. grails.gorm.transactions
      GrailsTransactionTemplate.execute
      1. grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:87)
      1 frame
    27. Grails GORM
      GormEntity$Trait$Helper$withTransaction.call
      1. org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:983)
      2. org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:846)
      3. org.grails.datastore.gorm.GormEntity$Trait$Helper.withTransaction(GormEntity.groovy:913)
      4. org.grails.datastore.gorm.GormEntity$Trait$Helper$withTransaction.call(Unknown Source)
      4 frames
    28. Groovy
      AbstractCallSite.call
      1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
      3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
      3 frames
    29. app
      Club$withTransaction.call
      1. app.Club.withTransaction(Club.groovy)
      2. app.Club$withTransaction.call(Unknown Source)
      2 frames
    30. Groovy
      AbstractCallSite.call
      1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
      3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
      3 frames
    31. Unknown
      BootStrap$_closure1.doCall
      1. BootStrap$_closure1.doCall(BootStrap.groovy:33)
      1 frame
    32. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    33. Springloaded
      ReflectiveInterceptor.jlrMethodInvoke
      1. org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1426)
      1 frame
    34. Groovy
      Closure.call
      1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      3. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
      4. groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
      5. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
      6. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1084)
      7. groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
      8. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
      9. groovy.lang.Closure.call(Closure.java:426)
      10. groovy.lang.Closure.call(Closure.java:420)
      10 frames
    35. Grails
      DefaultGrailsBootstrapClass.callInit
      1. grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:327)
      2. grails.util.Environment.executeForEnvironment(Environment.java:320)
      3. grails.util.Environment.executeForCurrentEnvironment(Environment.java:296)
      4. org.codehaus.groovy.grails.commons.DefaultGrailsBootstrapClass.callInit(DefaultGrailsBootstrapClass.java:60)
      4 frames
    36. Grails
      GrailsContextLoaderListener.initWebApplicationContext
      1. org.codehaus.groovy.grails.web.context.GrailsConfigUtils.executeGrailsBootstraps(GrailsConfigUtils.java:78)
      2. org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener.initWebApplicationContext(GrailsContextLoaderListener.java:110)
      2 frames
    37. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
      1 frame
    38. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      4. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
      5. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
      5 frames
    39. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames