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: | NullPointerException at org.netbeans.api.java.classpath.ClassPath.entries | ||
---|---|---|---|
Product: | java | Reporter: | fedesaravia <fedesaravia> |
Component: | Source | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | an_leo, chrisrc, malary, mmirilovic, ovk |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=142579 | ||
Issue Type: | DEFECT | Exception Reporter: | 142579 |
Attachments: |
stacktrace
stacktrace |
Description
fedesaravia
2008-12-11 14:22:56 UTC
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. *** |