Skip to content

Commit 041b27d

Browse files
committed
log exception
Signed-off-by: Stefan Bischof <[email protected]>
1 parent 000e427 commit 041b27d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mondrian/src/main/java/org/eclipse/daanse/rolap/core/BasicContext.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
import org.eclipse.daanse.olap.api.function.FunctionService;
3939
import org.eclipse.daanse.olap.common.ExecuteDurationUtil;
4040
import org.eclipse.daanse.olap.core.LoggingEventBus;
41-
import org.eclipse.daanse.olap.server.ExecutionImpl;
41+
import org.eclipse.daanse.olap.server.ExecutionImpl;
4242
import org.eclipse.daanse.rolap.api.RolapContext;
4343
import org.eclipse.daanse.rolap.mapping.api.CatalogMappingSupplier;
4444
import org.eclipse.daanse.rolap.mapping.api.model.AccessRoleMapping;
@@ -140,6 +140,8 @@ public void activate1() throws Exception {
140140
Optional<Dialect> optionalDialect = dialectFactory.tryCreateDialect(connection);
141141
dialect = optionalDialect.orElseThrow(() -> new Exception(ERR_MSG_DIALECT_INIT));
142142
aggregationFactory = new AggregationFactoryImpl(dialect, this.getCustomAggregators());
143+
} catch (Exception e) {
144+
LOGGER.error(ERR_MSG_DIALECT_INIT, e);
143145
}
144146

145147
shepherd = new RolapResultShepherd(getConfigValue(ConfigConstants.ROLAP_CONNECTION_SHEPHERD_THREAD_POLLING_INTERVAL, ConfigConstants.ROLAP_CONNECTION_SHEPHERD_THREAD_POLLING_INTERVAL_DEFAULT_VALUE, Long.class),
@@ -251,8 +253,8 @@ public AggregationFactory getAggragationFactory() {
251253

252254
@Override
253255
public Evaluator createEvaluator(Statement statement) {
254-
final RolapEvaluatorRoot root = new RolapEvaluatorRoot( statement );
255-
return new RolapEvaluator( root );
256+
final RolapEvaluatorRoot root = new RolapEvaluatorRoot(statement);
257+
return new RolapEvaluator(root);
256258
};
257259

258260
@Override

0 commit comments

Comments
 (0)