All Forums Teradata Studio
DocPhil 1 post Joined 01/16
10 Feb 2016
Plugin for Eclipse

There appears to be a problem with the plugin for Eclipse when attempting any of the following:
-Creating a SQL Editor. So for example, right-click on an object and generate DDL.
-Creating a Teradata Project
 
I have provided as much detail as I could find. Any suggestions to resolving this error? Should I maybe install an older version of the Plug-In for Eclipse? Or an older version of Eclipse DTP?
 
 
My local environment:
------------------------------------------------------ -------------------------------------------
TDExpress15.10.0.7_Sles11_40GB_vp
Eclipse Java EE IDE for Web Developers - Mars.1 Release (4.5.1) [Recommended in Teradata Studio, Studio Express, and Plug-in for Eclipse Installation Guide, Release 15.10]
DTP - 1.12 [Came standard with Mars]
EMF ECP SDK 3.x [Installed using the Teradata Studio, Studio Express, and Plug-in for Eclipse Installation Guide, Release 15.10]
Teradata Plug-in for Eclipse Version: 15.10.01.01.201601251638 [Installed using the Teradata Studio, Studio Express, and Plug-in for Eclipse Installation Guide, Release 15.10]
 
When I try and create a New Teradata Project, the following error is thrown:

------------------------------------------------------ -------------------------------------------

The selected wizard could not be started.

Plug-in "com.teradata.datatools.teradataproject" was unable to instantiate class "com.teradata.datatools.teradataproject.wizards.Terada taProjectNewWizard".

com/teradata/datatools/dtp/sqltools/ui/ TeradataSQLToolsUIPlugin

 

 

When I try and launch a SQL Editor, the following error is thrown:

------------------------------------------------------ -------------------------------------------

Plug-in com.teradata.datatools.dtp.sqltools.ui was unable to load class com.teradata.datatools.dtp.sqltools.ui.editor.Teradata SQLEditor.

 

Full log details -->

 

 

org.eclipse.core.runtime.CoreException: Plug-in com.teradata.datatools.dtp.sqltools.ui was unable to load class com.teradata.datatools.dtp.sqltools.ui.editor.Teradata SQLEditor.

at org.eclipse.core.internal.registry.osgi.RegistryStrate gyOSGI.throwException(RegistryStrategyOSGI.java:194)

at org.eclipse.core.internal.registry.osgi.RegistryStrate gyOSGI.createExecutableExtension(RegistryStrategyOSGI. java:176)

at org.eclipse.core.internal.registry.ExtensionRegistry.c reateExecutableExtension(ExtensionRegistry.java:905)

at org.eclipse.core.internal.registry.ConfigurationElemen t.createExecutableExtension(ConfigurationElement.java: 243)

at org.eclipse.core.internal.registry.ConfigurationElemen tHandle.createExecutableExtension(ConfigurationElement Handle.java:55)

at org.eclipse.ui.internal.WorkbenchPlugin$1.run(Workbenc hPlugin.java:293)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyInd icator.java:70)

at org.eclipse.ui.internal.WorkbenchPlugin.createExtensio n(WorkbenchPlugin.java:288)

at org.eclipse.ui.internal.registry.EditorDescriptor.crea teEditor(EditorDescriptor.java:235)

at org.eclipse.ui.internal.EditorReference.createPart(Edi torReference.java:328)

at org.eclipse.ui.internal.e4.compatibility.Compatibility Part.createPart(CompatibilityPart.java:279)

at org.eclipse.ui.internal.e4.compatibility.Compatibility Editor.createPart(CompatibilityEditor.java:63)

at org.eclipse.ui.internal.e4.compatibility.Compatibility Part.create(CompatibilityPart.java:317)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknow n Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.e4.core.internal.di.MethodRequestor.execut e(MethodRequestor.java:56)

at org.eclipse.e4.core.internal.di.InjectorImpl.processAn notated(InjectorImpl.java:898)

at org.eclipse.e4.core.internal.di.InjectorImpl.processAn notated(InjectorImpl.java:879)

at org.eclipse.e4.core.internal.di.InjectorImpl.inject(In jectorImpl.java:121)

at org.eclipse.e4.core.internal.di.InjectorImpl.internalM ake(InjectorImpl.java:345)

at org.eclipse.e4.core.internal.di.InjectorImpl.make(Inje ctorImpl.java:264)

at org.eclipse.e4.core.contexts.ContextInjectionFactory.m ake(ContextInjectionFactory.java:162)

at org.eclipse.e4.ui.internal.workbench.ReflectionContrib utionFactory.createFromBundle(ReflectionContributionFa ctory.java:104)

