"Application module  is not a root app module but has no parent"

This is to follow up on my answered question on rootAN substitution
Re: "login session has expired" after am substitution
I am working on an OAF extension.
I have a new LOV region. I extended (to be substituted) the seeded VO, call it xxVO. And I have three custom methods using this xxVO that are called from processFormRequest of my controller which extends the seeded controller.
So putting these methods in rootAM and AM substitution didn't work as some folks pointed out.
So I created xxAM (extends root AM), put xxVO in xxAM’s data model and put my methods in xxAM, set this xxAM as AMDefinition for my custom LOV region.
In my controller I do
OAApplicationModule xxAM = new xxprg.oracle.apps.icx.por.req.server.xxprgRequisitionAMImpl();
But I am getting
=> oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidOwnerException: JBO-25301: Application module is not a root app module but has no parent
at
xxAM.invokeMethod("handleChangeRequester", parameters);
I found a few posts on the same topic. One advise was to not instantiate ‘new’ AM but do something like this
Xo2cAcctOviewExtAMImpl amExt = (Xo2cAcctOviewExtAMImpl )pageContext.getApplicationModule(webBean);
In this example I am confused about the fact that ‘getApplicationModule(webBean);’ which is used in the signature of the processFormRequest will return a ‘rootAM’, is this correct?
There was another workaround mentioned in other posts to not use xxAM at all but build a class to mimic an xxAM passing all needed values that custom methods require. In which case how(or better where) do I instantiate xxVO since now xxVO won’t be part of any AM data model?
Can someone please clarify.
Thank you
Anatoliy

Pratap,
Thank you for the response.
The reason I need to use new xxCO on the page is this.
Seeded page CheckoutLinesPG.
It has advanced table on it where every column has it's one external region.
The new LOV region xxRN is put on a page also under this table new column.
1. When a requester (seeded region on the seeded page) is changed then my xxLOV should reflect the change and be populated according to what is selected in the Requester LOV.
2. When one-time address is added (another seeded region on the seeded page) my xxLOV should be disabled, when one time address taken out - enabled again.
So xxCO should apply to the whole page.
The VO behind advanced table PoRequisitionLinesVO is extended with 2 additional attributes and will substitute, the new xxVO is under xxAM data model.
All works fine with my methods in the seeded RequisitionAM which I get a handle to in the xxCO. But I don;t know how to get the handle to the xxAM if I put my methods there.
Thanks,
Anatoliy
P.S. just fyi - I know it is not the recommended approach but what I did for now I put all calls into the controller - in the controller I can get a handle to root AM, through that I am getting a handle to xxVO which (!) is substituted during runtime with my xxVO. But if you can figure out how to get a handle to xxAM in my case it will be great.
Edited by: asmirnov on Mar 24, 2009 2:04 PM

