Bug 1226441

Summary: Java application broken after Dist. Upgrade - Cannot invoke "sun.net.www.http.HttpClient.getOutputStream()" because "this.http" is null
Product: [openSUSE] openSUSE Distribution Reporter: Donald Curtis <bugrprt21882>
Component: OtherAssignee: E-mail List <screening-team-bugs>
Status: RESOLVED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: Sauerlandlinux
Version: Leap 15.6   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Terminal trace, Jameica Logfile, systemd System Journa, systemd Usere Journal.

Description Donald Curtis 2024-06-17 15:07:39 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.
Comment 1 Donald Curtis 2024-06-17 15:11:29 UTC
The affected Java application is "Hibiscus" / "Jameica" -
<https://willuhn.de/>
Comment 2 Donald Curtis 2024-06-18 09:40:05 UTC
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.
Comment 3 Donald Curtis 2024-06-18 18:41:44 UTC
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)
Comment 4 Stephan Hemeier 2024-06-18 19:20:10 UTC
Post the complete output from starting in Terminal.

As I wrote in the Forum, it is starting here on an upgraded Leap 15.6.
Comment 5 Donald Curtis 2024-06-19 08:37:42 UTC
Created attachment 875572 [details]
Terminal trace, Jameica Logfile, systemd System Journa, systemd Usere Journal.

See the Forums discussion for Screenshots.
Comment 6 Donald Curtis 2024-06-19 08:43:28 UTC
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)
 >
Comment 7 Donald Curtis 2024-06-20 09:39:21 UTC
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 …
Comment 8 Donald Curtis 2024-06-20 15:39:25 UTC
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.
Comment 9 Donald Curtis 2024-06-20 15:51:02 UTC
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.