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.
Created attachment 116598 [details] messages.log with exception The platform application (Oracle Solaris Studio) displays the exception indicator just after any menu item is used. Here is exception: java.lang.NullPointerException at org.netbeans.core.startup.NbInstaller$CacheFlusher.flushCaches(NbInstaller.java:1205) at org.netbeans.Stamps$Store.store(Stamps.java:604) [catch] at org.netbeans.Stamps$Worker.run(Stamps.java:769)
on Windows a lot of automatic tests fails with: [junit] WARNING [org.netbeans.Stamps]: Error saving cache C:\hudson\workspace\win7-cygwin\testbase\tests\build\test\qa-functional\work\userdir0\var\cache\localeVariants [junit] INFO [org.netbeans.Stamps]: Can't find relative path for 'C:\hudson\workspace\win7-cygwin\netbeans\platform\modules\org-openide-explorer.jar' [junit] java.io.IOException: Can't find relative path for 'C:\hudson\workspace\win7-cygwin\netbeans\platform\modules\org-openide-explorer.jar' [junit] at org.netbeans.Stamps.produceRelativePath(Stamps.java:854) [junit] at org.netbeans.Stamps.writeRelativePath(Stamps.java:830) [junit] at org.netbeans.LocaleVariants.flushCaches(LocaleVariants.java:103) [junit] [catch] at org.netbeans.Stamps$Store.store(Stamps.java:604) [junit] at org.netbeans.Stamps$Worker.run(Stamps.java:769) [junit] WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user has been obsoleted in favor of InstalledFileLocator/Places at org.netbeans.core.startup.preferences.RelPaths.findRelativePath(RelPaths.java:75) [junit] SEVERE [global] [junit] java.lang.NullPointerException [junit] at org.netbeans.core.startup.NbInstaller$CacheFlusher.flushCaches(NbInstaller.java:1205) [junit] at org.netbeans.Stamps$Store.store(Stamps.java:604) [junit] [catch] at org.netbeans.Stamps$Worker.run(Stamps.java:769)
150 failed tests. Jarda, can you evaluate, please?
Is there a simple way to reproduce the problem?
Jarda, the situations is following: Stamps.produceRelativePath uses testWritePath in loop for (String p : dirs()) { if (testWritePath(path, p, "" + cnt, out)) { return; } cnt++; } in case of path = /export/tmp/tmp/oss/lib/solstudio/solstudio/modules/locale/org-netbeans-core_solstudio.jar!/ and p = /export/tmp/tmp/oss/lib/solstudio/bin/../solstudio testWritePath returns FALSE Looks lke ".." causes problem (btw, I have seen .. in "path" as well and then such jars are handled) Btw, NbInstaller has own impl of testWritePath => modification is needed in both places
(In reply to comment #4) > Btw, NbInstaller has own impl of testWritePath > => modification is needed in both places the right comment is; NbInstaller uses RelPaths.findRelativePath which has own impl of testWritePath => fix is needed in both testWritePath copies if you can use the same
OK, I am writing test.
ergonomics#742dad1d4ce9
*** Bug 209271 has been marked as a duplicate of this bug. ***
*** Bug 209655 has been marked as a duplicate of this bug. ***
*** Bug 209128 has been marked as a duplicate of this bug. ***
waiting for http://hg.netbeans.org/main-silver/rev/2d68491e5c24 http://hg.netbeans.org/cnd-main/rev/2d68491e5c24
Integrated into 'main-golden', will be available in build *201203220400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/742dad1d4ce9 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #209459: Support for absolute paths is still needed