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.
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
Isn't this another incarnation of bug 218320?
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?
Created attachment 126927 [details] Upgrade to the update center went OK. Here is the list of changed files on disk.
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!
$ 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.
(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
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
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.
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.
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.
http://hg.netbeans.org/core-main/rev/63e5f5fd2393
http://hg.netbeans.org/releases/rev/2b9262c88c18
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
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)
*** Bug 211830 has been marked as a duplicate of this bug. ***
verified on upgrade scenarions beta->beta2 with latest beta2 bits on AUC.
*** Bug 222315 has been marked as a duplicate of this bug. ***