jixuan1989 commented on issue #822: [IOTDB-502] Fix possible NPE in `org.apache.iotdb.db.service.TSServiceImpl` URL: https://github.com/apache/incubator-iotdb/pull/822#issuecomment-587490819 I tried. In this way, the start-client.sh tool will report: ``` IoTDB> Can not establish connection with jdbc:iotdb://127.0.0.1:6667/. Host is 127.0.0.1, port is 6667. ``` If we use JDCB like ``` Connection connection = DriverManager.getConnection("jdbc:iotdb://127.0.0.1:6667/", "root", "root") ``` then an exception will be thrown: ``` Exception in thread "main" java.sql.SQLException: Can not establish connection with jdbc:iotdb://127.0.0.1:6667/. at org.apache.iotdb.jdbc.IoTDBConnection.openSession(IoTDBConnection.java:435) at org.apache.iotdb.jdbc.IoTDBConnection.<init>(IoTDBConnection.java:84) at org.apache.iotdb.jdbc.IoTDBDriver.connect(IoTDBDriver.java:63) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:247) at org.apache.iotdb.JDBCExample.main(JDBCExample.java:32) Caused by: org.apache.thrift.TApplicationException: getTimeZone failed: unknown result at org.apache.iotdb.service.rpc.thrift.TSIService$Client.recv_getTimeZone(TSIService.java:405) at org.apache.iotdb.service.rpc.thrift.TSIService$Client.getTimeZone(TSIService.java:389) at org.apache.iotdb.jdbc.IoTDBConnection.getTimeZone(IoTDBConnection.java:475) at org.apache.iotdb.jdbc.IoTDBConnection.openSession(IoTDBConnection.java:431) ... 5 more ``` It is accepted, at least better than the current status.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
