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.
Summary: | Cannot rerun netbeans plug-in | ||
---|---|---|---|
Product: | apisupport | Reporter: | soldatov <soldatov> |
Component: | Project | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | jskrivanek, jtulach, kawazu428, pnejedly |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | log |
Description
soldatov
2008-02-04 11:02:22 UTC
Created attachment 55983 [details]
log
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. Reproduced. 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. *** changeset: 66879:ab0ad4db9142 tag: tip user: Jaroslav Tulach <jtulach@netbeans.org> 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 Development IDE'. 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) 68135:865399018b73 |