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 255729 - Errors launching the IDE after installing Fair Minesweeper 3.0! Due to outdated DukeScript Wizard
Summary: Errors launching the IDE after installing Fair Minesweeper 3.0! Due to outdat...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Html4j (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: maxnitribitt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-06 12:13 UTC by Jiri Kovalsky
Modified: 2015-12-29 13:12 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 220382


Attachments
stacktrace (1.95 KB, text/plain)
2015-10-06 12:13 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2015-10-06 12:13:16 UTC
Build: NetBeans IDE 8.1 RC (Build 201510012201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Linux

User Comments:
jkovalsky: Just installed Fair Minesweeper plugin [1] and clicked its toolbar button.

[1] http://plugins.netbeans.org/plugin/53864




Stacktrace: 
java.lang.ClassNotFoundException: net.java.html.boot.fx.FXBrowsers
   at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Comment 1 Jiri Kovalsky 2015-10-06 12:13:17 UTC
Created attachment 156555 [details]
stacktrace
Comment 2 Jaroslav Tulach 2015-10-06 13:30:01 UTC
Interesting. I'll see if I can reproduce the problem once the minesweeper is on the AU.
Comment 3 Jiri Kovalsky 2015-10-06 13:48:44 UTC
In the meantime you can Yardo change your Plugin Portal Update Center URL to Experimental PPUC [1] and install it from there. For me it simply disables the plugin right after its installation.

[1] http://plugins.netbeans.org/nbpluginportal/updates/8.1/catalog-experimental.xml.gz
Comment 4 Jaroslav Tulach 2015-10-07 12:59:20 UTC
I don't see this exception. My steps:

$ unzip ~/Downloads/netbeans-8.1rc-201510012201.zip
$ ./netbeans/bin/netbeans --userdir ud

install Minesweeper from plugin portal. On launching there is an error:

SEVERE [org.netbeans.modules.netbinox]: framework event org.apidesign.demo.minesweeper type 2
org.osgi.framework.BundleException: The bundle "org.apidesign.demo.minesweeper_3.0.0.SNAPSHOT [69]" could not be resolved. Reason: Missing Constraint: Import-Package: net.java.html.sound; version="[1.2.0,2.0.0)"
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)

which signals net.java.html.sound being available in wrong version. And yes, when looking at

$ find netbeans/ ud | grep sound
netbeans/platform/update_tracking/net-java-html-sound.xml
netbeans/platform/config/Modules/net-java-html-sound.xml
netbeans/platform/modules/net-java-html-sound.jar
ud/update_tracking/net-java-html-sound.xml
ud/config/Modules/net-java-html-sound.xml
ud/modules/net-java-html-sound.jar


there is one in the user directory. But surprisingly it is not 1.2.3 version, but only 1.1 version:

$ unzip -p ud/modules/net-java-html-sound.jar  META*MAN*
Manifest-Version: 1.0
Bnd-LastModified: 1419053983125
Build-Jdk: 1.7.0_72
Built-By: jarda
Bundle-Description: Java.net - The Source for Java Technology Collaborat
 ion
Bundle-DocURL: http://netbeans.org
Bundle-License: http://www.netbeans.org/cddl-gplv2.html
Bundle-ManifestVersion: 2
Bundle-Name: Sound API via HTML
Bundle-SymbolicName: net.java.html.sound
Bundle-Vendor: NetBeans
Bundle-Version: 1.1.0
Created-By: Apache Maven Bundle Plugin
Export-Package: net.java.html.sound;version="1.1.0"
Import-Package: net.java.html;version="[1.1,2)",org.netbeans.html.boot.s
 pi;version="[1.1,2)",org.netbeans.html.context.spi;version="[1.1,2)"
Tool: Bnd-2.1.0.20130426-122213

where this old version comes from is not yet known.
Comment 5 Jaroslav Tulach 2015-10-07 13:09:38 UTC
After installing NetBeans there is 1.2.3 version of html.sound:

$ unzip -p netbeans/platform/modules/net-java-html-sound.jar META*MAN*
Manifest-Version: 1.0
Bnd-LastModified: 1442863970660
Build-Jdk: 1.7.0_80
Built-By: devel
Bundle-Description: Java.net - The Source for Java Technology Collaborat
 ion
Bundle-DocURL: http://netbeans.org
Bundle-License: http://www.netbeans.org/cddl-gplv2.html
Bundle-ManifestVersion: 2
Bundle-Name: Sound API via HTML
Bundle-SymbolicName: net.java.html.sound
Bundle-Vendor: NetBeans
Bundle-Version: 1.2.3
Created-By: Apache Maven Bundle Plugin
Export-Package: net.java.html.sound;version="1.2.3"
Import-Package: net.java.html;version="[1.2,2)",org.netbeans.html.boot.s
 pi;version="[1.2,2)",org.netbeans.html.context.spi;version="[1.2,2)"
Tool: Bnd-2.1.0.20130426-122213
Comment 6 Jaroslav Tulach 2015-10-07 13:17:13 UTC
After the update of Minesweeper there are two html.sound modules:

$ find | grep sound
./ud/update_tracking/net-java-html-sound.xml
./ud/config/Modules/net-java-html-sound.xml
./ud/modules/net-java-html-sound.jar
./netbeans/platform/update_tracking/net-java-html-sound.xml
./netbeans/platform/config/Modules/net-java-html-sound.xml
./netbeans/platform/modules/net-java-html-sound.jar

one in the install directory (1.2.3 version) and one in user directory (1.1) version. Alas when starting the 1.1. version takes precedence. After deleting it:

$ find ud | grep sound | xargs rm

the IDE and Minesweeper start OK.
Comment 7 Jaroslav Tulach 2015-10-07 13:18:42 UTC
The net.java.html.sound@1.1 module comes from DukeScript plugin. The question is why AU downloads that version, when there already is newer version installed, but as that may be hard to answer, the quicker solution is to ask Toni to rebuild his DukeScript module against HTML/Java 1.2.3 APIs and upload it. Then the problems should be gone as well.
Comment 8 Jaroslav Tulach 2015-10-07 13:19:44 UTC
Toni, would you be so kind and updated DukeScript Wizard to newer version of HTML/Java APIs? Thanks.
Comment 9 Jaroslav Tulach 2015-12-08 17:13:55 UTC
Solved, right?
Comment 10 maxnitribitt 2015-12-29 13:12:58 UTC
yes, it was resolved by last release