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

JuPnP NPE - Cannot invoke "Object.toString()" because the return value of "org.jupnp.model.state.StateVariableValue.getValue()" is null #4037

Closed
morph166955 opened this issue Jan 14, 2024 · 1 comment · Fixed by #4038
Labels
bug An unexpected problem or unintended behavior of the Core

Comments

@morph166955
Copy link

I updated to snapshot 3838 this morning and now I'm getting the following flooding out my logs. Nothing on my network has changed recently. I was on 3820 (I believe) prior to this and I did not have this issue. I cleared cache and that had no effect.

openhab> bundle:list -s | grep pnp
246 │ Active │ 80 │ 2.7.1.OH1 │ org.jupnp
247 │ Active │ 80 │ 4.2.0.202401130308 │ org.openhab.core.config.discovery.addon.upnp
290 │ Active │ 80 │ 4.2.0.202401130310 │ org.openhab.core.config.discovery.upnp
291 │ Active │ 80 │ 4.2.0.202401130303 │ org.openhab.core.io.transport.upnp

2024-01-14 10:05:04.257 [ERROR] [port.upnp.internal.UpnpIOServiceImpl] - Participant threw an exception onValueReceived
java.lang.NullPointerException: Cannot invoke "Object.toString()" because the return value of "org.jupnp.model.state.StateVariableValue.getValue()" is null
        at org.openhab.core.io.transport.upnp.internal.UpnpIOServiceImpl$UpnpSubscriptionCallback.eventReceived(UpnpIOServiceImpl.java:160) [bundleFile:?]
        at org.jupnp.controlpoint.SubscriptionCallback$2.eventReceived(SubscriptionCallback.java:222) [bundleFile:?]
        at org.jupnp.model.gena.RemoteGENASubscription.receive(RemoteGENASubscription.java:114) [bundleFile:?]
        at org.jupnp.protocol.sync.ReceivingEvent$2.run(ReceivingEvent.java:130) [bundleFile:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
        at java.lang.Thread.run(Thread.java:840) [?:?]

@morph166955 morph166955 added the bug An unexpected problem or unintended behavior of the Core label Jan 14, 2024
@morph166955
Copy link
Author

@wborn this may be related to #4003

wborn pushed a commit that referenced this issue Jan 14, 2024
Fix #4037

Signed-off-by: Jan N. Klug <github@klug.nrw>
cipianpascu pushed a commit to cipianpascu/openhab-core that referenced this issue Jan 17, 2024
Fix openhab#4037

Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
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 the Core
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant