openHAB 2.2 - startup WARNs

running openHAB 2.2 on a Pi 2 with openHABian 1.4: just updated and done that already:

  1. stopped OH2
  2. deleted cache, tmp and config
  3. rebooted Pi
2017-12-19 17:40:11.181 [WARN ] [.smarthome.config.core.Configuration] - Could not set field value for field 'port': Can not set java.math.BigDecimal field org.openhab.binding.network.internal.NetworkHandlerConfiguration.port to java.lang.String

java.lang.IllegalArgumentException: Can not set java.math.BigDecimal field org.openhab.binding.network.internal.NetworkHandlerConfiguration.port to java.lang.String

	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167) [?:?]

	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171) [?:?]

	at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81) [?:?]

	at java.lang.reflect.Field.set(Field.java:764) [?:?]

	at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:523) [41:org.apache.commons.lang:2.6.0]

	at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:500) [41:org.apache.commons.lang:2.6.0]

	at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:560) [41:org.apache.commons.lang:2.6.0]

	at org.eclipse.smarthome.config.core.Configuration.as(Configuration.java:106) [103:org.eclipse.smarthome.config.core:0.10.0.b1]

	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.getConfigAs(BaseThingHandler.java:284) [116:org.eclipse.smarthome.core.thing:0.10.0.b1]

	at org.openhab.binding.network.handler.NetworkHandler.initialize(NetworkHandler.java:152) [218:org.openhab.binding.network:2.2.0]

	at org.openhab.binding.network.handler.NetworkHandler.initialize(NetworkHandler.java:202) [218:org.openhab.binding.network:2.2.0]

	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.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [109:org.eclipse.smarthome.core:0.10.0.b1]

	at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [109:org.eclipse.smarthome.core:0.10.0.b1]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2017-12-19 17:40:11.213 [WARN ] [.smarthome.config.core.Configuration] - Could not set field value for field 'retry': Can not set java.math.BigDecimal field org.openhab.binding.network.internal.NetworkHandlerConfiguration.retry to java.lang.String

java.lang.IllegalArgumentException: Can not set java.math.BigDecimal field org.openhab.binding.network.internal.NetworkHandlerConfiguration.retry to java.lang.String

	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167) [?:?]

	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171) [?:?]

	at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81) [?:?]

	at java.lang.reflect.Field.set(Field.java:764) [?:?]

	at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:523) [41:org.apache.commons.lang:2.6.0]

	at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:500) [41:org.apache.commons.lang:2.6.0]

	at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:560) [41:org.apache.commons.lang:2.6.0]

	at org.eclipse.smarthome.config.core.Configuration.as(Configuration.java:106) [103:org.eclipse.smarthome.config.core:0.10.0.b1]

	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.getConfigAs(BaseThingHandler.java:284) [116:org.eclipse.smarthome.core.thing:0.10.0.b1]

	at org.openhab.binding.network.handler.NetworkHandler.initialize(NetworkHandler.java:152) [218:org.openhab.binding.network:2.2.0]

	at org.openhab.binding.network.handler.NetworkHandler.initialize(NetworkHandler.java:202) [218:org.openhab.binding.network:2.2.0]

	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.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [109:org.eclipse.smarthome.core:0.10.0.b1]

	at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [109:org.eclipse.smarthome.core:0.10.0.b1]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2017-12-19 17:40:11.219 [WARN ] [.smarthome.config.core.Configuration] - Could not set field value for field 'timeout': Can not set java.math.BigDecimal field org.openhab.binding.network.internal.NetworkHandlerConfiguration.timeout to java.lang.String

java.lang.IllegalArgumentException: Can not set java.math.BigDecimal field org.openhab.binding.network.internal.NetworkHandlerConfiguration.timeout to java.lang.String

	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167) [?:?]

	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171) [?:?]

	at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81) [?:?]

	at java.lang.reflect.Field.set(Field.java:764) [?:?]

	at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:523) [41:org.apache.commons.lang:2.6.0]

	at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:500) [41:org.apache.commons.lang:2.6.0]

	at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:560) [41:org.apache.commons.lang:2.6.0]

	at org.eclipse.smarthome.config.core.Configuration.as(Configuration.java:106) [103:org.eclipse.smarthome.config.core:0.10.0.b1]

	at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.getConfigAs(BaseThingHandler.java:284) [116:org.eclipse.smarthome.core.thing:0.10.0.b1]

	at org.openhab.binding.network.handler.NetworkHandler.initialize(NetworkHandler.java:152) [218:org.openhab.binding.network:2.2.0]

	at org.openhab.binding.network.handler.NetworkHandler.initialize(NetworkHandler.java:202) [218:org.openhab.binding.network:2.2.0]

	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.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [109:org.eclipse.smarthome.core:0.10.0.b1]

	at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [109:org.eclipse.smarthome.core:0.10.0.b1]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

2017-12-19 17:40:11.423 [WARN ] [lipse.smarthome.io.net.exec.ExecUtil] - Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "arping" (in directory "."): error=2, Datei oder Verzeichnis nicht gefunden)

looks like this is related to Amazon dash buttons running libpcap? (binding is running, though)

Sounds to me like you set the port of a thing (maybe network binding, or amazon dash?) to "80" instead of 80 (notice the use of quotes).

I’d try to find the port paramter in your config files and then remove those quotes.

Thanks for the tipp, but didn’t help:

[18:14:20] openhabian@openHABianPi:/etc/openhab2$ grep -r '"80"' *
[18:14:26] openhabian@openHABianPi:/etc/openhab2$

…and I didn’t change anything in the config between 2.1 and upgrade to 2.2

Oh sorry for being so unclear. I didn’t actually mean the port 80, but any port with quotes.

It acutally is the network binding, that throws this message. Please go into the network.things and see if you have any quoted ports.

1 Like

Thanks! everyone of them had it (must have copied here in the forum somewhere, I’m trying to find the post and comment it)
with 2.2 the whole network-binding was rewritten as it seems:
https://docs.openhab.org/addons/bindings/network/readme.html

Not only did the port-attribute accept quotes anymore, but also the attributes are renamed.