at org.eclipse.e4.ui.internal.workbench.ReflectionContrib utionFactory.doCreate(ReflectionContributionFactory.ja va:73)

at org.eclipse.e4.ui.internal.workbench.ReflectionContrib utionFactory.create(ReflectionContributionFactory.java :55)

at org.eclipse.e4.ui.workbench.renderers.swt.ContributedP artRenderer.createWidget(ContributedPartRenderer.java: 129)

at org.eclipse.e4.ui.internal.workbench.swt.PartRendering Engine.createWidget(PartRenderingEngine.java:971)

at org.eclipse.e4.ui.internal.workbench.swt.PartRendering Engine.safeCreateGui(PartRenderingEngine.java:640)

at org.eclipse.e4.ui.internal.workbench.swt.PartRendering Engine.safeCreateGui(PartRenderingEngine.java:746)

at org.eclipse.e4.ui.internal.workbench.swt.PartRendering Engine.access$0(PartRenderingEngine.java:717)

at org.eclipse.e4.ui.internal.workbench.swt.PartRendering Engine$2.run(PartRenderingEngine.java:711)

at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.jav a:42)

at org.eclipse.e4.ui.internal.workbench.swt.PartRendering Engine.createGui(PartRenderingEngine.java:695)

at org.eclipse.e4.ui.workbench.renderers.swt.StackRendere r.showTab(StackRenderer.java:1306)

at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRen derer$1.handleEvent(LazyStackRenderer.java:72)

at org.eclipse.e4.ui.services.internal.events.UIEventHand ler$1.run(UIEventHandler.java:40)

at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchron izer.java:186)

at org.eclipse.ui.internal.UISynchronizer.syncExec(UISync hronizer.java:145)

at org.eclipse.swt.widgets.Display.syncExec(Display.java: 4761)

at org.eclipse.e4.ui.internal.workbench.swt.E4Application $1.syncExec(E4Application.java:211)

at org.eclipse.e4.ui.services.internal.events.UIEventHand ler.handleEvent(UIEventHandler.java:36)

at org.eclipse.equinox.internal.event.EventHandlerWrapper .handleEvent(EventHandlerWrapper.java:197)

at org.eclipse.equinox.internal.event.EventHandlerTracker .dispatchEvent(EventHandlerTracker.java:197)

at org.eclipse.equinox.internal.event.EventHandlerTracker .dispatchEvent(EventHandlerTracker.java:1)

at org.eclipse.osgi.framework.eventmgr.EventManager.dispa tchEvent(EventManager.java:230)

at org.eclipse.osgi.framework.eventmgr.ListenerQueue.disp atchEventSynchronous(ListenerQueue.java:148)

at org.eclipse.equinox.internal.event.EventAdminImpl.disp atchEvent(EventAdminImpl.java:135)

at org.eclipse.equinox.internal.event.EventAdminImpl.send Event(EventAdminImpl.java:78)

at org.eclipse.equinox.internal.event.EventComponent.send Event(EventComponent.java:39)

at org.eclipse.e4.ui.services.internal.events.EventBroker .send(EventBroker.java:85)

at org.eclipse.e4.ui.internal.workbench.UIEventPublisher. notifyChanged(UIEventPublisher.java:59)

at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.e Notify(BasicNotifierImpl.java:374)

at org.eclipse.e4.ui.model.application.ui.impl.ElementCon tainerImpl.setSelectedElement(ElementContainerImpl.jav a:171)

at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl. showElementInWindow(ModelServiceImpl.java:494)

at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl. bringToTop(ModelServiceImpl.java:458)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.d elegateBringToTop(PartServiceImpl.java:724)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.b ringToTop(PartServiceImpl.java:396)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.s howPart(PartServiceImpl.java:1166)

at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(W orkbenchPage.java:3234)

at org.eclipse.ui.internal.WorkbenchPage.access$25(Workbe nchPage.java:3149)

at org.eclipse.ui.internal.WorkbenchPage$10.run(Workbench Page.java:3131)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyInd icator.java:70)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(Workb enchPage.java:3126)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(Workb enchPage.java:3090)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(Workb enchPage.java:3071)

at com.teradata.datatools.dtp.util.DatabaseUtils.openInSQ LEditor(DatabaseUtils.java:474)

at com.teradata.datatools.sqldev.dialogs.actions.QuickDel eteActionDelegate.openInSQLEditor(QuickDeleteActionDel egate.java:233)

at com.teradata.datatools.sqldev.dialogs.actions.QuickDel eteActionDelegate.doRun(QuickDeleteActionDelegate.java :109)

