This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 241162 - Webstart doesn't work with new JRE versions >Update 45
Summary: Webstart doesn't work with new JRE versions >Update 45
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 8.0
Hardware: All All
: P1 normal with 1 vote (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-30 11:04 UTC by lujop
Modified: 2014-02-02 02:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Suggested patch for problem 1 and 2 (2.15 KB, application/octet-stream)
2014-01-30 11:04 UTC, lujop
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lujop 2014-01-30 11:04:30 UTC
Created attachment 144576 [details]
Suggested patch for problem 1 and 2

Netbeans platform applications doesn't work correctly with security changes in new JRE versions. I haven't made a detailed tests on all versions but the problems I report occurs in update 45 and 51.

Problems:

+1+
main="true" is not specified in <jar href="startup.jar"/> and main class isn't found

+2+
Property netbeans.user isn't correctly received by netbeans because neither the jnlp is signed and it's not a security property.
I've seen that there is an open bug to make jnlp signed but I think that also secure properties had to be used because some times signing jnlp can be a problem.

+3+
When 1 and 2 is solved application starts but com.sun.jnlp.JNLPClassLoader.getPermissions(Unknown Source) are throw.
Possibly due to missing Codebase attributes  in jars manifest (https://community.oracle.com/thread/2552412)

I think that a complete revision has to be made to ensure webstart applications work with newer versions.

I attach a suggested patch for +1+ and +2+
Comment 1 Martin Kozeny 2014-01-30 13:22:29 UTC
Please what environment do you use? Problem +3+ with codebase and permissions attributes should be fixed in https://hg.netbeans.org/core-main/rev/61635a07cdc7.
Comment 2 lujop 2014-01-30 14:24:59 UTC
(In reply to Martin Kozeny from comment #1)
> Please what environment do you use? Problem +3+ with codebase and
> permissions attributes should be fixed in
> https://hg.netbeans.org/core-main/rev/61635a07cdc7.

I've tested in several windows (windows 7, windows XP) and with JRE7U45 and JRE7U51. 
To invoke application I've tested from browser and using javaws command.
Comment 3 Martin Kozeny 2014-01-30 15:52:19 UTC
I had mainly in mind what version of NetBeans do you use. I'm using:

Product Version: NetBeans IDE Dev (Build 201401270001)
Updates: Updates available
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.5.0-37-generic running on amd64; UTF-8; en_US (nb)

and it works fine for both 7u45 and not for 7u51. With your patch it is working also for 7u51. Problems with codebase and permissions attributes should be fixed in issue #238098.
Comment 4 Martin Kozeny 2014-01-30 17:00:30 UTC
https://hg.netbeans.org/core-main/rev/8326a3135170
Comment 5 Quality Engineering 2014-02-02 02:17:55 UTC
Integrated into 'main-silver', will be available in build *201402020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8326a3135170
User: Martin Kozeny <mkozeny@netbeans.org>
Log: #241162: Webstart doesn't work with new JRE versions >Update 45.