Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1815751

Summary: error when upgrading from java 13 dev to java 14 dev
Product: [Fedora] Fedora Reporter: bugzilla
Component: java-latest-openjdkAssignee: Petra Alice Mikova <pmikova>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: ahughes, jerboaa, jvanek, pmikova, vk2bea+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-20 08:50:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description bugzilla 2020-03-21 11:30:06 UTC
Description of problem:
after upgrading from java 13 to java 14 i get an error in dnf upgrade -y

Version-Release number of selected component (if applicable):
java-latest-openjdk-devel-1:14.0.0.36-1.rolli

How reproducible:
always

Steps to Reproduce:
1. install java 13 devel
2. upgrade to java 14 devel

Actual results:
  Ausgeführtes Scriptlet: java-latest-openjdk-devel-1:14.0.0.36-1.rolli   30/70 
alternatives Version 1.11 - Copyright (C) 2001 Red Hat, Inc.
Kostenlose Weitergabe unter den Bedingungen der GNU Public License erlaubt.

Aufruf: alternatives --install <Link> <Name> <Pfad> <Priorität>
                    [--initscript <Dienst>]
                    [--family <family>]
                    [--slave <slave_link> <slave_name> <slave_path>]*
       alternatives --remove <Name> <Pfad>
       alternatives --auto <Name>
       alternatives --config <Name>
       alternatives --display <Name>
       alternatives --set <Name> <Pfad>
       alternatives --list
       alternatives --remove-all <name>
       alternatives --add-slave <name> <path> <slave_link> <slave_name> <slave_path>
       alternatives --remove-slave <name> <path> <slave_name>

common options: --verbose --test --help --usage --version --keep-missing
                --altdir <Ordner> --admindir <Ordner>
/var/tmp/rpm-tmp.zoU4ub: Zeile 64: --slave: Kommando nicht gefunden.

  Aktualisieren         : java-latest-openjdk-javadoc-1:14.0.0.36-1.rol   31/70 
  Ausgeführtes Scriptlet: java-latest-openjdk-javadoc-1:14.0.0.36-1.rol   31/70 



Expected results:
no error message

Additional info:

Comment 1 Michael Katzmann 2020-03-22 17:56:45 UTC
I also get this ... although it appears to select java-latest-openjdk.x86_64 (/usr/lib/jvm/java-14-openjdk-14.0.0.36-1.rolling.fc31.x86_64/bin/java)

A more serious problem is that I cannot start Eclipse (version 4.15 with marketplace update for java 14)....

WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.jpackage
Error: LinkageError occurred while loading main class org.eclipse.equinox.launcher.Main
	java.lang.ExceptionInInitializerError: null

If I install and configure the Oracle Java 14 JDK .... 
java version "14" 2020-03-17
Java(TM) SE Runtime Environment (build 14+36-1461)
Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)

it starts without problem.

Comment 2 Petra Alice Mikova 2020-03-22 18:03:27 UTC
Hi,

there is indeed an error in the postinstall script of the devel package. I will fix it and create another update.

(In reply to Michael Katzmann from comment #1)
> I also get this ... although it appears to select java-latest-openjdk.x86_64
> (/usr/lib/jvm/java-14-openjdk-14.0.0.36-1.rolling.fc31.x86_64/bin/java)
> 
> A more serious problem is that I cannot start Eclipse (version 4.15 with
> marketplace update for java 14)....
> 
> WARNING: Using incubator modules: jdk.incubator.foreign,
> jdk.incubator.jpackage
> Error: LinkageError occurred while loading main class
> org.eclipse.equinox.launcher.Main
> 	java.lang.ExceptionInInitializerError: null
> 
> If I install and configure the Oracle Java 14 JDK .... 
> java version "14" 2020-03-17
> Java(TM) SE Runtime Environment (build 14+36-1461)
> Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
> 
> it starts without problem.

This appears to be a different issue. Please file a separate bugzilla and if possible, attach a simple reproducer or clarify the steps to reproduce the failure. 

Thank you both!

Comment 3 Petra Alice Mikova 2020-05-20 08:50:32 UTC
The issue should be fixed in the current release, if the problem persists, please open another bugzilla.