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 160729 - AssertionError: Config file config/Modules/org-netbeans-modules-maven-gsf.xml must be already removed or marked for remove.
Summary: AssertionError: Config file config/Modules/org-netbeans-modules-maven-gsf.xml...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: dlipin
URL: http://statistics.netbeans.org/except...
Keywords:
: 180408 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-20 13:11 UTC by Sergey Petrov
Modified: 2010-02-13 21:47 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 146669


Attachments
stacktrace (1.80 KB, text/plain)
2009-03-20 13:11 UTC, Sergey Petrov
Details
stacktrace (1.72 KB, text/plain)
2009-03-20 15:41 UTC, Filip Zamboj
Details
stacktrace (1.72 KB, text/plain)
2009-03-23 02:09 UTC, klauern
Details
stacktrace (1.73 KB, text/plain)
2009-03-23 15:18 UTC, spaquet
Details
stacktrace (1.73 KB, text/plain)
2009-04-14 10:49 UTC, azizi
Details
stacktrace (1.73 KB, text/plain)
2009-04-14 10:50 UTC, azizi
Details
stacktrace (10.05 KB, text/plain)
2009-05-20 18:17 UTC, dynamite
Details
stacktrace (1.95 KB, text/plain)
2009-10-21 10:22 UTC, Michael Nazarov
Details
logs (24.63 KB, application/x-gzip)
2010-02-08 05:01 UTC, Michael Nazarov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2009-03-20 13:11:45 UTC
Build: NetBeans IDE Dev (Build 090320)
VM: OpenJDK 64-Bit Server VM, 1.6.0_0-b12, IcedTea6 1.3.1 (6b12-0ubuntu6.1) Runtime Environment, 1.6.0_0-b12
OS: Linux, 2.6.27-14-generic, amd64

User Comments:
sergeyp: was found in emulation of corrupted module installation, reinstallation

1. install groovy and grails
2. remove ****gsp.jar from modules folder
3. uninstall
got a lot of exceptions not filed.
4. restart
5. install again with restart
6. try to uninstall, got assertion



Stacktrace: 
java.lang.AssertionError: Config file config/Modules/org-netbeans-modules-maven-gsf.xml must be already removed or marked for remove.
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFilesInCluster(ModuleDeleterImpl.java:291)
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFiles(ModuleDeleterImpl.java:278)
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.markForDelete(ModuleDeleterImpl.java:162)
        at org.netbeans.modules.autoupdate.services.OperationSupportImpl$ForUninstall.doOperation(OperationSupportImpl.java:389)
        at org.netbeans.api.autoupdate.OperationSupport.doOperation(OperationSupport.java:67)
        at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep.handleAction(UninstallStep.java:192)
Comment 1 Sergey Petrov 2009-03-20 13:11:54 UTC
Created attachment 78516 [details]
stacktrace
Comment 2 dlipin 2009-03-20 13:16:44 UTC
corner case.
Comment 3 Filip Zamboj 2009-03-20 15:41:41 UTC
Build: NetBeans IDE Dev (Build 2009-03-20_15-04-54 )
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b02
OS: Linux, 2.6.27-11-generic, amd64

User Comments: 
i tried to uninstall plugin "ruby and rail" and "Extra Color Themes"

Stacktrace: 
java.lang.AssertionError: Config file config/Modules/org-netbeans-modules-ruby-hints.xml must be already removed or marked for remove.
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFilesInCluster(ModuleDeleterImpl.java:291)
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFiles(ModuleDeleterImpl.java:278)
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.markForDelete(ModuleDeleterImpl.java:162)
        at org.netbeans.modules.autoupdate.services.OperationSupportImpl$ForUninstall.doOperation(OperationSupportImpl.java:389)
        at org.netbeans.api.autoupdate.OperationSupport.doOperation(OperationSupport.java:67)
        at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep.handleAction(UninstallStep.java:192)
Comment 4 Filip Zamboj 2009-03-20 15:41:45 UTC
Created attachment 78528 [details]
stacktrace
Comment 5 klauern 2009-03-23 02:09:37 UTC
Build: NetBeans IDE Dev (Build 200903221401)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments: 


