Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hdpowerview] Eliminate nightly crash dump #10118

Merged
merged 4 commits into from Feb 16, 2021

Conversation

andrewfg
Copy link
Contributor

Background

The HDPowerView hub goes briefly offline every night in the small hours for house-keeping. The binding detects this behaviour and (since it is by design) does not log this as an error.

In OH2, the binding used its own Jersey JAX-RS client, so the binding could detect and handle this offline state fully within its own code. But in OH3 the binding was migrated via PR 9224 to use the Apache CXF JAX-RS client of the OH core instead. This means that the OH core sees the offline condition before the binding can handle it; so the Apache CXF code of the core writes a crash dump into the log every night.

This was reported as an issue here #10057

Solution

This PR migrates the binding from using the Apache CXF JAX-RS client of the OH core to using the Jetty HTTP client of the OH core instead. This means that the housekeeping offline state of the hub can once more be caught and handled softly by the binding.

Signed-off-by: Andrew Fiddian-Green software@whitebear.ch

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg added the bug An unexpected problem or unintended behavior of an add-on label Feb 10, 2021
@andrewfg andrewfg changed the title [hdpowerview] Eliminate nighlty crash dump in OH3 [hdpowerview] Eliminate nightly crash dump in OH3 Feb 10, 2021
@andrewfg andrewfg linked an issue Feb 10, 2021 that may be closed by this pull request
@andrewfg andrewfg requested review from J-N-K and a team February 10, 2021 12:20
@cpmeister cpmeister self-assigned this Feb 14, 2021
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@cpmeister cpmeister merged commit 596b261 into openhab:main Feb 16, 2021
@cpmeister cpmeister added this to the 3.1 milestone Feb 16, 2021
@andrewfg
Copy link
Contributor Author

@cpmeister many thanks Connor

K4ntir4n pushed a commit to K4ntir4n/openhab-addons that referenced this pull request Feb 17, 2021
* [hdpowerview] refactor from jax-rs to http client
* [hdpowerview] adopt proposals of code reviewer
* [hdpowerview] adopt additional proposals of code reviewer
* [hdpowerview] provide exception class name

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg deleted the hdpowerview-httpclient branch March 30, 2021 13:19
themillhousegroup pushed a commit to themillhousegroup/openhab2-addons that referenced this pull request May 10, 2021
* [hdpowerview] refactor from jax-rs to http client
* [hdpowerview] adopt proposals of code reviewer
* [hdpowerview] adopt additional proposals of code reviewer
* [hdpowerview] provide exception class name

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: John Marshall <john.marshall.au@gmail.com>
@wborn wborn changed the title [hdpowerview] Eliminate nightly crash dump in OH3 [hdpowerview] Eliminate nightly crash dump Jun 22, 2021
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this pull request Nov 7, 2021
* [hdpowerview] refactor from jax-rs to http client
* [hdpowerview] adopt proposals of code reviewer
* [hdpowerview] adopt additional proposals of code reviewer
* [hdpowerview] provide exception class name

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
* [hdpowerview] refactor from jax-rs to http client
* [hdpowerview] adopt proposals of code reviewer
* [hdpowerview] adopt additional proposals of code reviewer
* [hdpowerview] provide exception class name

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression in 'javax.ws.rs.client' in OH3
2 participants