Bug 17020 - can't launch a JNLP file (version-1.7.0 works correctly in Mageia4) in firefox
Summary: can't launch a JNLP file (version-1.7.0 works correctly in Mageia4) in firefox
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Nicolas Lécureuil
QA Contact:
URL: http://www.cnrtl.fr/proxemie/beau
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-26 13:03 CET by Philippe Didier
Modified: 2017-09-28 12:30 CEST (History)
1 user (show)

See Also:
Source RPM: java-1.8.0-openjdk-1.8.0.65-1.b17.1
CVE:
Status comment:


Attachments

Description Philippe Didier 2015-10-26 13:03:06 CET
Description of problem:
can't launch a JNLP file (version-1.7.0 works correctly in Mageia4) in Firefox

Version-Release number of selected component (if applicable):1.8.0.65-1.b17.1


How reproducible:
each time you try

Steps to Reproduce:
1.use Firefox
2.go to http://www.cnrtl.fr/proxemie/beau (or whatever selected french word
to look for semeiologic field)
3.you'll get error messages in icedtea-web


Reproducible: 

Steps to Reproduce:
Comment 1 Samuel Verschelde 2015-10-26 14:55:24 CET
Please attach the error messages to the bug report.
Comment 2 Frank Griffin 2015-10-26 16:11:13 CET
I tried this, and the error stems from a ClassNotFoundException thrown for sun.awt.VerticalBagLayout.  It looks like this class (and several other sun.awt classes) was removed in icedtea v8 by the following commit:

http://hg.openjdk.java.net/icedtea/jdk8/jdk/rev/7dbc53242c2a

which contains:

--- a/src/share/classes/sun/awt/VerticalBagLayout.java	Mon Dec 05 17:11:57 2011 +0400

+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000

@@ -1,158 +0,0 @@

Same for http://hg.openjdk.java.net/icedtea/jdk8/jdk/rev/9de49289df0f .

I can't find any commit messages explaining these deletions.  I'm guessing either Oracle pulled them from the freely-distributable list or (more likely) they were moved to some other JARFile which the plugin wasn't changed to include.  

Possibly there's a clue in the IcedTea v8 change sumary report ?

CC: (none) => ftg

Comment 3 Philippe Didier 2015-10-26 17:09:45 CET
Apologizes
first for a lapsus : I wrote semeiologic instead of semantic
secondly for not having sent the error messages

in fact I get a 300 lines message in the java console beginning by this :

Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:574)
	... 1 more
Caused by: java.lang.NoClassDefFoundError: sun/awt/VerticalBagLayout
	at graphapplet.AppletProx.setUI(AppletProx.java:443)
	at graphapplet.AppletProx.setUI(AppletProx.java:365)
	at graphapplet.AppletProx.init(AppletProx.java:221)
	at graphapplet.AppletProx.main(AppletProx.java:544)
	... 6 more
Caused by: java.lang.ClassNotFoundException: sun.awt.VerticalBagLayout
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1562)



I thought that the java specialists would have a better way to understand what happens by trying to reproduce the failing launching on the given URL

Frank did it... let's thank him for this

Nevertheless I may attach this long error file if needed
Comment 4 David Walser 2015-10-27 15:04:22 CET
Your best bet is to report this in RedHat's bugzilla, as that's where our openjdk package comes from (Fedora 22, specifically).

I also noticed errors on Oracle's Java plugin test page with this update, but everything else I tried (including the JNLP launcher for Cisco ASDM) all worked fine.
Comment 5 Philippe Didier 2015-11-01 19:05:41 CET
(In reply to David Walser from comment #4)
> Your best bet is to report this in RedHat's bugzilla, as that's where our
> openjdk package comes from (Fedora 22, specifically).
> 
> I also noticed errors on Oracle's Java plugin test page with this update,
> but everything else I tried (including the JNLP launcher for Cisco ASDM) all
> worked fine.

Hi David

I didn't understand if your last comment was for me 
Do you mean that I have to report this bug to RedHat's bugzilla 
(I don't use Fedora and I can hardly reproduce this bug and send a bugreport without having to install this distribution and verify if it occurs as well for Fedora as for Mageia ...)

Wouldn't it be more useful to assign it to (or to add in the CC list) luigiwalser that seems to be the last and clever committer (nicolalescur who is the "maintainer" in the maintainers database seems to have left the maintainership)

He would certainly understand what are the missing jars with the error messages 

Best regards
Philippe
Comment 6 Frank Griffin 2015-11-03 05:14:41 CET
Well, David *is* luigiwalser :-)

There's something funny here.  From older documentation:

*******************************************************************
7.11 The sun.awt Layout Collection

The sun.awt package defines four additional layouts. The first two, HorizBagLayout and VerticalBagLayout, are available only when used with Sun's JDK or Internet Explorer, since they are not provided with Netscape Navigator and may not be available from other vendors. Therefore, these layout managers should be used selectively within applets. The third layout manager, VariableGridLayout, is available with Netscape Navigator 2.0 or 3.0 and Internet Explorer. Usage of this layout manager is safer within applets but is still at your own risk. The final layout manager is introduced in Java 1.1, OrientableFlowLayout. Only time will tell where that one will be available. Any of these layout managers could be moved into a future version of java.awt if there is enough interest.
*******************************************************************

In the official Oracle java 1.6 this class is in the rt.jar file (runtime classes).  I can't find it anywhere in the cauldron openjdk 1.8 JARs.  But the odd thing is that I can't find any reference to why these sun.awt classes would have been removed from openjdk, or where they would have been moved to.

In any case, this is not a packaging problem, and asking Redhat about it is not likely to be profitable.  The question needs to be directed to the openjdk developers.
Comment 7 Samuel Verschelde 2015-12-07 13:47:43 CET
Assigning to openjdk maintainer for additional insight and if it's an upstream issue as comment #6 suggests, then this bug report can stay open to track further progress.

Assignee: bugsquad => mageia

Comment 8 Philippe Didier 2015-12-24 05:48:39 CET
The problem seems to have disappeared with the last update of libgcj15-4.9.2-4.1 and libgcj15-base-4.9.2-4.1 

:o)

I think we can close this bug as resolved :
it was neither openjdk itself nor icedtea the culprit but it looks having something to do with their association with libgcj
Comment 9 Philippe Didier 2017-09-28 12:30:33 CEST
I close it now : it was resolved but we forgot to close !

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.