Better handle unexpected error in DefaultRegistrationEngine.
See original GitHub issueHello,
If the procedure inside of ClientInitiatedBootstrapTask
, UpdateRegistrationTask
, and/or RegistrationTask
raises an unexpected exception, that exception caught by a catch
clause and it logs that, but that task never works after caught and unfortunately the process still alive.
For example, if registerWithRetry()
that is in RegistrationTask#run()
raises a RuntimeException
, that task never scheduled anymore (i.e. that process does nothing).
This behavior makes it a little bit hard to implement a robust LwM2M client. I think it would be better to provide a way to exit when it falls into an unexpected situation.
What do you think about this?
Issue Analytics
- State:
- Created 3 years ago
- Comments:21 (21 by maintainers)
Top Results From Across the Web
Eclipse Leshan™ 1.3.0
Main changes are : Better unexpected error handling in client DefaultRegistrationEngine. (#933); Add Destroyable, Startable and Stoppable support to ...
Read more >Dealing with Unexpected Errors in Processes - Keep Kalm
First uncovered scenario: The selected option (flight or hotel) is not available (business exception);; Second uncovered scenario: One or more ...
Read more >Angular General Error Handling for unexpected errors
How? I'm looking for a solution where I don't have to distinguish in every backend request or post if the error is unexpected...
Read more >eclipse/leshan で最近直した問題について
Better handle unexpected error in DefaultRegistrationEngine. · Issue #933 · eclipse/leshan · GitHub 例えば以下のようなコードの箇所でRun…
Read more >Leshan Versions - Open Source Agenda
This is the best way to get a final 2.0.0 release which fits your needs. ... Better unexpected error handling in client DefaultRegistrationEngine...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In my understanding, I finished my work on the
master
branch.Yeah, I’d like to backport those features to the
1.x
project (actually this is just what I needed 😄 ). I’m going to try that according to your suggestion.This should be fixed in
master
(#940, #941) and1.x
(#945) and will be available in 2.0.0-M2 and 1.3.0.