Oliver2
(Oliver)
October 8, 2024, 6:45pm
1
Can anybody confirm that running the following rule creates the same error message?
Rule:
if (actions.Ephemeris.isBankHoliday(0)) console.log("test");
Error Message:
Cannot instantiate datasource instance because there is no implementations
I am on OH 4.3.0M1, Java 21
This error suddenly appeared 2 days ago whereas I haven’t made any changes to the system, though.
rlkoshak
(Rich Koshak)
October 8, 2024, 8:27pm
2
I do not get any errors when I run this on OH 4.3 M2. I’m assuming this is JS Scripting.
Oliver2
(Oliver)
October 8, 2024, 9:26pm
3
Ok. Thanks for testing. Even after updating to M2 the error persist.
At least now I know it‘s got to do with my own system.
lordjaxom
(Sascha Volkenandt)
October 18, 2024, 5:19pm
4
Got this error after updating from 4.1 fo 4.2.2. Suddenly can’t use any Ephemeris functions in JavaScript rules anymore
EDIT: It seems to be related to the functions that can take a custom database (e.g. isBankHoliday). isWeekend for example is working.
lordjaxom
(Sascha Volkenandt)
October 19, 2024, 10:37am
5
After several restarts I was debugging the issue today and discovered that the configurationService in Jollyday was empty. So I restarted OpenHAB again to debug the initial loading of the services and… the error has vanished into thin air.