2 Replies Latest reply on Jun 1, 2011 1:05 PM by Reinhard Nappert

    Twiddle error - Object not of type: RMIAdaptorImpl

    John Timmons Newbie

      Hello,

       

      I've recently downloaded the latest version of JBoss AS (v6.0.0.2010911-MS) in my lab environment and am in the process of trying to run Twiddle against the default install. I'm not a JBoss admin, but need to test various things out for a development project I am currently working on -

       

      Here is my syntax

       

      twiddle -s IPADDRESS get "jboss.system:type=ServerInfo"

       

      And I receive:

       

      16:34:21,234 ERROR [Twiddle] Exec failed
      org.jboss.util.NestedRuntimeException: Object not of type: RMIAdaptorImpl, but:
      javax.naming.Reference; - nested throwable: (java.lang.ClassCastException: Objec
      t not of type: RMIAdaptorImpl, but: javax.naming.Reference)
              at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:143)
              at org.jboss.console.twiddle.command.MBeanServerCommand.getMBeanServer(M
      BeanServerCommand.java:59)
              at org.jboss.console.twiddle.command.GetCommand.execute(GetCommand.java:
      149)
              at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:305)
      Caused by: java.lang.ClassCastException: Object not of type: RMIAdaptorImpl, but
      : javax.naming.Reference
              at org.jboss.console.twiddle.Twiddle.createMBeanServerConnection(Twiddle
      .java:255)
              at org.jboss.console.twiddle.Twiddle.connect(Twiddle.java:268)
              at org.jboss.console.twiddle.Twiddle.access$300(Twiddle.java:62)
              at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:139)
              ... 3 more

       

      I can run twiddle locally on the server, and am able to successfully run this command. While port 1099 is open on the server, 4444 is not - I'm not sure if I would require a service to be listening on this port to be able to successfully use RMI.

       

      Anyone have any ideas ?

       

      Thanks for your help,

      J.