-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[modbus] Fix for NullPointerException #8206
Conversation
Fixes openhab#8205 Signed-off-by: Sami Salonen <[email protected]>
Travis tests have failedHey @ssalonen, |
Pre-built jars (in a zip) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes openhab#8205 Signed-off-by: Sami Salonen <[email protected]> Signed-off-by: MPH80 <[email protected]>
Problem still: 288 │ Active │ 80 │ 2.5.8.202007261630 │ openHAB Add-ons :: Bundles :: IO :: Modbus Transport |
Hi, thanks for reporting @massimilianocasini. Your stack trace does not match the new code
ModbusSlaveConnectionFactoryImpl.java Line 87 cannot possibly generate a null pointer exception since it is a comment line. I think you might have an issue the way you have installed a patched version. Do you have multiple versions "Active" when you list all bundles? Can you post full output of
|
Hi @ssalonen , right I have two modbus transport installed: 297 | Active | 80 | 2.5.7 | openHAB Add-ons :: Bundles :: IO :: Modbus Transport I have now removed 2.5.7 version. Let's see if it works well. Thanks |
Fixes openhab#8205 Signed-off-by: Sami Salonen <[email protected]>
Fixes openhab#8205 Signed-off-by: Sami Salonen <[email protected]>
Fixes openhab#8205 Signed-off-by: Sami Salonen <[email protected]>
Fixes openhab#8205 Signed-off-by: Sami Salonen <[email protected]>
Fixes openhab#8205 Signed-off-by: Sami Salonen <[email protected]> Signed-off-by: Daan Meijer <[email protected]>
Fixes openhab#8205 Signed-off-by: Sami Salonen <[email protected]>
Fixes #8205
When connection is invalidated (e.g. after I/O error), we have apache pool creating a new (unconnected) connection object (if there are others waiting for a connection), and instantly passivates it. In this corner case we will have null
endpoint
in PooledObject wrapper, resulting in NPE.Signed-off-by: Sami Salonen [email protected]