I installed full Netbeans nightly build (with all packs). And I have such problem:
1)create new netbeans plug in module project (standalone, with default settings)
2)run it (F6)
3)close the appeared IDE
4)run it again
Created attachment 55983 [details]
seems as wrong project setting -> passing to apisupport for evaluation
No, not really. More probably a problem with module system caches.
Nejedlák is probably right.
A duplicate, I believe.
Nejedláku, I believe this is a bug in your code. If one uses testing modules, then
Source _src = Source.sources.get(jar);
in JarClassLoader can yield null. Is that a bug, do how would you fix it?
If I understand it correctly, the subsequent start (or is it reload inside an already running IDE) uses some kind of
cached URL to a file which is either no longer there, or whose class loader was destroyed.
Either way, the system should claim that there's no such resource.
It might have claimed that the resource exists (i.e. getResource returned well-formed URL into (nonexistent) jar)
because the cache have contained an entry for given file (it was there on the first start).
I would probably disable the cache if there are testing modules somehow.
*** Issue 127205 has been marked as a duplicate of this issue. ***
*** Issue 127177 has been marked as a duplicate of this issue. ***
user: Jaroslav Tulach <email@example.com>
date: Wed Feb 13 16:30:29 2008 +0100
summary: #126602: Try to survive wrong cached data by disabling further caching and continuing
Exception is fixed but module is loaded just once and it is not reloaded anymore. To reproduce:
- create new netbeans plug in module project (standalone, with default settings)
- add some action to main menu
- run module (F6)
- check action is there
- add one more action to main menu
- run module (F6) but the second action doesn't appear in main menu. It behaves similarly if you call 'Reload in
Product Version: NetBeans IDE Dev (Build 20080219071336)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)