1 Reply Latest reply on Oct 19, 2004 9:31 PM by Scott Stark

    twiddle tool error -JBoss3.2.5

    Dilip Padhee Newbie

      Hi
      while executing the twiddle tool for getting a Attirbute's value , for some attribute its giving error ??

      For example: for attribute "managedResource" of "Catalina:type=Server" MBean am getting error like the
      below...


      D:\jboss-3.2.5\bin>twiddle get "Catalina:type=Server" managedResource
      14:35:51,610 ERROR [Twiddle] Exec failed
      java.lang.reflect.UndeclaredThrowableException
      at $Proxy0.getAttributes(Unknown Source)
      at org.jboss.console.twiddle.command.GetCommand.execute(GetCommand.java:
      156)
      at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:288)
      Caused by: java.io.NotSerializableException: org.apache.catalina.core.StandardSe
      rver
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)

      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java
      :1332)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13
      04)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav
      a:1247)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)

      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
      at java.util.ArrayList.writeObject(ArrayList.java:529)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:80
      9)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:12
      96)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav
      a:1247)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)

      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
      at java.rmi.MarshalledObject.(MarshalledObject.java:92)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:
      364)
      at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      at sun.rmi.transport.Transport$1.run(Transport.java:148)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
      60)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
      .java:701)
      at java.lang.Thread.run(Thread.java:534)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
      RemoteCall.java:247)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
      223)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
      at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Sour
      ce)
      at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvo
      kerProxy.java:135)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
      a:96)
      at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientIntercepto
      r.invoke(InvokerAdaptorClientInterceptor.java:58)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:5
      3)
      at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodIntercepto
      r.java:55)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
      ... 3 more
      D:\jboss-3.2.5\bin>

      if you see the browser console ie. http://localhost:8080/jmx-console/ ,
      "managedResource" value is displaying as "StandardServer[8005]"


      Again for attribute "debug" of "Catalina:type=Server" MBean am not getting any error..

      D:\jboss-3.2.5\bin>twiddle get "Catalina:type=Server" debug
      debug=0

      Any comments..??

      Thanks.