Bug 753960 - JNLP with jnlp.packEnabled and jnlp.versionEnabled results in "Application Error: Cannot grant permissions to unsigned jars."
Summary: JNLP with jnlp.packEnabled and jnlp.versionEnabled results in "Application Er...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: icedtea-web
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Omair Majid
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 675271 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-14 23:22 UTC by Jaroslav Škarvada
Modified: 2013-01-17 06:54 UTC (History)
20 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 905074 (view as bug list)
Environment:
Last Closed: 2013-01-04 22:07:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Log from -verbose (16.96 KB, application/octet-stream)
2011-12-02 20:33 UTC, Jaroslav Škarvada
no flags Details

Description Jaroslav Škarvada 2011-11-14 23:22:36 UTC
Description of problem:
I have JNLP with the following resource:
<resources>
  <property name="jnlp.packEnabled" value="true"/>
  <property name="jnlp.versionEnabled" value="true"/>
  <j2se version="1.6.0+" initial-heap-size="32M" max-heap-size="128M"/>
  <jar href="iKVM.jar" download="eager" main="true" version="1.69.13.0x0"/>
</resources>
Oracle java uses:
GET /iKVM__V1.69.13.0x0.jar.pack.gz HTTP/1.1\r\n
Openjdk java uses:
GET /iKVM.jar?version-id=1.69.13.0x0 HTTP/1.1\r\n
which results in the folowing error:
net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars.
After jar rename it works as expected.

Version-Release number of selected component (if applicable):
icedtea-web-1.1.4-1.fc17.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Use JNLP with jnlp.packEnabled and jnlp.versionEnabled enabled.
  
Actual results:
GET /iKVM.jar?version-id=1.69.13.0x0 HTTP/1.1\r\n

Expected results:
GET /iKVM__V1.69.13.0x0.jar.pack.gz HTTP/1.1\r\n

Comment 1 Omair Majid 2011-11-25 16:33:47 UTC
Is there a way I can reproduce this locally? Do you have the logs (try running javaws with -verbose)? I looked over the code in icedtea-web that does thing and nothing jumps out at me - icedtea-web should be creating the right urls.

Comment 2 Jaroslav Škarvada 2011-12-02 20:33:21 UTC
Created attachment 539764 [details]
Log from -verbose

I currently do not have access to the machine, but I tried to reproduce this locally, log is attached. You can try yourself. I uploaded everything to:
http://jskarvad.fedorapeople.org/java/
Just put the jars on your HTTP server and edit the URL in jnlp. Everything originate from the supermicro management board.

Comment 3 Jaroslav Škarvada 2011-12-02 20:40:51 UTC
Oracle Java has no problem:
*.redhat.com - - [02/Dec/2011 21:35:12] "GET /liblinux_x86_64__V1.0.3.jar.pack.gz HTTP/1.1" 200 -
*.redhat.com - - [02/Dec/2011 21:35:12] "GET /iKVM__V1.69.13.0x0.jar.pack.gz HTTP/1.1" 200 -

OpenJDK is unable to get the right files:
*.redhat.com - - [02/Dec/2011 21:22:28] code 404, message File not found
*.redhat.com - - [02/Dec/2011 21:22:28] "GET /iKVM.jar?version-id=1.69.13.0x0 HTTP/1.1" 404 -
*.redhat.com - - [02/Dec/2011 21:22:28] code 404, message File not found
*.redhat.com - - [02/Dec/2011 21:22:28] "GET /liblinux_x86_64.jar?version-id=1.0.3 HTTP/1.1" 404 -

The above log was created on F14, but it seems to be the same on rawhide (tested 2011-11-15).

Comment 4 Kevin Fenzi 2012-06-04 17:13:08 UTC
I'm getting a similar (or the same) problem from trying to use a java remote console from an IBM IMM... 

