-
I've improved error being reported. Now you will have something like this:
===================== Could not initialize bean default (class: class tigase.pubsub.repository.PubSubDAOPool$PubSubDAOConfigBean), skipping injection of this bean RootCause: -> java.lang.RuntimeException: There is no data source named 'test2' [tigase.db.beans.MDRepositoryBean$MDRepositoryConfigBean.initialize(MDRepositoryBean.java:337)] =====================
and from that it is clear that there is a data source named
test2
which is missing and it was used in the configuration of thePubSubDAO
.
Type |
Task
|
Priority |
Normal
|
Assignee | |
RedmineID |
7743
|
Version |
tigase-server-8.0.0
|
Spent time |
0
|
Issue Votes (0)
Watchers (0)
When we specify that repository should use data source which is not available (or not configured), there is an error being thrown which does not mention that data source is missing. Instead it suggests that bean was not initialized due to unknown error.
It would be better to inform a user about missing data source and name of the data source which cannot be found.