Stacktrace: 
java.lang.AssertionError: Config file config/Modules/org-netbeans-soa-libs-jbiadmincommon.xml must be already removed or marked for remove.
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFilesInCluster(ModuleDeleterImpl.java:291)
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFiles(ModuleDeleterImpl.java:278)
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.markForDelete(ModuleDeleterImpl.java:162)
        at org.netbeans.modules.autoupdate.services.OperationSupportImpl$ForUninstall.doOperation(OperationSupportImpl.java:389)
        at org.netbeans.api.autoupdate.OperationSupport.doOperation(OperationSupport.java:67)
        at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep.handleAction(UninstallStep.java:192)
Comment 6 klauern 2009-03-23 02:09:47 UTC
Created attachment 78609 [details]
stacktrace
Comment 7 spaquet 2009-03-23 15:18:07 UTC
Build: NetBeans IDE Dev (Build 200903230201)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments: 


Stacktrace: 
java.lang.AssertionError: Config file config/Modules/org-netbeans-modules-visualweb-websvcmgr.xml must be already removed or marked for remove.
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFilesInCluster(ModuleDeleterImpl.java:291)
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFiles(ModuleDeleterImpl.java:278)
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.markForDelete(ModuleDeleterImpl.java:162)
        at org.netbeans.modules.autoupdate.services.OperationSupportImpl$ForUninstall.doOperation(OperationSupportImpl.java:389)
        at org.netbeans.api.autoupdate.OperationSupport.doOperation(OperationSupport.java:67)
        at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep.handleAction(UninstallStep.java:192)
