openHAB version: 3.4.3
I am setting up a test system around a Sonoff Zigbee 3.0 USB Dongle Plus (E-type, firmware version 6.10.3.0) (Ember coordinator) . I have successfully added a couple of sviches/relay modules. Today I have tried to add this thermometer/hygromether module: https://www.amazon.it/dp/B0B87FNG7B?psc=1&ref=ppx_yo2ov_dt_b_product_details (an inexpensive combined thermoneter/hygrometer). It was detected and set up ok, and seems to work ok too. But I have started to get a large collection of warning and error messages and exceptions in openhab.log.
Warnings (a lot of these):
2023-05-03 18:13:48.440 [WARN ] [nding.zigbee.serial.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: Serial buffer overrun
And exceptions (also quit a few):
2023-05-03 16:57:25.341 [ERROR] [st.antlr.ContentAssistContextFactory] - java.lang.RuntimeException: java.lang.NullPointerException
java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory.doCreateContexts(ContentAssistContextFactory.java:181) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory.create(ContentAssistContextFactory.java:131) ~[?:?]
at org.eclipse.xtext.ide.server.contentassist.ContentAssistService.createProposals(ContentAssistService.java:104) ~[?:?]
at org.eclipse.xtext.ide.server.contentassist.ContentAssistService.createCompletionList(ContentAssistService.java:78) ~[?:?]
at org.eclipse.xtext.ide.server.LanguageServerImpl.lambda$completion$23(LanguageServerImpl.java:555) ~[?:?]
at org.eclipse.xtext.ide.server.WorkspaceManager.doRead(WorkspaceManager.java:438) ~[?:?]
at org.eclipse.xtext.ide.server.LanguageServerImpl.completion(LanguageServerImpl.java:554) ~[?:?]
at org.eclipse.xtext.ide.server.LanguageServerImpl.lambda$completion$22(LanguageServerImpl.java:540) ~[?:?]
at org.eclipse.xtext.ide.server.concurrent.ReadRequest.lambda$doRun$0(ReadRequest.java:66) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
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:829) [?:?]
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at org.eclipse.xtext.ide.editor.contentassist.antlr.BaseContentAssistParser.getFollowElements(BaseContentAssistParser.java:246) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.BaseContentAssistParser.getFollowElements(BaseContentAssistParser.java:237) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.BaseContentAssistParser.getFollowElements(BaseContentAssistParser.java:232) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser.getFollowElements(AbstractContentAssistParser.java:49) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser.getFollowElements(AbstractContentAssistParser.java:27) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.BaseContentAssistParser.getFollowElements(BaseContentAssistParser.java:264) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory.createContextsForLastCompleteNode(ContentAssistContextFactory.java:299) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory.handleLastCompleteNodeIsPartOfLookahead(ContentAssistContextFactory.java:220) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory$3.call(ContentAssistContextFactory.java:172) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory$3.call(ContentAssistContextFactory.java:169) ~[?:?]
… 4 more
Caused by: java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:221) ~[?:?]
at java.lang.Class.getMethod(Class.java:2101) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.BaseContentAssistParser.getFollowElements(BaseContentAssistParser.java:169) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.BaseContentAssistParser.getFollowElements(BaseContentAssistParser.java:242) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.BaseContentAssistParser.getFollowElements(BaseContentAssistParser.java:237) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.BaseContentAssistParser.getFollowElements(BaseContentAssistParser.java:232) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser.getFollowElements(AbstractContentAssistParser.java:49) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser.getFollowElements(AbstractContentAssistParser.java:27) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.BaseContentAssistParser.getFollowElements(BaseContentAssistParser.java:264) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory.createContextsForLastCompleteNode(ContentAssistContextFactory.java:299) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory.handleLastCompleteNodeIsPartOfLookahead(ContentAssistContextFactory.java:220) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory$3.call(ContentAssistContextFactory.java:172) ~[?:?]
at org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory$3.call(ContentAssistContextFactory.java:169) ~[?:?]
… 4 more
Is this related to the Thermometer/Hygrometer Thing or to the coordinator… or something else? Any advice on how tog get rid of the errors?
Just a guess, but does your flow control match what is recommended for the controller in the documentation?: ZigBee - Bindings | openHAB (Look under “Supported Coordinators”).
Thank you - it was an interesting place you took me. The doc I have seen before for my Ember coordinator just says baud rate 11520 or 57600, XON/XOFF or none handhake. Now I learnt that an Ember coordinator and an Ember coordinator are two different things (at least), with different baud rate and handshaking.
I tried some different combinations, and settled on 115200/NONE, it seems to reduce the number of errors significantly.
Probably it should also work with 115200/HW handshake, but I still got a few errors with that combination - will give it another try, though.
You can read this message as “computer did not process incoming messages, the que is overflowing”
Ibelive you must use SW flow control on this coordinator
The only other alternative is hardware flow control (for coordinators that do hardware control)
Setting it to None will cause problems sooner rather than later, it is really not an option.
There has never been any problem with the USB port, so I believe it is OK, yes.
As predicted, I started getting a different kind of errors with no handshake: Truncated messages. I changed to SW handshake and then restatred everything. Seems to have resonably good stability, but now and then an odd NullPointerException still occurs. Seems like the system recovers each time, but NullPoinerExceptions are not a thing that I like. And the stack traces are cluttering up my logs…
I have the “beta” version of that stick.
The Zigbee-binding loses contact with it sometimes, and reset it.
It did get better when I put it on a powered hub.
I also think there is something with the firmware on my stick.
Not sure what is happening here…
My logs do not look anything like posted here.
I will check my logs when I get back to the PC
Yes, I have seen these messages. The inactivity timer is appearing regularly.
As I said, it seems like the system is restoring each time. But I agree, it is irritating enough.
Last night my computer rebooted, and new log files were created - my old logs are gone. And so long today, no errors… and no possibility to look at old events and exceptions. But they will probably be back.