at com.teradata.datatools.dtp.util.actions.AbstractRunWit hHourglassActionDelegate$1.run(AbstractRunWithHourglas sActionDelegate.java:93)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyInd icator.java:70)

at com.teradata.datatools.dtp.util.actions.AbstractRunWit hHourglassActionDelegate.runWithHourglass(AbstractRunW ithHourglassActionDelegate.java:125)

at com.teradata.datatools.dtp.util.actions.AbstractRunWit hHourglassActionDelegate.run(AbstractRunWithHourglassA ctionDelegate.java:91)

at org.eclipse.ui.internal.PluginAction.runWithEvent(Plug inAction.java:247)

at org.eclipse.jface.action.ActionContributionItem.handle WidgetSelection(ActionContributionItem.java:595)

at org.eclipse.jface.action.ActionContributionItem.access $2(ActionContributionItem.java:511)

at org.eclipse.jface.action.ActionContributionItem$5.hand leEvent(ActionContributionItem.java:420)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTabl e.java:84)

at org.eclipse.swt.widgets.Display.sendEvent(Display.java :4362)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java: 1113)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Disp lay.java:4180)

at org.eclipse.swt.widgets.Display.readAndDispatch(Displa y.java:3769)

at org.eclipse.e4.ui.internal.workbench.swt.PartRendering Engine$4.run(PartRenderingEngine.java:1127)

at org.eclipse.core.databinding.observable.Realm.runWithD efault(Realm.java:337)

at org.eclipse.e4.ui.internal.workbench.swt.PartRendering Engine.run(PartRenderingEngine.java:1018)

at org.eclipse.e4.ui.internal.workbench.E4Workbench.creat eAndRunUI(E4Workbench.java:156)

at org.eclipse.ui.internal.Workbench$5.run(Workbench.java :654)

at org.eclipse.core.databinding.observable.Realm.runWithD efault(Realm.java:337)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbenc h(Workbench.java:598)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Platfo rmUI.java:150)

at org.eclipse.ui.internal.ide.application.IDEApplication .start(IDEApplication.java:139)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run( EclipseAppHandle.java:196)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLa uncher.runApplication(EclipseAppLauncher.java:134)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLa uncher.start(EclipseAppLauncher.java:104)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ec lipseStarter.java:380)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ec lipseStarter.java:235)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknow n Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main .java:669)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java: 608)

at org.eclipse.equinox.launcher.Main.run(Main.java:1515)

Caused by: java.lang.ClassNotFoundException: An error occurred while automatically activating bundle com.teradata.datatools.dtp.sqltools.ui (1101).

at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.pos tFindLocalClass(EclipseLazyStarter.java:116)

at org.eclipse.osgi.internal.loader.classpath.ClasspathMa nager.findLocalClass(ClasspathManager.java:531)

at org.eclipse.osgi.internal.loader.ModuleClassLoader.fin dLocalClass(ModuleClassLoader.java:324)

at org.eclipse.osgi.internal.loader.BundleLoader.findLoca lClass(BundleLoader.java:327)

at org.eclipse.osgi.internal.loader.BundleLoader.findClas sInternal(BundleLoader.java:402)

at org.eclipse.osgi.internal.loader.BundleLoader.findClas s(BundleLoader.java:352)

at org.eclipse.osgi.internal.loader.BundleLoader.findClas s(BundleLoader.java:344)

at org.eclipse.osgi.internal.loader.ModuleClassLoader.loa dClass(ModuleClassLoader.java:160)

at java.lang.ClassLoader.loadClass(Unknown Source)

at org.eclipse.osgi.internal.framework.EquinoxBundle.load Class(EquinoxBundle.java:573)

at org.eclipse.core.internal.registry.osgi.RegistryStrate gyOSGI.createExecutableExtension(RegistryStrategyOSGI. java:174)

at org.eclipse.core.internal.registry.ExtensionRegistry.c reateExecutableExtension(ExtensionRegistry.java:905)

at org.eclipse.core.internal.registry.ConfigurationElemen t.createExecutableExtension(ConfigurationElement.java: 243)

at org.eclipse.core.internal.registry.ConfigurationElemen tHandle.createExecutableExtension(ConfigurationElement Handle.java:55)

at org.eclipse.datatools.sqltools.editor.ui.internal.core .SQLDevToolsUIConfigRegistryImpl.init(SQLDevToolsUICon figRegistryImpl.java:157)

at org.eclipse.datatools.sqltools.editor.ui.internal.core .SQLDevToolsUIConfigRegistryImpl.getConfigurations(SQL DevToolsUIConfigRegistryImpl.java:87)

at org.eclipse.datatools.sqltools.editor.ui.core.SQLTools UIFacade.getConfigurations(SQLToolsUIFacade.java:77)

at org.eclipse.datatools.sqltools.sqleditor.internal.SQLE ditorPlugin.getTemplateContextTypeRegistry(SQLEditorPl ugin.java:240)

at org.eclipse.datatools.sqltools.sqleditor.internal.SQLE ditorPlugin.getTemplateStore(SQLEditorPlugin.java:213)

at com.teradata.datatools.sqldev.dialogs.actions.QuickDel eteActionDelegate.openInSQLEditor(QuickDeleteActionDel egate.java:140)

... 35 more

Caused by: org.osgi.framework.BundleException: Exception in com.teradata.datatools.dtp.sqltools.ui.TeradataSQLTool sUIPlugin.start() of bundle com.teradata.datatools.dtp.sqltools.ui.

at org.eclipse.osgi.internal.framework.BundleContextImpl. startActivator(BundleContextImpl.java:792)

at org.eclipse.osgi.internal.framework.BundleContextImpl. start(BundleContextImpl.java:721)

at org.eclipse.osgi.internal.framework.EquinoxBundle.star tWorker0(EquinoxBundle.java:941)

at org.eclipse.osgi.internal.framework.EquinoxBundle$Equi noxModule.startWorker(EquinoxBundle.java:318)

at org.eclipse.osgi.container.Module.doStart(Module.java: 571)

at org.eclipse.osgi.container.Module.start(Module.java: 439)

at org.eclipse.osgi.framework.util.SecureAction.start(Sec ureAction.java:454)

at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.pos tFindLocalClass(EclipseLazyStarter.java:107)

... 54 more

Caused by: java.lang.NoSuchMethodError: org.eclipse.ui.internal.registry.FileEditorMapping.set DefaultEditor(Lorg/eclipse/ui/internal/registry/ EditorDescriptor;)V

at com.teradata.datatools.dtp.sqltools.ui.TeradataSQLTool sUIPlugin.setDefaultSQLEditor(TeradataSQLToolsUIPlugin .java:110)

at com.teradata.datatools.dtp.sqltools.ui.TeradataSQLTool sUIPlugin.start(TeradataSQLToolsUIPlugin.java:53)

at org.eclipse.osgi.internal.framework.BundleContextImpl$ 3.run(BundleContextImpl.java:771)

at org.eclipse.osgi.internal.framework.BundleContextImpl$ 3.run(BundleContextImpl.java:1)

at java.security.AccessController.doPrivileged(Native Method)

at org.eclipse.osgi.internal.framework.BundleContextImpl. startActivator(BundleContextImpl.java:764)

... 61 more

 

 

 

 

 

 

 

 

 

 
 
 
 
 
 
 
 
 
 
 
 

jimccr 1 post Joined 03/16
22 Mar 2016

Did you ever get past this error? I'm having the same issue.
I'm using Eclispse (MARS.v2) 4.5.2 and Teradata 15.0.5.1
I followed all the guidance in the same document you referenced to get my environment set up and configured. 
Jim

mzonoozi 1 post Joined 10/15
22 Mar 2016

I am also facing with the same problem, hope I can find the solution.
Any one here can help?
 
Meer

Chuckbert 78 posts Joined 07/09
01 Apr 2016

Well, you've found a problem with our use of a class in an internal package of Eclipse. There is a method we're calling when a new workspace is being used to set a preference that set the editor for files associated with Teradata connections to use Teradata's SQL Editor. The parameter type to that method changed between the Luna and Mars releases of Eclipse.

 

We're finishing up our next release and hope to get this problem solved.
 

One way around the problem is to install the Teradata Plugin for Eclipse into Luna rather than Mars.
 
It looks like another way you can get around the problem by editing a file deep in the .metadata directory of your workspace.
The file is:

  • workspacehome/.metadata/plugins/org.eclipse.core.runtime/.settings/com.teradata.datatools.preferences.prefs

(where "workspacehome" is $HOME/workspace)
 
Add the line:
DefaultSqlEditorSetToTD=true
 
You will also need to change some file associations to have SQL files be opened by the Teradata editor when you double-click on them. 

  • In the Window menu, select Preferences
  • Expand General > Editors and select "File Associations"
  • Select the "*.sql" entry in the File types list
  • Select "Teradata SQL Editor" in the Associated editors list and press the "Default" button.
  • Do those two steps for the *.ddl and *.sqlpage entries

Setting the file associations is what was being done when the exception on Mars occurs.
 
You should no longer get the exception shown above and double-clicking on files with the sql suffix should now be opened by the Teradata SQL Editor.

You must sign in to leave a comment.