What parameters does the EDS AdminShell connectAsAdmin() method require?

Solution Verified - Updated -

Issue

  • Receive "No signature of method" error when attempting to call connectAsAdmin()
  • Receive below error when executing AdminShell script:
FATAL: groovy.lang.MissingMethodException: No signature of method: groovysh_evaluate.connectAsAdmin() is applicable for argument types: (java.lang.String, java.lang.String, java.lang.String) values: [mm://myserver:31443, admin, admin]
groovy.lang.MissingMethodException: No signature of method: groovysh_evaluate.connectAsAdmin() is applicable for argument types: (java.lang.String, java.lang.String, java.lang.String) values: [mm://myserver:31443, admin, admin]
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:78)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:159)
    at groovysh_evaluate.run(groovysh_evaluate:3)
    at groovysh_evaluate$run.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
    at groovysh_evaluate$run.call(Unknown Source)
    at org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:67)
    at org.codehaus.groovy.tools.shell.Interpreter$evaluate.call(Unknown Source)
    at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:143)
    at org.codehaus.groovy.tools.shell.Groovysh$execute.callCurrent(Unknown Source)
    at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:114)

Environment

  • JBoss Enterprise Data Services (EDS) 5.3.0
  • AdminShell

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content