-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Java error #1076
Comments
Hi, I just removed the reference to javax.xml.bind in my start up file. It was: Now: HA-Bridge now starts, I haven't run it for long enough to see if there will we any other issues, Simon |
Doing the above leads to ha-bridge service starting, the web interface is reachable however none of the 'test on' or 'test off' switches work. Lots of these in the log:
It would seem java.xml.bind is necessary for ha-bridge...... it has been removed in java 11 I think? |
You are correct, some of my items work like Home Assistant calls but calls to my RM Pro error out. I'm think bwssystems will have to compile a new jar file and explicitly add the module as it has been removed in Java 11. Si |
I compiled a new jar file with this added to the pom.xml
I also have to up the mavin.shade.plugin to 3.2.1 as it would not compile
I've only just done it but all my test on / test off buttons seem to trigger correctly, I'll test over the weekend and report. Si |
If it is working well would you mind sharing the binary or sharing the exact changes you made to the source so I can try to compile myself? Thanks |
Hi, I basically have no idea what I'm doing, I Googled how to compile with Maven which involved installing Maven and Jave SDK. I then changed the pom.xml to the below and compiled:
|
Compiling myself didn't seem to solve the issue - no http requests seem to work (I did add the dependency as per your instructions) |
Ok, here is what I have done Remove openjdk-11 It still wasn't working as a service but worked from the command line. If I removed the following from my startup file it started working..... -Dconfig.file=/home/pi/ha-bridge/data/habridge.config All is good here now! I don't understand..... I may try and go back to openjdk-11 to try.... |
For java 9 and later, you need to add a module on the command line. Please see https://github.com/bwssytems/ha-bridge/wiki/HA-Bridge-FAQs#q-ha-bridge-errors-when-running-with-java9 |
I'm removing the need for the JAXB libraries since they are only used for a tiny hex conversion. |
My HA-Bridge has stopped working today.
Running on ubuntu 18.04.02
I ahve not changed, rebooted or updated anything for a long time.
I understand that there was an issue with Java 9..... I am on Java 11.0.02.... I am not sure when this got updated..... however I think javax.xml.bind was removed from Java at version 11???
Any thoughts?
Thanks
Error is:
john@Kit:~$ sudo service ha-bridge status
● ha-bridge.service - HA Bridge
Loaded: loaded (/etc/systemd/system/ha-bridge.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2019-04-18 20:36:12 BST; 5min ago
Process: 26858 ExecStart=/usr/bin/java -jar -Dconfig.file=/home/john/ha-bridge/data/habridge.config --add-modules java.xml.bind /ho
Main PID: 26858 (code=exited, status=1/FAILURE)
Apr 18 20:36:11 Kit systemd[1]: Started HA Bridge.
Apr 18 20:36:12 Kit java[26858]: Error occurred during initialization of boot layer
Apr 18 20:36:12 Kit java[26858]: java.lang.module.FindException: Module java.xml.bind not found
Apr 18 20:36:12 Kit systemd[1]: ha-bridge.service: Main process exited, code=exited, status=1/FAILURE
Apr 18 20:36:12 Kit systemd[1]: ha-bridge.service: Failed with result 'exit-code'.
The text was updated successfully, but these errors were encountered: