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.

Better handle unexpected error in DefaultRegistrationEngine.

See original GitHub issue

Hello,

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:closed
  • Created 3 years ago
  • Comments:21 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
moznioncommented, Dec 8, 2020

In my understanding, I finished my work on the master branch.

Do you plan to backport this on 1.x, soon ?

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.

0reactions
sbernard31commented, Dec 10, 2020

This should be fixed in master(#940, #941) and 1.x(#945) and will be available in 2.0.0-M2 and 1.3.0.

Read more comments on GitHub >

github_iconTop 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 >

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