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 221245 - Enabling JavaSE fails with java.io.IOException: Cannot start /local/netbeans/trunk/netbeans-7.3beta/ide/modules/org-eclipse-core-runtime.jar
Summary: Enabling JavaSE fails with java.io.IOException: Cannot start /local/netbeans/...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 7.3
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 211830 222315 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-01 12:07 UTC by Marian Mirilovic
Modified: 2012-11-19 09:18 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Upgrade to the update center went OK. Here is the list of changed files on disk. (124.40 KB, patch)
2012-11-01 16:20 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2012-11-01 12:07:51 UTC
Steps to reproduce:
- start NB 7.3 Beta 
- change URL of NetBeans distribution to :
http://smetiste.cz.oracle.com/builds/netbeans/trunk/daily/2012-11-01_00-01-24/uc/catalog.xml.gz
(simulate update from NB 7.3 Beta to NB 7.3 Beta 2 through update center)
- update IDE
- try to enable JavaSE in Tools | Plugins
-> fails with :

INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.expression@3.1.1.RELEASE started
INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.core@3.1.1.RELEASE started
INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.context@3.1.1.RELEASE started
INFO [org.netbeans.modules.autoupdate.ui.wizards.UninstallStep]: org.netbeans.InvalidException: Netigso: /local/netbeans/trunk/netbeans-7.3beta/ide/modules/org-eclipse-core-runtime.jar: java.io.IOException: Cannot start /local/netbeans/trunk/netbeans-7.3beta/ide/modules/org-eclipse-core-runtime.jar
org.osgi.framework.BundleException: The bundle "org.eclipse.core.runtime_3.7.0.v20110110 [181]" could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.equinox.registry; bundle-version="[3.4.0,4.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)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:292)
	at org.netbeans.core.netigso.Netigso.createLoader(Netigso.java:327)
Caused: java.io.IOException: Cannot start /local/netbeans/trunk/netbeans-7.3beta/ide/modules/org-eclipse-core-runtime.jar
	at org.netbeans.core.netigso.Netigso.createLoader(Netigso.java:340)
	at org.netbeans.NetigsoModule.start(NetigsoModule.java:119)
	at org.netbeans.NetigsoHandle.classLoaderUp(NetigsoHandle.java:185)
	at org.netbeans.ModuleManager.netigsoLoaderUp(ModuleManager.java:565)
	at org.netbeans.NetigsoModule.classLoaderUp(NetigsoModule.java:132)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:1058)
Caused: org.netbeans.InvalidException: Netigso: /local/netbeans/trunk/netbeans-7.3beta/ide/modules/org-eclipse-core-runtime.jar
	at org.netbeans.ModuleManager.enable(ModuleManager.java:1061)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:1002)
	at org.netbeans.modules.autoupdate.services.OperationSupportImpl$ForEnable.enable(OperationSupportImpl.java:183)
Caused: org.netbeans.api.autoupdate.OperationException[ENABLE]: Netigso: /local/netbeans/trunk/netbeans-7.3beta/ide/modules/org-eclipse-core-runtime.jar: java.io.IOException: Cannot start /local/netbeans/trunk/netbeans-7.3beta/ide/modules/org-eclipse-core-runtime.jar
	at org.netbeans.modules.autoupdate.services.OperationSupportImpl$ForEnable.enable(OperationSupportImpl.java:188)
	at org.netbeans.modules.autoupdate.services.OperationSupportImpl$ForEnable.access$1000(OperationSupportImpl.java:123)
	at org.netbeans.modules.autoupdate.services.OperationSupportImpl$ForEnable$1.run(OperationSupportImpl.java:156)
	at org.netbeans.modules.autoupdate.services.OperationSupportImpl$ForEnable$1.run(OperationSupportImpl.java:153)
	at org.openide.util.Mutex.writeAccess(Mutex.java:438)
	at org.netbeans.modules.autoupdate.services.OperationSupportImpl$ForEnable.doOperation(OperationSupportImpl.java:153)
	at org.netbeans.api.autoupdate.OperationSupport.doOperation(OperationSupport.java:70)
[catch] at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep.handleAction(UninstallStep.java:195)
	at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep.doAction(UninstallStep.java:155)
	at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep.access$000(UninstallStep.java:70)
	at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep$1.propertyChange(UninstallStep.java:129)
	at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
	at java.awt.Component.firePropertyChange(Component.java:8382)
	at org.netbeans.modules.autoupdate.ui.wizards.OperationPanel.access$200(OperationPanel.java:67)
	at org.netbeans.modules.autoupdate.ui.wizards.OperationPanel$1.run(OperationPanel.java:105)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)
INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.beans@3.1.1.RELEASE started
INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.asm@3.1.1.RELEASE started
INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.equinox.preferences@3.4.2.v20120111-2020 started
INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.equinox.common@3.6.0.v20100503 started
INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.core.runtime.compatibility.auth@3.2.200.v20100517 started
INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.core.runtime.compatibility.auth@3.2.200.v20100517 256
INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.core.runtime.compatibility.auth@3.2.200.v20100517 stopped
INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.equinox.common@3.6.0.v20100503 256
INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.equinox.common@3.6.0.v20100503 stopped
INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.equinox.preferences@3.4.2.v20120111-2020 256
INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.equinox.preferences@3.4.2.v20120111-2020 stopped
INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.asm@3.1.1.RELEASE 256
INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.asm@3.1.1.RELEASE stopped
INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.beans@3.1.1.RELEASE 256
INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.beans@3.1.1.RELEASE stopped
INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.context@3.1.1.RELEASE 256
INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.context@3.1.1.RELEASE stopped
INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.core@3.1.1.RELEASE 256
INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.core@3.1.1.RELEASE stopped
INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.expression@3.1.1.RELEASE 256
INFO [org.netbeans.core.netigso.Netigso]: bundle org.springframework.expression@3.1.1.RELEASE stopped
Comment 1 Jaroslav Tulach 2012-11-01 14:56:10 UTC
Isn't this another incarnation of bug 218320?
Comment 2 Jaroslav Tulach 2012-11-01 15:54:51 UTC
One more note. You decided to upgrade from 7.3Beta which had not functionality enabled, right? How frequent the scenario that somebody downloads ergonomics, does not use anything and does upgrade is?
Comment 3 Jaroslav Tulach 2012-11-01 16:20:50 UTC
Created attachment 126927 [details]
Upgrade to the update center went OK. Here is the list of changed files on disk.
Comment 4 Jaroslav Tulach 2012-11-01 16:29:38 UTC
Enabling Java SE causes some problems the errors are:

osgi> start org.eclipse.core.runtime

org.osgi.framework.BundleException: The bundle "org.eclipse.core.runtime_3.7.0.v20110110 [184]" could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.equinox.registry; bundle-version="[3.4.0,4.0.0)"

osgi> ss equinox

Framework is launched.

id      State       Bundle
17      INSTALLED   org.eclipse.equinox.app_1.3.100.v20110321
89      <<LAZY>>    org.eclipse.equinox.common_3.6.0.v20100503
104     INSTALLED   org.eclipse.equinox.security_1.1.1.R37x_v20110822-1018
133     <<LAZY>>    org.eclipse.equinox.preferences_3.4.2.v20120111-2020

The org.eclipse.equinox.registry is missing. Thus this really looks like an incarnation of bug 218320. Jirko, please confirm!
Comment 5 Jaroslav Tulach 2012-11-02 13:09:14 UTC
$ grep equinox.registry updater*

