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 162833 - [67cat] Cannot create new java application
Summary: [67cat] Cannot create new java application
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Features On Demand (show other bugs)
Version: 6.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 162809 162827 162831 162925 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-16 13:54 UTC by rajivderas
Modified: 2009-06-21 13:43 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log file (55.41 KB, text/plain)
2009-04-16 13:55 UTC, rajivderas
Details
stacktrace (1.28 KB, text/plain)
2009-04-16 21:09 UTC, swpalmer
Details
First exception - obviously concerning the updater (1.16 KB, text/plain)
2009-04-17 13:10 UTC, martin_zmrhal
Details
Second exception - when trying to start a new project from module which is not active (795 bytes, text/plain)
2009-04-17 13:12 UTC, martin_zmrhal
Details
stacktrace (1.23 KB, text/plain)
2009-04-17 13:55 UTC, Marian Mirilovic
Details
stacktrace (1.33 KB, text/plain)
2009-04-17 15:02 UTC, spaquet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rajivderas 2009-04-16 13:54:30 UTC
tried to create a new java application and in when clicked next in the project creation wizard got this exception.

note:their was a message in the wizard decscription area indicating this feature is not yet enabled press next to 
activate it.

see the log file for more info.

Product Version: NetBeans IDE Dev (Build 200904160201)
Java: 1.6.0_14-ea; OpenJDK Client VM 14.0-b10
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Userdir: C:\Users\user\.netbeans\dev
Comment 1 rajivderas 2009-04-16 13:55:27 UTC
Created attachment 80252 [details]
ide log file
Comment 2 Jaroslav Tulach 2009-04-16 18:52:52 UTC
Thanks for the report. Nothing like this is happening on my Linux. Anyway thanks to the NPE I now see what can be 
wrong. I'll replace the NPE with huge warning printed to log file. Please get new build with this fix and try to 
simulate the problem. If you see warning like:

"For cluster " + fi.clusterName + " there is prefCnb " + prefCnb +
" but the module is not found " + preferred + "\nList of modules is: ");

Please attach your log file to this issue. Thanks.           
Comment 3 Jaroslav Tulach 2009-04-16 18:58:19 UTC
NPE will be gone after: ergonomics#a4cbafdb0fea
I am still interested in the log file with the warning messages.
Comment 4 Jaroslav Tulach 2009-04-16 19:00:32 UTC
*** Issue 162831 has been marked as a duplicate of this issue. ***
Comment 5 Jaroslav Tulach 2009-04-16 19:01:33 UTC
*** Issue 162809 has been marked as a duplicate of this issue. ***
Comment 6 Jaroslav Tulach 2009-04-16 19:06:49 UTC
*** Issue 162827 has been marked as a duplicate of this issue. ***
Comment 7 swpalmer 2009-04-16 21:09:13 UTC
Build: NetBeans IDE Dev (Build 200904160201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.ide.ergonomics.fod.FoDUpdateUnitProvider.getUpdateItems(FoDUpdateUnitProvider.java:92)
        at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.appendUpdateItems(UpdateUnitFactory.java:170)
        at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.getUpdateUnits(UpdateUnitFactory.java:140)
        at org.netbeans.modules.autoupdate.services.UpdateManagerImpl$Cache.<init>(UpdateManagerImpl.java:222)
        at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getCache(UpdateManagerImpl.java:196)
        at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getUpdateUnits(UpdateManagerImpl.java:93)
Comment 8 swpalmer 2009-04-16 21:09:25 UTC
Created attachment 80296 [details]
stacktrace
Comment 9 martin_zmrhal 2009-04-17 13:06:21 UTC
Unfortunately this is still reproducible in today's build, though it should be already fixed. To reproduce you have to
install the Java bundle - in the complete bundle I'm not able to reproduce. The exception is thrown after startup when
the updater tries to automatically check for updates. Also when you invoke Plugins window. What makes IDE completely
unusable is issue 162843 which is marked as duplicate of this issue - you can't even start a web project. See the
attached logs...

Product Version: NetBeans IDE Dev (Build 200904170201)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Linux version 2.6.27-7-generic running on i386; UTF-8; en_US (nb)
Comment 10 martin_zmrhal 2009-04-17 13:10:22 UTC
Created attachment 80340 [details]
First exception - obviously concerning the updater
Comment 11 martin_zmrhal 2009-04-17 13:12:28 UTC
Created attachment 80341 [details]
Second exception - when trying to start a new project from module which is not active
Comment 12 Filip Zamboj 2009-04-17 13:34:30 UTC
*** Issue 162925 has been marked as a duplicate of this issue. ***
Comment 13 Filip Zamboj 2009-04-17 13:40:49 UTC
this is reproducible on linux as well so changing OS to 'all'. see duplicate Issue 162925 
Comment 14 Marian Mirilovic 2009-04-17 13:43:07 UTC
Martin, fix hasn't been propagated into daily build yet ... wait for message from *qa* user
Comment 15 martin_zmrhal 2009-04-17 13:52:04 UTC
Ok I see - according to the time of the changeset I though it would be propagated in latest daily. Sorry for confusion...
Comment 16 Marian Mirilovic 2009-04-17 13:55:34 UTC
Build: NetBeans IDE Dev (Build 200904161401)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.27-11-generic, amd64

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.ide.ergonomics.fod.FoDUpdateUnitProvider.getUpdateItems(FoDUpdateUnitProvider.java:92)
        at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.appendUpdateItems(UpdateUnitFactory.java:170)
        at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.getUpdateUnits(UpdateUnitFactory.java:140)
        at org.netbeans.modules.autoupdate.services.UpdateManagerImpl$Cache.<init>(UpdateManagerImpl.java:222)
        at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getCache(UpdateManagerImpl.java:196)
        at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getUpdateUnits(UpdateManagerImpl.java:93)
Comment 17 Marian Mirilovic 2009-04-17 13:55:38 UTC
Created attachment 80349 [details]
stacktrace
Comment 18 Jaroslav Tulach 2009-04-17 14:47:48 UTC
Fixing also the warning in ergonomics#583a2a670b6b
Comment 19 spaquet 2009-04-17 15:01:53 UTC
Build: NetBeans IDE Dev (Build 200904160201)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.ide.ergonomics.fod.FoDUpdateUnitProvider.getUpdateItems(FoDUpdateUnitProvider.java:92)
        at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.appendUpdateItems(UpdateUnitFactory.java:170)
        at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.getUpdateUnits(UpdateUnitFactory.java:140)
        at org.netbeans.modules.autoupdate.services.UpdateManagerImpl$Cache.<init>(UpdateManagerImpl.java:222)
        at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getCache(UpdateManagerImpl.java:196)
        at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getUpdateUnits(UpdateManagerImpl.java:93)
Comment 20 spaquet 2009-04-17 15:02:02 UTC
Created attachment 80363 [details]
stacktrace
Comment 21 Quality Engineering 2009-04-17 19:56:05 UTC
Integrated into 'main-golden', will be available in build *200904171401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a4cbafdb0fea
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #162833: Preventing NPE, but printing huge warning into message.log file in case the problem appears
Comment 22 Quality Engineering 2009-04-18 07:26:49 UTC
Integrated into 'main-golden', will be available in build *200904180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/583a2a670b6b
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #162833: I guess everyone who faced this issue was using Java All distribution. We need to skip not present features.
Comment 23 Quality Engineering 2009-04-20 20:14:42 UTC
Integrated into 'main-golden', will be available in build *200904201507* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/583a2a670b6b
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #162833: I guess everyone who faced this issue was using Java All distribution. We need to skip not present features.