My Oracle Support Banner

NullPointerException Is Thrown When "Test Table Name" Of Data Source Configuration Is NULL. (Doc ID 2216019.1)

Last updated on JUNE 30, 2017

Applies to:

Oracle WebLogic Server - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

NullPointerException is thrown, as seen in the error below, when "Test Table Name" of Data Source configuration is NULL.

####<Dec 26, 2016 4:33:27 PM JST> <Error> <Deployer> <athena.example.com> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1482737607876> <BEA-149265> <Failure occurred in the execution of deployment request with ID "967691318409253" for task "weblogic.deploy.configChangeTask.1". Error is: "weblogic.application.ModuleException: prepareUpdate failed for JDBC Module OraDS02: null"
weblogic.application.ModuleException: prepareUpdate failed for JDBC Module OraDS02: null
at weblogic.jdbc.module.JDBCModule.processUpdate(JDBCModule.java:706)
at weblogic.jdbc.module.JDBCModule.prepareUpdate(JDBCModule.java:597)
...
...
Caused By: java.lang.NullPointerException
at weblogic.jdbc.common.internal.ConnectionPool.setTestTableName(ConnectionPool.java:1590)
at weblogic.jdbc.module.JDBCModule.processCPUpdate(JDBCModule.java:857)
at weblogic.jdbc.module.JDBCModule.processBeanUpdateEvent(JDBCModule.java:782)
...
...

 
STEPS


The issue can be reproduced at will with the following steps:
1. Access to Admin Console.

2. Create a Generic Data Source:
a. Domain Structure > Services > Data Source > New > Generic Data Source
b. Select a Thin Driver(Not-XA).
c. Clear "Test Table Name:".

3. Modify the "Connection Pool" of setp2:
a. Domain Structure > Services > Data Source > {DS Name} > Configuration > Connection Pool > Advanced > Test Table Name:
b. Enter "SQL SELECT 1 FROM DUAL" to "Test Table Name:".

4. Click "Activate Chnages".

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!


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