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.getPassword());
            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.nabble.com/kylin-jdbc-meet-exception-tp7368p7473.html
Sent from the Apache Kylin mailing list archive at Nabble.com.

Reply via email to