Getting Data In

Splunk DB Connect - ERROR io.dropwizard.jersey.errors.LoggingExceptionMapper - Error handling a request:

spl_unker
Explorer

Im setting up a new DB connect to pull data from MS SQL server 2016 database to splunk :

1. Downloaded the latest version of DB Connect 3.3.1

2. Downloaded sqljdbc_4.2  driver and moved the move the sqljdbc42.jar file to the $SPLUNK_HOME/etc/apps/splunk_app_db_connect/drivers directory 

3. Created Identity

4. While creating a connection i get the the following error.

[dw-760 - POST /api/connections/status] ERROR io.dropwizard.jersey.errors.LoggingExceptionMapper - Error handling a request: 5b6a559a6b1b46d9 java.lang.NullPointerException: null at com.splunk.dbx.connector.logger.AuditLogger.replace(AuditLogger.java:50) at com.splunk.dbx.connector.logger.AuditLogger.error(AuditLogger.java:44) at com.splunk.dbx.server.api.service.database.impl.DatabaseMetadataServiceImpl.getStatus(DatabaseMetadataServiceImpl.java:159).

5.I verified the identity has given a read permission for the DB im trying to query.

Please let me know if this issue is encountered by someone. Thanks in Advance

0 Karma
1 Solution

chli_splunk
Splunk Employee
Splunk Employee

We fixed the error message of "NullPointerException"  in DBX 3.3.1 to print the real error. Basically sth wrong about the DB connection, either credentials, driver compatibility, or DB connectivity. Maybe you can try DBX 3.2.0 to get the real error message, or contact our support team to provide the fixed 3.3.1 version(not released yet) for further triage.

View solution in original post

0 Karma

chli_splunk
Splunk Employee
Splunk Employee

We fixed the error message of "NullPointerException"  in DBX 3.3.1 to print the real error. Basically sth wrong about the DB connection, either credentials, driver compatibility, or DB connectivity. Maybe you can try DBX 3.2.0 to get the real error message, or contact our support team to provide the fixed 3.3.1 version(not released yet) for further triage.

0 Karma

jeffland
SplunkTrust
SplunkTrust

We're on 3.3.1 and I see the exact same error message, no details other than null pointer. Am I missing something?

0 Karma

richgalloway
SplunkTrust
SplunkTrust
Yes, you missed the accepted solution, which is to contact Splunk Support for the fix to DBX.
---
If this reply helps you, Karma would be appreciated.
0 Karma

spl_unker
Explorer

Thank you. Raised a support ticket and got the updated jar from them which gives exact error and it turned out to be a FW issue.

 

Cheers

0 Karma

richgalloway
SplunkTrust
SplunkTrust
You should open a support case with Splunk.
---
If this reply helps you, Karma would be appreciated.
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...