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 204467 - var/cache/all-manifest.dat is not updated...
Summary: var/cache/all-manifest.dat is not updated...
Status: RESOLVED DUPLICATE of bug 199320
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.0
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-31 16:35 UTC by Andrew Krasny
Modified: 2011-11-01 19:36 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Krasny 2011-10-31 16:35:03 UTC
I have faced with the following problem:
I'm building localized version of some NB-based tool. 
JavaHelp files is a part of that localization. 
I build separate jars with javahelp files.



Then the scenario is:
- $ ./my-tool --userdir ud
- Press F1 => en help is fine
- Exit tool

- $ ./my-tool --userdir ud --locale ja
- Press F1 => NPE
- Exit tool

- $ ./my-tool --userdir ud --locale ja -J-Dnetbeans.cache.manifests=false
- Press F1 => ja help is fine
- Exit tool

While investigation of the problem I have found that JavaHelp throws MissingRecourceException in case of a second start (above). And this is because classloader (NB's) tells so. In turn this happens because userdir already exists at the time of NB start and there is NO mention about ja JavaHelp-related jars there. But as all-manifest.dat exists it is not get updated... (see NbInstaller.java:1199, and as a result no call to saveManifestCache())

I see that there are mechanisms that work good for changed resource files (updating all-resources.dat). But my jars with translated JavaHelp are not considered as resources... and don't trigger all-manifest.dat refresh.

Seems like unserved usecase.. 

A workaround is either remove var/cache/all-manifest.dat or start with -J-Dnetbeans.cache.manifests=false...
Comment 1 Andrew Krasny 2011-10-31 16:36:53 UTC
Perhaps http://netbeans.org/bugzilla/show_bug.cgi?id=127368 has the same roots.. 

At least I get exactly the same callstack ;)
Comment 2 Jaroslav Tulach 2011-11-01 15:41:33 UTC

*** This bug has been marked as a duplicate of bug 199320 ***
Comment 3 Andrew Krasny 2011-11-01 18:30:19 UTC
I see. Thanks Jaroslav!

VVV, sholdn't it be nominated/transplanted to 701_fixes?
Comment 4 Vladimir Voskresensky 2011-11-01 19:36:20 UTC
(In reply to comment #3)
> I see. Thanks Jaroslav!
> 
> VVV, sholdn't it be nominated/transplanted to 701_fixes?
not as Patch 2 stopper. But I nominated 199320 for the next patch candidate