"IO Error: Invalid number format for port number" when connecting to Oracle database

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

 

 

Problem

Bitbucket Server is setup manually with Oracle as backend, as opposed to migrating database after setup is complete.

After configuration is complete and bitbucket.properties is created with the required details, the following error(s) appear in the atlassian-bitbucket.log:

....
Caused by: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: IO Error: Invalid number format for port number
....
....
Caused by: java.sql.SQLRecoverableException: IO Error: Invalid number format for port number
....
....
Caused by: oracle.net.ns.NetException: Invalid number format for port number
....

Cause

JDBC Url format incorrect in bitbucket.properties.

bitbucket.properties
jdbc.url=jdbc:oracle:thin:@//dfw-vu-devodb1.uat.svbank.com:1526:DEVOPSPOCDB

 

Resolution

Changed the Url as follows:

bitbucket.properties
jdbc.url=jdbc:oracle:thin:@//dfw-vu-devodb1.uat.svbank.com:1526/DEVOPSPOCDB

There should be a slash "/" rather than a colon ":" before the database name/SID.

 

Last modified on Nov 16, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.