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 68865 - NPE when starting up NB5.0-beta2
Summary: NPE when starting up NB5.0-beta2
Status: RESOLVED DUPLICATE of bug 72127
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: RANDOM
: 70346 70365 71953 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-16 23:32 UTC by kcr
Modified: 2006-10-23 16:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Logfile (22.38 KB, text/plain)
2005-11-16 23:32 UTC, kcr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kcr 2005-11-16 23:32:24 UTC
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)
Comment 1 kcr 2005-11-16 23:32:58 UTC
Created attachment 27019 [details]
Logfile
Comment 2 kcr 2005-11-16 23:34:05 UTC
One more thing: Two of my projects were colored red in the project window.
Comment 3 Tomas Zezula 2005-11-25 12:56:04 UTC
Are you able to reproduce it?
Was it a first start of the IDE after update or new version installation?
Comment 4 kcr 2005-11-28 17:36:49 UTC
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.
Comment 5 Tomas Zezula 2005-11-29 13:38:16 UTC
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.
Comment 6 Tomas Zezula 2005-12-09 14:02:32 UTC
Not reproduceable, IDE restart helps.
Comment 7 Tomas Zezula 2005-12-16 14:09:46 UTC
*** Issue 70346 has been marked as a duplicate of this issue. ***
Comment 8 Milan Kubec 2005-12-19 08:41:43 UTC
*** Issue 70365 has been marked as a duplicate of this issue. ***
Comment 9 hiatusuk 2006-01-16 22:16:59 UTC
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
Comment 10 Tomas Zezula 2006-01-30 10:15:54 UTC
*** Issue 71953 has been marked as a duplicate of this issue. ***
Comment 11 belgabor 2006-01-30 11:49:07 UTC
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');
Comment 12 Tomas Zezula 2006-01-30 12:58:19 UTC
Deleting the default_platform.xml will fix the problem.
Comment 13 belgabor 2006-01-30 15:23:23 UTC
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?
Comment 14 Tomas Zezula 2006-02-10 16:32:29 UTC
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 ***