Using Kepler Database Custom Fields to pull info from CSV file not working with JIRA 7

We have just upgraded to JIRA 7 and a Database Custom Field we have set up no longer works.

In context.xml we have:

<Resource name="clientlistDS"
    auth="Container"
    type="javax.sql.DataSource"
    username="sa"
    password=""
    driverClassName="org.hsqldb.jdbcDriver"
    url="jdbc:hsqldb:/home/jira/clientlist;create=true;" /> 

In /home/jira:

clientlist.script:

CREATE SCHEMA PUBLIC AUTHORIZATION DBA CREATE TEXT TABLE CLIENTLIST_TBL(ID BIGINT,CLIENTNAME VARCHAR,OWNER VARCHAR) SET TABLE CLIENTLIST_TBL SOURCE "clientlist.csv;ignore_first=true;cache_rows=0;cache_size=0" CREATE USER SA PASSWORD "" GRANT DBA TO SA SET WRITE_DELAY 20

clientlist.properties:

#HSQL Database Engine #Wed Jul 20 10:40:28 BST 2016 hsqldb.script_format=0 runtime.gc_interval=0 sql.enforce_strict_size=false hsqldb.cache_size_scale=8 readonly=false hsqldb.nio_data_file=true hsqldb.cache_scale=14 version=1.8.0 hsqldb.default_table_type=memory hsqldb.cache_file_scale=1 hsqldb.log_size=200 modified=yes hsqldb.cache_version=1.7.0 hsqldb.original_version=1.8.0 hsqldb.compatible_version=1.8.0

The Database Custom Field is configured to use Database (JNDI name) clientlistDS.

SQL Query: SELECT ID, CLIENTNAME, OWNER from CLIENTLIST_TBL

Column: CLIENTNAME

But field in JIRA GUI shows:

Error rendering 'databaseinput'. Please contact your JIRA administrators.

2 answers

Without some logs, it's hard to guess the cause.

Hello
Thanks for getting back to me.  I did find that page whilst googling and researching this issue.

It gives the solution for SQL Server and Postgres DBs, which is basically update the driver.

Is the same advice applicable for HSQL?  Update the driver?

Rgds

Joe

As far as I know, it's the same problem: Atlassian seem to forget to update the drivers.  

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

800 views 3 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you