[
https://issues.jboss.org/browse/TEIID-2483?page=com.atlassian.jira.plugin...
]
Barry LaFond commented on TEIID-2483:
-------------------------------------
The getVDBs() admin method below hasn't changed between 8.3 and 8.4, so the exception
could be coming from *this.connection.execute(request);* or *Util.isSuccess(outcome)* ?
{code}
@Override
public List<? extends VDB> getVDBs() throws AdminException {
final ModelNode request = buildRequest("teiid",
"list-vdbs");//$NON-NLS-1$ //$NON-NLS-2$
try {
ModelNode outcome = this.connection.execute(request);
if (Util.isSuccess(outcome)) {
return getDomainAwareList(outcome, VDBMetadataMapper.INSTANCE);
}
} catch (Exception e) {
throw new AdminProcessingException(AdminPlugin.Event.TEIID70036, e);
}
return Collections.emptyList();
}
{code}
Error bring to connect to Teiid using 8.3 code in Designer against an
8.4 server
--------------------------------------------------------------------------------
Key: TEIID-2483
URL:
https://issues.jboss.org/browse/TEIID-2483
Project: Teiid
Issue Type: Bug
Components: AdminApi
Affects Versions: 8.4
Reporter: Van Halbert
Assignee: Ramesh Reddy
This is the stacktrace I got when testing the connection to Van's new cluster at
redhat-stl-eng3.usersys.redhat.com.
org.teiid.adminapi.AdminProcessingException: TEIID70036
java.lang.IllegalArgumentException
at org.teiid.adminapi.AdminFactory$AdminImpl.getVDBs(AdminFactory.java:1433)
at org.teiid.adminapi.AdminFactory$AdminImpl.getVDBs(AdminFactory.java:1)
at org.teiid83.runtime.ExecutionAdmin.refreshVDBs(ExecutionAdmin.java:658)
at org.teiid83.runtime.ExecutionAdmin.init(ExecutionAdmin.java:575)
at org.teiid83.runtime.ExecutionAdmin.<init>(ExecutionAdmin.java:136)
at
org.teiid83.runtime.ExecutionAdminFactory.createExecutionAdmin(ExecutionAdminFactory.java:29)
at
org.teiid.designer.runtime.registry.TeiidRuntimeRegistry.getExecutionAdmin(TeiidRuntimeRegistry.java:102)
at org.teiid.designer.runtime.TeiidServer.connect(TeiidServer.java:212)
at org.teiid.designer.runtime.TeiidServer.reconnect(TeiidServer.java:232)
at
org.teiid.designer.runtime.ui.server.RefreshServerAction$1.run(RefreshServerAction.java:58)
<snip>
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.IllegalArgumentException
at org.jboss.dmr.ModelValue.getKeys(ModelValue.java:124)
at org.jboss.dmr.ModelNode.keys(ModelNode.java:1194)
at
org.teiid.adminapi.AdminFactory$AdminImpl.getDomainAwareList(AdminFactory.java:1349)
at org.teiid.adminapi.AdminFactory$AdminImpl.getVDBs(AdminFactory.java:1430)
... 48 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira