1 Reply Latest reply on Jul 20, 2016 3:35 PM by Nik G

    Jython cli connect failure

    Nik G Newbie

      Hi,

       

      Has anyone successfully used jython to connect to CLI?

      The cli.connect() fails no matter which overloaded method i use ! The simplest, no arg method also doesn't work for me, i get below...

       

      >>> cli.connect()

      Traceback (innermost last):

        File "<console>", line 1, in ?

              at org.jboss.as.cli.scriptsupport.CLI.connect(CLI.java:79)

              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)

       

      java.lang.IllegalStateException: java.lang.IllegalStateException: Unable to initialize command context.