-
Notifications
You must be signed in to change notification settings - Fork 199
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
HA-Bridge has suddenly given up itself - Exception in thread "main" java.lang.NullPointerException #1239
Comments
For your info: Version is current release 5.3.0 |
JVM version on Rasbperry PI 3B+ With Debian 9: |
Where can i get current master branch as a compiled .jar?? |
same problem with ha-bridge-5.3.1RC1.jar ... |
That output message does say ABSOLUTE NOTHING - but i think the developers know what it is...(?) |
@HA-Bridge developers: No idea what it is? Thank you for your feedbacks... With kind regards from Switzerland, |
Its just an info message that says the file path is not there yet. It is labeled as INFO and not ERROR or WARNING. The bridge goes on after that, correct? |
So closed. If you have any question regarding that issue, so please don't heistate to ask me. Thanks. With kind regards from Switzerland, |
No... It is NOT a memory card error!!!! Still the same problem after a few days:
|
Message with not existing config file is DIFFERENT, so it's COMPLETELY WRONG WHAT YOU TOLD ME:
|
Here is the file as an original (not pasted as text) because os possible encoding problems or whatever WTF is is?!?!! |
Same problem with a copy of the file:
|
That's the line where it crashes: ` setupParams(Paths.get(theBridgeSettings.getConfigfile()), ".cfgbk", "habridge.config-"); BridgeSettings.java on line 228 ... WTF is that crap?!?! |
java -version |
Same problem with newer java version
|
Now i installed openjdk 9, still no success. |
command:
|
java version
|
WTF is that s**t?!??! |
Please contact me via PM, so i can see you are interested or not (which seems to be, at least i.m.o) to prevent that behavior (maybe for future users) by fixing that bug. You can also contact me via habridge-bug-2 (AT) crapmail.org ... ( If you have any questions regarding that issue, so please don't hesitate to contact me - youre welcome!! ;-) |
Re-opened... |
No anwser?? Maybe you can put my fix into the future 5.3.1 Release Version...? So don't hesitate to contact me...!! |
Same problem here!! |
So, what user is starting the ha-bridge? Does it have read/write access to the file that is being specified? |
This is due to loading the config file and the configfile parameter is not set. If a path is given on the command line, it should just use that path after the config file load. |
A quick work around until the new jar is released is to set the configfile parameter in the habridge.config file to the path you put on the command line. |
I used that command, as i wrote in the 1st post:
I start it as root. The config file exists. Facts... That hotfix helped me to solve the problem:
I don't know, but maybe the current JVM on Raspbian Stretch is not compatible to GSON?? I get a NULL instance from So the "alternative" way on the last line in the catch block does make it work. Maybe you can investigate a lil bit closer, and maybe you can make a fix of that issue in the next version 5.3.1 ? |
Sorry, for the confusion. You don't need to update any code to make this work with the original jar.... add a line in the habridge.config as follows: "configfile": "/opt/habridge/data/habridge.config" |
This is my personal account. OK, if the config file points to its own path, then it would work? I think that's also a workaround. (?) Will that issue be fixed in the next 5.3.1 release? (I will try it when i'm on work on monday) Thank you very much. |
Thanks in advance for your feedback! :-) |
This will be fixed in the next RC jar |
ok thx |
This is now in the new RC3 jar |
thx, will try it ASAP!! |
Dev branch 5.3.x to create v5.4.0 #1044 Alexa app, error "Device doesn't support requested value" bug question #1118 Device status update in Alexa App is not working correctly for ha-bridge devices bug duplicate question #1126 Can't get XY ColorData into URL enhancement question #1127 Can't get separate hue, saturation and brightness enhancement question #1128 Wrong color calucation in HS mode bug question #1131 Changing color temperatur is not working correctly bug question #1132 Conversion from CIE to RGB incorrect bug question #1139 Device ID creation fails bug question #1150 Home Assistant gets null exception during initialization bug question #1170 Alexa not sending the correct color codes duplicate #1171 Please add option: If bright request present with on, only send dim enhancement #1184 Alexa will not discover HABridge question #1191 When "Use UPNP Address Interface Only" is selected, echo cannot find ha-bridge bug #1210 [Enahnacement] Have link button timeout be configurable enhancement #1215 Alexa unable to discover recently added devices to ha-bridge duplicate question #1227 Feature request: ${intensity.previous} value passing control enhancement #1239 HA-Bridge has suddenly given up itself - Exception in thread "main" java.lang.NullPointerException bug question #1243 Alexa device discovery now broke question #1253 HABridge hue ColorDecode 0 0 0 bug question #1256 Homeassistant devices not appearing bug question
Service command:
cat /opt/habridge/data/habridge.config
Output of first command:
???
Thx for feedback.
Regards, Jan
The text was updated successfully, but these errors were encountered: