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