Skip to content
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

BUG: this.theBridgeSettings.getConfigfile() on line 228 in com.bwssystems.HABridge.BridgeSettings is a null instance WITH existing config file in parameter -Dconfig.file=/opt/habridge/data/habridge.config.test #1247

Closed
jayjupdhig opened this issue Nov 5, 2020 · 8 comments

Comments

@jayjupdhig
Copy link

I think now it's time to investigate finally from the side of the HA-Bridge developers!!

So i changed the code in that class to:

System.out.println("this.theBridgeSettings.getConfigfile(): " + this.theBridgeSettings.getConfigfile());    
    System.out.println("EXIT NOW");
    System.exit(0);
    
    
    setupParams(Paths.get(this.theBridgeSettings.getConfigfile(), new String[0]), ".cfgbk", "habridge.config-");
    

Which results in that output:

this.theBridgeSettings.getConfigfile(): null
EXIT NOW

Whole command:

/usr/bin/java -jar -Dconfig.file=/opt/habridge/data/habridge.config.test /opt/habridge/ha-bridge.jar

Cat of /opt/habridge/data/habridge.config.test:

cat /opt/habridge/data/habridge.config.test
{"broadlinkconfigured":false,"buttonsleep":100,"domoticzconfigured":false,"farenheit":true,"fhemconfigured":false,"fibaroconfigured":false,"halconfigured":false,"harmonyconfigured":false,"hassconfigured":false,"homewizardconfigured":false,"hubversion":"9999999999","hueconfigured":false,"lifxconfigured":false,"mqttconfigured":false,"myechourl":"echo.amazon.com/#cards","nestconfigured":false,"numberoflogmessages":512,"openhabconfigured":false,"serverport":"80","settingsChanged":false,"somfyconfigured":false,"traceupnp":false,"upnpconfigaddress":"192.168.178.5","upnpdevicedb":"/opt/habridge/data/device.db","upnpgroupdb":"/opt/habridge/data/group.db","upnpresponseport":50000,"upnpsenddelay":650,"upnpstrict":true,"userooms":false,"useupnpiface":false,"veraconfigured":false,"webaddress":"192.168.178.5","upnporiginal":true}

So:

a.) Current, most up-to-date versions of openjdk-8 and openjdk-9 and Raspbian 9 OS does not make any difference

b.) JSON config file is minimized/compressed or not does also not make any difference

Thanks in advance for your feedback(s)!

Regards, Jan

@jayjupdhig
Copy link
Author

Without my code lines (=original code) it results in that behavior:
#1239

So please investigate ASAP!

@jayjupdhig
Copy link
Author

jayjupdhig commented Nov 5, 2020

I've found the problem, it was in the ha bridge source code and NOT due to my configuration.

@HA-Bridge developers:

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.

Otherwise, it will stay my dirty little secret... ;-)

@jayjupdhig
Copy link
Author

You can also contact me with habridge-bug-2 (at) crapmail.org

So closed... ;-)

@jayjupdhig
Copy link
Author

jayjupdhig commented Nov 6, 2020

"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 ...

(habridge-bug-2 (AT) crapmail.org which is a redirect to my inbox is exactly active for 1 month from yesterday...)

If you have any questions regarding that issue, so please don't hesitate to contact me - youre welcome!! ;-)

@jayjupdhig
Copy link
Author

Re-opened...

@jayjupdhig jayjupdhig reopened this Nov 6, 2020
@jayjupdhig
Copy link
Author

#1239

@kosuodhmwa
Copy link

Same problem here!!

@bwssytems
Copy link
Owner

Duplicate of #1239

@bwssytems bwssytems marked this as a duplicate of #1239 Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants