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 269437

Summary: Some modules state remain INSTALLED after start() and then it is disabled
Product: platform Reporter: giulio_a
Component: AutoupdateAssignee: Libor Fischmeistr <lfischmeistr>
Status: NEW ---    
Severity: normal CC: giulio_a
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description giulio_a 2016-12-27 09:46:13 UTC
Environment:
Product Version         = NetBeans IDE 8.2
Operating System        = Linux Fedora 25 running on x86_64

JAVA:
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-b16)
OpenJDK 64-Bit Server VM (build 25.111-b16, mixed mode)

Steps to reproduce:
1. Delete Netbeans cache in ~/.cache/netbeans/8.2 directory.
2. Start NetBeans 8.2
3. NetBeans bootstrap window appears
4. A dialog appear with this text:

NETBEANS IDE WARNING:

Warning - could not install some modules: org.eclipse.equinox.common - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-equinox-common.jar: Cannot start org.eclipse.equinox.common state remains INSTALLED after start() org.eclipse.core.jobs - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-core-jobs.jar: Cannot start org.eclipse.core.jobs state remains INSTALLED after start() org.eclipse.equinox.registry - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-equinox-registry.jar: Cannot start org.eclipse.equinox.registry state remains INSTALLED after start() org.eclipse.core.runtime.compatibility.auth - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-core-runtime-compatibility-auth.jar: Cannot start org.eclipse.core.runtime.compatibility.auth state remains INSTALLED after start() org.eclipse.equinox.app - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-equinox-app.jar: Cannot start org.eclipse.equinox.app state remains INSTALLED after start() org.eclipse.equinox.preferences - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-equinox-preferences.jar: Cannot start org.eclipse.equinox.preferences state remains INSTALLED after start() org.eclipse.core.contenttype - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-core-contenttype.jar: Cannot start org.eclipse.core.contenttype state remains INSTALLED after start() org.eclipse.core.runtime - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-core-runtime.jar: Cannot start org.eclipse.core.runtime state remains INSTALLED after start() org.eclipse.equinox.security - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-equinox-security.jar: Cannot start org.eclipse.equinox.security state remains INSTALLED after start() org.eclipse.core.net - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-core-net.jar: Cannot start org.eclipse.core.net state remains INSTALLED after start() org.eclipse.mylyn.commons.core - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-mylyn-commons-core.jar: Cannot start org.eclipse.mylyn.commons.core state remains INSTALLED after start() org.eclipse.mylyn.commons.net - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-mylyn-commons-net.jar: Cannot start org.eclipse.mylyn.commons.net state remains INSTALLED after start() org.eclipse.mylyn.commons.xmlrpc - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-mylyn-commons-xmlrpc.jar: Cannot start org.eclipse.mylyn.commons.xmlrpc state remains INSTALLED after start() org.eclipse.mylyn.commons.repositories.core - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-mylyn-commons-repositories-core.jar: Cannot start org.eclipse.mylyn.commons.repositories.core state remains INSTALLED after start() org.eclipse.mylyn.tasks.core - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-mylyn-tasks-core.jar: Cannot start org.eclipse.mylyn.tasks.core state remains INSTALLED after start() org.eclipse.mylyn.bugzilla.core - org.netbeans.InvalidException: Netigso: /home/yuma/external/bin/netbeans/netbeans-8.2/ide/modules/org-eclipse-mylyn-bugzilla-core.jar: Cannot start org.eclipse.mylyn.bugzilla.core state remains INSTALLED after start()

Expected result:
NetBeans starts with all modules up and running.

Actual result:
NetBeans disables these modules so it is unusable in very important parts of its core.
Comment 1 giulio_a 2016-12-27 10:38:30 UTC
Removing Netbeans user directory does not solve issue.
Comment 2 giulio_a 2016-12-27 11:42:11 UTC
Reinstalled Netbeans 8.2 - the issue seems resolved.

But if I install these plugin from Netbeans repository:

+ Color Codes Preview -- Editing
+ AutoSave modules -- Editing

and then restart Netbeans, issue is here again.
Comment 3 giulio_a 2016-12-27 14:37:23 UTC
A possible workaround for this issue that is only a diversion, because it doesn't fix anything in source code, is this:

- Export all Netbeans 8.2 settings in a zip file, following Export method in settings dialog.
- Uninstall Netbeans 8.2 via script uninstall.sh in Netbeans 8.2 installation directory. DO NOT REMOVE USER DIRECTORY.
- Remove completely Netbeans 8.2 cache directory.
- Rename Netbeans 8.2 user directory, in order to have another backup of your user data.
- Reboot (maybe not necessary).
- Install a fresh Netbeans 8.2, and strictly follow plugin information and migration from older Netbeans version.
- Import all settings previously exported in a zip files, to have again your IDE configured as you want.
- DO NOT CHECK FOR PLUGIN UPDATE, and be careful to install new plugins, because issue may return again.

This is not a solution; but it is useful for temporarily using Netbeans again.

IMHO, this issue remains open because it is not resolved by this workaround.