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!

Impact of not releaseRootApplicationModule

Srini MadJan 17 2018 — edited Jan 17 2018

Jdev: 12.2.1.2

We are using Configuration.createRootApplicationModule to commit some changes aside from the flow. We recently upgraded from 11.1.1.7.1 to 12.2.1.2 and now are seeing issues after we call

Configuration.releaseRootApplicationModule(am, true).

The 'releaseRootApplicationModule' itself does not error but the page that loads subsequently gives error "Unable to find root application module". This used to work well in 11.1.7.1.

This flow is not commonly used and am considering commenting out 'releaseRootApplicationModule'. The impact I foresee is a few additional AM instances/DB connections being used - but since this is a rare scenario, am thinking this should be ok as long as the unreferenced AM instances shall soon be reused eventually.

Do you see any other impact of this?

The stack trace we see is

Caused by: java.lang.IllegalStateException: Unable to find root application module

    at oracle.jbo.server.ApplicationModuleImpl.getSession(ApplicationModuleImpl.java:5872)

    at oracle.jbo.server.DBTransactionImpl.getSession(DBTransactionImpl.java:6744)

    at oracle.jbo.server.DBTransactionImpl.isDisconnectEnabled(DBTransactionImpl.java:5757)

    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1370)

    at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2890)

    at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2865)

    at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2859)

    at oracle.jbo.server.ViewRowSetIteratorImpl.getAllRowsInRangeInternal(ViewRowSetIteratorImpl.java:2232)

    at oracle.jbo.server.ViewRowSetIteratorImpl.getAllRowsInRange(ViewRowSetIteratorImpl.java:2279)

    at oracle.jbo.server.ViewRowSetImpl.getAllRowsInRange(ViewRowSetImpl.java:3427)

    at oracle.jbo.server.ViewObjectImpl.getAllRowsInRange(ViewObjectImpl.java:12990)

    at oracle.jbo.uicli.binding.JUCtrlListBinding.setupListItems(JUCtrlListBinding.java:844)

    ... 246 more

## Detail 0 ##

java.lang.IllegalStateException: Unable to find root application module

    at oracle.jbo.server.ApplicationModuleImpl.getSession(ApplicationModuleImpl.java:5872)

    at oracle.jbo.server.DBTransactionImpl.getSession(DBTransactionImpl.java:6744)

    at oracle.jbo.server.DBTransactionImpl.isDisconnectEnabled(DBTransactionImpl.java:5757)

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 14 2018
Added on Jan 17 2018
2 comments
452 views