Error using commo mbean server to create custom mbean - Weblogic
This is a discussion on Error using commo mbean server to create custom mbean - Weblogic ; When I execute the attached program, I see that I can create an instance of the
DefaultAuthenticator mbean successfully, but the attempt to create an instance
of a custom authenticator mbean results in the following run time exception. Any
idea ...
-
Error using commo mbean server to create custom mbean
When I execute the attached program, I see that I can create an instance of the
DefaultAuthenticator mbean successfully, but the attempt to create an instance
of a custom authenticator mbean results in the following run time exception. Any
idea why? I can configure the custom authenticator using the weblogic.Admin tool
and also from the console without any problem - so that eliminates the possibility
of the custom mbean not created right. Then why not using a java program. I don't
see any documentation on the commo server. Are there supported public APIs to
do this sort of thing from a java class.
thanks,
Jyothi
thrown by rmi server: weblogic.management.internal.RemoteMBeanServerImpl .invoke(Ljavax.management.ObjectName;Ljava.lang.St ring;[Ljava.lang.Object;[Ljava.lang.String
javax.management.RuntimeOperationsException: RuntimeException thrown by the invoke
method of the Dynamic MBean.
java.lang.ClassCastException
at javax.management.modelmbean.RequiredModelMBean.inv oke(RequiredModelMBean.java:1166)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl .private_invoke(RemoteMBeanServerImpl.java:947)
at weblogic.management.internal.RemoteMBeanServerImpl .invoke(RemoteMBeanServerImpl.java:908)
at weblogic.management.internal.RemoteMBeanServerImpl _WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicS erverRef.java:477)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicSe rverRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest (BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute( BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:170)
--------------- nested within: ------------------
javax.management.RuntimeOperationsException: RuntimeException thrown by the invoke
method of the Dynamic MBean
at com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:1559)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl .private_invoke(RemoteMBeanServerImpl.java:947)
at weblogic.management.internal.RemoteMBeanServerImpl .invoke(RemoteMBeanServerImpl.java:908)
at weblogic.management.internal.RemoteMBeanServerImpl _WLSkel.invoke(Unknown
Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicS erverRef.java:477)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicSe rverRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest (BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute( BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:170)
-
Re: Error using commo mbean server to create custom mbean
Forgot to mention that I am using weblogic server 8.1 SP2 on solaris.
Any help is greatly appreciated.
-Jyothi
"Jyothi" wrote:
>
>
>
>When I execute the attached program, I see that I can create an instance
>of the
>DefaultAuthenticator mbean successfully, but the attempt to create an
>instance
>of a custom authenticator mbean results in the following run time exception.
>Any
>idea why? I can configure the custom authenticator using the weblogic.Admin
>tool
>and also from the console without any problem - so that eliminates the
>possibility
>of the custom mbean not created right. Then why not using a java program.
>I don't
>see any documentation on the commo server. Are there supported public
>APIs to
>do this sort of thing from a java class.
>
>thanks,
>Jyothi
>
>
>thrown by rmi server: weblogic.management.internal.RemoteMBeanServerImpl .invoke(Ljavax.management.ObjectName;Ljava.lang.St ring;[Ljava.lang.Object;[Ljava.lang.String
> javax.management.RuntimeOperationsException: RuntimeException thrown
>by the invoke
>method of the Dynamic MBean.
>java.lang.ClassCastException
> at javax.management.modelmbean.RequiredModelMBean.inv oke(RequiredModelMBean.java:1166)
> at com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:1557)
> at com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:1525)
> at weblogic.management.internal.RemoteMBeanServerImpl .private_invoke(RemoteMBeanServerImpl.java:947)
> at weblogic.management.internal.RemoteMBeanServerImpl .invoke(RemoteMBeanServerImpl.java:908)
> at weblogic.management.internal.RemoteMBeanServerImpl _WLSkel.invoke(Unknown
>Source)
> at weblogic.rmi.internal.BasicServerRef.invoke(BasicS erverRef.java:477)
> at weblogic.rmi.internal.BasicServerRef$1.run(BasicSe rverRef.java:420)
> at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:353)
> at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:144)
> at weblogic.rmi.internal.BasicServerRef.handleRequest (BasicServerRef.java:415)
> at weblogic.rmi.internal.BasicExecuteRequest.execute( BasicExecuteRequest.java:30)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:197)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:170)
>--------------- nested within: ------------------
>javax.management.RuntimeOperationsException: RuntimeException thrown
>by the invoke
>method of the Dynamic MBean
> at com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:1559)
> at com.sun.management.jmx.MBeanServerImpl.invoke(MBea nServerImpl.java:1525)
> at weblogic.management.internal.RemoteMBeanServerImpl .private_invoke(RemoteMBeanServerImpl.java:947)
> at weblogic.management.internal.RemoteMBeanServerImpl .invoke(RemoteMBeanServerImpl.java:908)
> at weblogic.management.internal.RemoteMBeanServerImpl _WLSkel.invoke(Unknown
>Source)
> at weblogic.rmi.internal.BasicServerRef.invoke(BasicS erverRef.java:477)
> at weblogic.rmi.internal.BasicServerRef$1.run(BasicSe rverRef.java:420)
> at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:353)
> at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:144)
> at weblogic.rmi.internal.BasicServerRef.handleRequest (BasicServerRef.java:415)
> at weblogic.rmi.internal.BasicExecuteRequest.execute( BasicExecuteRequest.java:30)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:197)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:170)
>