Hi there,
Does any one know when the below error comes in atlasian-jira.log?
com.atlassian.activeobjects.external.NoDataSourceException: No data source is available, indicating that there is no tenant available to the application. Your plugin is probably performing tenant specific operations too eagerly.
com.atlassian.activeobjects.external.ActiveObjectsModuleMetaData contains utility methods that can assist you in this situation.
isDataSourcePresent will safely indicate the availability of the data source.
My db config.xml file as below.
<?xml version="1.0" encoding="UTF-8"?>
<jira-database-config>
<name>defaultDS</name>
<delegator-name>default</delegator-name>
<database-type>postgres72</database-type>
<schema-name>public</schema-name>
<jdbc-datasource>
<url>jdbc:postgresql://localhost:5432/jira9dc</url>
<driver-class>org.postgresql.Driver</driver-class>
<username>postgres</username>
<password>root</password>
<pool-min-size>30</pool-min-size>
<pool-max-size>50</pool-max-size>
<pool-max-wait>30000</pool-max-wait>
<validation-query>select 1</validation-query>
<min-evictable-idle-time-millis>60000</min-evictable-idle-time-millis>
<time-between-eviction-runs-millis>300000</time-between-eviction-runs-millis>
<pool-max-idle>50</pool-max-idle>
<pool-remove-abandoned>true</pool-remove-abandoned>
<pool-remove-abandoned-timeout>300</pool-remove-abandoned-timeout>
<pool-test-on-borrow>false</pool-test-on-borrow>
<pool-test-while-idle>true</pool-test-while-idle>
<connection-properties>tcpKeepAlive=true;socketTimeout=240</connection-properties>
</jdbc-datasource>
</jira-database-config>