Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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


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( 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( at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil.runInContext( at com.atlassian.plugin.util.ContextClassLoaderSwitchingUtil$ Source) at com.onresolve.scriptrunner.db.configurations.ExternalDbConfig.createDataSource(ExternalDbConfig.groovy:24) at com.onresolve.scriptrunner.db.configurations.ExternalDbConfig$ Source) at com.onresolve.scriptrunner.db.AbstractDbConnectionManager.createDataSource(AbstractDbConnectionManager.groovy:41) at com.onresolve.scriptrunner.db.DbConnectionManager$createDataSource$ 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

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:

Screenshot 2020-12-24 at 12.07.10 PM.png

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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

451 views 5 17
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you