[OH3] HP Printer Binding

I receive the following error message minutely:

Blockquote
2021-01-23 21:57:57.793 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method ‘ThingHandler.thingUpdated()’ on ‘org.openhab.binding.hpprinter.internal.HPPrinterHandler@8d41c’: Invalid URI host: null (authority: fe80:0:0:0:121f:74ff:fe46:a076)

java.lang.IllegalArgumentException: Invalid URI host: null (authority: fe80:0:0:0:121f:74ff:fe46:a076)

at org.eclipse.jetty.client.HttpClient.checkHost(HttpClient.java:510) ~[?:?]

at org.eclipse.jetty.client.HttpClient.newHttpRequest(HttpClient.java:495) ~[?:?]

at org.eclipse.jetty.client.HttpClient.newRequest(HttpClient.java:453) ~[?:?]

at org.eclipse.jetty.client.HttpClient.newRequest(HttpClient.java:442) ~[?:?]

at org.openhab.binding.hpprinter.internal.api.HPWebServerClient.fetchData(HPWebServerClient.java:105) ~[?:?]

at org.openhab.binding.hpprinter.internal.api.HPWebServerClient.getProductUsageFeatures(HPWebServerClient.java:78) ~[?:?]

at org.openhab.binding.hpprinter.internal.HPPrinterBinder.dynamicallyAddChannels(HPPrinterBinder.java:121) ~[?:?]

at org.openhab.binding.hpprinter.internal.HPPrinterHandler.initialize(HPPrinterHandler.java:73) ~[?:?]

at org.openhab.core.thing.binding.BaseThingHandler.thingUpdated(BaseThingHandler.java:152) ~[?:?]

at org.openhab.binding.hpprinter.internal.HPPrinterHandler.thingUpdated(HPPrinterHandler.java:54) ~[?:?]

at jdk.internal.reflect.GeneratedMethodAccessor118.invoke(Unknown Source) ~[?:?]

at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]

at org.openhab.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:154) [bundleFile:?]

at org.openhab.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]

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

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

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

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

Blockquote

If I open the Thing configuration I can observe that when the error occur the IP changes by itself. From IPv4 to IPv6 and if I insert “Drucker” it will change a while later to IPv4.

If the item is configured as a Thing by file the IPv4 is going to stay as it is and no error will occur.

I have the same problem - when I restart OpenHAB my HP Printer IP address changes in my Thing Configuration from an IPv4 address (which works) to an IPv6 address (which doesn’t). Error is the same in the logs:

2022-06-08 18:14:21.316 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: 
java.lang.IllegalArgumentException: Invalid URI host: null (authority: fe80:0:0:0:9e7b:efff:fe07:bf6d)
        at org.eclipse.jetty.client.HttpClient.checkHost(HttpClient.java:521) ~[?:?]
        at org.eclipse.jetty.client.HttpClient.newHttpRequest(HttpClient.java:506) ~[?:?]
        at org.eclipse.jetty.client.HttpClient.newRequest(HttpClient.java:464) ~[?:?]
        at org.eclipse.jetty.client.HttpClient.newRequest(HttpClient.java:453) ~[?:?]
        at org.openhab.binding.hpprinter.internal.api.HPWebServerClient.fetchData(HPWebServerClient.java:105) ~[?:?]
        at org.openhab.binding.hpprinter.internal.api.HPWebServerClient.getProductUsageFeatures(HPWebServerClient.java:78) ~[?:?]

Am running OH3.2