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.

Systeminfo 2.0 binding - OpenHAB 2 on Windows 7

See original GitHub issue

After discovering Local machine in Systeminfo 2.0 binding via Paper UI and adding it as a thing, the thing displays an error message:

OFFLINE - HANDLER_INITIALIZING_ERROR Thing can not be initialized!

I’ve enabled DEBUG level of logging and this is a part of the log with Systeminfo binding information and error message:

2016-11-08 10:52:42.630 [DEBUG] [discovery.SysteminfoDiscoveryService] - Starting system information discovery !
2016-11-08 10:52:42.827 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'systeminfo:computer:MEDIABEAST' to inbox.
2016-11-08 10:52:51.994 [DEBUG] [org.openhab.binding.systeminfo      ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandler}={thing.type=systeminfo:computer, thing.id=systeminfo:computer:MEDIABEAST, service.id=414, service.bundleid=209, service.scope=singleton} - org.openhab.binding.systeminfo
2016-11-08 10:52:51.998 [DEBUG] [systeminfo.handler.SysteminfoHandler] - Start initializing!
2016-11-08 10:52:51.998 [DEBUG] [systeminfo.handler.SysteminfoHandler] - Thing configuration updated!
2016-11-08 10:52:51.999 [DEBUG] [systeminfo.handler.SysteminfoHandler] - Channel configuration updated!
2016-11-08 10:52:52.771 [ERROR] [systeminfo.handler.SysteminfoHandler] - Can not instantate Systeminfo object!
java.lang.NullPointerException
	at com.sun.jna.platform.win32.Variant$VARIANT.stringValue(Variant.java:539)[209:org.openhab.binding.systeminfo:2.0.0.201610221219]
	at oshi.util.platform.windows.WmiUtil.enumerateProperties(WmiUtil.java:459)[209:org.openhab.binding.systeminfo:2.0.0.201610221219]
	at oshi.util.platform.windows.WmiUtil.queryWMI(WmiUtil.java:324)[209:org.openhab.binding.systeminfo:2.0.0.201610221219]
	at oshi.util.platform.windows.WmiUtil.selectObjectsFrom(WmiUtil.java:242)[209:org.openhab.binding.systeminfo:2.0.0.201610221219]
	at oshi.hardware.platform.windows.WindowsCentralProcessor.getProcesses(WindowsCentralProcessor.java:397)[209:org.openhab.binding.systeminfo:2.0.0.201610221219]
	at org.openhab.binding.systeminfo.model.OshiSysteminfo.<init>(OshiSysteminfo.java:72)[209:org.openhab.binding.systeminfo:2.0.0.201610221219]
	at org.openhab.binding.systeminfo.handler.SysteminfoHandler.instantiateSysteminfoLibrary(SysteminfoHandler.java:121)[209:org.openhab.binding.systeminfo:2.0.0.201610221219]
	at org.openhab.binding.systeminfo.handler.SysteminfoHandler.initialize(SysteminfoHandler.java:107)[209:org.openhab.binding.systeminfo:2.0.0.201610221219]
	at org.eclipse.smarthome.core.thing.internal.ThingManager$9$1.call(ThingManager.java:758)[106:org.eclipse.smarthome.core.thing:0.9.0.201610220816]
	at org.eclipse.smarthome.core.thing.internal.ThingManager$9$1.call(ThingManager.java:1)[106:org.eclipse.smarthome.core.thing:0.9.0.201610220816]
	at org.eclipse.smarthome.core.common.SafeMethodCaller$CallableWrapper.call(SafeMethodCaller.java:177)[99:org.eclipse.smarthome.core:0.9.0.201610220816]
	at java.util.concurrent.FutureTask.run(Unknown Source)[:1.8.0_111]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[:1.8.0_111]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[:1.8.0_111]
	at java.lang.Thread.run(Unknown Source)[:1.8.0_111]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
svilenvulcommented, Nov 17, 2016

Hmm, strange, maybe I missed to export something. Anyway the PR with the update is merged, so it will be available in two or three days.

0reactions
davorfcommented, May 4, 2017

Hello!

I’ve just installed latest nightly and tried Systeminfo binding 2.0 and it works, so, I will close this issue.

Best regards, Davor

Read more comments on GitHub >

github_iconTop Results From Across the Web

Systeminfo 2.0 binding - Windows 7 - openHAB Community
I've installed Systeminfo 2.0 binding via Paper UI and tried to discover things. It finds Local computer (Windows 7 maching, which OpenHAB is ......
Read more >
Developers - Systeminfo 2.0 binding - OpenHAB 2 on Windows 7 -
After discovering Local machine in Systeminfo 2.0 binding via Paper UI and adding it as a thing, the thing displays an error message:....
Read more >
openHAB 3.0 - how to access system information
We first need to install and configure the System Info Binding via the OH3 interface. install the Binding: Settings → Bindings → Blue...
Read more >
openHAB 2.0 Preview - YouTube
This screencasts shows the openHAB 2.0 alpha1 runtime release and demonstrates how to use the Classic UI without the need of any ...
Read more >
openHAB Install on Windows | Smart Home Automation ...
See how I setup and install openhab 2 on a microsoft windows computer. From the Java install, to installing openhab, running it as...
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