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 126661 - Uninstalling modules causes multiple NPE's on subsequent IDE invocations.
Summary: Uninstalling modules causes multiple NPE's on subsequent IDE invocations.
Status: RESOLVED DUPLICATE of bug 127396
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-04 22:39 UTC by _ pcw
Modified: 2008-12-22 11:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE's after uninstalling jackpot (2.85 KB, text/plain)
2008-02-04 22:39 UTC, _ pcw
Details
messages.log, shows lots more detail of startup issues. (188.56 KB, text/plain)
2008-02-04 22:42 UTC, _ pcw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ pcw 2008-02-04 22:39:20 UTC
I had installed jackpot into my 6.1 build last week (contrib/jackpot, contrib/jackpot.rules).  Today I uninstalled it
and now starting the IDE causes two NPE's on startup (traces attached.)

I would think maybe this is a Jackpot module bug, except I noticed a similar problem after uninstalling the findbugs
module a week ago.  So it looks to me like an IDE bug, maybe with some of the module caching enhancements in 6.1, maybe
something else.

I shouldn't have to manually sanitize (or delete) my userdir when I uninstall a module.  Most users will have to simply
delete the userdir and that's a huge deal (loss of customizations, installed plugins, etc.), so I made this a P2. 
Downgrade it if there is a better workaround that can be described here.
Comment 1 _ pcw 2008-02-04 22:39:47 UTC
Created attachment 56018 [details]
NPE's after uninstalling jackpot
Comment 2 _ pcw 2008-02-04 22:42:24 UTC
Created attachment 56019 [details]
messages.log, shows lots more detail of startup issues.
Comment 3 _ pcw 2008-02-04 22:42:59 UTC
I attached messages.log, as it shows far more detail of the startup issues...
Comment 4 _ pcw 2008-02-04 23:18:12 UTC
Removing "[userdir]/var/cache/all-*.dat" appears to resolve the problem so it looks like it's an IDE caching problem. 
Perhaps a simple solution is to invalidate all caches on uninstallation of any module.  It's trivial to rebuild them,
correct?
Comment 5 Lukas Hasik 2008-02-07 11:00:17 UTC
probably problem with updating caches
Comment 6 Jaroslav Tulach 2008-02-12 15:09:24 UTC
Similar problem as with issue 126602, what shall happen when a module is uninstalled?
Comment 7 Petr Nejedly 2008-02-15 16:04:04 UTC
Yardo, isn't this fixed by your fix of 126602?
Comment 8 Jaroslav Tulach 2008-02-21 14:52:37 UTC
Yes, it was problem with caches. I've just tried similar scenario and things are working for me, after I fixed issue 
127396.

*** This issue has been marked as a duplicate of 127396 ***