刘珍 created IOTDB-1196: ------------------------- Summary: use this path :paths.add(new Path("device_1.sensor_1")) for query and got java.lang.NullPointerException Key: IOTDB-1196 URL: https://issues.apache.org/jira/browse/IOTDB-1196 Project: Apache IoTDB Issue Type: Bug Components: Client/Java Reporter: 刘珍
master branch commit 6694c5d70ff78bd1b67768b147514ec57a168990 Author: Yifu Zhou <efuu1...@gmail.com> Date: Wed Mar 10 10:56:04 2021 +0800 Update the SeedUrl Format Exception Info when using cluster mode (#2786) 《IOTDB用户手册- 0.12-snapshot-20210305.pdf》 P115 7.6.2.4 读取现有 TsFile 示例 /** * The class is to show how to read TsFile file named "test.tsfile". The TsFile file "test.tsfile" * is generated from class TsFileWriteWithTSRecord or TsFileWriteWithTablet. Run * TsFileWriteWithTSRecord or TsFileWriteWithTablet to generate the test.tsfile first */ Run this class,got the exception: Exception in thread "main" java.lang.NullPointerException at java.util.TreeMap.getEntry(TreeMap.java:347) at java.util.TreeMap.containsKey(TreeMap.java:232) at org.apache.iotdb.tsfile.read.controller.MetadataQuerierByFileImpl.loadChunkMetaDatas(MetadataQuerierByFileImpl.java:95) at org.apache.iotdb.tsfile.read.query.executor.TsFileExecutor.execute(TsFileExecutor.java:70) at org.apache.iotdb.tsfile.read.ReadOnlyTsFile.query(ReadOnlyTsFile.java:47) at org.apache.iotdb.tsfile.TsFileRead_pdf.queryAndPrint(TsFileRead_pdf.java:40) at org.apache.iotdb.tsfile.TsFileRead_pdf.main(TsFileRead_pdf.java:59) Change "paths.add(new Path("device_1.sensor_1"));" into "paths.add(new Path("device_1", "sensor_1"));" the result set is right. -- This message was sent by Atlassian Jira (v8.3.4#803005)