This discussion is archived
3 Replies Latest reply: Sep 3, 2012 9:34 AM by Sudipto Desmukh RSS

Running nested AM methods from Root AM

Sudipto Desmukh Expert
Currently Being Moderated
Hi All ,
jdev 11.1.16 , ADF BC.

I had 2 AMs Nested within a RootAM in my Model Project. When using the AM Tester , I was trying to test the Am and I tried to executed a method from the Nested AM ... I got the following error on clicking of execute -
"JBO-29000 Unexpected Exception caught :java.lang.IllegalArgumentException object is not an instance of declaring class"

But if I try to use the same nestedAM's method in the UI layer , i can get it to execute. Is this a know issue ?
  • 1. Re: Running nested AM methods from Root AM
    Timo Hahn Oracle ACE
    Currently Being Moderated
    Have you checked the stack trace of the error?
    Have you debugged the code?

  • 2. Re: Running nested AM methods from Root AM
    vinod_t_krishnan Guru
    Currently Being Moderated
    did u search for this kind of error in is this hapening if you add the nested am again...? did u try with one am?
  • 3. Re: Running nested AM methods from Root AM
    Sudipto Desmukh Expert
    Currently Being Moderated
    @Timo - below is the complete stack . I couldnot debug as the control doesnot go to nestedAM method.
    Please note that if I independantly run the NestedAM(meaning standalone when its not nested) , it runs fine .. also this issue is only from AM tester.

    @ Vinod - I donot have a account. Standalone AM works fine.
     oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.IllegalArgumentException, msg=object is not an instance of declaring class
         at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(
         at oracle.adf.model.binding.DCDataControl.invokeMethod(
         at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(
         at oracle.adf.model.binding.DCInvokeMethod.callMethod(
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(
         at oracle.adf.model.binding.DCDataControl.invokeOperation(
         at oracle.jbo.jbotester.panel.MethodPanel$6.actionPerformed(
         at javax.swing.AbstractButton.fireActionPerformed(
         at javax.swing.AbstractButton$Handler.actionPerformed(
         at javax.swing.DefaultButtonModel.fireActionPerformed(
         at javax.swing.DefaultButtonModel.setPressed(
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
         at java.awt.Component.processMouseEvent(
         at javax.swing.JComponent.processMouseEvent(
         at java.awt.Component.processEvent(
         at java.awt.Container.processEvent(
         at java.awt.Component.dispatchEventImpl(
         at java.awt.Container.dispatchEventImpl(
         at java.awt.Component.dispatchEvent(
         at java.awt.LightweightDispatcher.retargetMouseEvent(
         at java.awt.LightweightDispatcher.processMouseEvent(
         at java.awt.LightweightDispatcher.dispatchEvent(
         at java.awt.Container.dispatchEventImpl(
         at java.awt.Window.dispatchEventImpl(
         at java.awt.Component.dispatchEvent(
         at java.awt.EventQueue.dispatchEventImpl(
         at java.awt.EventQueue.access$000(
         at java.awt.EventQueue$
         at java.awt.EventQueue$
         at Method)
         at java.awt.EventQueue$
         at java.awt.EventQueue$
         at Method)
         at java.awt.EventQueue.dispatchEvent(
         at java.awt.EventDispatchThread.pumpOneEventForFilters(
         at java.awt.EventDispatchThread.pumpEventsForFilter(
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(
         at java.awt.EventDispatchThread.pumpEvents(
         at java.awt.EventDispatchThread.pumpEvents(


  • Correct Answers - 10 points
  • Helpful Answers - 5 points