Comment 8 spaquet 2009-03-23 15:18:23 UTC
Created attachment 78649 [details]
stacktrace
Comment 9 azizi 2009-04-14 10:48:53 UTC
Build: NetBeans IDE Dev (Build 200904100201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-9-generic, i386

User Comments: 
When i try to uninstall Visual Jsf because of bad installation

Stacktrace: 
java.lang.AssertionError: Config file config/Modules/org-netbeans-modules-visualweb-dataconnectivity.xml must be already removed or marked for remove.
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFilesInCluster(ModuleDeleterImpl.java:294)
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFiles(ModuleDeleterImpl.java:281)
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.markForDelete(ModuleDeleterImpl.java:165)
        at org.netbeans.modules.autoupdate.services.OperationSupportImpl$ForUninstall.doOperation(OperationSupportImpl.java:389)
        at org.netbeans.api.autoupdate.OperationSupport.doOperation(OperationSupport.java:67)
        at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep.handleAction(UninstallStep.java:192)
Comment 10 azizi 2009-04-14 10:49:03 UTC
Created attachment 80029 [details]
stacktrace
Comment 11 azizi 2009-04-14 10:49:57 UTC
Build: NetBeans IDE Dev (Build 200904100201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-9-generic, i386

User Comments: 
still exist

Stacktrace: 
java.lang.AssertionError: Config file config/Modules/org-netbeans-modules-visualweb-dataconnectivity.xml must be already removed or marked for remove.
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFilesInCluster(ModuleDeleterImpl.java:294)
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFiles(ModuleDeleterImpl.java:281)
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.markForDelete(ModuleDeleterImpl.java:165)
        at org.netbeans.modules.autoupdate.services.OperationSupportImpl$ForUninstall.doOperation(OperationSupportImpl.java:389)
        at org.netbeans.api.autoupdate.OperationSupport.doOperation(OperationSupport.java:67)
        at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep.handleAction(UninstallStep.java:192)
Comment 12 azizi 2009-04-14 10:50:00 UTC
Created attachment 80030 [details]
stacktrace
Comment 13 Exceptions Reporter 2009-05-04 12:59:05 UTC
This issue already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=146669
Comment 14 dlipin 2009-05-04 16:24:51 UTC
Can`t reproduce with the available steps.
If someone can reproduce it, please run IDE with -J-Dorg.netbeans.modules.autoupdate.level=FINEST, reproduce and attach 
the messages.log file to the issue (or report via Exception Reporter - it would attach the verbose messages.log to the 
exception as well).
Comment 15 dynamite 2009-05-20 18:17:00 UTC
Build: NetBeans IDE Dev (Build 200905190201)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.27.21-0.1-default, amd64

User Comments: 
The Ruby plug-in installed installing for me into 200905190201  as it keeps complaining of dependencies that it cannot find.  So I am trying to uninstall it but I get tghis exception instead.

Stacktrace: 
org.openide.util.RequestProcessor$Item: task failed: java.lang.AssertionError: Config file config/Modules/org-jruby.xml must be already removed or marked for remove.
        at org.openide.util.RequestProcessor$Item.fillInStackTrace(RequestProcessor.java:853)
        at java.lang.Throwable.<init>(Throwable.java:181)
        at java.lang.Exception.<init>(Exception.java:29)
        at org.openide.util.RequestProcessor$Item.<init>(RequestProcessor.java:819)
        at org.openide.util.RequestProcessor$Task.schedule(RequestProcessor.java:629)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:295)
Comment 16 dynamite 2009-05-20 18:17:23 UTC
Created attachment 82502 [details]
stacktrace
Comment 17 Exceptions Reporter 2009-09-30 07:03:04 UTC
This issue already has 24 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=146669
Comment 18 Michael Nazarov 2009-10-21 10:22:17 UTC
Build: NetBeans IDE 6.8 Beta (Build 200910202101)
VM: Java HotSpot(TM) Client VM, 1.5.0_20-141, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_20-b02-315
OS: Mac OS X, 10.5.8, i386

User Comments: 
Steps to reroduce:

1. Install all available plugins.
2. Select all installed plugins (not only newly installed).
3. Uninstall them.


Stacktrace: 
java.lang.AssertionError: Config file config/Modules/org-netbeans-modules-web-client-tools-firefox.xml must be already removed or marked for remove.
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFilesInCluster(ModuleDeleterImpl.java:294)
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFiles(ModuleDeleterImpl.java:281)
        at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.markForDelete(ModuleDeleterImpl.java:165)
        at org.netbeans.modules.autoupdate.services.OperationSupportImpl$ForUninstall.doOperation(OperationSupportImpl.java:395)
        at org.netbeans.api.autoupdate.OperationSupport.doOperation(OperationSupport.java:67)
        at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep.handleAction(UninstallStep.java:192)
Comment 19 Michael Nazarov 2009-10-21 10:22:24 UTC
Created attachment 89832 [details]
stacktrace
Comment 20 dlipin 2009-10-21 12:30:24 UTC
Michael,

> 2. Select all installed plugins (not only newly installed).

Did you use detailed or feature view in the "Installed" tab ?
Comment 21 Michael Nazarov 2009-10-21 12:32:20 UTC
Yep, I turned on detailed and select all 70+ plugins.
Comment 22 Michael Nazarov 2009-10-22 09:09:28 UTC
Here I deactivated plugins first. Then made attempt of uninstallation.

java.lang.AssertionError: Config file config/Modules/org-netbeans-mobility-lib-activesync.xml must be already removed or
marked for remove.
	at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFilesInCluster(ModuleDeleterImpl.java:294)
	at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.removeModuleFiles(ModuleDeleterImpl.java:281)
	at org.netbeans.modules.autoupdate.services.ModuleDeleterImpl.markForDelete(ModuleDeleterImpl.java:165)
	at org.netbeans.modules.autoupdate.services.OperationSupportImpl$ForUninstall.doOperation(OperationSupportImpl.java:395)
	at org.netbeans.api.autoupdate.OperationSupport.doOperation(OperationSupport.java:67)
	at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep.handleAction(UninstallStep.java:192)
	at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep.doAction(UninstallStep.java:152)
	at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep.access$000(UninstallStep.java:67)
	at org.netbeans.modules.autoupdate.ui.wizards.UninstallStep$1.propertyChange(UninstallStep.java:126)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
	at java.awt.Component.firePropertyChange(Component.java:7277)
	at org.netbeans.modules.autoupdate.ui.wizards.OperationPanel.access$000(OperationPanel.java:61)
	at org.netbeans.modules.autoupdate.ui.wizards.OperationPanel$1.run(OperationPanel.java:81)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)
Caused: org.openide.util.RequestProcessor$FastItem: task failed due to
Comment 23 dlipin 2009-10-22 09:20:21 UTC
> Here I deactivated plugins first. 
which plugins were selected at this step?

> Then made attempt of uninstallation.
which plugins were selected at this step?
Comment 24 Michael Nazarov 2009-10-22 09:22:05 UTC
As I already wrote earlier -- all installed plugins.
Comment 25 dlipin 2009-10-22 09:29:14 UTC
pretty strange - deactivating the plugin should result in the "restart" icon at it and no possibility to check it again.
that leads to no possibility to uninstall it. 

wasn`t all the plugins been unchecked automatically? were they all checked and with "restart" icon?
ste-by-step screenshots are welcomed anyway ;)
Comment 26 Michael Nazarov 2009-10-22 09:37:59 UTC
Step-by-step shots -- sounds good but not so fast :)
Comment 27 Michael Nazarov 2009-10-22 10:25:42 UTC
Steps:

