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 116105 - InvalidClassException on keypress
Summary: InvalidClassException on keypress
Status: VERIFIED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
: 118982 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-20 09:25 UTC by aldobrucale
Modified: 2008-02-15 11:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
nb log (183.44 KB, text/plain)
2007-09-20 09:27 UTC, aldobrucale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aldobrucale 2007-09-20 09:25:40 UTC
I've opened in Netbeans 6.0 beta a C++ project which has been created with an earlier version of cnd using the "C++
project from existing code" option. My makefile includes a file that I'm trying to edit in Netbeans, but every time i
hit a key i get a very big error dialog. Frome the Netbeans log it seems that there is a problem with a file
"Services/IndentEngine/org-netbeans-modules-cnd-editor-makefile-MakefileIndentEngine.settings"
Comment 1 aldobrucale 2007-09-20 09:27:14 UTC
Created attachment 49130 [details]
nb log
Comment 2 aldobrucale 2007-09-20 09:49:37 UTC
It seems that the same happens every time I try to edit a file with an unknown extension. From the log file, it seems
that netbeans tries to instantiate an "org.netbeans.modules.cnd.editor.makefile.MakefileIndentEngine" class, but fails
because of the aforementioned settings file.
Comment 3 ranbato 2007-09-28 21:40:15 UTC
I can get it just typing in a Java (Form) file.  The warning popup every keypress is _EXTREMELY_ annoying.
Comment 4 Vladimir Voskresensky 2007-10-16 11:34:46 UTC
*** Issue 118982 has been marked as a duplicate of this issue. ***
Comment 5 Vladimir Kvashin 2007-10-16 20:37:26 UTC
Just to clarify the situation:
This does not depend on the version of CND that created the project.
This depends on the version of the CND your userdir settings originate from

(Netbeans userdir is a directory that stores all Netbeans settings; 
by default it's ~/.netbeans/<version>, i.e. ~/.netbeans/5.5, ~/.netbeans/6.0, etc.)
Comment 6 Vladimir Kvashin 2007-10-16 20:48:32 UTC
What is the version of Netbeans/CND you imported settings from?
I strongly believe it is a non-release version.

The situation does not repeat if the settings are created with *any* released versions (I tried cnd 5.5, 5.5.1,
5.5.1u1). The serialVersionUID that caused the issue was changed on October 28, 2006, during the 5.5 (the very first
C/C++ pack version) development. In 5.5 release it was the same as now.

So I believe your settings were created by a pre-release version.

I would recommend not to import settings created by non-release versions.
Comment 7 Vladimir Kvashin 2007-10-16 21:14:30 UTC
The issue repeats only with settings created via non released version (prior than 5.5) of cnd.
The source of the issue is an error in 5.5 pre-release version (absent serialVersionUID) that was fixed in 5.5 release.
Comment 8 aldobrucale 2007-12-14 15:41:38 UTC
Is there any way to get rid of this problem? I have installed Netbeans 6.0 and I'd prefer not to lose my imported
settings: is there anything I can edit manually in my user directory to avoid the serialVersionUID problem?
Comment 9 Alexander Ioffe 2008-02-15 11:56:57 UTC
Verified in build 20080215