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.
Build: NetBeans IDE 6.5 (Build 200811100001) VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Windows Vista, 6.0, x86 User Comments: fedesaravia: I just oppened the IDE, don't know where the exact problem is since I have lots of opened projects fedesaravia: I just oppened the IDE, don't know where the exact problem is since I have lots of opened projects Stacktrace: java.lang.NullPointerException at org.netbeans.api.java.classpath.ClassPath.entries(ClassPath.java:297) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:1354) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:1300) at org.netbeans.modules.java.source.usages.ClassIndexManager.writeLock(ClassIndexManager.java:99) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:1297) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:1257)
Created attachment 74855 [details] stacktrace
This issue has already 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=142579
Overtake.
Build: NetBeans IDE Dev (Build 200903040201) VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25 OS: Windows XP, 5.1, x86 User Comments: tried to close j2se project during scanning Stacktrace: java.lang.NullPointerException at org.netbeans.api.java.classpath.ClassPath.entries(ClassPath.java:297) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:1397) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:1339) at org.netbeans.modules.java.source.usages.ClassIndexManager.writeLock(ClassIndexManager.java:99) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:1339) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:1297)
Created attachment 77718 [details] stacktrace
This issue has already 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=142579
Cannot reproduce, please provide more information: project, userdir, anything of any importance. Thank you.
*** Issue 161415 has been marked as a duplicate of this issue. ***
I've found the case when the SPI impl violates the contract and passes invalid null value. It's a obvious race condition in SPImpl, I will fix it. Hopefully it's the only case.
> I've found the case when the SPI impl violates the contract and passes invalid null value. It's a obvious race > condition in SPImpl, I will fix it. Hopefully it's the only case. .. so removing INCOMPLETE keyword
To Marian: The INCOMPLETE is still valid s it's not the only one. Sorry
Tomas: thanks for taking care, does it mean that case mentioned by you is already fixed ?
Yes, but there are another possible ways how this may happen. I've added logging and waiting for input.
Fixed jet-main: 8768b20a6513 I've did a search through all classes implementing ClassPathImplementation and did fixes of race conditions which may cause this problem. Hopefully there are not more of these.
*** Issue 159047 has been marked as a duplicate of this issue. ***