2023-07-25 15:15:29.939 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'feeddc6b81' failed: var HttpUtil = ___ Java.type("org.openhab.core.io.net.http.HttpUtil")
var urlmessage = encodeURI("TEXT MESSAGE.")
HttpUtil.executeUrl("GET", "https://api.callmebot.com/whatsapp.php?source=openHAB&phone=+4911111111&apikey=12345678&text=" + urlmessage , 2000)
1. The method or field Java is undefined; line 1, column 15, length 4
2. The method encodeURI(String) is undefined; line 2, column 83, length 9
after I updated to openhab 4, I have now no sitemap and not things, I have everything done file based, I can see all items, transformations and rules, the items also changing the values like temperature sensors, so it is working, but strange that I can’t see anymore the thing to it.
when I try to open the sitemap, it tells me I didn’t define a sitemap.
has someone the same?
I am running OH4 with a quite recent build No 3531 which is working fine. It is running in Docker, and the image is from the official openHAB site: Docker
However, when I try to fetch OH 4.0.0 release from the same URL, it seems that Java 17 is not included in the image. Therefore, I am not able to upgrade to OH 4.0.0
Can the Docker image be recreated, so it includes Java 17 like all the OH 4.0 snapshot images?
The rule problem with the HTTP problem is solved, due to the fact, that I have had to manual
Everything is so complicated this time with the update to the new version.
As an NonExpert it’s to hard to me to find all the issue and more time consuming to find solutions.
Java 11/17 issue…
Units are not the same as in OH 3.4.4 e.g. kWh and Watt etc…
Have had to delete items with humidity and create them new that they work…
You are right, that carefully read instructions, would help to do presteps beforehand.
And I‘m also sure that 95% of us are technical expert‘s, developers, programmers, coders, whatever, and like to script. They all understand what impacts it have and preconditions here and there needs to be done…
I belong to the other 5% of users they are able to open a terminal window and type in the command to update the system and hope they everything will go well.
So this is my expection and my knowledge to setup a private used smart home system….
It would also be nice to see some pictures what and how to do, and not in words…
You know, that picture say more than 1000 words…
Thank you both for your great work. I was not aware of the simple info command in Karaf console.
The problem is that I am owerwriting the java.security file, because it blocks TLS1.0 protocol, which is needed by binding for IHC. I need to provide my own version to change the default settings in this file.
In all the snapshot builds for OH4 the path in the Docker image has been: /usr/lib/jvm/temurin-17-jdk-amd64/conf/security/java.security
However, in OH4 release the path is: /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security
I got an error creating the container with the message ‘Path not found’, so I thought the Java part was missing. It is not missing, but the path has changed. I changed my path in the docker run statement, and everything works fine.
The problem is that I cannot create the container. I need to adjust the file java.security, so I have copied it out to my local drive, where I made the changes. Then I refer to this file in my docker run command, which looks like this:
in the logs, I can see that the items are ok, they get all status updates, but I have the following errors:
[WARN ] [s.internal.SingleValueTransformation] couldn't transform response because transformationService of type 'JS' is unavailable
[WARN ] [s.internal.SingleValueTransformation] Transformation service JS for pattern shelly_convertkwh.js not found!
can this has something to do with my problem? I think not
I have the same issue with things and sitemaps not showing up, also only textual definition. It is a fresh openhabian installation. I can recover things if I do a manual save on any .things file, the same with .sitemap, but I am sure this is not the behaviour that is desired.
This doesn’t happen if I clean the cache before (sudo openhab-cli clean-cache), but it happened several times that because of other issues (jre223 rule engine not working etc.) I restarted openhab via sudo systemctl restart openhab.service, and then that issue happened.
Anyone who has experienced that and/or knowing how to fix it?