Plugin for Eclipse

Teradata Studio

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.TeradataProjectNewWizard".

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.TeradataSQLEditor.

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.TeradataSQLEditor.

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

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

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

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

at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)

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

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

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

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

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

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

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

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

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.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)

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

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

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

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

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

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

at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:104)

at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73)

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

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

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

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

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

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

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

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

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

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

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

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

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

at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.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.UIEventHandler.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.dispatchEvent(EventManager.java:230)

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

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

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

at org.eclipse.equinox.internal.event.EventComponent.sendEvent(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.eNotify(BasicNotifierImpl.java:374)

at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java: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.delegateBringToTop(PartServiceImpl.java:724)

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

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

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

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

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

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

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

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

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

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

at com.teradata.datatools.sqldev.dialogs.actions.QuickDeleteActionDelegate.openInSQLEditor(QuickDeleteActionDelegate.java:233)

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

at com.teradata.datatools.dtp.util.actions.AbstractRunWithHourglassActionDelegate$1.run(AbstractRunWithHourglassActionDelegate.java:93)

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

at com.teradata.datatools.dtp.util.actions.AbstractRunWithHourglassActionDelegate.runWithHourglass(AbstractRunWithHourglassActionDelegate.java:125)

at com.teradata.datatools.dtp.util.actions.AbstractRunWithHourglassActionDelegate.run(AbstractRunWithHourglassActionDelegate.java:91)

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

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

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

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

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.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(Display.java:4180)

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

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

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

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

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

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

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

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

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.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.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)

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

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

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

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.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.postFindLocalClass(EclipseLazyStarter.java:116)

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

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

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

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

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

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

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

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

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

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

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

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

at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)

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

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

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

at org.eclipse.datatools.sqltools.sqleditor.internal.SQLEditorPlugin.getTemplateContextTypeRegistry(SQLEditorPlugin.java:240)

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

at com.teradata.datatools.sqldev.dialogs.actions.QuickDeleteActionDelegate.openInSQLEditor(QuickDeleteActionDelegate.java:140)

... 35 more

Caused by: org.osgi.framework.BundleException: Exception in com.teradata.datatools.dtp.sqltools.ui.TeradataSQLToolsUIPlugin.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.startWorker0(EquinoxBundle.java:941)

at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.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(SecureAction.java:454)

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

... 54 more

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

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

at com.teradata.datatools.dtp.sqltools.ui.TeradataSQLToolsUIPlugin.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


3 REPLIES
N/A

Re: Plugin for Eclipse

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

Re: Plugin for Eclipse

I am also facing with the same problem, hope I can find the solution.

Any one here can help?

Meer

Teradata Employee

Re: Plugin for Eclipse

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.