You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Haonan Hou (Jira)" <ji...@apache.org> on 2022/05/09 02:36:00 UTC
[jira] [Commented] (IOTDB-1196) use this path :paths.add(new Path("device_1.sensor_1")) for query and got java.lang.NullPointerException
[ https://issues.apache.org/jira/browse/IOTDB-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17533585#comment-17533585 ]
Haonan Hou commented on IOTDB-1196:
-----------------------------------
This issue may be fixed in 0.13, please check it.
> 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: Core/TsFile
> Reporter: 刘珍
> Assignee: Haonan Hou
> Priority: Minor
>
> master branch
> commit 6694c5d70ff78bd1b67768b147514ec57a168990
> Author: Yifu Zhou <ef...@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.20.7#820007)