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 66845 - [50cat] ClassNotFound Exception when starting NB
Summary: [50cat] ClassNotFound Exception when starting NB
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
: 67744 69675 70192 70214 72234 72238 72259 72303 72350 72674 72901 73010 74388 75307 75400 89002 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-14 19:28 UTC by ieising
Modified: 2008-12-22 16:49 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Relevant log-file (99.17 KB, text/plain)
2005-10-14 19:30 UTC, ieising
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ieising 2005-10-14 19:28:24 UTC
[ BUILD # : 200510122200 ]
[ JDK VERSION : 1.5.0_04 ]

Here's the stack trace. I get it consistently when starting NetBeans.

Annotation: From file: MultiFileObject@1146a9a[nbfs://nbhost/SystemFileSystem/Keymaps/NetBeans/CA-Y.instance]
java.lang.ClassNotFoundException: com.xpdev.refactory.netbeans.common.action.RedoNBAction
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at org.netbeans.ProxyClassLoader.loadInOrder(ProxyClassLoader.java:576)
	at org.netbeans.ProxyClassLoader.smartLoadClass(ProxyClassLoader.java:525)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:157)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at org.openide.loaders.InstanceSupport.findClass(InstanceSupport.java:475)
	at org.openide.loaders.InstanceSupport.instanceClass(InstanceSupport.java:125)
	at org.openide.loaders.InstanceDataObject$Ser.instanceClass(InstanceDataObject.java:1164)
	at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:195)
	at org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1219)
	at org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:727)
	at org.netbeans.core.ShortcutsFolder.readShortcuts(ShortcutsFolder.java:117)
	at org.netbeans.core.ShortcutsFolder.refresh(ShortcutsFolder.java:100)
	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:386)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:90)
[catch] at java.lang.Thread.run(Thread.java:595)
Comment 1 ieising 2005-10-14 19:30:03 UTC
Created attachment 25964 [details]
Relevant log-file
Comment 2 Marian Mirilovic 2005-10-15 23:01:59 UTC
It looks like, you upgraded to new version, didn't you ? 
Comment 3 Jan Chalupa 2005-10-16 08:17:43 UTC
I think soo too. The missing class has never been part of any NetBeans
distribution. The reporter seems to have been using a 3rd party module and now
is trying to reuse an old userdir with a new installation of NetBeans. This
installation apparently doesn't include the 3rd party module.

Deleting the ${userdir}/config/Keymaps folder should fix the problem.
Comment 4 ieising 2005-10-17 07:37:07 UTC
Actually I installed in a brand new directory using a brand new userdir. But I
did install my NB41 settings when asked.
After downloading CollabModules and ExperimentalRefactorings and CVS-Refactoring
support module I didn't receive ClassNotFoundException anymore.
Comment 5 Jan Chalupa 2005-10-17 08:31:00 UTC
Hmm, then it does sound like a bug. Re-opening.

