org.neo4j.ogm.metadata.MappingException: Error mapping GraphModel to instance of keyron.fbnet.model.Account

Spring JIRA | Andrea Lancia | 1 year ago
  1. 0

    In EntityCollector {code:java} public Set<Object> getCollectiblesForOwnerAndRelationshipType(Object owningObject, String relationshipType) { return this.relationshipTypes.get(owningObject).get(relationshipType); } {code} this.relationshipTypes.get(owningObject) is null. therefore the exception. here thestack trace: {code:java} 2015-06-15 15:13:16 ERROR InfoGrabber:161 - Unknown Exception org.neo4j.ogm.metadata.MappingException: Error mapping GraphModel to instance of keyron.fbnet.model.Account at org.neo4j.ogm.mapper.GraphEntityMapper.mapEntities(GraphEntityMapper.java:92) at org.neo4j.ogm.mapper.GraphEntityMapper.map(GraphEntityMapper.java:64) at org.neo4j.ogm.session.response.SessionResponseHandler.loadById(SessionResponseHandler.java:137) at org.neo4j.ogm.session.delegates.LoadOneDelegate.load(LoadOneDelegate.java:43) at org.neo4j.ogm.session.Neo4jSession.load(Neo4jSession.java:93) at org.springframework.data.neo4j.repository.GraphRepositoryImpl.findOne(GraphRepositoryImpl.java:113) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:452) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:437) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:409) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy53.findOne(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) at com.sun.proxy.$Proxy55.findOne(Unknown Source) at keyron.fbnet.crawler.AccountManager.UsersAccountRetriever.completeRetrieveFromNeo4j(UsersAccountRetriever.java:73) at keyron.fbnet.crawler.jsoup.AccountHydratator.hydrateAccount(AccountHydratator.java:46) at keyron.fbnet.crawler.Crawler.getAccountInfo(Crawler.java:67) at keyron.fbnet.crawler.InfoGrabber.getInfo(InfoGrabber.java:143) at keyron.fbnet.crawler.InfoGrabber.call(InfoGrabber.java:115) at keyron.fbnet.crawler.InfoGrabber.call(InfoGrabber.java:38) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.neo4j.ogm.mapper.EntityCollector.getCollectiblesForOwnerAndRelationshipType(EntityCollector.java:77) at org.neo4j.ogm.mapper.GraphEntityMapper.mapOneToMany(GraphEntityMapper.java:332) at org.neo4j.ogm.mapper.GraphEntityMapper.mapRelationships(GraphEntityMapper.java:257) at org.neo4j.ogm.mapper.GraphEntityMapper.mapEntities(GraphEntityMapper.java:90) ... 40 more {code}

    Spring JIRA | 1 year ago | Andrea Lancia
    org.neo4j.ogm.metadata.MappingException: Error mapping GraphModel to instance of keyron.fbnet.model.Account
  2. 0

    In EntityCollector {code:java} public Set<Object> getCollectiblesForOwnerAndRelationshipType(Object owningObject, String relationshipType) { return this.relationshipTypes.get(owningObject).get(relationshipType); } {code} this.relationshipTypes.get(owningObject) is null. therefore the exception. here thestack trace: {code:java} 2015-06-15 15:13:16 ERROR InfoGrabber:161 - Unknown Exception org.neo4j.ogm.metadata.MappingException: Error mapping GraphModel to instance of keyron.fbnet.model.Account at org.neo4j.ogm.mapper.GraphEntityMapper.mapEntities(GraphEntityMapper.java:92) at org.neo4j.ogm.mapper.GraphEntityMapper.map(GraphEntityMapper.java:64) at org.neo4j.ogm.session.response.SessionResponseHandler.loadById(SessionResponseHandler.java:137) at org.neo4j.ogm.session.delegates.LoadOneDelegate.load(LoadOneDelegate.java:43) at org.neo4j.ogm.session.Neo4jSession.load(Neo4jSession.java:93) at org.springframework.data.neo4j.repository.GraphRepositoryImpl.findOne(GraphRepositoryImpl.java:113) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:452) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:437) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:409) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy53.findOne(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) at com.sun.proxy.$Proxy55.findOne(Unknown Source) at keyron.fbnet.crawler.AccountManager.UsersAccountRetriever.completeRetrieveFromNeo4j(UsersAccountRetriever.java:73) at keyron.fbnet.crawler.jsoup.AccountHydratator.hydrateAccount(AccountHydratator.java:46) at keyron.fbnet.crawler.Crawler.getAccountInfo(Crawler.java:67) at keyron.fbnet.crawler.InfoGrabber.getInfo(InfoGrabber.java:143) at keyron.fbnet.crawler.InfoGrabber.call(InfoGrabber.java:115) at keyron.fbnet.crawler.InfoGrabber.call(InfoGrabber.java:38) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.neo4j.ogm.mapper.EntityCollector.getCollectiblesForOwnerAndRelationshipType(EntityCollector.java:77) at org.neo4j.ogm.mapper.GraphEntityMapper.mapOneToMany(GraphEntityMapper.java:332) at org.neo4j.ogm.mapper.GraphEntityMapper.mapRelationships(GraphEntityMapper.java:257) at org.neo4j.ogm.mapper.GraphEntityMapper.mapEntities(GraphEntityMapper.java:90) ... 40 more {code}

    Spring JIRA | 1 year ago | Andrea Lancia
    org.neo4j.ogm.metadata.MappingException: Error mapping GraphModel to instance of keyron.fbnet.model.Account
  3. 0

    ClassCastException when dealing Long values in Integer range

    GitHub | 1 year ago | nicoruti
    org.neo4j.ogm.metadata.MappingException: Error mapping GraphModel to instance of A
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    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.NullPointerException

      No message provided

      at org.neo4j.ogm.mapper.EntityCollector.getCollectiblesForOwnerAndRelationshipType()
    2. org.neo4j.ogm
      Neo4jSession.load
      1. org.neo4j.ogm.mapper.EntityCollector.getCollectiblesForOwnerAndRelationshipType(EntityCollector.java:77)
      2. org.neo4j.ogm.mapper.GraphEntityMapper.mapOneToMany(GraphEntityMapper.java:332)
      3. org.neo4j.ogm.mapper.GraphEntityMapper.mapRelationships(GraphEntityMapper.java:257)
      4. org.neo4j.ogm.mapper.GraphEntityMapper.mapEntities(GraphEntityMapper.java:90)
      5. org.neo4j.ogm.mapper.GraphEntityMapper.map(GraphEntityMapper.java:64)
      6. org.neo4j.ogm.session.response.SessionResponseHandler.loadById(SessionResponseHandler.java:137)
      7. org.neo4j.ogm.session.delegates.LoadOneDelegate.load(LoadOneDelegate.java:43)
      8. org.neo4j.ogm.session.Neo4jSession.load(Neo4jSession.java:93)
      8 frames
    3. Spring Data Neo4j
      GraphRepositoryImpl.findOne
      1. org.springframework.data.neo4j.repository.GraphRepositoryImpl.findOne(GraphRepositoryImpl.java:113)
      1 frame
    4. 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
    5. Spring Data Core
      RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke
      1. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.executeMethodOn(RepositoryFactorySupport.java:452)
      2. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:437)
      3. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:409)
      3 frames
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    7. org.springframework.data
      DefaultMethodInvokingMethodInterceptor.invoke
      1. org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61)
      1 frame
    8. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    9. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      3 frames
    10. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    11. Spring Tx
      PersistenceExceptionTranslationInterceptor.invoke
      1. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)
      1 frame
    12. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      2 frames
    13. com.sun.proxy
      $Proxy53.findOne
      1. com.sun.proxy.$Proxy53.findOne(Unknown Source)
      1 frame
    14. 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
    15. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      2. org.springframework.aop.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)
      2 frames
    16. com.sun.proxy
      $Proxy55.findOne
      1. com.sun.proxy.$Proxy55.findOne(Unknown Source)
      1 frame
    17. keyron.fbnet.crawler
      InfoGrabber.call
      1. keyron.fbnet.crawler.AccountManager.UsersAccountRetriever.completeRetrieveFromNeo4j(UsersAccountRetriever.java:73)
      2. keyron.fbnet.crawler.jsoup.AccountHydratator.hydrateAccount(AccountHydratator.java:46)
      3. keyron.fbnet.crawler.Crawler.getAccountInfo(Crawler.java:67)
      4. keyron.fbnet.crawler.InfoGrabber.getInfo(InfoGrabber.java:143)
      5. keyron.fbnet.crawler.InfoGrabber.call(InfoGrabber.java:115)
      6. keyron.fbnet.crawler.InfoGrabber.call(InfoGrabber.java:38)
      6 frames
    18. 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