Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

686347Feb 20 2012 — edited Apr 23 2013
Hi all. I write a webservice using oracle ADF Buisiness components.
When I create an appmodule I get this error on working server - java.lang.ClassCastException: oracle.jbo.common.ampool.PoolMgr

I get it not regulary, sometimes it work ok, sometimes shows this error. On integrated server allways works ok, at least I never saw this error.

Here is stack trace
java.lang.ClassCastException: oracle.jbo.common.ampool.PoolMgr
	at oracle.jbo.common.ampool.PoolMgr.getInstance(PoolMgr.java:51)
	at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1393)
	at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1370)
	at kz.kklife.osnsws.ws.WsListener.prepareCall(WsListener.java:69)
I create App Module this way
  WsAppModuleImpl      am =
 (WsAppModuleImpl)Configuration.createRootApplicationModule("kz.kklife.osnsws.model.WsAppModule",
                                                            "WsAppModuleLocal");
I've tried shared configuration, enabled and disabled pool in AM Configuration - the same result.
Google says nothing, I cannot find solution. What is the trouble?


PS: Sometimes I got the same error when releasing AM, so I close it this way.
    private void closeCall() {
        try {
            if (am != null)
                Configuration.releaseRootApplicationModule(am, true);
        } catch (Exception e) {
        } finally {
            am = null;
        }
It looks ugly, but I cannot find another solution.

Edited by: Zulkar on 21.02.2012 11:58
This post has been answered by Frank Nimphius-Oracle on Feb 21 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 21 2013
Added on Feb 20 2012
5 comments
2,344 views