% /usr/bin/javaws.itweb jnlp
JAR https://localhost:8443/aessrp/avctIBMViewer.jar not found. Continuing.
JAR https://localhost:8443/avctKVMIOLinux64.jar not found. Continuing.
JAR https://localhost:8443/avmLinuxLib64.jar not found. Continuing.
net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. 
	at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:778)
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:552)
	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:889)
Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars. Application requested security permissions, but jars are not signed.
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.setSecurity(JNLPClassLoader.java:283)
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:203)
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:317)
	at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:770)
	... 2 more
Caused by: 
net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars. Application requested security permissions, but jars are not signed.
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.setSecurity(JNLPClassLoader.java:283)
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:203)
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:317)
	at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:770)
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:552)
	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:889)

(localhost 8443 is a redirect over ssh to the https port on the IMM). 

I'm not sure how to get it working, but it's pretty anoying. ;( 

icedtea-web-1.2-2.fc17.x86_64
java-1.7.0-openjdk-1.7.0.3-2.1.fc17.7.x86_64

Comment 5 Naoki 2012-07-13 02:15:20 UTC
I have a similar problem with F17, OpenJDK 1.7 (1.7.0.3-2.2.1.fc17.8)
), IcedTea-web (1.2.2) when trying to access Sun ILOM remote console applet - I'll paraphrase it:

"java.io.EOFException
	at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340)
	at java.io.DataInputStream.readUTF(DataInputStream.java:589)
	at java.io.DataInputStream.readUTF(DataInputStream.java:564)

JAR https://10.130.3.219:8401/Java/JavaRConsole.jar not found. Continuing.
JAR https://10.130.3.219:8401/Java/RedirLib.jar not found. Continuing.
net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. 

net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Cannot grant permissions to unsigned jars. Application requested security permissions, but jars are not signed."

Comment 6 Jaroslav Škarvada 2012-07-27 13:34:18 UTC
Another BMC, probably the same problem. Now with HP iLO2 (version 2.09), Fedora 17:

java version "1.7.0_03-icedtea"
OpenJDK Runtime Environment (fedora-2.2.1.fc17.8-x86_64)
OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode)

(firefox:12029): Gdk-WARNING **: Native Windows wider or taller than 65535 pixels are not supported
JAR https://hp-dl360g6-03-ilo.lab.eng.brq.redhat.com/rc175p06.jar not found. Continuing.
net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize applet. 
	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:735)
	at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:676)
	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:886)
Caused by: java.lang.ClassNotFoundException: com.hp.ilo2.remcons.remcons
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1398)
	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:725)
	... 2 more
Caused by: 
java.lang.ClassNotFoundException: com.hp.ilo2.remcons.remcons
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1398)
	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:725)
	at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:676)
	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:886)
java.lang.NullPointerException
	at net.sourceforge.jnlp.NetxPanel.runLoader(NetxPanel.java:154)
	at sun.applet.AppletPanel.run(AppletPanel.java:379)
	at java.lang.Thread.run(Thread.java:722)
java.lang.NullPointerException
	at sun.applet.AppletPanel.run(AppletPanel.java:429)
	at java.lang.Thread.run(Thread.java:722)
^

icedtea-web-1.2-2.fc17.x86_64


Please fix this bug, it makes remote server management from WWW interface much harder in Fedora.

Comment 9 Kevin Fenzi 2012-08-13 20:50:31 UTC
icedtea-web-1.2.1-1.fc18.x86_64
java-1.7.0-openjdk-1.7.0.5-2.2.1.fc18.10.x86_64