Similar Messages

  • Java Error Application module is not a root app module ...

    Hi
    I am calling from APPAmImpl.java program's Method from APPPhaseListener.Java (on pageload) program.
    PriceMgmtModuleImpl pmImpObj = new PriceMgmtModuleImpl();
    call is going to the method inwhich I am making DB call with below statment
    st = getDBTransaction().createCallableStatement(stmt,0);
    Application is throwing error here. Is it problem with object initialization? Any pointer on this issue.

    Hi,
    don't see if your AM is getting initialized at all. So how do you create the reference to the AM?
    Frank

  • JBO-25301: Application module ... is not a root app module but has no..

    Hello,
    Tools:_
    Jdeveloper 10.1.2
    JPDK 10.1.2
    ADF
    Portal version 10.1.2 (repository upgrade 10.1.4)
    Problem:_
    I have an application that calls other application module from it's own application module. Some times it gives error (not every time):
    •     JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOwnerException, msg=JBO-25301: Application module FormHistoryServiceLocal is not a root app module but has no parent
    •        JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOwnerException, msg=JBO-25301: Application module FormHistoryServiceLocal is not a root app module but has no parent
    •           JBO-25301: Application module FormHistoryServiceLocal is not a root app module but has no parent
    Code that application uses to call other application module:_
    public ApplicationHandler( ApplicationModule rootModule )
        try
          if(rootModule != null)
            formHistory = (FormHistoryService)rootModule.findApplicationModule(FORMHISTORYSERVICE_LOCAL);
            if(formHistory == null){
              formHistory = (FormHistoryService)rootModule.createApplicationModule( FORMHISTORYSERVICE_LOCAL, FORMHISTORYSERVICE_DEF );
            userInfoDAO.connect();
          }else System.out.println("Application Module was NULL");
        }catch(Exception e)
          e.printStackTrace();
    (calls: formHistory.addToHistory())
    The other application module:+
    public void addToHistory( Number formId, Number status, Number type, Number userId, String event )
        FormhistoryDefImpl defImpl = (FormhistoryDefImpl)EntityDefImpl.findDefObject("com.mysite.app.Formhistory");
        FormhistoryImpl fh = (FormhistoryImpl)defImpl.CreateFormhistory( this.getDBTransaction(), new NameValuePairs() ); //************ Exception is thrown from here! ************
        fh.setFormid(formId);
        fh.setStatus(status);
        fh.setType(type);
        fh.setUserid(userId);
        fh.setEvent(event);
        oracle.jbo.domain.Date eventTimestamp = new oracle.jbo.domain.Date((new java.sql.Timestamp(new java.util.Date().getTime())));
        fh.setEventtimestamp(eventTimestamp);
        this.getTransaction().commit();
    What's wrong here?
    JBO description:+
    JBO-25301: InvalidOwnerException
    Cause: While traversing the parenthood chain for application modules, a child application module was found with no container (parent) application module.
    Action: If this application has added custom business component classes, it may be that the application code is attempting to access a child application module before it is fully initialized. If this is not the case, this error probably represents some internal error in BC4J framework, in which case contact BC4J Technical Support.
    How can i ensure that child application module is already initialized?

    Anyone?

  • Can not access root app module in nested one

    I am using Jdeveloper 11g R2 (11.1.2.3) & Weblogic 10.3.5.0
    I have a root application module and few nested application modules nested under root one in my ADF application
    I have few common methods under root application module Impl class and try to access them in nested Impl classes
    like this (This code is in nestedAppModuleImpl class):
    RootAppModuleImpl root = (RootAppModuleImpl)someViewObject.getDBTransaction().getRootApplicationModule();
    root.doSomething();
    when I execute above code this excepton is thrown:
    oracle.jbo.server.ApplicationModuleImpl cannot be cast to mypackage.RootAppModuleImpl
    Any comment or workaround?
    What is the proper solution?
    Regards
    Mohsen

    Mohsen, there is something terribly wrong with your code.
    //(This code is in nestedAppModuleImpl class):
    RootAppModuleImpl root = (RootAppModuleImpl)someViewObject.getDBTransaction().getRootApplicationModule();
    root.doSomething();doesn't make sense. Does doSomething() really return an RootAppModuleImpl? You can access the root application module from the nested application module by
    RootAppModuleImpl root = (RootAppModuleImpl)getRootApplicationModule();If you get a class cast exception it means that there is something wrong with your RooAppModuleImpl. Does it extend ApplicationModuleImpl? If yes the cast should be possible.
    Is the root application module of the type RootAppModuleImpl? only then you can access the common methods after getting the root application module.
    the next method
    private ViewObject getAccountExistsView(DBTransaction t) {
    ApplicationModule root = t.getRootApplicationModule();
    ViewObject vo = root.findViewObject("MemberExistsView");
    if (vo == null) {
    vo = root.createViewObject("MemberExistsView","model.MemberExistsView");
    return vo;
    }doesn't make sense to me. Where does this method reside? in the RootAppModuleImpl? if yes, why do you call getRootApplicationModule? You are in the root application Module. I can' comment on the createViewObject you are calling, but my feeling is that you don't need it either. The view you are creating should be there already if your application module are setup correctly.
    And you are right, you should not call createRootApplicationModule if it is not needed. In your case it's not!
    Timo

  • Application module AppModuleImpl_1 is not root app module but has no parent

    Dear all
    every time i am trying to run any script on appmodule level i am getting this error Application module AppModuleImpl_1 is not a root app module but has no parent
    what is wrong i write every time in my code that causes this error ?
    Many Thanks

    This is the method inside the backing bean :
        public String cb2_action() {    
                DemoImpl demo = new DemoImpl();
            demo.prop(getLocid().toString(),getHoldesc().toString());
    return null;
    }This method "prop" is written inside the AM called "Demo" :
        public void prop(String locid, String holdesc) {
    CallableStatement st = null ;
                try {
                StringBuffer str = new StringBuffer();
                str.append(" BEGIN ");
                str.append(" test_package.prop( ");
                str.append("       locid           => :1, ");
                str.append("       holdesc         => :2  ");
                str.append("    ); ");
                str.append(" END; ");
              st =getDBTransaction().createCallableStatement(str.toString(), 1);
                  st.setInt(1, Integer.parseInt(locid));
                st.setString(2, holdesc);
                st.execute();
            } catch (SQLException sqle) {
                // TODO: Add catch code
                sqle.printStackTrace();
            } catch (NumberFormatException nfe) {
                // TODO: Add catch code
                nfe.printStackTrace();
            }

  • My iPad keeps dimming on wakeup. I am on iOS 6. Auto dimming turned off. I have to go to brightness setting and touch it to get the brightness back up to my setting. It does not happen all the time but has happened more frequently lately. Any ideas?

    My iPad keeps dimming on wakeup. I am on iOS 6. Auto dimming turned off. I have to go to brightness setting and touch it to get the brightness back up to my setting. It does not happen all the time but has happened more frequently lately. Any ideas?

    Because GPS has nothing to do with WiFi, cellular signals, or data of any sort. GPS is implemented by signals sent by satellites that are received by GPS receivers. The receivers process the information from the GPS satellites and calculate your location. GPS never sends data anywhere; GPS functionality is receive only.
    If you have WiFi or cellular data turned on this can improve the accuracy of GPS, because the GPS receiver can then use the known location of cell towers and WiFi networks to refine the GPS location. GPS by itself has an accuracy of 10 meters, or about 34 feet. Using the additional information from WiFi and cellular data this can be brought down to 3 meters (10 feet). This mode is called Augmented GPS, or A-GPS.

  • Nvidia module does not exist in /proc/modules

    Hi!
    I compiled kernel with grsecurity from AUR. everything goes fine, and my system boot with a new kernel.
    Only thing i have a problem with, is nvidia module.
    I'm tried to makepkg nvidia with ABS way, but i get errors:
    ERROR: Module nvidia does not exist in /proc/modules
    In order to use the new nvidia module, exit Xserver and unload it manualy.
    I"m trying to do:
    modprobe nvidia
    but i get:
    FATAL: Error inserting nvidia (/lib/modules/2.6.32-grsec-ARCH/kernel/drivers/video/nvidia.ko): Cannot allocate memory
    When i write :find /lib/modules -name nvidia.ko
    I get: lib/modules/2.6.32-grsec-ARCH/kernel/drivers/video/nvidia.ko
    When i write: uname -r
    I get: 2.6.32-grsec-ARCH
    Any help please..

    you have to reboot after installing nvidia because the > 2.6.34 kernel has nouveau and is using the card.

  • HT204053 I have music that was not purchased from app store that has somehow ended up in I cloud. How do I get it back from I cloud to my I pod?

    I have music that was not purchased from I tunes and has somehow ended up on I cloud I think! How do I get this back to my I phone?

    Import the music into your iTunes library and sync like any other music.

  • Develop module changes not reflected in Library module or on export.

    After making changes to an image (sharpening, exposure, contrast, etc, etc) in the develop module, when I head over to the library module, the image does not show the latest changes. What's worse is when I export a JPG of the image, it exports the original! What's the point in having LR??    

    That's very odd indeed!  Let me just clarify this...
    You select a photo, switch to Develop, change it to B&W to make it REALLY obvious.  Then you switch back to Library and the photo is back to colour again? What happens if you zoom into 1:1 in Library? 
    And then you export with the format set to JPEG (not 'original') and the result is colour?

  • Lightroom 6 Develop Module does not show photos, Library Module does show photos

    This is what I see in the Develop module after installing Lightroom 6.  Lightroom 5 runs fine on the same Laptop.  Is this a GPU issue?  Configuration issue?  End user issue?  I'm running a Lenovo T430 with Windows 7 Enterprise 64BIT.  I purchased and installed LR 6.0 22-April-15.

    I too have the same problem in lightroom CC as you ( after updating on 30/4/15 ) and have looked all over the internet. I had read something in the Adobe forum site suggesting a  problem with the Graphics Processor, but it was not specific to our problem in lightroom. When I also checked photoshop ACR, it too showed the same as your screen shot. And all worked OK  in lightroom 5 and photoshop 2014. It did not seem to make any sense at all ! I haven't unchecked " use Graphics Processor" option, but I will soon after I reply to you and had a rest after hours of trawling through internet sites looking for the answer. I use win 7 home premium desktop 64 bit on a 1 year old PC.
    Thank you GrandpaCamera for your contribution, and a picture is better then a thousand words. By Michael.

  • JSP pages not working on app server but works locally

    Hello,
    My application uses java, struts and jsps. When I try to access JSP page like http://appServer:7778/app/login.jsp, it says page not found exception. But when I access http://appServer:7778/app/login.do, it displays login.jsp page (success url for login action is login.jsp). How come I am not able to access jsp pages directly? Am I missing any settings?
    And when I run the application using embedded OC4J of Jdeveloper, I could access jsp pages directly.
    Thanks.

    The method getTextContent() is DOM Level 3, and was introduced with Java1.5
    Tomcat 5.5 runs on Java1.5, but by default uses the JDT compiler for JSPs, which is only Java1.4 compliant - might possibly be that.
    See the [url http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES.txt] release notes and
    [url http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html]how to fix (see the section on configuration)
    >
    The Java compiler from Eclipse JDT in included as the default compiler. It is an advanced Java compiler which will load all dependencies from the Tomcat class loader, which will help tremendously when compiling on large installations with tens of JARs. On fast servers, this will allow sub-second recompilation cycles for even large JSP pages. This new compiler will be updated to support the Java 5 syntax as soon as possible.
    Apache Ant, which was used in previous Tomcat releases, can be used instead instead of the new compiler by simply removing the common/lib/jasper-compiler-jdt.jar file, and placing the ant.jar file from the latest Ant distribution in the common/lib folder. If you do this, you also need to use the "javac" argument to catalina.sh.

  • My iphone 4s has a built in app called "voice Memos".  A colleague has an iPhone 4 unit which does not have this app. This has beem on my previous models.  Has it been discontinued? Is  it a carrier issue?

    "1  Which iphone models have the built in VOICE MEMOS app?  My 4S model has this, and i have also had this on my previous model.  A colleague has an iphone 4, and it is not showing.
    #2  Also, my 4S has a smart keyboard with the microphone icon to the left of the spacebar.  Which models have this?

    1) Either your friend has moved the icon into a folder or onto another screen, or they do not have a real iPhone (or their phone is jailbroken). It is present on all iPhones and can not be deleted.
    2) The 4S and higher have that. It requires Siri, which does not exist on the iPhone 4 and earlier.

  • Apple id not accepted by app store but its working fine on apple website.

    i have my apple which was working fine on my mac book pro. but now its not accepted by the app store its keeps on loading for hour but no result where as the same apple id is working fine on apple website.

    Click here and ask the iTunes Store staff for assistance.
    (111387)

  • Apple id not working on app store, but working on iTunes

    Hey Guys,
    I am having a hard time with the APP store on my macbook pro.  I bought a DVD ripping app to use and when i try to open it i get a message that the app was purchased on another computer.  i only have one computer, and i know that it was purchased on it lol.  i can log into itunes no problem and even on here with my apple ID and password, and when i try to get on the app store to verify my information, or to check my account, it wont let me log in, and tells me my information doesnt match up. Anyone else have a similar problem before? its very frustrating!  Any input would be appreciated
    Thanks,
    Sean

    Go to ~/Library/Caches/com.apple.appstore
    Move the Cache.db file from the com.apple.appstore folder to the Trash.
    Restart your Mac, launch the App Store... see if you can re download the app.
    ~ (Tilde) represents your Home folder
    For Lion:   To find the Home folder in OS X Lion, open the Finder, hold the Option key, and choose Go > Library

  • My iPod will not sync to my computer, but has no problem with others.

    So, my Nano was a birthday present that I got in March of 2008. I had not experienced this problem, until about five months later. My Nano no longer will sync with my iTunes library. it syncs with my neighbor's Mac and her library. But also with my Boyfriend's PC (also Windows XP).
    I also cannot restore my iPod to it's factory settings. I get an error message that says, "Aimco user's iPod cannot be restored. An unknown error occurred.So, my Nano was a birthday present that I got in March of 2008. I had not experienced this problem, until about five months later. My Nano no longer will sync with my iTunes library. it syncs with my neighbor's Mac and her library. But also with my Boyfriend's PC (also Windows XP).
    I also cannot restore my iPod to it's factory settings. I get an error message that says, "Aimco user's iPod cannot be restored. An unknown error occurred."
    But I do not get this message immediately, sometimes it takes hours (while it claims it is Restoring) before I get the error message.
    I get a similar error message when trying to sync.

    whoops, sorry for the repeats guys.
    This is what it should have said:
    So, my Nano was a birthday present that I got in March of 2008. I had not experienced this problem, until about five months later. My Nano no longer will sync with my iTunes library. it syncs with my neighbor's Mac and her library. But also with my Boyfriend's PC (also Windows XP).
    I also cannot restore my iPod to it's factory settings. I get an error message that says, "Aimco user's iPod cannot be restored. An unknown error occurred."
    But I do not get this message immediately, sometimes it takes hours (while it claims it is Restoring) before I get the error message.

