Error when doing listStatistics operation on datasource with twiddle: ClassNotFoundException: JBossManagedConnectionPoolStatistics

Solution Verified - Updated -

Issue

When trying to use twiddle to do "listStatistics" operation on a datasource (example: DefaultDS):

twiddle.sh -s ip-address:1099 -u admin -p pass invoke jboss.jca:service=ManagedConnectionPool,name=DefaultDS listStatistics

The following error happens:

10:23:58,325 ERROR [Twiddle] Exec failed
java.lang.reflect.UndeclaredThrowableException
        at com.sun.proxy.$Proxy1.invoke(Unknown Source)
        at org.jboss.console.twiddle.command.InvokeCommand.invoke(InvokeCommand.java:238)
        at org.jboss.console.twiddle.command.InvokeCommand.execute(InvokeCommand.java:294)
        at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:319)
Caused by: java.lang.ClassNotFoundException: org.jboss.resource.statistic.pool.JBossManagedConnectionPoolStatistics (no security manager: RMI class loader disabled)
        at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:395)
        at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:185)
        at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:637)
        at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:264)
        at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:222)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1610)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x

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