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!

Execute an application module method asynchronously?

user9038Sep 2 2009 — edited Sep 3 2009
Is there a simple way of execution an application module method asynchronously?
Currently I'm trying to create a root application module in a new thread and execute a method, but it fails randomly with NPE.
java.lang.NullPointerException
	at oracle.adf.share.http.HttpSessionScopeAdapter.putTransient(HttpSessionScopeAdapter.java:492)
	at oracle.jbo.mom.DefinitionManager.getSessionDefContainer(DefinitionManager.java:1326)
	at oracle.jbo.mom.DefinitionManager.isPersDefSupported(DefinitionManager.java:521)
	at oracle.jbo.mom.DefinitionManager.doFindSessionDefObject(DefinitionManager.java:759)
	at oracle.jbo.mom.DefinitionManager.findPersDefObject(DefinitionManager.java:545)
	at oracle.jbo.server.ComponentObjectImpl.applyPersonalization(ComponentObjectImpl.java:255)
	at oracle.jbo.server.EntityCache.init(EntityCache.java:349)
	at oracle.jbo.server.DBTransactionImpl.findEntityCache(DBTransactionImpl.java:3874)
	at oracle.jbo.server.ViewObjectImpl.addEntityListeners(ViewObjectImpl.java:12382)
	at oracle.jbo.server.ViewObjectImpl.addTxnAndEntityListeners(ViewObjectImpl.java:12437)
	at oracle.jbo.server.ViewObjectImpl.addRowSet(ViewObjectImpl.java:10503)
	at oracle.jbo.server.ViewRowSetImpl.<init>(ViewRowSetImpl.java:392)
	at oracle.jbo.server.ViewObjectImpl.createViewRowSet(ViewObjectImpl.java:10492)
	at oracle.jbo.server.ViewObjectImpl.createViewRowSet(ViewObjectImpl.java:10485)
	at oracle.jbo.server.ViewObjectImpl.getDefaultRowSet(ViewObjectImpl.java:2098)
	at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:5826)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 1 2009
Added on Sep 2 2009
12 comments
966 views