Weblogic Server Fails to Start when Specifying IPV6 Address in JDBC URL for RAC Datasource

(Doc ID 2402429.1)

Last updated on MAY 25, 2018

Applies to:

Oracle WebLogic Server - Version 10.3.6 to 10.3.6
Information in this document applies to any platform.

Symptoms

 WLS Server failing to start with invalid IP address when configuring the IPV6 address for the database in ONS section of datasource. Issue not seen with IPV4 address.

####<May 2, 2018 10:20:39 AM GMT> <Error> <Deployer> <IPV6-xxxx-VM> <IPV6-xxxx-VM_xxxx> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1525256439197> <BEA-149205> <Failed to initialize the application 'xxxxx' due to error weblogic.application.ModuleException: .
weblogic.application.ModuleException:
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:327)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
.........................
............................
Caused By: java.lang.IllegalArgumentException: Invalid host:port xx.xx.xx.xx:xxxx
at weblogic.jdbc.common.internal.AddressList$HostPort.<init>(AddressList.java:105)
at weblogic.jdbc.common.internal.AddressList.setList(AddressList.java:59)
at weblogic.jdbc.common.internal.ONSConfigurationHelper.setNodes(ONSConfigurationHelper.java:59)
at weblogic.jdbc.common.internal.HAConnectionPool.initRACModule(HAConnectionPool.java:690)
at weblogic.jdbc.common.internal.HAConnectionPool.start(HAConnectionPool.java:417)
at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:452)
at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:428)
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:280)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:44)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
at weblogic.deploy.internal.targetserver.SystemResourceDeployment.prepare(SystemResourceDeployment.java:55)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:263)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
>

Customer is using WLS 10.3.6.0. DB is oracle 12CR2 (12.2.0.1.0)

<jdbc-driver-params>
<url>jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=IPV6-xxxx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=xxxxxx)))</url>
<driver-name>oracle.jdbc.OracleDriver</driver-name>
<properties>
<property>
<name>user</name>
<value>xxxx-user</value>
</property>
<property>
<name>ExplicitCachingEnabled</name>
<value>false</value>
</property>
<property>
<name>defaultRowPrefetch</name>
<value>1</value>
</property>
<property>
<name>ImplicitCachingEnabled</name>
<value>false</value>
</property>
<property>
<name>oracle.net.CONNECT_TIMEOUT</name>
<value>1000</value>
</property>
</properties>
<password-encrypted>xxxxxxxxxx</password-encrypted>
<use-xa-data-source-interface>false</use-xa-data-source-interface>
</jdbc-driver-params>
<jdbc-connection-pool-params>
<initial-capacity>1</initial-capacity>
<max-capacity>10</max-capacity>
<shrink-frequency-seconds>3600</shrink-frequency-seconds>
<connection-creation-retry-frequency-seconds>5</connection-creation-retry-frequency-seconds>
<test-frequency-seconds>120</test-frequency-seconds>
<test-connections-on-reserve>true</test-connections-on-reserve>
<test-table-name>SQL SELECT 1 FROM DUAL</test-table-name>
<statement-cache-size>15</statement-cache-size>
<remove-infected-connections>false</remove-infected-connections>
<wrap-types>false</wrap-types>
</jdbc-connection-pool-params>
<jdbc-data-source-params>
<jndi-name>xxxxxxxxxx</jndi-name>
<global-transactions-protocol>EmulateTwoPhaseCommit</global-transactions-protocol>
</jdbc-data-source-params>
<jdbc-oracle-params>
<fan-enabled>true</fan-enabled>
<ons-node-list>[xx:xx::xx:xx]:xxxx</ons-node-list>
</jdbc-oracle-params>
</jdbc-data-source>

Cause

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 hundreds of Community platforms