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",
                                   "DemandSnapshotsAMLocal");
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?


    Timo
  • 2. Re: Getting "java.lang.ClassCastException: oracle.jbo.common.ampool.PoolMgr"
    ManikandaPrabhu Journeyer
    Currently Being Moderated
    I use Jdev version 11.1.1.7. 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(PoolMgr.java:76)
            at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1508)
            at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1485)
            at oracle.apps.scm.advancedPlanning.demandSnapshots.ess.program.DemandSnapshot.execute(DemandSnapshot.java:205)
            at oracle.apps.fnd.applcp.request.exec.AsyncExecutableWrapper.executeHelper(AsyncExecutableWrapper.java:162)
            at oracle.apps.fnd.applcp.request.exec.ExecWrapperBase.execute(ExecWrapperBase.java:156)
            at oracle.apps.fnd.applcp.request.exec.AsyncExecutableWrapper.execute(AsyncExecutableWrapper.java:139)
            at oracle.as.scheduler.rp.JavaSysExecWrapper$1.run(JavaSysExecWrapper.java:367)
            at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
            at oracle.security.jps.internal.jaas.AccActionExecutor.execute(AccActionExecutor.java:74)

Legend

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