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.

Streaming-Poloniex NullPointer and missing onError handler in subscribe()

See original GitHub issue

i get this frequently:

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 | com.fasterxml.jackson.databind.exc.ValueInstantiationException: Cannot construct instance of `info.bitrich.xchangestream.poloniex2.dto.PoloniexWebSocketEventsTransaction`, problem: `java.lang.NullPointerException`
 at [Source: UNKNOWN; line: -1, column: -1]

Caused by: java.lang.NullPointerException
	at info.bitrich.xchangestream.poloniex2.dto.PoloniexWebSocketEventsTransaction.createEvents(PoloniexWebSocketEventsTransaction.java:46)
	at info.bitrich.xchangestream.poloniex2.dto.PoloniexWebSocketEventsTransaction.<init>(PoloniexWebSocketEventsTransaction.java:28)
	at jdk.internal.reflect.GeneratedConstructorAccessor110.newInstance(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
	at com.fasterxml.jackson.databind.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:124)
	at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromObjectWith(StdValueInstantiator.java:283)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
earcecommented, Dec 19, 2020

you need to have an “onError” or use the subscribe with an error parameter

0reactions
earcecommented, Dec 19, 2020

User error

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing onError handler in the subscribe() method call ...
Fatal Exception: io.reactivex.b.d: The exception was not handled due to missing onError handler in the subscribe() method call.
Read more >
ObservableZip .subscribe() crash: null pointer exception, but ...
In my code I have Observable.zip() in some parts (mostly in Fragments) and it looks like this: DisposableObserver<List<WalletBalance> ...
Read more >
How to handle NullPointerException in rxjava2 | by Kranthi Kulli
Below solution uses onErrorResumeNext to handle null returns than using Optional. onErrorResumeNext instructs a reactive type to emit a sequence ...
Read more >
Changelog | GENERAL BYTES
Terminal: Invalid ratesource configuration cased error messages not to be displayed on ... Server: Fixed Morphis list of terminals null pointer exception.
Read more >
Falcon Sandbox v9.0.2 © Hybrid Analysis
Submit malware for free analysis with Falcon Sandbox and Hybrid Analysis technology. Hybrid Analysis develops and licenses analysis tools to fight malware.
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