|
getting error: Unable to create this part due to an internal error. Reason for t
|
Robert Blackburn
|
Nov 08, 2006 20:41 PST
|
Hi Folks,
I've been working on implementing some of the suggested changes to the
CFUnit test wizard. This has been great, I have been getting a real
feel for how CFEclipse is architected, so I am quite hopeful that I
will at some point be able contribute some other things too.
But at the moment I'm getting an odd error whenever I open a CFM or CFC file:
"Unable to create this part due to an internal error. Reason for the
failure: com.rohanclan.cfml.editors.ICFDocument"
I'm using the 1.3 branch from SVN, and I have included the stack trace below.
The odd thing is this error seems to happen on line 73 of
CodeFoldingSetter.java were it refers to ICFDocument. But the import
at the top of that file states:
import org.cfeclipse.cfml.editors.ICFDocument;
So I don't know why it would still be referring to the
"com.rohanclan.cfml.editors" package. Perhaps I have some sort of
configuration or mapping messed up? Is anyone else seeing this?
Any help would be appreciated, thanks.
--------- stack trace ----------
java.lang.ClassCastException: com.rohanclan.cfml.editors.ICFDocument
at org.cfeclipse.cfml.editors.codefolding.CodeFoldingSetter.<init>(CodeFoldingSetter.java:73)
at org.cfeclipse.cfml.editors.actions.RTrimAction.setActiveEditor(RTrimAction.java:61)
at org.eclipse.ui.internal.EditorPluginAction.editorChanged(EditorPluginAction.java:75)
at org.eclipse.ui.internal.EditorPluginAction.<init>(EditorPluginAction.java:34)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:256)
at org.eclipse.ui.internal.ActionDescriptor.<init>(ActionDescriptor.java:170)
at org.eclipse.ui.internal.ViewerActionBuilder.createActionDescriptor(ViewerActionBuilder.java:53)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:158)
at org.eclipse.ui.internal.ViewerActionBuilder.readElement(ViewerActionBuilder.java:88)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:138)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:127)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:141)
at org.eclipse.ui.internal.ViewerActionBuilder.readElement(ViewerActionBuilder.java:88)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:138)
at org.eclipse.ui.internal.registry.RegistryReader.readExtension(RegistryReader.java:149)
at org.eclipse.ui.internal.registry.RegistryReader.readRegistry(RegistryReader.java:170)
at org.eclipse.ui.internal.PluginActionBuilder.readContributions(PluginActionBuilder.java:112)
at org.eclipse.ui.internal.ViewerActionBuilder.readViewerContributions(ViewerActionBuilder.java:106)
at org.eclipse.ui.internal.PopupMenuExtender.readStaticActionsFor(PopupMenuExtender.java:373)
at org.eclipse.ui.internal.PopupMenuExtender.<init>(PopupMenuExtender.java:125)
at org.eclipse.ui.internal.PartSite.registerContextMenu(PartSite.java:114)
at org.eclipse.ui.internal.EditorSite.registerContextMenu(EditorSite.java:151)
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2634)
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:367)
--
Rob Blackburn
http://www.rbdev.net
|
|
 |
|