Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Failed to load driver class org.xbib.jdbc.csv.CSVDriver in either of HikariConfig class loader

Dear team,

I'm trying to use a CSV driver to create a database connection to be able to implement database picker scripted field. 

I followed the steps given in this link . 

The CSV driver from here  is placed in /opt/atlassian/jira/lib

and the CSV file is placed in /tmp

The connection is being set up as below

image.png

But getting below error

java.lang.RuntimeException: Failed to load driver class org.xbib.jdbc.csv.CSVDriver in either of HikariConfig class loader or Thread context classloader at com.zaxxer.hikari.HikariConfig.setDriverClassName(HikariConfig.java:504) at com.onresolve.scriptrunner.db.configurations.ExternalDbConfig$_createDataSource_closure1.doCall(ExternalDbConfig.groovy:25) at com.onresolve.scriptrunner.db.configurations.ExternalDbConfig$_createDataSource_closure1.doCall(ExternalDbConfig.groovy) at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil.runInContext(ContextClassLoaderSwitchingUtil.java:48) at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil.runInContext(ContextClassLoaderSwitchingUtil.java:25) at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil$runInContext.call(Unknown Source) at com.onresolve.scriptrunner.db.configurations.ExternalDbConfig.createDataSource(ExternalDbConfig.groovy:24) at com.onresolve.scriptrunner.db.configurations.ExternalDbConfig$createDataSource.call(Unknown Source) at com.onresolve.scriptrunner.db.AbstractDbConnectionManager.createDataSource(AbstractDbConnectionManager.groovy:41) at com.onresolve.scriptrunner.db.DbConnectionManager$createDataSource$2.call(Unknown Source) at com.onresolve.scriptrunner.canned.db.ExternalDatabaseConnection.createOrUseExistingDataSource(ExternalDatabaseConnection.groovy:134) at com.onresolve.scriptrunner.canned.db.ExternalDatabaseConnection$createOrUseExistingDataSource.callCurrent(Unknown Source) at com.onresolve.scriptrunner.canned.db.ExternalDatabaseConnection.validate(ExternalDatabaseConnection.groovy:167) at com.onresolve.scriptrunner.canned.db.ExternalDatabaseConnection.validate(ExternalDatabaseConnection.groovy)

1 answer

Suggest an answer

Log in or Sign up to answer
2 votes
Raziman Dom - Ricksoft
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 23, 2020

Hi Vidhya,

Please try using these:

JDBC URL: jdbc:relique:csv:/tmp

Driver class name: org.relique.jdbc.csv.CsvDriver

Download driver from here. It should be the same driver anyway: https://sourceforge.net/projects/csvjdbc

Screenshot 2020-12-24 at 12.07.10 PM.png

Raziman Dom - Ricksoft
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 23, 2020

Screenshot 2020-12-24 at 12.23.49 PM.png

thanks @Raziman Dom - Ricksoft . The instruction of script runner worked. I did not create the jar file properly. :)

Raziman Dom - Ricksoft
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 28, 2020 • edited

Cool! Please accept my answer @Vidhya Mohan if you are able to resolve your issue ;) 

TAGS
AUG Leaders

Atlassian Community Events