Skip to content

Cannot invoke "String.getBytes(java.nio.charset.Charset)" because "deviceId" is null. #12

@Inky19

Description

@Inky19

I am trying to open a TsFile generated with org.apache.tsfile 2.0.2 (from the Maven repo). However, when I load the file via the web interface, it hangs at 5% and the console contains the following error:

2025-06-03 10:09:21 [WARN] [org.apache.iotdb.tsfile.common.conf.TSFileDescriptor:126] - not found iotdb-engine.properties, use the default configs.
2025-06-03 10:09:21 [WARN] [org.apache.iotdb.tool.core.service.TsFileAnalyserV13:286] - TsFile /home/<user>/test.tsfile self-check cannot proceed at position 9, recovered, because : Cannot invoke "String.getBytes((java.nio.charset.Charset)" because "deviceId" is null.
2025-06-03 10:09:21 [ERROR] [org.apache.iotdb.tsfile.read.TsFileSequenceReader:280] - Something error happened while reading file metadata of file /home/<user>/test.tsfile

Exception in thread "Thread-2" java.lang.IllegalArgumentException: Invalid input: 34
    at org.apache iotdb.tsfile,file.metadata.enums.MetadataIndexNodeType.deserialize(MetadataIndexNodeType,java: 70)
    at org.apache.iotdb.tsfile.file.metadata.MetadataIndexNode.deserializeFrom(MetadataIndexNode.java:107)
    at org.apache.iotdb.tsfile.file.metadata.TsFileMetadata.deserializeFrom(TsFileMetadata.java:55)
    at org.apache.iotdb.tsfile.read.TsFileSequenceReader.readFileMetadata(TsFileSequenceReader.java:275)
    at org.apache.iotdb.tool.core.service.TsFileAnalyserV13$TsFileAnalysedToolReader.getAllTimeseriesMetadataWithOffset(TsFileAnalyserV13.java:1566)
    at org.apache.iotdb.tool.core.service.TsFileAnalyserV13.initTimeSeriesMetadataNodeAnalysed(TsFileAnalyserV13.java:330)
    at org.apache.iotdb.tool.core.service.TsFileAnalyserV13.lambda$new$0(TsFileAnalyserV13.java:116)
    at java.base/java.lang.Thread.run(Thread.java: 840)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions