This discussion is archived
3 Replies Latest reply: Apr 24, 2013 8:42 PM by ManikandaPrabhu RSS

Getting "java.lang.ClassCastException: oracle.jbo.common.ampool.PoolMgr"

ManikandaPrabhu Journeyer
Currently Being Moderated
Am getting "java.lang.ClassCastException: oracle.jbo.common.ampool.PoolMgr" when I try to create Application Module instance using
ApplicationModule demandSnapshotsAM =  Configuration.createRootApplicationModule("oracle.apps.scm.advancedPlanning.demandSnapshots.publicEssModel.applicationModule.DemandSnapshotsAM",
This AM does not have any explicitly created Implementation classes. It just has one VO.

Any solutions to get ride of this error ?
  • 1. Re: Getting "java.lang.ClassCastException: oracle.jbo.common.ampool.PoolMgr"
    Timo Hahn Oracle ACE
    Currently Being Moderated
    Sorry, we can't help without some background information.
    Wich jdev version do you use?
    Why do you use createRootApplicationModule?
    Where do you try to use it?

  • 2. Re: Getting "java.lang.ClassCastException: oracle.jbo.common.ampool.PoolMgr"
    ManikandaPrabhu Journeyer
    Currently Being Moderated
    I use Jdev version I use createRootApplicationModule to get an instance to AM to access its VOs and executeQuery on that.
    Am NOT using this in any VO implementation classes. I use this in a POJO class.

    Stack trace
    Caused By: java.lang.ClassCastException: oracle.jbo.common.ampool.PoolMgr
            at oracle.jbo.common.ampool.PoolMgr.getInstance(
            at oracle.jbo.client.Configuration.createRootApplicationModule(
            at oracle.jbo.client.Configuration.createRootApplicationModule(
            at oracle.apps.scm.advancedPlanning.demandSnapshots.ess.program.DemandSnapshot.execute(
            at oracle.apps.fnd.applcp.request.exec.AsyncExecutableWrapper.executeHelper(
            at oracle.apps.fnd.applcp.request.exec.ExecWrapperBase.execute(
            at oracle.apps.fnd.applcp.request.exec.AsyncExecutableWrapper.execute(


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