jEdit Community - Resources for users of the jEdit Text Editor
java.lang.ClassCastException: org.gjt.sp.jedit.Buffer cannot be cast to java.awt.Component with Java Version 6 Update 15
Submitted by rcrodgers on Thursday, 27 August, 2009 - 21:21
After updating Java to version 6 update 15 on Windows Vista (Ultimate, 64-bit), I realized that I had jEdit 4.2 installed and decided to update it to the latest version (4.3pre17) because certain plug-ins weren't working as expected. After installing 4.3pre17, I'm getting the following exception when trying to launch jEdit:
java.lang.ClassCastException: org.gjt.sp.jedit.Buffer cannot be cast to java.awt.Component
	at org.gjt.sp.jedit.View.restoreSplitConfig(View.java:1747)
	at org.gjt.sp.jedit.View.setSplitConfig(View.java:911)
	at org.gjt.sp.jedit.View.(View.java:1356)
	at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2403)
	at org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.endElement(PerspectiveManager.java:341)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:139)
	at org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155)
	at org.gjt.sp.jedit.PerspectiveManager.loadPerspective(PerspectiveManager.java:104)
	at org.gjt.sp.jedit.EditServer.handleClient(EditServer.java:215)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.gjt.sp.jedit.bsh.Reflect.invokeMethod(Reflect.java:134)
	at org.gjt.sp.jedit.bsh.Reflect.invokeStaticMethod(Reflect.java:98)
	at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:871)
	at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
	at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
	at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
	at org.gjt.sp.jedit.bsh.BSHAssignment.eval(BSHAssignment.java:77)
	at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:644)
	at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:738)
	at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:727)
	at org.gjt.sp.jedit.BeanShellFacade._eval(BeanShellFacade.java:148)
	at org.gjt.sp.jedit.BeanShellFacade.eval(BeanShellFacade.java:113)
	at org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:369)
	at org.gjt.sp.jedit.EditServer$1.run(EditServer.java:343)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Resolved
by rcrodgers on Thu, 27/08/2009 - 21:51
I found this thread which suggested deleting the settings. After I did that, jEdit started up with no errors, though I had to forcibly remove the settings directory in administrator mode.
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293