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 74279 - NetBeans crashing not able to load projects
Summary: NetBeans crashing not able to load projects
Status: RESOLVED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-02 23:36 UTC by sharanu
Modified: 2006-10-23 16:40 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Unexpected Exception log. (197.87 KB, text/plain)
2006-04-02 23:39 UTC, sharanu
Details
Unexpected Exception (313.19 KB, text/plain)
2006-04-02 23:39 UTC, sharanu
Details
Messages log without Debugger intervention after the debugger dependencies are fixed. (38.68 KB, text/plain)
2006-04-13 18:28 UTC, Martin Entlicher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sharanu 2006-04-02 23:36:48 UTC
java.lang.ClassNotFoundException: Cannot instantiate
org.netbeans.modules.debugger.ui.actions.DebuggerAction for
MultiFileObject@151fe8a[Actions/Debug/org-netbeans-modules-debugger-ui-actions-ContinueAction.instance]
	at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:212)
	at
org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1225)
	at
org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:733)
	at org.netbeans.core.ShortcutsFolder.readShortcuts(ShortcutsFolder.java:129)
	at org.netbeans.core.ShortcutsFolder.refresh(ShortcutsFolder.java:92)
	at org.netbeans.core.ShortcutsFolder.<init>(ShortcutsFolder.java:78)
	at org.netbeans.core.ShortcutsFolder.initShortcuts(ShortcutsFolder.java:59)
	at org.netbeans.core.NonGui.initializeMainWindow(NonGui.java:187)
	at org.netbeans.core.NonGui.run(NonGui.java:96)
	at org.netbeans.core.startup.Main.start(Main.java:395)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:90)
[catch] at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.InstantiationException:
org.netbeans.modules.debugger.ui.actions.DebuggerAction
	at java.lang.Class.newInstance0(Class.java:293)
	at java.lang.Class.newInstance(Class.java:261)
	at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:201)
	... 11 more
==>
java.lang.InstantiationException:
org.netbeans.modules.debugger.ui.actions.DebuggerAction
	at java.lang.Class.newInstance0(Class.java:293)
	at java.lang.Class.newInstance(Class.java:261)
	at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:201)
	at
org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1225)
	at
org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:733)
	at org.netbeans.core.ShortcutsFolder.readShortcuts(ShortcutsFolder.java:129)
	at org.netbeans.core.ShortcutsFolder.refresh(ShortcutsFolder.java:92)
	at org.netbeans.core.ShortcutsFolder.<init>(ShortcutsFolder.java:78)
	at org.netbeans.core.ShortcutsFolder.initShortcuts(ShortcutsFolder.java:59)
	at org.netbeans.core.NonGui.initializeMainWindow(NonGui.java:187)
	at org.netbeans.core.NonGui.run(NonGui.java:96)
	at org.netbeans.core.startup.Main.start(Main.java:395)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:90)
[catch] at java.lang.Thread.run(Thread.java:534)
Comment 1 sharanu 2006-04-02 23:39:19 UTC
Created attachment 29539 [details]
Unexpected Exception log.
Comment 2 sharanu 2006-04-02 23:39:45 UTC
Created attachment 29540 [details]
Unexpected Exception
Comment 3 Jiri Prox 2006-04-03 12:46:01 UTC
Reassigning to core, please evaluate.
Comment 4 Tomas Zezula 2006-04-13 09:52:24 UTC
Either some module (part of a debugger) is not installed or it may be a problem
in the InstanceDataObject.
Martin, can you evaluate it and reassign to openide/loaders if the second is the
case.
Comment 5 Martin Entlicher 2006-04-13 13:27:48 UTC
Neither is true. There was an exception during the action instantiation. The
important part is:
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(ArrayList.java:546)
	at java.util.ArrayList.get(ArrayList.java:321)
	at
org.netbeans.modules.debugger.jpda.ui.EditorContextBridge.getContext(EditorContextBridge.java:46)

Setting "isEnabled" flag right in the action creation is not nice at all, but
it's another story (issue #50552).

The original problem is, that Ant Debugger module is not installed:

Warning - could not install some modules:
	[snip]
	Ant Debugger - The module Ant would also need to be installed.
	[snip]

JPDA debugger is not functional without Ant Debugger. There is missing module
dependency.
Comment 6 Martin Entlicher 2006-04-13 13:37:44 UTC
Oops, sorry, the problematic missing module is not "Ant Debugger", but:

JPDA Debugger Ant Task - The module Ant would also need to be installed.


*** This issue has been marked as a duplicate of 73496 ***
Comment 7 Martin Entlicher 2006-04-13 18:18:38 UTC
It looks like you did something wrong to jdesktop module, didn't you?
Comment 8 Martin Entlicher 2006-04-13 18:26:59 UTC
Well, it's not a dupl. in fact! The IDE does not start even when debugger is not
involved => this is not a debugger issue.
Comment 9 Martin Entlicher 2006-04-13 18:28:38 UTC
Created attachment 29849 [details]
Messages log without Debugger intervention after the debugger dependencies are fixed.
Comment 10 Martin Entlicher 2006-04-13 18:33:19 UTC
It looks like the last exception is fatal:

java.lang.NullPointerException
        at
org.openide.util.io.FoldingIOException.printStackTrace(FoldingIOException.java:46)

Anyway, the IDE is in a really *BAD* state even if it starts up. It may an issue
of jdesktop module... I do not understand how did it disappeared.
Comment 11 _ rkubacki 2006-04-14 16:56:13 UTC
Logs are full of interesting messages. If I got it right messages.log.1 start
with first run of NB5.0 where old settings are imported and there is something
wrong with form(s?) that cannot loaded. Than there is another serious problem:

[WARNING] Warning: Class-Path value ext/swing-layout-1.0.jar from C:\Program
Files\netbeans-5.0\platform6\modules\org-jdesktop-layout.jar cannot be found at
C:\Program Files\netbeans-5.0\platform6\modules\ext\swing-layout-1.0.jar

I do not know if there was some attempt to fix this manualy but one of later
session is compeletely broken and org.jdesktop.layout module cannot be loaded
and transitively disabled large set of other modules and causes CNFE mentioned
at the beggining of report. Before this there are also some messages from MDR
(was the MDR cache deleted?).

Can we get more information how did this can happen? And then probably we need
to start another round of evaluation in form module.
Comment 12 Tomas Pavek 2006-06-28 14:53:30 UTC
The attached logs contain many exceptions, but without additional information
from the reporter we can't do anything I'm afraid... It simply looks like
somebody deleted swing-layout-1.0.jar.