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

database-values plugin NullPointerException

Josep Llaurado April 20, 2015

Hi there,

I downloaded the latest version of database-values-plugin v3.4 under JIRA 6.3.15.

I have configured a first custom field, with the associated file: jira-database-values-plugin-10100.properties

I have tried the connection to the postgreSQL database using the JIRA user I'm using with the query inside the code and it works:

cmdbuild=> select "Id","IdClass","Code","Description" from "CI" where "Status"='A';

 Id |  IdClass  |  Code  |   Description

----+-----------+--------+-----------------

 49 | "Service" | SRVSAP | Servicio de SAP

 

 But when I create an Issue I get: Error rendering 'databasevaluesselectionfield'. Please contact your JIRA administrators.

Taking a look at the catalina.out log it appears a nullpointer exception: 2015-04-21 11:28:29,268 http-bio-8080-exec-7 WARN j.llaurado 688x907x1 1xyizvc 192.168.170.246 /secure/CreateIssue.jspa [com.atlassian.ozymandias.SafePluginPointAccess] Unable to run plugin code because of 'java.lang.NullPointerException - null'.

But nothing more.

Is there any way to debug the problem a little further?

 

The properties file:

 

database.driver=org.postgresql.Driver
database.user=jira
database.password=*******
database.conection.url=jdbc:postgresql://localhost:5432/cmdbuild
cache.timeout=1000
sql.query=select "Id","IdClass","Code","Description" from "CI" where "Status"='A'
primarykey.column.number=0
rendering.viewpattern={3} - {4}
rendering.editpattern={3}, {4}
rendering.searchpattern={3} {4}
rendering.sortpattern={3} {4}
edit.type=2
search.type=1
rendering.changelog.viewpattern={3} {4}
rendering.statistics.viewpattern={3} {4}

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Josep Llaurado April 22, 2015

I found the answer by myself.

 

In the configuration I selected a edit type 2 (cascading select) but I miss the parameter to group in the first field. Once I wrote in the config file the line:

rendering.editpattern.group.column.number=1

Everything started working smile

Wim Deblauwe
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2015

Great to hear that you have it working.

Zawistowski Grzegorz December 7, 2015

How to prepere Conection String to MS SQL Please Wim help.

TAGS
AUG Leaders

Atlassian Community Events