[
https://jira.jboss.org/browse/TEIID-1270?page=com.atlassian.jira.plugin.s...
]
Ramesh Reddy commented on TEIID-1270:
-------------------------------------
is "getAdmin()" method specified in any documentation? That is no longer
supported.
adminshell - getAdmin() returns: ERROR
org.teiid.core.TeiidRuntimeException: toString
-------------------------------------------------------------------------------------
Key: TEIID-1270
URL:
https://jira.jboss.org/browse/TEIID-1270
Project: Teiid
Issue Type: Bug
Components: AdminApi, Tools
Reporter: Van Halbert
Assignee: Steven Hawkins
Fix For: 7.1.1
sh ./adminshell.sh
======================================================================
Teiid AdminShell Bootstrap Environment
TEIID_HOME = /jboss/local/51_ER1/jboss-soa-p.5/teiid/adminshell
CLASSPATH =
/jboss/local/51_ER1/jboss-soa-p.5/teiid/adminshell/lib/patches/*:/jboss/local/51_ER1/jboss-soa-p.5/teiid/adminshell/lib/teiid-adminshell-7.1.1.Alpha1.jar:/jboss/local/51_ER1/jboss-soa-p.5/teiid/adminshell/lib/*
JAVA = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0//bin/java
======================================================================
===> [import static org.teiid.adminshell.AdminShell.*; import static
org.teiid.adminshell.GroovySqlExtensions.*; import org.teiid.adminapi.*;]
Groovy Shell (1.7.2, JVM: 1.6.0_0)
Type 'help' or '\h' for help.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
groovy:000> connectAsAdmin("mm://localhost:31443", "admin",
"admin", "conn-1")
===> null
groovy:000> getAllConnections()
===> [conn-1]
groovy:000> getAdmin()
ERROR org.teiid.core.TeiidRuntimeException:
toString
at org.teiid.client.util.ExceptionUtil.convertException (ExceptionUtil.java:80)
at org.teiid.net.socket.SocketServerInstanceImpl$RemoteInvocationHandler.invoke
(SocketServerInstanceImpl.java:365)
at org.teiid.net.socket.SocketServerConnection$1.invoke
(SocketServerConnection.java:216)
at $Proxy7.toString (Unknown Source)
at org.teiid.adminapi.AdminFactory$AdminProxy.invoke (AdminFactory.java:80)
at $Proxy7.toString (Unknown Source)
at java_lang_String$valueOf.call (Unknown Source)
at java_lang_String$valueOf.call (Unknown Source)
at java_lang_Runnable$run.call (Unknown Source)
at org.teiid.adminshell.GroovyAdminShell.main (GroovyAdminShell.java:30)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira