OH 2.3 S1271 / addThing HandlerFactory NPE

snapshot
openhab2
Tags: #<Tag:0x00007fd313bb3918> #<Tag:0x00007fd313bb37d8>

(Angelos) #1

just checking… if anyone else is seeing the same with the latest snapshot:

2018-05-05 19:14:18.755 [DEBUG] [ome.core.thing.internal.ThingManager] - Thing handler factory 'UniFiThingHandlerFactory' added
2018-05-05 19:14:18.756 [ERROR] [org.eclipse.smarthome.core.thing    ] - [org.eclipse.smarthome.core.thing.internal.ThingManager(85)] The addThing
HandlerFactory method has thrown an exception
java.lang.NullPointerException: null
	at org.eclipse.smarthome.core.thing.internal.ThingManager.getBundleName(ThingManager.java:978) [108:org.eclipse.smarthome.core.thing:0.10.
0.201805031458]
	at org.eclipse.smarthome.core.thing.internal.ThingManager.addThingHandlerFactory(ThingManager.java:936) [108:org.eclipse.smarthome.core.th
ing:0.10.0.201805031458]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
	at org.apache.felix.scr.impl.inject.BaseMethod.invokeMethod(BaseMethod.java:229) [39:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.inject.BaseMethod.access$500(BaseMethod.java:39) [39:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.inject.BaseMethod$Resolved.invoke(BaseMethod.java:650) [39:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.inject.BaseMethod.invoke(BaseMethod.java:506) [39:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.inject.BindMethod.invoke(BindMethod.java:658) [39:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.DependencyManager.doInvokeBindMethod(DependencyManager.java:1722) [39:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.DependencyManager.open(DependencyManager.java:1556) [39:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:261) [39:org.apache.fel
ix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:109) [39:org.apache.felix.scr:2.0.
12]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:906) [39:org.apache.felix.scr:2.0.12]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:879) [39:org.apache.felix.scr:2
.0.12]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:823) [39:org.apache.felix.scr:2.0.12]
	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212) [?:?]
	at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210) [?:?]
[...]

It may be something wrong with my system (still checking…)


(Angelos) #2

clearing tmp & cache helps for the first startup…
next service restart logs the same NPE :frowning:
still checking…


(Kai Kreuzer) #3

Looks like https://github.com/eclipse/smarthome/issues/5533.

Just did a new ESH stable build that includes the fix. Distro 1272 should be fine, once the build is through!


NPE stack traces in OpenHAB_runtime startup
(Angelos) #4

:+1:

it is fine! (no more NPEs with OH2.3 S1272)
thanx :slight_smile: