[
https://issues.jboss.org/browse/TEIIDDES-2464?page=com.atlassian.jira.plu...
]
Barry LaFond commented on TEIIDDES-2464:
----------------------------------------
1) With DV install, the user is configuring/setting their own username/pwd. Designer
creates a Default Teiid Driver definition for Data tools. User will need to edit that
driver definition in *Window > Preferences > Data Management > Connectivity >
Driver Definitions*. Select *Teiid Server JDBC Default Driver*, select *Edit...* button,
select *Properties* tab and set your username & pwd
2) After that standard modeling operations work fine... by creating project, creating
models, previewing modeos, creating a VDB, Deploying/Executing a VDB
3) Problem with this jira's use-case is a result of creating a Teiid JDBC Connection
Profile via the wizard. This results in the default server version to be set to
"x.x.x" which will fail parsing, of course. Designer's Execute VDB and
Preview Data logic discovers and sets the Teiid Server version, but there is no provision
to set the server version for the Teiid Driver. There is a workaround that's
cumbersone... and that's to export this *x.x.x* profile to an *.xml file (Data Tools
feature), change the *x.x.x* attribute to the appropriate server version
{code:xml}
<property name="org.eclipse.datatools.connectivity.db.version"
value="x.x.x" />
{code}
{code:xml}
<property name="org.eclipse.datatools.connectivity.db.version"
value="8.7.1"/>
{code}
So.. we'll need to either add a *Server Version ##* entry field in the driver
definition/properties tab OR similar to other Data Tools contributors, provide multiple
Driver Definition templates for teiid server versions.
NPE trying to connect to Teiid server for importing
---------------------------------------------------
Key: TEIIDDES-2464
URL:
https://issues.jboss.org/browse/TEIIDDES-2464
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export
Affects Versions: 9.0
Environment: Fedora 20
Reporter: Ramesh Reddy
Priority: Critical
I tried this using latest JBoss Developer Studio 8.0.0.GA, I suspect Teiid Designer
version is 9.0. I updated it through JBoss Central. There is an issue with about dialog
(may be another issue)
I have DV 6.1.0 running locally, trying to import metadata using JDBC importer from DV
6.1.0. After plugging in the VDB name, user/password I see this below exception. Can't
get any further.
BTW, what AD-HOC driver when Teiid is selected, it does not let you define any properties
either. Looks like this needs to be removed.
{code}
java.lang.NumberFormatException: For input string: "x"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:492)
at java.lang.Integer.parseInt(Integer.java:527)
at org.teiid.jdbc.TeiidDriver.getMajorVersion(TeiidDriver.java:153)
at
org.teiid.jdbc.DatabaseMetaDataImpl.getDatabaseProductVersion(DatabaseMetaDataImpl.java:705)
at
org.teiid.designer.jdbc.metadata.impl.JdbcDatabaseImpl.loadDatabaseInfo(JdbcDatabaseImpl.java:422)
at
org.teiid.designer.jdbc.metadata.impl.JdbcDatabaseImpl.getDatabaseInfo(JdbcDatabaseImpl.java:240)
at
org.teiid.designer.jdbc.metadata.impl.JdbcDatabaseImpl.selectDefaultNodes(JdbcDatabaseImpl.java:565)
at org.teiid.designer.jdbc.JdbcPlugin.getJdbcDatabase(JdbcPlugin.java:189)
at
org.teiid.designer.jdbc.ui.wizards.JdbcImportWizard.sqlConnectionChanged(JdbcImportWizard.java:886)
at
org.teiid.designer.jdbc.ui.wizards.JdbcImportWizard$3.stateChanged(JdbcImportWizard.java:668)
at
org.teiid.designer.jdbc.ui.wizards.JdbcSourceSelectionPage.fireStateChanged(JdbcSourceSelectionPage.java:697)
at
org.teiid.designer.jdbc.ui.wizards.JdbcSourceSelectionPage.connect(JdbcSourceSelectionPage.java:187)
at
org.teiid.designer.jdbc.ui.wizards.JdbcSourceSelectionPage.getNextPage(JdbcSourceSelectionPage.java:381)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:935)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:434)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
at org.eclipse.jface.window.Window.open(Window.java:808)
at
org.eclipse.ui.internal.handlers.WizardHandler$Import.executeHandler(WizardHandler.java:158)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:290)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:247)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:229)
at
org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
at
org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:149)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
at
org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at
org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
at
org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:343)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:159)
at org.eclipse.ui.internal.actions.CommandAction.run(CommandAction.java:174)
at org.eclipse.ui.actions.ImportResourcesAction.run(ImportResourcesAction.java:99)
at
org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:170)
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:4454)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
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(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
{code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)