3 Replies Latest reply: Apr 24, 2013 10:42 PM by ManikandaPrabhu RSS

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

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