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 181591

Summary: org.openide.util.RequestProcessor$SlowItem: task failed due to: java.lang.NullPointerException
Product: contrib Reporter: ranbato <ranbato>
Component: ScalaAssignee: _ dcaoyuan <dcaoyuan>
Status: NEW ---    
Severity: normal CC: mihai
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 165526
Attachments: stacktrace
messages.log
nb thread dump

Description ranbato 2010-03-05 10:48:48 UTC
Build: NetBeans IDE Dev (Build 201002152000)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Windows 7

User Comments:
GUEST: this error is shown from time to time.

ranbato: Startup




Stacktrace: 
org.openide.util.RequestProcessor$SlowItem: task failed due to: java.lang.NullPointerException
   at org.openide.util.RequestProcessor$Task.schedule(RequestProcessor.java:694)
   at org.netbeans.modules.parsing.impl.indexing.errors.ErrorAnnotator.enqueue(ErrorAnnotator.java:250)
   at org.netbeans.modules.parsing.impl.indexing.errors.ErrorAnnotator.isInError(ErrorAnnotator.java:274)
   at org.netbeans.modules.parsing.impl.indexing.errors.ErrorAnnotator.annotateIcon(ErrorAnnotator.java:136)
   at org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem$StatusImpl.annotateIcon(FileBasedFileSystem.java:308)
   at org.netbeans.modules.project.ui.ProjectsRootNode$BadgingNode.getIcon(ProjectsRootNode.java:763)
Comment 1 ranbato 2010-03-05 10:48:52 UTC
Created attachment 94809 [details]
stacktrace
Comment 2 Vitezslav Stejskal 2010-03-08 05:41:44 UTC
Looks like scala related:
java.lang.NullPointerException
	at java.util.StringTokenizer.<init>(StringTokenizer.java:182)
	at java.util.StringTokenizer.<init>(StringTokenizer.java:204)
	at org.netbeans.modules.scala.stdplatform.platformdefinition.Util.createClassPath(Util.java:68)
	at org.netbeans.modules.scala.stdplatform.platformdefinition.J2SEPlatformImpl.getBootstrapLibraries(J2SEPlatformImpl.java:217)
	at org.netbeans.modules.scala.platform.queries.PlatformSourceForBinaryQuery.findSourceRoots2(PlatformSourceForBinaryQuery.java:92)
	at org.netbeans.modules.scala.platform.queries.PlatformSourceForBinaryQuery.findSourceRoots(PlatformSourceForBinaryQuery.java:130)
	at org.netbeans.api.java.queries.SourceForBinaryQuery.findSourceRoots2(SourceForBinaryQuery.java:123)
Comment 3 Exceptions Reporter 2010-04-26 08:07:58 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=165526
Comment 4 rafschietekat 2010-04-26 16:38:41 UTC
Created attachment 98067 [details]
messages.log

There are several reports related to SlowItem already, so I didn't want to create yet another one, even though I don't know whether it's exactly the same issue (but the others are mainly marked fixed or duplicate and this is verified on the latest nightly build of 2010-04-26).

I have increased the priority to P2 because this regression (presumedly, because I don't have previous versions anymore to verify that, but it would have happened sometime this month) is making the program almost impossible to use because of the numerous times that one has to press escape to make the dialog disappear, and because it nearly always interferes with code completion (sometimes the options briefly appear but are then immediately replaced with the report that pops up).

I don't see a workaround.
Comment 5 rafschietekat 2010-04-26 16:40:32 UTC
Increased priority, if I may.
Comment 6 rafschietekat 2010-04-29 23:03:42 UTC
And I guess you can ignore that because I see this is about Scala, not C++...
Comment 7 Martin Kozeny 2013-03-08 15:02:04 UTC
Created attachment 132384 [details]
nb thread dump