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?

Similar Messages

  • "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

  • 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

  • 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 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.

  • 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.

  • MSI Z97-G45 Gaming can not POST or enter BIOS but has display

    Hi
    First post here and sadly a technical one. I just bought the following hardware:
    - MSI Z97-G45 GAMING MoBo (no idea on BIOS since I cannot enter it at all)
    - Intel Core i5 4690K s1150
    - 16GB (2x8GB) Patriot Viper 3 Black Mamba 1600MHz CL9 DDR3 Dual/Quad Channel Kit [PV316G160C9K]
    - Corsair CX750M PSU
    and installed the hardware with the following old hardware that I am carrying over:
    - 2 X Hitachi 1TB Sata HDD
    - 2 X GTX 275 SLI
    To begin with, my existing drives were setup as RAID 0 and has a installed Windows 7 64-bit on there already. I unregistered the Product key before taking it all apart with the idea of registering it again once the new hardware was all together.
    So basically, when I received all the new parts yesterday and put them all in. Upon powering on, I see the MSI Dragon logo fullscreen with the option to press DEL or F11. I let it continue without pressing any key to see how it goes. After the dergaon logo, all I get is "Missing Operating System" at the top which did not really worry me and I assumed it would be realted to the Raid not setup (right?)
    So I rebooted the PC and decided to press DEL to enter BIOS. However, every time I want to enter the BIOS the screen turns black! The display is still functional though from what I can tell (the display does not lose signal).
    Following that, I reset the CMOS from behind by pressing the button with a pen tip. Starting the PC again now gives me a display of all my hardware that it detected (correct CPU, Correct amount of ram, correct HDD etc...). It also gives me two options... F1 to Enter setup or F2 to Continue. Pressing F1 displays the text "Entering Setup..." at the bottom but again it fails to enter the BIOS (it freezes on the above screen - does not turn black this time) and choosing F2 to Continue freezes as well.
    I have tried to boot up with the following changes:
    - No GPU and use on board VGA only
    - One stick of ram in multiple slots
    - No HDDs connected at all
    - I've checked the CPU to make sure no bent pins
    - Reconnected the PSU cables into the motherboard
    I should also mention that when I test it on the bare minimum (CPU, PSU, 1 stick of ram) I get A9 in the lower corner before the dragon logo appears.
    Right now I am out of ideas and any suggestions would be helpful or at least some insight in what problems I described may indicate. Thanks!

    Quote from: Bernhard on 08-July-14, 19:43:46
    Can you post your board's serial number. This contains the manufacture date. From that one could deduce the BIOS version on that board.
    As for the windows installation from your previous system, you would be very lucky if you were able to boot with that. Perhaps force safe mode if and when you are able to boot, and then try installing the new drivers. The problem is that with the old drivers still in the boot menu, you are probably heading down a slippery slope trying to re-use it. A clean installation would be advised.
    Whatever is on the HDD now should however not prevent you from getting into the BIOS.
    The fact that your CPU is recognised by its make doesn't mean that its supported. The CPU ID is probably read by the BIOS, but the microcode of the CPU may be missing in the BIOS support. I am trying to think of possible reasons here, and these are just some of my current ideas as to why you may not be able to get into the BIOS.
    Have you tried your MB outside the case yet, i.e. on a non conductive surface, i.e. wood or cardboard to eliminate any chances of a potential short?
    Also, you may want to check your CPU seating again and carefully inspect the CPU socket pins to ensure that none were bent or are not making proper contact
    Yep here is the serial number: 601-7821-050B1405415963
    Yeah I didn't really expect to have too much luck with the original windows 7 installation but I had no choice since my last computer failed to power on (faulty PSU I suspected).
    However, as you also mentioned, I do not think it would prevent me from reaching the BIOS setup.
    Hopefully the above serial can make some sense for you but I do recall some sort of date after a CMOS reset at the top... I think it was 21 April or May 2014 or so. This was next to the following: E7821IMS v2.0.
    Once I get home, I will try a few things like you suggested but trying to get as much info as I can before I get home so I have a few things to try.
    Thanks again!
    EDIT - as a side note, I also contacted the Online Retailer I got it from and the first response from them was that the DEBUG "A9" code meant it was the RAM not fully inserted. That is another thing I have to be 100% sure of but I am fairly sure it was fully clicked in on both sides... but you never know!

  • 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)

Maybe you are looking for

  • HP leave us Stranded over SetRes HELP!!!

    OK- right now I am really not friends with HP! Why? because of a flaw in their script on my HP Media Centre m7480.uk-a     which has left me stranded outside of my computer facing a dreaded destructive reinstall because all other methods of recovery

  • CS4 Glitches - long list

    Following is a list of glitches, and oversights that I have noticed in CS4. Let me say first of all that I have a completely 'clean' system, all maintenance has been run and I have 50% drive space free - although at the moment I do not have an extern

  • Using SWC's during development

    Right now I am part of a team that is making a base framework for a single Flex application. When the framework is complete, less experience programmers will make the actual screens for the application using the standard components and architecture w

  • How do I get the apps I purchased onto my Iphone 4?

    How do I get the apps I purchased onto my Iphone 4?

  • Backups run but with warnings - always with WIDwriter and DB Why?

    Hello Members, I give up.  Trying to get a backup to run.  System: Windows 2012 Standard running on a Dell T320, 8GB ram. Programs: Symantec EPP, EPP client, and Symantec System Recovery 2012. Attempting to run window server backup - once a day, and