1. Install all available plugins.
2. Restart.
3. Open Installed page, turn on details, select all, deactivate.
4. Restart.
5. Open Installed page, turn on details, select all, uninstall.

Here the exception.
Comment 28 dlipin 2010-02-08 02:26:45 UTC
*** Bug 180408 has been marked as a duplicate of this bug. ***
Comment 29 Michael Nazarov 2010-02-08 02:40:13 UTC
So what is incomplete here?
Comment 30 dlipin 2010-02-08 03:57:51 UTC
Incomplete since I wasn`t able to reproduce the issue so was asking for additional info.

Please specify exact information to reproduce the issue (starting with clean userdir), I wasn`t able to do that.
1) Which bundle have you used? JavaSE/Ruby/Full/...? Installer or Zip? 
2) Which build?
3) What is the operation system?
4) In case of using installer - have you installed with default options?
5) Have you clicked on "Reload Catalog" button after Plugin Manager dialog was shown?
6) How many plugins were available for installation? Please attach screenshot made at this step.
7) Have you selected plugins for uninstallation in "Detailed" view ("Show Details" checkbox is checked, or invisible at all) or in "Feature" view ("Show Details" checkbox is unchecked)? Please attach screenshot made at this step.
8) When the exception occured, please also make a screenshot and attach it together with messages.log.

Thanks.
Comment 31 Michael Nazarov 2010-02-08 04:05:47 UTC
Full,
build was specified Build 201002080200, but you marked as duplicate and this means issue is not build specific,
MacOS -- there is special field in IZ,
yes all defaults,
is this required for uninstallation?,
126 or something like this,
yes in detailed view,
I already posted exact text of exception, if you want to view nice informative icon as well I'll made shot for sure.

BTW feel free to visit next door and view exception by yourself :)
Comment 32 dlipin 2010-02-08 04:15:09 UTC
was netbeans userdir clean before installation?
Comment 33 Michael Nazarov 2010-02-08 04:17:19 UTC
No. I just refused to import old settings.
Comment 34 dlipin 2010-02-08 04:36:21 UTC
Thanks.

I actually failed at the early step - install all available plugins.
After I choose all plugins (Check All in right-click menu) and press Install I got the following warning:
Some plugins require plugin Editor Library to be installed.
The plugin Editor library is requested in version >= 1.33.0.8.2 (release version 1) but only 2.2.10.2 (of release version different from 1) was found.

The following plugin is affected:
   jMaki Core Ajax support
Comment 35 Michael Nazarov 2010-02-08 04:38:50 UTC
These two plugins should not be installed.
There is another issue: https://netbeans.org/bugzilla/show_bug.cgi?id=180258
Comment 36 dlipin 2010-02-08 04:39:31 UTC
Could you please attach messages.log, messages.log.1 and messages.log.2 ?
Comment 37 Michael Nazarov 2010-02-08 04:42:02 UTC
I'm currently trying to reproduce with deleted old .netbeans* so will attach as complete checking.
Comment 38 Michael Nazarov 2010-02-08 05:01:40 UTC
Created attachment 93956 [details]
logs
Comment 39 Alexei Mokeev 2010-02-10 02:51:32 UTC
33 duplicates so far. It looks like the bug is happening if UC catalog was updated during the plugins installation. Obviously the probability is higher when Dev uc is used and bunch of plugins is installed.
 Not a stopper for 6.9 M1
Comment 40 dlipin 2010-02-12 04:08:45 UTC
core-main#1daa64e2d83e
Comment 41 Quality Engineering 2010-02-13 21:47:11 UTC
Integrated into 'main-golden', will be available in build *201002140200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1daa64e2d83e
User: Dmitry Lipin <dlipin@netbeans.org>
Log: Issue #160729 AssertionError: Config file config/Modules/org-netbeans-modules-maven-gsf.xml must be already removed or marked for remove.