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 158459

Summary: NullPointerException at org.netbeans.modules.java.source.util.LowMemoryNotifier.addLowMemoryListener
Product: java Reporter: sternix <sternix>
Component: SourceAssignee: Rastislav Komara <moonko>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=146237
Issue Type: DEFECT Exception Reporter: 146237
Attachments: stacktrace

Description sternix 2009-02-12 14:00:13 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: OpenJDK Client VM, 14.0-b10, Java(TM) SE Runtime Environment, 1.6.0_14-ea-b01
OS: Windows XP, 5.1, x86

User Comments:
sternix: hi am trying jdk 1.6.0_14-ea-b01 development builds, (you can get it from http://download.java.net/jdk6/binaries/), and want to use G1 gc as default garbage collector, i edit netbeans.conf file like

netbeans_default_options="-J-client -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseG1GC -J-Xverify:none -J-Xss2m -J-Xms768m -J-Xmx768m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"

on starup i got this exception,
Thanks,



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.java.source.util.LowMemoryNotifier.addLowMemoryListener(LowMemoryNotifier.java:103)
        at org.netbeans.modules.java.source.usages.BinaryAnalyser.start(BinaryAnalyser.java:141)
        at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.scanRoots(RepositoryUpdater.java:1798)
        at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.access$2700(RepositoryUpdater.java:1292)
        at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:1443)
        at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:1335)
Comment 1 sternix 2009-02-12 14:00:27 UTC
Created attachment 76922 [details]
stacktrace
Comment 2 Max Sauer 2009-02-16 12:02:19 UTC
Reassign...
Comment 3 Jiri Prox 2009-02-26 11:08:21 UTC

*** This issue has been marked as a duplicate of 158421 ***