Bug 1299976

Summary: jnlp.LaunchException: Fatal: Initialization Error - NullPointerException SecurityDialogs.showMissingALACAttributePanel when codebase not specified
Product: Red Hat Enterprise Linux 6 Reporter: Deepu K S <dkochuka>
Component: icedtea-webAssignee: jiri vanek <jvanek>
Status: CLOSED ERRATA QA Contact: Lukáš Zachar <lzachar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7CC: dbhole, dkochuka, jvanek, pm-rhel, qe-baseos-apps
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: icedtea-web-1.6.2-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1299973 Environment:
Last Closed: 2016-05-10 20:15:23 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:
Bug Depends On: 1299973    
Bug Blocks:    

Description Deepu K S 2016-01-19 16:13:13 UTC
+++ This bug was initially created as a clone of Bug #1299973 +++

Description of problem:
NullPointerException in icedtea-web 1.5.1 on RHEL 6

this JNLP file does not have the optional "codebase" attribute specified.

net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. The application has not been initialized, for more information execute javaws from the command line.
	at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:783)
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:523)
	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:905)
Caused by: java.lang.NullPointerException
	at net.sourceforge.jnlp.security.SecurityDialogs.showMissingALACAttributePanel(SecurityDialogs.java:279)
	at net.sourceforge.jnlp.runtime.ManifestAttributesChecker.checkApplicationLibraryAllowableCodebaseAttribute(ManifestAttributesChecker.java:312)
	at net.sourceforge.jnlp.runtime.ManifestAttributesChecker.checkAll(ManifestAttributesChecker.java:82)
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:288)
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:351)
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:418)
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:394)
	at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:775)
	... 2 more


Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux 6.7
icedtea-web-1.5.1-1.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. javaws http://nextmidas.techma.com/nxm343/htdocs/localshell.jnlp


Actual results:
$ /usr/bin/javaws http://nextmidas.techma.com/nxm343/htdocs/localshell.jnlp
The application is a local file. Codebase validation is disabled. See: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/no_redeploy.html for details.
The application is a local file. Codebase validation is disabled. See: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/no_redeploy.html for details.
netx: Initialization Error: Could not initialize application. ()
net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. The application has not been initialized, for more information execute javaws from the command line.
	at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:783)
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:523)
	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:905)
Caused by: java.lang.NullPointerException
	at net.sourceforge.jnlp.security.SecurityDialogs.showMissingALACAttributePanel(SecurityDialogs.java:279)
	at net.sourceforge.jnlp.runtime.ManifestAttributesChecker.checkApplicationLibraryAllowableCodebaseAttribute(ManifestAttributesChecker.java:312)
	at net.sourceforge.jnlp.runtime.ManifestAttributesChecker.checkAll(ManifestAttributesChecker.java:82)
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:288)
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:351)
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:418)
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:394)
	at net.sourceforge.jnlp.Launcher.createApplication(Launcher.java:775)
	... 2 more



Expected results:
Application should launch without errors.

Additional info:
Upstream BugZilla is here :
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2489

RHEL 7 BZ is : https://bugzilla.redhat.com/show_bug.cgi?id=1299973

--- Additional comment from RHEL Product and Program Management on 2016-01-19 11:06:39 EST ---

Since this bug report was entered in bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 jiri vanek 2016-01-19 16:28:06 UTC
I was fixing this bugzilla in coopoeration with customer, and as 1.6.2 will be released soon, I'm strongly for updating rhels to this bugs-fixing release
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2489

Comment 4 jiri vanek 2016-02-03 17:01:12 UTC
Icedtea web 1.6.2 was released today and was pushed to fedora.

Is strongly advice to update rhel 6.8 to 1.6.2. There is opned erratum for rebase ITW in rhel 6.8 to 1.6, I will rebase it directly to 1.6.2

http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2016-February/034831.html

For sake of compeltness, Deepu, may you pelase elaborate on PM ack?

tahnx.

Comment 5 jiri vanek 2016-02-27 12:28:17 UTC
Ping? Where is this blocked?

Comment 6 jiri vanek 2016-02-27 12:29:13 UTC
Sorry. nowhere.

Comment 10 errata-xmlrpc 2016-05-10 20:15:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-0778.html