Still happening in f18 branched. ;(

Comment 11 Deepak Bhole 2012-08-24 20:12:52 UTC
*** Bug 675271 has been marked as a duplicate of this bug. ***

Comment 12 tengel 2012-08-25 12:59:33 UTC
Deepak marked Bug 675271 as a duplicate of this, even though that bug is older and has more detail (so this one is the duplicate). Developers, please see 675271 as it has more details and this issue is affecting all iDRAC use (all Dell chassis) and is a major issue; it's causing people not to be able to perform their job functions.

I have reverted to using the Oracle java and it's plugin since there's been no movement on fixing this for a very long time.

Comment 13 Deepak Bhole 2012-08-26 23:26:58 UTC
(In reply to comment #12)
> Deepak marked Bug 675271 as a duplicate of this, even though that bug is
> older and has more detail (so this one is the duplicate). Developers, please
> see 675271 as it has more details and this issue is affecting all iDRAC use
> (all Dell chassis) and is a major issue; it's causing people not to be able
> to perform their job functions.
> 

The original cause of 675271 has been fixed. There is a secondary issue that became known only recently to us via this issue (comment #4). Since this issue brought the JDK7 issue to light first, I made 675271 a dupe of this.

Ideally I should open a new bug really but this is already a very high priority item since I was able to find the cause a couple of weeks ago, so I did not open another tracker.

Comment 14 Gianluca Cecchi 2012-09-04 15:19:51 UTC
Hoping to see a solution soon as I'm beginning to work with new Dell Servers (R720) and iDRAC7 (fw 1.20.20) and I see the same problem.
In my case:
Fedora 17 and icedtea-web-1.2-2.fc17.x86_64

Thanks in advance,
Gianluca

Comment 15 Wade Mealing 2012-09-11 01:13:15 UTC
Gianluca,

You're not alone, getting the same deal, F17.

Comment 16 Deepak Bhole 2012-09-24 17:00:06 UTC
I have built test rpms with a patch that resolves the HTTPS verification issue that is causing most of the problems that people on this bug are seeing. Please feel free to give it a try:

http://people.redhat.com/dbhole/fedora/icedtea-web/

I would appreciate any feedback actually as it gives me more of a reason to push it into upstream 1.3 branch asap.

Comment 17 Gowrishankar Rajaiyan 2012-09-24 17:16:13 UTC
Don't see "Application requested security permissions, but jars are not signed." anymore, however, what I see now is "no iKVM64 in java.library.path"

icedtea-web-javadoc-1.3-1.fc17.0.noarch
icedtea-web-debuginfo-1.3-1.fc17.0.x86_64
icedtea-web-1.3-1.fc17.0.x86_64

Comment 18 Deepak Bhole 2012-09-24 17:22:27 UTC
(In reply to comment #17)
> Don't see "Application requested security permissions, but jars are not
> signed." anymore, however, what I see now is "no iKVM64 in java.library.path"
> 
> icedtea-web-javadoc-1.3-1.fc17.0.noarch
> icedtea-web-debuginfo-1.3-1.fc17.0.x86_64
> icedtea-web-1.3-1.fc17.0.x86_64

Can you please run as:
ICEDTEAPLUGIN_DEBUG=true firefox 2>&1 | tee console.log

and post console.log and ~/.icedtea/log/java.std* files?

Comment 19 Gowrishankar Rajaiyan 2012-09-25 05:08:19 UTC
shanks ~]$ ICEDTEAPLUGIN_DEBUG=true firefox 2>&1 | tee console.log
ITNPP Thread# 140090662704960: NP_GetMIMEDescription
ITNPP Thread# 140090662704960: NP_GetMIMEDescription return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin name.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin description.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetMIMEDescription
ITNPP Thread# 140090662704960: NP_GetMIMEDescription return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin name.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin description.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetMIMEDescription
ITNPP Thread# 140090662704960: NP_GetMIMEDescription return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin name.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin description.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetMIMEDescription
ITNPP Thread# 140090662704960: NP_GetMIMEDescription return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin name.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin description.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetMIMEDescription
ITNPP Thread# 140090662704960: NP_GetMIMEDescription return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin name.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin description.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetMIMEDescription
ITNPP Thread# 140090662704960: NP_GetMIMEDescription return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin name.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin description.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetMIMEDescription
ITNPP Thread# 140090662704960: NP_GetMIMEDescription return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin name.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin description.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetMIMEDescription
ITNPP Thread# 140090662704960: NP_GetMIMEDescription return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin name.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin description.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetMIMEDescription
ITNPP Thread# 140090662704960: NP_GetMIMEDescription return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin name.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin description.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetMIMEDescription
ITNPP Thread# 140090662704960: NP_GetMIMEDescription return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin name.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin description.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetMIMEDescription
ITNPP Thread# 140090662704960: NP_GetMIMEDescription return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin name.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin description.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetMIMEDescription
ITNPP Thread# 140090662704960: NP_GetMIMEDescription return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin name.
ITNPP Thread# 140090662704960: NP_GetValue return
ITNPP Thread# 140090662704960: NP_GetValue
ITNPP Thread# 140090662704960: NP_GetValue: returning plugin description.
ITNPP Thread# 140090662704960: NP_GetValue return
JAR https://hostname.com:443/liblinux_x86_64.jar not found. Continuing.
JAR https://hostname.com:443/liblinux_x86_64.jar not found. Continuing.


shanks ~]$ ls -ltR .icedtea/log/
.icedtea/log/:
total 0
[grajaiya@shanks ~]$

Comment 20 Deepak Bhole 2012-09-25 14:20:28 UTC
Does https://hostname.com:443/liblinux_x86_64.jar exist when you try via wget/browser?

Comment 25 Igor Mammedov 2012-10-02 12:03:54 UTC
update from comment 16 fixes no signed issue with iDRAC6.

Comment 26 Didier 2012-10-04 12:11:17 UTC
icedtea-web-1.3-1.fc17.0.x86_64 confirmed working with iDRAC6.

Thanks !

Comment 27 Russell Harrison 2012-10-05 15:15:43 UTC
(In reply to comment #16)
> I have built test rpms with a patch that resolves the HTTPS verification
> issue that is causing most of the problems that people on this bug are
> seeing. Please feel free to give it a try:
> 
> http://people.redhat.com/dbhole/fedora/icedtea-web/
> 
> I would appreciate any feedback actually as it gives me more of a reason to
> push it into upstream 1.3 branch asap.

I have confirmed these rpms resolve the issue I was having with IBM Integrated Management Module II.  I'm now able to access remote control as expected. Thanks! I'd very much like to see these patches pushed upstream sooner rather than later.

Comment 28 Gianluca Cecchi 2012-10-09 09:28:05 UTC
I confirm the test packages resolved the problem for me too.
My test environment:
Dell enclosure PowerEdge M1000e with fw 3.21 	
Server PowerEdge M610 with
CPLD Version 	1.0.3 	
BIOS Version 	6.1.0
 
idrac fw: 3.30 (Build 17) 	

Successfully connected to the remote console that previously (icedtea-web-1.3-1.fc17.x86_64) failed.

Unfortunately I'm not having at the moment the chance to test with Dell Server (R720) and iDRAC7 (fw 1.20.20) too..

Thanks,
Gianluca

Comment 29 Kent Yoder 2012-10-09 19:03:27 UTC
Tested on an IBM x3650 IMM2, fixed.

Thanks,
Kent

Comment 30 Lars Kellogg-Stedman 2012-10-12 13:52:36 UTC
This fixes our problems accessing Dell iDRAC remote consoles.  It would be great if these updated packages would make it into actual Fedora soon.

Comment 31 Deepak Bhole 2012-10-18 20:43:30 UTC
Thank you everyone for helping test this! 

I have pushed the patch into the 1.3 branch upstream and we are planning to do a release on the 30th after which I will build for Fedora immediately.

Comment 32 Jaroslav Škarvada 2012-10-19 15:36:41 UTC
Thanks, with your update iLO2 KVM is working again on my HP server.

I will also re-test with iKVM (i.e. to check whether the originally addressed problem from the description/comment 0 is also resolved).

Comment 33 Gianluca Cecchi 2012-10-23 12:28:58 UTC
I regained access to my Dell R720 server with iDRAC 7 (fw 1.20.20).
So I was able to test and I confirm that now with icedtea-web-1.3-1.fc17.0.x86_64 I'm able to connect to this server.
Thanks,
Gianluca

Comment 34 Deepak Bhole 2013-01-04 22:07:52 UTC
THis should be resolved in the current release of icedtea-web in Fedora 16, 17 and 18.


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