updater.log.0:INFO: Deleting file: ide/config/Modules/org-eclipse-equinox-registry.xml
updater.log.0:INFO: .... ide/config/Modules/org-eclipse-equinox-registry.xml was deleted? true
updater.log.1:INFO: Backup file ide/update/backup/org-eclipse-equinox-registry.jar
updater.log.1:INFO: File ide/modules/org-eclipse-equinox-registry.jar deleted.
updater.log.1:INFO: Copied file ide/update/download/org-eclipse-equinox-registry.jar to ide/modules/org-eclipse-equinox-registry.jar
updater.log.1:INFO: File ide/update/download/org-eclipse-equinox-registry.jar deleted.
updater.log.1:INFO: File ide/update_tracking/org-eclipse-equinox-registry.xml modified.
Comment 6 Jiri Rechtacek 2012-11-02 14:26:20 UTC
(In reply to comment #5)
> $ grep equinox.registry updater*
> 
> updater.log.0:INFO: Deleting file:
> ide/config/Modules/org-eclipse-equinox-registry.xml
> updater.log.0:INFO: .... ide/config/Modules/org-eclipse-equinox-registry.xml
> was deleted? true
> updater.log.1:INFO: Backup file
> ide/update/backup/org-eclipse-equinox-registry.jar
> updater.log.1:INFO: File ide/modules/org-eclipse-equinox-registry.jar deleted.
> updater.log.1:INFO: Copied file
> ide/update/download/org-eclipse-equinox-registry.jar to
> ide/modules/org-eclipse-equinox-registry.jar
> updater.log.1:INFO: File ide/update/download/org-eclipse-equinox-registry.jar
> deleted.
> updater.log.1:INFO: File ide/update_tracking/org-eclipse-equinox-registry.xml
> modified.

[jirka@jirka-dell tmp]$ grep equinox.registry ~/.netbeans/7.3beta/var/log/updater.log.0 
[jirka@jirka-dell tmp]$

on JavaSE distro of NetBeans 7.3 Beta1
Comment 7 Jiri Rechtacek 2012-11-02 15:50:03 UTC
Reproduced as well on NetBeans IDE 7.3 Beta 2 (Build 201211020750).

>Nov 02, 2012 4:31:01 PM org.netbeans.updater.ModuleUpdater unpack
>INFO: Backup file /home/jirka/netbeans-7.3beta/ide/modules/org-eclipse-equinox->registry.jar to /home/jirka/netbeans-7.3beta/ide/update/backup/org-eclipse->equinox-registry.jar
It's okay - just make a before update update org-eclipse-equinox-registry.jar

>Nov 02, 2012 4:31:01 PM org.netbeans.updater.ModuleUpdater unpack
>INFO: File /home/jirka/netbeans-7.3beta/ide/modules/org-eclipse-equinox->registry.jar deleted.
It's okay too - delete old version

>Nov 02, 2012 4:31:01 PM org.netbeans.updater.ModuleUpdater unpack
>INFO: Copied file /home/jirka/netbeans-7.3beta/ide/update/download/org-eclipse->equinox-registry.jar to /home/jirka/netbeans-7.3beta/ide/modules/org-eclipse->equinox-registry.jar
New version installed.

>Nov 02, 2012 4:31:01 PM org.netbeans.updater.ModuleUpdater unpack
>INFO: File /home/jirka/netbeans-7.3beta/ide/update/download/org-eclipse->equinox-registry.jar deleted.
Then remove it from update dir.

>Nov 02, 2012 4:31:01 PM org.netbeans.updater.XMLUtil write
>INFO: Use XML Transformer: >com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl@79a805d2
>Nov 02, 2012 4:31:01 PM org.netbeans.updater.UpdateTracking$Module write
>INFO: File /home/jirka/netbeans-7.3beta/ide/update_tracking/org-eclipse->equinox-registry.xml modified.
In the end - document it in update_tracing.xml
Comment 8 Jaroslav Tulach 2012-11-02 15:52:54 UTC
After fix of #218320 the equinox.registry remains there

netbeans/ide/update/backup/org-eclipse-equinox-registry.jar
netbeans/ide/update_tracking/org-eclipse-equinox-registry.xml
netbeans/ide/modules/org-eclipse-equinox-registry.jar

but its config/Modules file is missing! Not sure why.
Comment 9 Jaroslav Tulach 2012-11-02 16:02:33 UTC
I had to backport fix for #218320 e.g. 981ac61431b8 to release73_beta branch - e.g. it is necessary to update o.n.bootstrap first into 7.3beta and only then allow update of other modules.

Anyway moving to autoupdate - the missing config file is likely AU fault.
Comment 10 Jiri Rechtacek 2012-11-02 16:20:22 UTC
I found it - updater.jar wrongly handles OSGi bundles and remove its config file in some cases. This problem affected all possible updates of OSGi bundle up to now.
Comment 11 Jiri Rechtacek 2012-11-02 19:04:52 UTC
http://hg.netbeans.org/core-main/rev/63e5f5fd2393
Comment 12 Jiri Rechtacek 2012-11-03 12:10:21 UTC
http://hg.netbeans.org/releases/rev/2b9262c88c18
Comment 13 Quality Engineering 2012-11-04 02:50:29 UTC
Integrated into 'main-golden', will be available in build *201211040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/63e5f5fd2393
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #221245: Enabling JavaSE fails with java.io.IOException: Cannot start /local/netbeans/trunk/netbeans-7.3beta/ide/modules/org-eclipse-core-runtime.jar
Comment 14 Quality Engineering 2012-11-04 23:12:37 UTC
Integrated into 'releases', will be available in build *201211042000* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/2b9262c88c18
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #221245: Enabling JavaSE fails with java.io.IOException: Cannot start /local/netbeans/trunk/netbeans-7.3beta/ide/modules/org-eclipse-core-runtime.jar
(transplanted from 63e5f5fd239360b6632b81bac7b1218af2933d58)
Comment 15 Jaroslav Tulach 2012-11-05 11:33:33 UTC
*** Bug 211830 has been marked as a duplicate of this bug. ***
Comment 16 Tomas Danek 2012-11-07 13:38:27 UTC
verified on upgrade scenarions beta->beta2 with latest beta2 bits on AUC.
Comment 17 Jaroslav Tulach 2012-11-19 09:18:28 UTC
*** Bug 222315 has been marked as a duplicate of this bug. ***