---
title: "Invalid Database Port"
canonical: "https://support.appfire.com/space/SQL/74321922/Invalid%20Database%20Port"
format: markdown
---
> Macro (aura-html)

# Symptoms

One or more SQL Macro returns the following error:

```
org.apache.tomcat.dbcp.dbcp.SQLNestedException:
Cannot create PoolableConnectionFactory (Network error IOException: Connection refused)
```

## Cause

The Data Source configuration is unable to attach to the specified database because the port is invalid.

## Resolution

Check to ensure that the d<span style="color: #333333">atabase is listening on the requested port - verify port configuration in server.xml and database.</span>