Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » COBOL » Editor error
Editor error [message #469673] Tue, 12 May 2009 19:15 Go to next message
Rich Smrcina is currently offline Rich SmrcinaFriend
Messages: 5
Registered: July 2009
Junior Member
I'm using the COBOL 3.4 plugin with OpenSUSE 11.1 and the provided Eclipse
(Ganymede, 3.4). It appears to integrate OK. When I try to edit a new
COBOL program or open an existing COBOL program (from the filesystem), I
get the following error:

Could not open the editor: The editor class could not be instantiated.
This usually indicates a missing no-arg constructor or that the editor's
class name was mistyped in plugin.xml.

When I click on Details>> I get the following:

java.lang.NoClassDefFoundError: org/eclipse/swt/custom/StyledText2
at org.eclipse.cobol.ui.editor.COBOLEditor.<init>(COBOLEditor.java:558)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:5 32)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:267)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:263)
at
org.eclipse.ui.internal.registry.EditorDescriptor.createEdit or(EditorDescriptor.java:233)
at
org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:846)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:606)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:428)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
at
org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:263)
at
org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1410)
at
org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:944)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3378)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3036)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at
org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1361)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3378)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3036)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2293)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:382)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.swt.custom.StyledText2
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:481)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:397)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:385)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336 )
... 53 more

I've search many places for an error like this and have yet to find a
solution. Any help would be appreciated. Thanks.

Rich.
Re: Editor error [message #469674 is a reply to message #469673] Wed, 13 May 2009 07:07 Go to previous messageGo to next message
Tetsuya Suehisa is currently offline Tetsuya SuehisaFriend
Messages: 14
Registered: July 2009
Junior Member
Hello Rich,
How abount using Eclipse 3.4.1 instead?
Re: Editor error [message #469675 is a reply to message #469674] Thu, 14 May 2009 01:29 Go to previous messageGo to next message
Rich Smrcina is currently offline Rich SmrcinaFriend
Messages: 5
Registered: July 2009
Junior Member
I will give that a try. Thanks for the suggestion.

Rich
Re: Editor error [message #469676 is a reply to message #469674] Fri, 15 May 2009 16:36 Go to previous messageGo to next message
Rich Smrcina is currently offline Rich SmrcinaFriend
Messages: 5
Registered: July 2009
Junior Member
Eclipse 3.4.1 appears to work much better with the COBOL Plugin. Thanks.

An additional problem, now. I'm trying to edit an existing program by
importing it into a project. When I open it in the editor, it appears to
overrun the left margin of the editor by 5 characters. In other words,
the text starts 5 characters to the left of the editing position.

I have the COBOL tab stop set to 8. This file was originally edited with
vi. The lines in the file (at least the first few that I've looked at)
have x'09' as the first character.

I can send a screen shot via email if it's easier to visualize.

Rich.
Re: Editor error [message #469677 is a reply to message #469676] Mon, 18 May 2009 21:22 Go to previous messageGo to next message
Tetsuya Suehisa is currently offline Tetsuya SuehisaFriend
Messages: 14
Registered: July 2009
Junior Member
Hello Rich.
Thank you for reporting. Sorry to trouble you, but would you issue a bug
report with the screenshot by eclipse bugzilla?

Best Regards,
Tetsuya
Re: Editor error [message #469678 is a reply to message #469676] Sun, 24 May 2009 00:39 Go to previous message
Rich Smrcina is currently offline Rich SmrcinaFriend
Messages: 5
Registered: July 2009
Junior Member
Bug report filed and resolved.

Thanks for your quick support.

--
Rich
Previous Topic:Eclipse-cobol and windows
Next Topic:background parsing with a freeware compiler?
Goto Forum:
  


Current Time: Fri Apr 19 05:49:15 GMT 2024

Powered by FUDForum. Page generated in 0.02463 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top