0 Replies Latest reply: Aug 20, 2012 8:50 AM by 513159 RSS

    Throwing MbeanException wrapping custom exception

    513159
      Iam throwing a mbean exception which wraps a custom exception from mbean.

      Iam invoking this mbean from wlst(python script) and Iam trying to catch this MBeanException

      When i try to use the getCause method i get the following exception .

      "java.rmi.UnmarshalException: Problem finding error class; nested exception is:
      java.lang.ClassNotFoundException: Failed to load class oracle.webcenter.lifecycle.exception.LifecyclePortalGuidMisMatchException"

      Please note that the python script is aware of the custom exception (LifecyclePortalGuidMisMatchException).

      For testing purpose, to confirm this, i have also created an instance of LifecyclePortalGuidMisMatchException in python (before invoking the mbean)

      The complete exception stack

      java.rmi.UnmarshalException: Problem finding error class; nested exception is:
      java.lang.ClassNotFoundException: Failed to load class oracle.webcenter.lifecycle.exception.LifecyclePortalGuidMisMatchException
      javax.management.MBeanException
      at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
      at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
      at javax.management.remote.rmi.RMIConnectionImpl_1035_WLStub.invoke(Unknown Source)
      at weblogic.management.remote.common.RMIConnectionWrapper$16.run(ClientProviderBase.java:919)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
      at weblogic.security.Security.runAs(Security.java:61)
      at weblogic.management.remote.common.RMIConnectionWrapper.invoke(ClientProviderBase.java:917)
      at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:993)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.python.core.PyReflectedFunction.__call__(Unknown Source)
      at org.python.core.PyMethod.__call__(Unknown Source)
      at org.python.core.PyObject.__call__(Unknown Source)
      at org.python.core.PyObject.invoke(Unknown Source)
      at ora_mbs$py.invoke$8(/ade/aimmanue_pt/oracle/oracle_common/common/wlst/lib/ora_mbs.py:56)
      at ora_mbs$py.call_function(/ade/aimmanue_pt/oracle/oracle_common/common/wlst/lib/ora_mbs.py)
      at org.python.core.PyTableCode.call(Unknown Source)
      at org.python.core.PyTableCode.call(Unknown Source)
      at org.python.core.PyFunction.__call__(Unknown Source)
      at org.python.core.PyObject.__call__(Unknown Source)
      at org.python.core.PyObject.invoke(Unknown Source)
      at LifecycleHandler$py._doScopeImport$26(/ade/aimmanue_pt/oracle/as11gr1wc/common/script_handlers/LifecycleHandler.py:892)
      at LifecycleHandler$py.call_function(/ade/aimmanue_pt/oracle/as11gr1wc/common/script_handlers/LifecycleHandler.py)
      at org.python.core.PyTableCode.call(Unknown Source)
      at org.python.core.PyTableCode.call(Unknown Source)
      at org.python.core.PyFunction.__call__(Unknown Source)
      at ExpImpHandler$py.importGroupSpaces$9(/ade/aimmanue_pt/oracle/as11gr1wc/common/script_handlers/ExpImpHandler.py:113)
      at ExpImpHandler$py.call_function(/ade/aimmanue_pt/oracle/as11gr1wc/common/script_handlers/ExpImpHandler.py)
      at org.python.core.PyTableCode.call(Unknown Source)
      at org.python.core.PyTableCode.call(Unknown Source)
      at org.python.core.PyFunction.__call__(Unknown Source)


      Could you let me who why iam not able to get the cuase of the exception when the client is aware of the exception
      Edited by: user510156 on Aug 20, 2012 6:43 AM

      Edited by: user510156 on Aug 20, 2012 6:49 AM