Maybe you are looking for

  • IPhone 5 doesn't work with Bose sound dock using the 30-pin adapter.

    I just upgraded to iPhone 5.  To my huge disappointment, I can not use it with my Bose sound dock using the 30-pin adapter. That is just ridiculous, after spending so much money!!! I tried using another cable and it works but sound is of poor quality

  • Form Builder 6.0.5.35.3 and the print built-in

    Our users have an option to allow them to print screen (form) images. We use the print built in to help provide this functionality. However, for each print request, the user is prompted to confirm the printer details, and them a message box appears s

  • Lightroom Freezes with Mouse Scroll Wheel

    K, bit of an odd one here.... My lightroom appears to work perfectly except when i use the scroll wheel on my mouse, it seems to lock up. I am using Win7 64bit with Lightroom 3.4.1 When i check my task manager; windows seems to think that lightroom i

  • WEC7 DHCP Allocator not sending ACK for a DHCP client

    Hi All, I have a WEC7 device configured as DHCP Allocator. My PC (windows 7) will get ip from DHCP allocator successfully. WEC7 ip settings: ip: 169.254.0.1 subnet: 255.255.0.0 DNS: 0.0.0.0 My PC Ip after got ip from WEC7 DHCP Allocator: ip : 169.254

  • Sharing to Flickr problem

    If I choose to share a photo to Flickr and add it to an existing set, I do not see that photo displaying in my Aperture Album. I notice that the picture count increases with the new addition, but that picture is not displayed. 'Sychronizing' does not