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

Labels (1)
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
Get Updates on the Splunk Community!

New This Month in Splunk Observability Cloud - Metrics Usage Analytics, Enhanced K8s ...

The latest enhancements across the Splunk Observability portfolio deliver greater flexibility, better data and ...

Alerting Best Practices: How to Create Good Detectors

At their best, detectors and the alerts they trigger notify teams when applications aren’t performing as ...

Discover Powerful New Features in Splunk Cloud Platform: Enhanced Analytics, ...

Hey Splunky people! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2408. In this ...