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.
I got the following upon startup. The logfile is attached. It only happened once. java.lang.NullPointerException at org.netbeans.modules.java.j2seplatform.J2SEPlatformModule.updateSourceLevel(J2SEPlatformModule.java:60) at org.netbeans.modules.java.j2seplatform.J2SEPlatformModule.access$000(J2SEPlatformModule.java:31) at org.netbeans.modules.java.j2seplatform.J2SEPlatformModule$1.run(J2SEPlatformModule.java:46) at org.openide.util.Mutex.postRequest(Mutex.java:1087) at org.openide.util.Mutex.postWriteRequest(Mutex.java:457) at org.netbeans.modules.java.j2seplatform.J2SEPlatformModule.updateBuildProperties(J2SEPlatformModule.java:41) at org.netbeans.modules.java.j2seplatform.J2SEPlatformModule.restored(J2SEPlatformModule.java:36) at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:360) [catch] at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:276) at org.netbeans.ModuleManager.enable(ModuleManager.java:898) at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:377) at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:311) at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:244) at org.netbeans.core.startup.Main.getModuleSystem(Main.java:206) at org.netbeans.core.startup.Main.start(Main.java:377) at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:90) at java.lang.Thread.run(Thread.java:595)
Created attachment 27019 [details] Logfile
One more thing: Two of my projects were colored red in the project window.
Are you able to reproduce it? Was it a first start of the IDE after update or new version installation?
I doubt I could reproduce it, since it only happened to me once. It happened to be shortly after installing 5.0-beta2, but it wasn't the first time starting it up. I almost didn't file the bug, since it was a one time thing. I only did it in case the stack trace would be helpful. Go ahead and close it out if you want.
I will decrease the priority since it is hard to reproduce. The problem is somewhere in the system filesystem. The JavaPlatform module reads the platform definitions from the system filesystem and it does not find definition of the default platform, which is declared by the IDE and must be always there. I've already added debug messages to find out what happened.
Not reproduceable, IDE restart helps.
*** Issue 70346 has been marked as a duplicate of this issue. ***
*** Issue 70365 has been marked as a duplicate of this issue. ***
This happens to me every time I startup 5.0b2 (5.0rc1 is barely usable for me, while b2 is mostly OK after a bunch of startup exceptions). I've cleared the cache directory, and none of my projects are red. I have all the updates that the Update Center has to offer. Messages file follows: ------------------------------------------------------------------------------- >Log Session: Monday, January 16, 2006 10:08:24 PM GMT >System Info: Product Version = NetBeans IDE 5.0 Beta 2 (Build 200511141730) Operating System = Mac OS X version 10.4.4 running on ppc Java; VM; Vendor; Home = 1.5.0_05; Java HotSpot(TM) Client VM 1.5.0_05-43; Apple Computer, Inc.; /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home System Locale; Encoding = en_US (nb); MacRoman Home Dir.; Current Dir. = /Users/snip; / Installation; User Dir. = /Applications/java_development/NetBeansIDE5.0Beta2.app/Contents/Resources/NetBeans/nb5.0:/Applications/java_development/NetBeansIDE5.0Beta2.app/Contents/Resources/NetBeans/ide6:/Applications/java_development/NetBeansIDE5.0Beta2.app/Contents/Resources/NetBeans/enterprise2:/Applications/java_development/NetBeansIDE5.0Beta2.app/Contents/Resources/NetBeans/harness:/Applications/java_development/NetBeansIDE5.0Beta2.app/Contents/Resources/NetBeans/platform6; /Users/snip/.netbeans/5.0beta2 Boot & Ext. Classpath = /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/charsets.jar:/System/Library/Java/Extensions/CoreAudio.jar:/System/Library/Java/Extensions/dns_sd.jar:/System/Library/Java/Extensions/j3daudio.jar:/System/Library/Java/Extensions/j3dcore.jar:/System/Library/Java/Extensions/j3dutils.jar:/System/Library/Java/Extensions/jai_codec.jar:/System/Library/Java/Extensions/jai_core.jar:/System/Library/Java/Extensions/mlibwrapper_jai.jar:/System/Library/Java/Extensions/MRJToolkit.jar:/System/Library/Java/Extensions/QTJava.zip:/System/Library/Java/Extensions/QTJSupport.jar:/System/Library/Java/Extensions/vecmath.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/apple_provider.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/dnsns.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/localedata.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext/sunjce_provider.jar Application Classpath = /Applications/java_development/NetBeansIDE5.0Beta2.app/Contents/Resources/NetBeans/platform6/lib/boot.jar:/Applications/java_development/NetBeansIDE5.0Beta2.app/Contents/Resources/NetBeans/platform6/lib/org-openide-modules.jar:/Applications/java_development/NetBeansIDE5.0Beta2.app/Contents/Resources/NetBeans/platform6/lib/org-openide-util.jar:/Library/Java/Home/lib/dt.jar Startup Classpath = /Applications/java_development/NetBeansIDE5.0Beta2.app/Contents/Resources/NetBeans/platform6/core/core.jar:/Applications/java_development/NetBeansIDE5.0Beta2.app/Contents/Resources/NetBeans/platform6/core/org-openide-filesystems.jar:/Applications/java_development/NetBeansIDE5.0Beta2.app/Contents/Resources/NetBeans/nb5.0/core/org-netbeans-upgrader.jar:/Applications/java_development/NetBeansIDE5.0Beta2.app/Contents/Resources/NetBeans/nb5.0/core/locale/core_nb.jar:/Applications/java_development/NetBeansIDE5.0Beta2.app/Contents/Resources/NetBeans/ide6/core/org-netbeans-modules-utilities-cli.jar ------------------------------------------------------------------------------- [WARNING] Warning: the module org.netbeans.modules.projectimport.jbuilder uses OpenIDE-Module-IDE-Dependencies which is deprecated. See http://openide.netbeans.org/proposals/arch/modularize.html [WARNING] Warning - had to upgrade dependencies for module org.netbeans.modules.projectimport.jbuilder: added = [module org.openide.compat > 6.0, module org.openide.actions > 6.0, module org.openide.util > 6.0, module org.openide.util.enumerations > 6.0, module org.openide.loaders > 5.3, module org.openide.awt > 6.0, module org.openide.modules > 6.0, module org.openide.filesystems > 6.0, module org.openide.options > 6.0, module org.openide.windows > 6.0, module org.openide.dialogs > 6.0, module org.openide.nodes > 6.0, module org.openide.text > 6.0, module org.openide.explorer > 6.0] removed = [module org.openide.loaders, module org.openide/1 > 5.1]; details: [openide.jar split into smaller parts. See http://openide.netbeans.org/proposals/arch/modularize.html and use 'ant fix-dependencies' if your project is projectized.] [org.netbeans.core.modules #2] Disabling openide load optimizations due to use of org.openide.compat [org.netbeans.core.modules #2] Warning: the module org.netbeans.modules.collab.ui uses org.openide.compat which is deprecated: The classes in this API are all deprecated and can be replaced by more modern APIs. [org.netbeans.core.modules #2] Warning: the module org.netbeans.modules.projectimport.jbuilder uses org.openide.compat which is deprecated: The classes in this API are all deprecated and can be replaced by more modern APIs. [org.netbeans.core.modules #2] Warning: the module org.netbeans.modules.projectimport.jbuilder uses org.openide.util.enumerations which is deprecated: Use org.openide.util.Enumerations instead of this module. [org.netbeans.core.modules] *********** Exception occurred ************ at 10:08 PM on Jan 16, 2006 java.lang.NullPointerException at org.netbeans.modules.java.j2seplatform.J2SEPlatformModule.updateSourceLevel(J2SEPlatformModule.java:60) at org.netbeans.modules.java.j2seplatform.J2SEPlatformModule.access$000(J2SEPlatformModule.java:31) at org.netbeans.modules.java.j2seplatform.J2SEPlatformModule$1.run(J2SEPlatformModule.java:46) at org.openide.util.Mutex.postRequest(Mutex.java:1087) at org.openide.util.Mutex.postWriteRequest(Mutex.java:457) at org.netbeans.modules.java.j2seplatform.J2SEPlatformModule.updateBuildProperties(J2SEPlatformModule.java:41) at org.netbeans.modules.java.j2seplatform.J2SEPlatformModule.restored(J2SEPlatformModule.java:36) at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:360) [catch] at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:276) at org.netbeans.ModuleManager.enable(ModuleManager.java:898) at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:377) at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:311) at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:244) at org.netbeans.core.startup.Main.getModuleSystem(Main.java:206) at org.netbeans.core.startup.Main.start(Main.java:377) at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:90) at java.lang.Thread.run(Thread.java:613) ======== hth
*** Issue 71953 has been marked as a duplicate of this issue. ***
Sorry for the dupe, I just recognized that it was the same issue last night ^^' I'd like to add: - I never got 5.0b2 to generate a valid default_platform.xml - To solve this for me (as netbeans is quite unusable for me otherwise) I generated a valid platform entry and copied it to default_platform.xml (changing the name in the xml and setting default to 'yes');
Deleting the default_platform.xml will fix the problem.
I'm pretty sure I tried that and it didn't work, but if I delete .netbeans now I can't reproduce the whole issue so I can't try to make sure. Why is everything working like it should when it's supposed not to?
The cause of the NPE is issue #72127. The issue #72127 is fixed in dev. *** This issue has been marked as a duplicate of 72127 ***