0 Replies Latest reply on Mar 14, 2005 7:24 PM by Jitesh Popat

    ClassCastException while trying to use

    Jitesh Popat Newbie

      Hi,

      While using "twiddle" to get server information thru common line, I am getting the following ClassCastException:

      -------------
      bash-2.03$ /app/jboss/jboss-3.2.6/bin/./twiddle.sh serverinfo -c
      19:17:00,371 ERROR [Twiddle] Exec failed
      org.jboss.util.NestedRuntimeException: - nested throwable: (java.lang.ClassCastException)
      at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:132)
      at org.jboss.console.twiddle.command.MBeanServerCommand.getMBeanServer(MBeanServerCo
      mmand.java:47)
      at org.jboss.console.twiddle.command.ServerInfoCommand.execute(ServerInfoCommand.jav
      a:118)
      at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:288)
      Caused by: java.lang.ClassCastException
      at org.jboss.console.twiddle.Twiddle.createMBeanServerConnection(Twiddle.java:249)
      at org.jboss.console.twiddle.Twiddle.connect(Twiddle.java:257)
      at org.jboss.console.twiddle.Twiddle.access$300(Twiddle.java:51)
      at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:128)
      ... 3 more
      --------------

      I saw the twiddle source code, there is some message in createMBeanServerConnection() method when this exception is thrown, but surprisingly that message details are not coming in the log (See above log).

      This is working on Windows, but is giving problems in Unix. Please help.
      JBoss version - 3.2.6
      OS - Solaris

      Regards,
      Jitesh