question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unrecoverable Null Pointer Exception

See original GitHub issue

Version: Building from master branch Ethereum Node: Rinkeby WS Infura Strategy: PUBSUB

Error:

io.reactivex.exceptions.OnErrorNotImplementedException: The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | java.lang.NullPointerException
        at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:704)
        at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:701)
        at io.reactivex.internal.subscribers.LambdaSubscriber.onError(LambdaSubscriber.java:79)
        at io.reactivex.internal.subscribers.LambdaSubscriber.onNext(LambdaSubscriber.java:69)
        at io.reactivex.internal.operators.flowable.FlowableSubscribeOn$SubscribeOnSubscriber.onNext(FlowableSubscribeOn.java:97)
        at io.reactivex.internal.operators.flowable.FlowableConcatArray$ConcatArraySubscriber.onNext(FlowableConcatArray.java:76)
        at io.reactivex.internal.operators.flowable.FlowableFlatMap$MergeSubscriber.tryEmitScalar(FlowableFlatMap.java:234)
        at io.reactivex.internal.operators.flowable.FlowableFlatMap$MergeSubscriber.onNext(FlowableFlatMap.java:152)
        at io.reactivex.internal.operators.flowable.FlowableCreate$BufferAsyncEmitter.drain(FlowableCreate.java:547)
        at io.reactivex.internal.operators.flowable.FlowableCreate$BufferAsyncEmitter.onNext(FlowableCreate.java:471)
        at org.web3j.protocol.core.filters.BlockFilter.process(BlockFilter.java:42)
        at org.web3j.protocol.core.filters.Filter.pollFilter(Filter.java:144)
        at org.web3j.protocol.core.filters.Filter.lambda$run$0(Filter.java:92)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
        at net.consensys.eventeum.chain.service.domain.wrapper.Web3jBlock.lambda$new$0(Web3jBlock.java:52)
        at org.modelmapper.internal.TypeMapImpl.addMappings(TypeMapImpl.java:236)
        at net.consensys.eventeum.chain.service.domain.wrapper.Web3jBlock.<init>(Web3jBlock.java:47)
        at net.consensys.eventeum.chain.service.strategy.PollingBlockSubscriptionStrategy.convertToEventeumBlock(PollingBlockSubscriptionStrategy.java:51)
        at net.consensys.eventeum.chain.service.strategy.PollingBlockSubscriptionStrategy.convertToEventeumBlock(PollingBlockSubscriptionStrategy.java:22)
        at net.consensys.eventeum.chain.service.strategy.AbstractBlockSubscriptionStrategy.triggerListeners(AbstractBlockSubscriptionStrategy.java:72)
        at net.consensys.eventeum.chain.service.strategy.PollingBlockSubscriptionStrategy.lambda$subscribe$0(PollingBlockSubscriptionStrategy.java:38)
        at io.reactivex.internal.subscribers.LambdaSubscriber.onNext(LambdaSubscriber.java:65)
        ... 16 more
Exception in thread "pool-3-thread-6" io.reactivex.exceptions.OnErrorNotImplementedException: The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | java.lang.NullPointerException
        at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:704)
        at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:701)
        at io.reactivex.internal.subscribers.LambdaSubscriber.onError(LambdaSubscriber.java:79)
        at io.reactivex.internal.subscribers.LambdaSubscriber.onNext(LambdaSubscriber.java:69)
        at io.reactivex.internal.operators.flowable.FlowableSubscribeOn$SubscribeOnSubscriber.onNext(FlowableSubscribeOn.java:97)
        at io.reactivex.internal.operators.flowable.FlowableConcatArray$ConcatArraySubscriber.onNext(FlowableConcatArray.java:76)
        at io.reactivex.internal.operators.flowable.FlowableFlatMap$MergeSubscriber.tryEmitScalar(FlowableFlatMap.java:234)
        at io.reactivex.internal.operators.flowable.FlowableFlatMap$MergeSubscriber.onNext(FlowableFlatMap.java:152)
        at io.reactivex.internal.operators.flowable.FlowableCreate$BufferAsyncEmitter.drain(FlowableCreate.java:547)
        at io.reactivex.internal.operators.flowable.FlowableCreate$BufferAsyncEmitter.onNext(FlowableCreate.java:471)
        at org.web3j.protocol.core.filters.BlockFilter.process(BlockFilter.java:42)
        at org.web3j.protocol.core.filters.Filter.pollFilter(Filter.java:144)
        at org.web3j.protocol.core.filters.Filter.lambda$run$0(Filter.java:92)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
        at net.consensys.eventeum.chain.service.domain.wrapper.Web3jBlock.lambda$new$0(Web3jBlock.java:52)
        at org.modelmapper.internal.TypeMapImpl.addMappings(TypeMapImpl.java:236)
        at net.consensys.eventeum.chain.service.domain.wrapper.Web3jBlock.<init>(Web3jBlock.java:47)
        at net.consensys.eventeum.chain.service.strategy.PollingBlockSubscriptionStrategy.convertToEventeumBlock(PollingBlockSubscriptionStrategy.java:51)
        at net.consensys.eventeum.chain.service.strategy.PollingBlockSubscriptionStrategy.convertToEventeumBlock(PollingBlockSubscriptionStrategy.java:22)
        at net.consensys.eventeum.chain.service.strategy.AbstractBlockSubscriptionStrategy.triggerListeners(AbstractBlockSubscriptionStrategy.java:72)
        at net.consensys.eventeum.chain.service.strategy.PollingBlockSubscriptionStrategy.lambda$subscribe$0(PollingBlockSubscriptionStrategy.java:38)
        at io.reactivex.internal.subscribers.LambdaSubscriber.onNext(LambdaSubscriber.java:65)
        ... 16 more

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
craigwilliams84commented, Feb 18, 2020

Thanks for raising this Hayder. I’ve been at ETHDenver over the last few days, but will take a look ASAP.

0reactions
josephlama07commented, Oct 11, 2022

I am having the same issue , how can i solve this @craigwilliams84?

Read more comments on GitHub >

github_iconTop Results From Across the Web

null java.lang.NullPointerException' and 'WARN - Unexpected ...
Information in this document applies to any platform. Symptoms. When trying to configure a PIA site for a PIA domain using the PSADMIN...
Read more >
Unrecoverable error while evaluating node, Caused by: java ...
Description of the bug: Bazel crashes with a NullPointerException in com.google.devtools.build.lib.rules.cpp when trying to build a target.
Read more >
Should I throw a NullPointerException explicitly or let Java do ...
In your case, I'd say IllegalStateException would fit the situation "wrong setup of the system, and pretty unrecoverable from at runtime". Or ...
Read more >
How to resolve the java.lang.NullPointerException - Educative.io
In Java, the java.lang.NullPointerException is thrown when a reference variable is accessed (or de-referenced) and is not pointing to any object.
Read more >
Unrecoverable internal error: java.lang.NullPointerException ...
While iam trying to open the application iam getting this error ' fatal internal error: java.lang.NullPointerException ", iam unable to understand what is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found