Bugzilla – Bug 1226441
Java application broken after Dist. Upgrade - Cannot invoke "sun.net.www.http.HttpClient.getOutputStream()" because "this.http" is null
Last modified: 2024-06-20 15:51:02 UTC
After the Dist. Upgrade from Leap 15.5 to Leap 15.6 a Java application is misbehaving with the error – java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "sun.net.www.http.HttpClient.getOutputStream()" because "this.http" is null --- The application's author is of the opinion that, the Java package is broken – * OpenJDK 11/17/21 all display the same error. --- Informationen zu Paket java-21-openjdk: --------------------------------------- Repository : Haupt-Repository Name : java-21-openjdk Version : 21.0.3.0-150600.1.8 Arch : x86_64 Anbieter : SUSE LLC <https://www.suse.com/> Installierte Größe : 539,5 KiB Installiert : Ja Status : aktuell Quellpaket : java-21-openjdk-21.0.3.0-150600.1.8.src Upstream-URL : https://openjdk.java.net/ Zusammenfassung : OpenJDK 21 Runtime Environment Beschreibung : The OpenJDK 21 runtime environment.
The affected Java application is "Hibiscus" / "Jameica" - <https://willuhn.de/>
Installed the Oracle JDK 17 – > java --version java 17.0.11 2024-04-16 LTS Java(TM) SE Runtime Environment (build 17.0.11+7-LTS-207) Java HotSpot(TM) 64-Bit Server VM (build 17.0.11+7-LTS-207, mixed mode, sharing) > Same error. Installed Adoptium/Temurin JDK 17 on the advice of O. Willuhn – > java --version openjdk 17.0.11 2024-04-16 OpenJDK Runtime Environment Temurin-17.0.11+9 (build 17.0.11+9) OpenJDK 64-Bit Server VM Temurin-17.0.11+9 (build 17.0.11+9, mixed mode, sharing) > Same error. --- I have Leap 15.5 in a VM – will continue testing there. ** I need the Java application for Home Banking and, club administration.
With Leap 15.5 in a VM the Java application is executing as expected with no errors being reported. > java --version openjdk 17.0.11 2024-04-16 OpenJDK Runtime Environment (build 17.0.11+9-suse-150400.3.42.1-x8664) OpenJDK 64-Bit Server VM (build 17.0.11+9-suse-150400.3.42.1-x8664, mixed mode, sharing) > (Leap 15.5)
Post the complete output from starting in Terminal. As I wrote in the Forum, it is starting here on an upgraded Leap 15.6.
Created attachment 875572 [details] Terminal trace, Jameica Logfile, systemd System Journa, systemd Usere Journal. See the Forums discussion for Screenshots.
The systemd Journal didn't have any entries for this issue if the Adoptium/Temurin JDK 17 was being used. But with the Leap 15.6 OpenJDK there are systemd System and User Journal entries – > java --version openjdk 17.0.11 2024-04-16 OpenJDK Runtime Environment (build 17.0.11+9-suse-150400.3.42.1-x8664) OpenJDK 64-Bit Server VM (build 17.0.11+9-suse-150400.3.42.1-x8664, mixed mode, sharing) >
Installed Jameica/Hibiscus on a Laptop that was upgraded from Leap 15.5 to Leap 15.6 – * Hibiscus can access the Internet URLs for the Plugins with no issues. * Installed the Certificate Administration Plugin with no issues. --- Have generated a sorted RPM packet list from the Laptop. Will compare that list to the equivalent list for this machine. * More later …
When I initialise a fresh Jameica/Hibiscus instance, the issue disappears. If I import a Jamaica Backup into the new instance, the issue reappears. --- Therefore the issue has been resolved – * Possibly a coincidence that, the Leap 15.5 to Leap 15.6 upgrade triggered an anomaly in the somewhat aged Jameica/Hibiscus databases. The Jameica/Hibiscus databases contain, in one case bank transactions dating back to 2013 and, in another case bank transactions dating back to 2015.
The application's databases were originally created in 2013 and 2015 and, have been continually updated by newer application versions since then. Somehow, the Leap 15.6 environment caused an unresolvable issue in one of the databases.