Quest DB 使用 Java 与线路协议 运行 教程数据插入失败
Quest DB failed to run tutorial data insertion using Java with line protocol
OS:Ubuntu 20.04.3 LTS
Java: openjdk 版本“17” 2021-09-14 | OpenJDK 运行时环境(build 17+35-2724)
库:实现组:'org.questdb',名称:'questdb',版本:'6.0.9'
每当我尝试 运行 样本时,它都会产生此错误:
> Task :LineTCPSenderMain.main() FAILED
Exception in thread "main" java.lang.ExceptionInInitializerError
at io.questdb.std.Unsafe.getFieldOffset(Unsafe.java:169)
at io.questdb.std.UnsafeProbe.probe(Unsafe.java:105)
at io.questdb.std.Unsafe.getOrdinaryObjectPointersCompressionStatus(Unsafe.java:119)
at io.questdb.std.Unsafe.AccessibleObject_override_fieldOffset(Unsafe.java:86)
at io.questdb.std.Unsafe.<clinit>(Unsafe.java:60)
at io.questdb.std.Numbers.<clinit>(Numbers.java:2397)
at io.questdb.std.AbstractCharSequenceHashSet.<init>(AbstractCharSequenceHashSet.java:45)
at io.questdb.std.CharSequenceObjHashMap.<init>(CharSequenceObjHashMap.java:45)
at io.questdb.std.CharSequenceObjHashMap.<init>(CharSequenceObjHashMap.java:40)
at io.questdb.std.CharSequenceObjHashMap.<init>(CharSequenceObjHashMap.java:36)
at io.questdb.log.LogFactory.<init>(LogFactory.java:51)
at io.questdb.log.LogFactory.<init>(LogFactory.java:62)
at io.questdb.log.LogFactory.<clinit>(LogFactory.java:40)
at io.questdb.cutlass.line.LineTcpSender.<clinit>(LineTcpSender.java:32)
at codes.rb.pricesloader.LineTCPSenderMain.main(LineTCPSenderMain.java:15)
Caused by: java.lang.NoSuchFieldException: intField
Caused by: java.lang.NoSuchFieldException: intField
at java.base/java.lang.Class.getDeclaredField(Class.java:2610)
at io.questdb.std.Unsafe.getFieldOffset(Unsafe.java:167)
... 14 more
QuestDB v6.0.9(及之前版本)在 Java 17 上不 运行。仅 Java 支持 11 或 8
OS:Ubuntu 20.04.3 LTS Java: openjdk 版本“17” 2021-09-14 | OpenJDK 运行时环境(build 17+35-2724) 库:实现组:'org.questdb',名称:'questdb',版本:'6.0.9'
每当我尝试 运行 样本时,它都会产生此错误:
> Task :LineTCPSenderMain.main() FAILED
Exception in thread "main" java.lang.ExceptionInInitializerError
at io.questdb.std.Unsafe.getFieldOffset(Unsafe.java:169)
at io.questdb.std.UnsafeProbe.probe(Unsafe.java:105)
at io.questdb.std.Unsafe.getOrdinaryObjectPointersCompressionStatus(Unsafe.java:119)
at io.questdb.std.Unsafe.AccessibleObject_override_fieldOffset(Unsafe.java:86)
at io.questdb.std.Unsafe.<clinit>(Unsafe.java:60)
at io.questdb.std.Numbers.<clinit>(Numbers.java:2397)
at io.questdb.std.AbstractCharSequenceHashSet.<init>(AbstractCharSequenceHashSet.java:45)
at io.questdb.std.CharSequenceObjHashMap.<init>(CharSequenceObjHashMap.java:45)
at io.questdb.std.CharSequenceObjHashMap.<init>(CharSequenceObjHashMap.java:40)
at io.questdb.std.CharSequenceObjHashMap.<init>(CharSequenceObjHashMap.java:36)
at io.questdb.log.LogFactory.<init>(LogFactory.java:51)
at io.questdb.log.LogFactory.<init>(LogFactory.java:62)
at io.questdb.log.LogFactory.<clinit>(LogFactory.java:40)
at io.questdb.cutlass.line.LineTcpSender.<clinit>(LineTcpSender.java:32)
at codes.rb.pricesloader.LineTCPSenderMain.main(LineTCPSenderMain.java:15)
Caused by: java.lang.NoSuchFieldException: intField
Caused by: java.lang.NoSuchFieldException: intField
at java.base/java.lang.Class.getDeclaredField(Class.java:2610)
at io.questdb.std.Unsafe.getFieldOffset(Unsafe.java:167)
... 14 more
QuestDB v6.0.9(及之前版本)在 Java 17 上不 运行。仅 Java 支持 11 或 8