org.neo4j.ogm.metadata.MappingException

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.

  • 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}
    via by Andrea Lancia,
  • 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}
    via by Andrea Lancia,
    • 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
    No Bugmate found.