Hanzi, anything you can do about it?
Comment 6 Marian Mirilovic 2005-11-01 10:30:33 UTC
*** Issue 67744 has been marked as a duplicate of this issue. ***
Comment 7 Jan Jancura 2006-01-03 09:01:05 UTC
Too late to fix in NB5.0.
Comment 8 Marian Mirilovic 2006-02-06 09:53:59 UTC
*** Issue 70192 has been marked as a duplicate of this issue. ***
Comment 9 Marian Mirilovic 2006-02-06 09:54:31 UTC
*** Issue 70214 has been marked as a duplicate of this issue. ***
Comment 10 Marian Mirilovic 2006-02-06 09:56:12 UTC
*** Issue 72259 has been marked as a duplicate of this issue. ***
Comment 11 Marian Mirilovic 2006-02-06 14:33:56 UTC
*** Issue 72303 has been marked as a duplicate of this issue. ***
Comment 12 Marian Mirilovic 2006-02-08 12:55:29 UTC
*** Issue 72350 has been marked as a duplicate of this issue. ***
Comment 13 Marian Mirilovic 2006-02-08 13:15:16 UTC
*** Issue 72234 has been marked as a duplicate of this issue. ***
Comment 14 Marian Mirilovic 2006-02-08 13:44:40 UTC
It would be nice to fix this issue for NB 5.5 , 6 duplicates in 3 days ;(
Comment 15 Jan Jancura 2006-02-20 14:53:51 UTC
ShortcutsFolder-> core team
Comment 16 Jan Jancura 2006-02-20 14:55:19 UTC
there is no "big" problem in code. We should only decide, if this CNFException
should be written to console, or not.
Comment 17 Marian Mirilovic 2006-02-27 11:51:41 UTC
*** Issue 73010 has been marked as a duplicate of this issue. ***
Comment 18 Jiri Prox 2006-03-02 09:03:14 UTC
*** Issue 72901 has been marked as a duplicate of this issue. ***
Comment 19 Jaroslav Tulach 2006-03-08 14:54:52 UTC
Checking in test/unit/src/org/netbeans/core/ShortcutsFolder66845Test.java;
/cvs/core/test/unit/src/org/netbeans/core/ShortcutsFolder66845Test.java,v  <--  
ShortcutsFolder66845Test.java
initial revision: 1.1
done
Checking in src/org/netbeans/core/ShortcutsFolder.java;
/cvs/core/src/org/netbeans/core/ShortcutsFolder.java,v  <--  
ShortcutsFolder.java
new revision: 1.41; previous revision: 1.40
Comment 20 Marian Mirilovic 2006-03-28 11:37:57 UTC
*** Issue 72674 has been marked as a duplicate of this issue. ***
Comment 21 Marian Mirilovic 2006-04-03 13:49:26 UTC
Yarda,
please merge the fix to the NB 5.5. Thanks in advance.
Comment 22 Petr Nejedly 2006-04-04 21:47:17 UTC
*** Issue 69675 has been marked as a duplicate of this issue. ***
Comment 23 Petr Nejedly 2006-04-04 21:48:11 UTC
*** Issue 74388 has been marked as a duplicate of this issue. ***
Comment 25 Marian Mirilovic 2006-04-18 18:36:07 UTC
*** Issue 72238 has been marked as a duplicate of this issue. ***
Comment 26 Petr Nejedly 2006-04-21 08:17:34 UTC
*** Issue 75307 has been marked as a duplicate of this issue. ***
Comment 27 Jiri Prox 2006-04-24 16:29:13 UTC
*** Issue 75400 has been marked as a duplicate of this issue. ***
Comment 28 Jesse Glick 2006-06-15 14:50:14 UTC
Since even the stack trace is frightening (see issue #76973), I have patched it
further in the trunk to just print a one-line warning.

ShortcutsFolder.java 1.43
ShortcutsFolder66845Test.java 1.3
Comment 29 gglazer 2006-06-15 18:04:41 UTC
I received a similar error.  I had just upgraded from 4.1 to 5.0 and started 5.0
for the first time from the install-created desktop icon.  It may also be
similar to a refactoring issue posted to the list once.  Here is the stack trace
I got.

Annotation: From file: MultiFileObject@dfbabd[Keymaps/NetBeans/CA-Y.instance]
java.lang.ClassNotFoundException:
com.xpdev.refactory.netbeans.common.action.RedoNBAction
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at org.netbeans.ProxyClassLoader.loadInOrder(ProxyClassLoader.java:576)
	at org.netbeans.ProxyClassLoader.smartLoadClass(ProxyClassLoader.java:525)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:157)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at org.openide.loaders.InstanceSupport.findClass(InstanceSupport.java:475)
	at org.openide.loaders.InstanceSupport.instanceClass(InstanceSupport.java:125)
	at
org.openide.loaders.InstanceDataObject$Ser.instanceClass(InstanceDataObject.java:1170)
	at org.openide.loaders.InstanceSupport.instanceCreate(InstanceSupport.java:195)
	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:111)
	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:595)

------- Additional comments from jglick Mon Jun 12 17:34:40 +0000 2006 -------

gglazer, com.xpdev.refactory is some unrelated module which you apparently have
KB shortcuts for but no such module is installed. Not relevant to this issue.

------- Additional comments from gglazer Tue Jun 13 17:20:27 +0000 2006 -------

Could you open a new issue, then?

Thanks.

------- Additional comments from jglick Tue Jun 13 20:18:40 +0000 2006 -------

Re. separate issue - I already have a patch to make warnings about unloadable
shortcuts quieter. Other than that, there's not much to do - you seem to have
shortcuts for a third-party module that is not installed.

------- Additional comments from gglazer Tue Jun 13 21:10:42 +0000 2006 -------

Okay, so having not poked around with the keyboard options at all, I wasn't even
aware of nb shortcuts.  I certainly didn't set them, so this was either in my
previous install or perhaps set during an update.  

That said, removing the cntl-y shortcuts from the various profiles Refactor ->
Redo made the message go away.  What confuses me about this is that there are
other shortcuts under Refactor (e.g., ExtractMethod, Rename, etc.) which have
shortcuts assigned and they do not throw this exception.
Comment 30 Marian Mirilovic 2006-11-09 13:13:28 UTC
*** Issue 89002 has been marked as a duplicate of this issue. ***