My Oracle Support Banner

NullPointerException at oracle.jbo.server.DBTransactionImpl.closeStatements (Doc ID 2994762.1)

Last updated on DECEMBER 22, 2023

Applies to:

Oracle JDeveloper - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

When using an ADF application, the users may intermittently encounter error below:

java.lang.NullPointerException
at oracle.jbo.server.DBTransactionImpl.closeStatements(DBTransactionImpl.java:5225)
at oracle.jbo.server.DBTransactionImpl.disconnectApplicationModule(DBTransactionImpl.java:5701)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolDisconnect(ApplicationPoolMessageHandler.java:610)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:438)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:10013)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4618)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doManagedCheckin(ApplicationPoolImpl.java:2791)
at oracle.jbo.common.ampool.ApplicationPoolImpl.releaseApplicationModule(ApplicationPoolImpl.java:1547)
at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:863)
at oracle.jbo.common.ampool.SessionCookieImpl.releaseApplicationModule(SessionCookieImpl.java:783)
...


The known conditions that trigger the exception:
1. Shared transaction is used in the nested taskflow where multiple root AM join in the transaction.
2. AM recycling happens on AppModule.

3. Warning of "Detected transaction access from a session context different than the context that attached to the transaction."

Changes

 The application was upgraded from 12.1.3.0.0 to 12.2.1.4. No such error was reported before the upgrade.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.