Database custom field plugin error


I just changed DB configuration (previously it was connecting to another DB and working fine) on conf/context.xml file to look new DB table but I'm not getting any values on custom field and also getting below log error

2013-08-29 15:51:42,979 http-bio-8080-exec-7 ERROR venkatsa 951x13417x1 v34vkb, /secure/IssueAction!default.jspa [commons.jira.kconfig.PluginConfiguration] Database JNDI >>NewDB<< is not defined
2013-08-29 15:51:42,980 http-bio-8080-exec-7 ERROR venkatsa 951x13417x1 v34vkb, /secure/IssueAction!default.jspa [databasecf.querydb.impl.QueryDatabaseImpl] Not connected. Possible database misconfiguration ?
2013-08-29 15:51:42,980 http-bio-8080-exec-7 ERROR venkatsa 951x13417x1 v34vkb, /secure/IssueAction!default.jspa [databasecf.querydb.impl.QueryDatabaseImpl] Could not execute SQL query >>select * from application<< on database NewDB.
java.sql.SQLException: Not connected. Possible database misconfiguration ?
at com.keplerrominfo.jira.plugins.databasecf.querydb.impl.QueryDatabaseImpl.getResults(
at com.keplerrominfo.jira.plugins.databasecf.querydb.impl.QueryServiceImpl.getResults(
at com.keplerrominfo.jira.plugins.databasecf.querydb.impl.QueryServiceImpl.getResultsAndSaveInSession(
at com.keplerrominfo.jira.plugins.databasecf.customfields.datacolumn.DatabaseCFType.getVelocityParameters(
at com.atlassian.jira.issue.customfields.CustomFieldUtils.buildParams(
at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl.getEditHtml(
at com.atlassian.jira.issue.fields.CustomFieldImpl.getEditHtml(
at com.atlassian.jira.issue.fields.screen.AbstractFieldScreenLayoutItem.getEditHtml(
at com.atlassian.jira.issue.fields.screen.FieldScreenRenderLayoutItemImpl.getEditHtml(
at <+2>
at java.lang.reflect.Method.invoke(Unknown Source)
at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(
at com.sun.proxy.$Proxy222.getEditFields(Unknown Source) <+2>
at java.lang.reflect.Method.invoke(Unknown Source)
at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(
at com.sun.proxy.$Proxy222.getEditFields(Unknown Source)
at com.atlassian.jira.plugin.issuenav.viewissue.IssueFieldProvider.getEditFields(
at com.atlassian.jira.plugin.issuenav.action.IssueAction.populateIssueFields(
at com.atlassian.jira.plugin.issuenav.action.IssueAction.doDefault( <+2>
at java.lang.reflect.Method.invoke(Unknown Source)
at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(
at webwork.util.InjectionUtils.invoke( <+2> ( (
at com.atlassian.jira.action.JiraActionSupport.execute( <+7> ( ( ( ( ( ( (
at javax.servlet.http.HttpServlet.service( <+14> ( (

Please suggest.

5 answers

1 accepted

This widget could not be displayed.

You need to restart Jira after editing the context.xml file, before you can use the new defined data source.

Restart helped me on this :) Many thanks.

This widget could not be displayed.

Can you please attach the new data source configuration from context.xml?

This widget could not be displayed.

After editing context.xml file, do we need to restart the JIRA service?

This widget could not be displayed.

<Resource name="NewDB"
auth="Container" type="javax.sql.DataSource"

This widget could not be displayed.

Difference I can find that both DB having different versions... 10g Enterprise Edition Release (new one) & 11g Enterprise Edition Release (old one, connected sucessfully) and we were using only one jdbc driver, ie ojdbc6.jar .

So please suggest is need to put any other JDBC driver for connecting this?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

511 views 3 18
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