git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/document-store-lib@130364 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
757c589f4c
commit
f0339d3cbd
|
@ -4,6 +4,7 @@
|
|||
package org.gcube.documentstore.persistence;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.ServiceLoader;
|
||||
|
@ -53,7 +54,11 @@ public abstract class PersistenceBackendConfiguration {
|
|||
logger.trace("{} will be used.", foundConfigurationClassName);
|
||||
|
||||
return configuration;
|
||||
} catch (Exception e) {
|
||||
}
|
||||
catch (InvocationTargetException e) {
|
||||
logger.error(String.format("InvocationTargetException -%s not initialized correctly. It will not be used. Trying the next one if any.", foundConfiguration.getClass().getSimpleName()), e.getCause());
|
||||
}
|
||||
catch (Exception e) {
|
||||
logger.error(String.format("%s not initialized correctly. It will not be used. Trying the next one if any.", foundConfiguration.getClass().getSimpleName()), e);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -128,7 +128,8 @@ public abstract class PersistenceBackendFactory {
|
|||
found.setFallback(createFallback(context));
|
||||
|
||||
return found;
|
||||
} catch (Exception e) {
|
||||
}
|
||||
catch (Exception e) {
|
||||
logger.error(String.format("%s not initialized correctly. It will not be used. Trying the next one if any.", foundClass.getSimpleName()), e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue