Could you prepare the code which could reproduce the issue?

2017-03-19 1:36 GMT-07:00 yangchao <ychao...@163.com>:

> private KylinRepoDO makeKylinRepoDO() {
>         KylinRepoDO kylinRepoDO = null;
>         try {
>             driver = (Driver)
> Class.forName(aresDataSourceConfig.getDriverClassName()).newInstance();
>             properties = new Properties();
>             properties.put("user", aresDataSourceConfig.getUsername());
>             properties.put("password", aresDataSourceConfig.getPasswo
> rd());
>             conn = driver.connect(aresDataSourceConfig.getUrl(),
> properties);
>             state = conn.createStatement();
>             kylinRepoDO = new KylinRepoDO(driver, properties, conn, state);
>         } catch (Exception e) {
>             logger.error("kylin config=" +
> JSON.toJSONString(aresDataSourceConfig) + " meet exception: " +
> e.getMessage());
>             try {
>                 if (state != null) {
>                     state.close();
>                 }
>                 if (conn != null) {
>                     conn.close();
>                 }
>             } catch (Exception e1) {
>                 logger.error("db close meet exception", e1.getMessage());
>             }
>         }
>         return kylinRepoDO;
>     }
>
> --
> View this message in context: http://apache-kylin.74782.x6.n
> abble.com/kylin-jdbc-meet-exception-tp7368p7473.html
> Sent from the Apache Kylin mailing list archive at Nabble.com.
>

Reply via email to