Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Caused by: java.lang.NullPointerException: null while processing block 000003510 #494

Open
luisalrp opened this issue Apr 10, 2020 · 4 comments
Assignees
Labels

Comments

@luisalrp
Copy link

Hello,

I am trying to run it and I get the following error:

13:58:31 - =================================== 13:58:31 - Starting to process block 000003510 13:58:31 - Loading block data from Bitcoin core 13:58:31 - Treating 1 address(es) 13:58:31 - - Creating address 1PZwWEJe5YGx9bzJbEpgXiWLuWnyD2rjLA 13:58:31 - Treating 2 transaction(s) 13:58:31 - - Transaction 1/2 created (73d37b2c3ad499980602624ef7dbb50c586153fca9651697644fd7ed7bc44bd8 : 1 vin(s) & 1 vout(s)) 13:58:31 - An error occurred while processing block : Error mapping GraphModel; nested exception is org.neo4j.ogm.exception.core.MappingException: Error mapping GraphModel org.springframework.dao.InvalidDataAccessApiUsageException: Error mapping GraphModel; nested exception is org.neo4j.ogm.exception.core.MappingException: Error mapping GraphModel at org.springframework.data.neo4j.transaction.SessionFactoryUtils.convertOgmAccessException(SessionFactoryUtils.java:125) at org.springframework.data.neo4j.repository.support.Neo4jPersistenceExceptionTranslator.translateExceptionIfPossible(Neo4jPersistenceExceptionTranslator.java:31) at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61) at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) at com.sun.proxy.$Proxy98.findByTxIdAndN(Unknown Source) at com.oakinvest.b2g.batch.ImportBatch.lambda$processBlock$5(ImportBatch.java:229) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(Unknown Source) at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source) at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source) at com.oakinvest.b2g.batch.ImportBatch.lambda$processBlock$8(ImportBatch.java:226) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(Unknown Source) at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.base/java.util.stream.ForEachOps$ForEachTask.compute(Unknown Source) at java.base/java.util.concurrent.CountedCompleter.exec(Unknown Source) at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.helpCC(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool.externalHelpComplete(Unknown Source) at java.base/java.util.concurrent.ForkJoinTask.tryExternalHelp(Unknown Source) at java.base/java.util.concurrent.ForkJoinTask.externalAwaitDone(Unknown Source) at java.base/java.util.concurrent.ForkJoinTask.doInvoke(Unknown Source) at java.base/java.util.concurrent.ForkJoinTask.invoke(Unknown Source) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateParallel(Unknown Source) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(Unknown Source) at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source) at java.base/java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) at com.oakinvest.b2g.batch.ImportBatch.processBlock(ImportBatch.java:219) at com.oakinvest.b2g.batch.ImportBatch.execute(ImportBatch.java:107) at com.oakinvest.b2g.batch.ImportBatch$$FastClassBySpringCGLIB$$ddc8199d.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691) at com.oakinvest.b2g.batch.ImportBatch$$EnhancerBySpringCGLIB$$7b95c2ee.execute(<generated>) at jdk.internal.reflect.GeneratedMethodAccessor89.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: org.neo4j.ogm.exception.core.MappingException: Error mapping GraphModel at org.neo4j.ogm.context.GraphEntityMapper.mapContentOf(GraphEntityMapper.java:164) at org.neo4j.ogm.context.GraphEntityMapper.lambda$map$2(GraphEntityMapper.java:115) at java.base/java.util.ArrayList.forEach(Unknown Source) at org.neo4j.ogm.context.GraphEntityMapper.map(GraphEntityMapper.java:117) at org.neo4j.ogm.context.GraphRowListModelMapper.map(GraphRowListModelMapper.java:91) at org.neo4j.ogm.session.delegates.LoadByTypeDelegate.lambda$loadAll$0(LoadByTypeDelegate.java:102) at org.neo4j.ogm.session.Neo4jSession.doInTransaction(Neo4jSession.java:590) at org.neo4j.ogm.session.Neo4jSession.doInTransaction(Neo4jSession.java:564) at org.neo4j.ogm.session.delegates.LoadByTypeDelegate.loadAll(LoadByTypeDelegate.java:95) at org.neo4j.ogm.session.delegates.LoadByTypeDelegate.loadAll(LoadByTypeDelegate.java:160) at org.neo4j.ogm.session.Neo4jSession.loadAll(Neo4jSession.java:285) at jdk.internal.reflect.GeneratedMethodAccessor113.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:282) at org.springframework.data.neo4j.transaction.SharedSessionCreator$SharedSessionInvocationHandler.lambda$invoke$1(SharedSessionCreator.java:121) at org.springframework.data.neo4j.transaction.SharedSessionCreator$SharedSessionInvocationHandler.invokeInTransaction(SharedSessionCreator.java:159) at org.springframework.data.neo4j.transaction.SharedSessionCreator$SharedSessionInvocationHandler.invoke(SharedSessionCreator.java:123) at com.sun.proxy.$Proxy85.loadAll(Unknown Source) at org.springframework.data.neo4j.repository.query.GraphQueryExecution$SingleEntityExecution.execute(GraphQueryExecution.java:57) at org.springframework.data.neo4j.repository.query.PartTreeNeo4jQuery.doExecute(PartTreeNeo4jQuery.java:75) at org.springframework.data.neo4j.repository.query.AbstractGraphRepositoryQuery.execute(AbstractGraphRepositoryQuery.java:57) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:618) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:605) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) ... 57 common frames omitted Caused by: java.lang.NullPointerException: null

@straumat
Copy link
Owner

Quite strange. Which release are you using ? and for neo4j ?
Docker or java ?

@luisalrp
Copy link
Author

Hello,

I'm using this, but it happened with the 3.2 snapshot also:

  • Docker version: 18.09.5
  • image: neo4j:3.5.12
  • image: straumat/blockchain2graph-bitcoin-neo4j:3.3-SNAPSHOT

@straumat
Copy link
Owner

I'm really sorry but i can't find the problem for now, i'm sure it works with 3.1 release. Can you give a try please ?

@luisalrp
Copy link
Author

Yes, I'll do. I'm resyncronizing my full node just in case and I'll try again :)

Thanks @straumat !

@straumat straumat self-assigned this May 8, 2020
@straumat straumat added the bug label May 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants