taosdata / TDengine

High-performance, scalable time-series database designed for Industrial IoT (IIoT) scenarios
https://tdengine.com
GNU Affero General Public License v3.0
23.33k stars 4.85k forks source link

TDEngine3.0 subscription error in JDBC #16477

Closed lixiaopenglidapeng closed 5 months ago

lixiaopenglidapeng commented 2 years ago

创建了一个topic叫t_703216a_tem_gt_35,想订阅这个topic的数据,下面是写的测试代码

@Test
    public void subTopic() throws SQLException {
        // create consumer
        Properties properties = new Properties();
        properties.setProperty("enable.auto.commit", "true");
        properties.setProperty("auto.commit.interval.ms", "1000");
        properties.setProperty("group.id", "test");
        properties.setProperty("bootstrap.servers", "192.168.3.202:6030");
        properties.setProperty("td.connect.user", "root");
        properties.setProperty("td.connect.pass", "taosdata");
        properties.setProperty("auto.offset.reset", "earliest");
        properties.setProperty("msg.with.table.name", "true");
        TaosConsumer consumer = new TaosConsumer<>(properties);
        consumer.subscribe(Collections.singletonList("t_703216a_tem_gt_35"));
        while (true) {
            ConsumerRecords meters = consumer.poll(Duration.ofMillis(100));
            for (Object meter : meters) {
                String s = JSON.toJSONString(meter);
                System.out.println(s);
            }
        }
    }

报错如下 image

sangshuduo commented 2 years ago

请参考:https://docs.taosdata.com/connector/java/#%E6%95%B0%E6%8D%AE%E8%AE%A2%E9%98%85

lixiaopenglidapeng commented 2 years ago

请参考:https://docs.taosdata.com/connector/java/#%E6%95%B0%E6%8D%AE%E8%AE%A2%E9%98%85

我目前用官网示例和自己的demo都遇到一个问题,订阅阻塞后,我插入数据,应该是订阅回调了,但是jvm崩溃了,错误信息如下:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000005815a1ce, pid=43288, tid=0x0000000000009b74
#
# JRE version: Java(TM) SE Runtime Environment (8.0_161-b12) (build 1.8.0_161-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.161-b12 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V  [jvm.dll+0x14a1ce]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\15400\Desktop\ɽԴ�Ƽ�\����ƽ̨����\iot_platform\iot-service\rule-service\hs_err_pid43288.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
Disconnected from the target VM, address: '127.0.0.1:63332', transport: 'socket'
lixiaopenglidapeng commented 2 years ago

请参考:https://docs.taosdata.com/connector/java/#%E6%95%B0%E6%8D%AE%E8%AE%A2%E9%98%85

hs_err_pid43288.log文件内容如下:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000005815a1ce, pid=43288, tid=0x0000000000009b74
#
# JRE version: Java(TM) SE Runtime Environment (8.0_161-b12) (build 1.8.0_161-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.161-b12 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V  [jvm.dll+0x14a1ce]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x000000000289d800):  JavaThread "main" [_thread_in_vm, id=39796, stack(0x0000000002790000,0x0000000002890000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000000

Registers:
RAX=0x0000000000000000, RBX=0x0000000000000000, RCX=0x0000000000000d80, RDX=0x0000000000000000
RSP=0x000000000288de90, RBP=0x000000000288e0c8, RSI=0x000000000289d9f8, RDI=0x000000000289d800
R8 =0x0000000000000000, R9 =0x0000000000000040, R10=0x00007ff990f40000, R11=0x00007ff9913b676d
R12=0x0000000000000000, R13=0x000000002563afe0, R14=0x000000000288e118, R15=0x000000000289d800
RIP=0x000000005815a1ce, EFLAGS=0x0000000000010246

Top of Stack: (sp=0x000000000288de90)
0x000000000288de90:   000000002be7a6d0 0000000000000001
0x000000000288dea0:   0000000000000000 0000000000000000
0x000000000288deb0:   000000002be7a6d0 00007ff990f70d4c
0x000000000288dec0:   000000002be7a6d0 00007ff990f7292d
0x000000000288ded0:   000000002be7a6d0 000000002d5e6580
0x000000000288dee0:   000000002be7a6d0 000000000289d800
0x000000000288def0:   0000000000000000 00007ff990f7292d
0x000000000288df00:   000000002be7a6d0 0000000000000000
0x000000000288df10:   0000000000000000 00007ff990f71a38
0x000000000288df20:   000000002be7a860 00007ff990f70e22
0x000000000288df30:   000000002be7a6d0 00007ff990f70d83
0x000000000288df40:   000000002be7a6d0 0000000000000000
0x000000000288df50:   0000000000066a40 0000000000000000
0x000000000288df60:   000000002563afe8 00007ff990f583ba
0x000000000288df70:   000000002be7a6d0 000000000288dfbc
0x000000000288df80:   0000000000000000 0000000000000040 

Instructions: (pc=0x000000005815a1ce)
0x000000005815a1ae:   00 48 83 7f 08 00 48 89 7c 24 58 48 c7 44 24 60
0x000000005815a1be:   00 00 00 00 74 0a 48 8d 4c 24 58 e8 e2 1d 13 00
0x000000005815a1ce:   48 8b 0b e8 ea e8 f1 ff 4c 8b c7 33 d2 48 8b d8
0x000000005815a1de:   48 8b 00 48 8b cb ff 50 78 48 83 7f 08 00 74 04 

Register to memory mapping:

RAX=0x0000000000000000 is an unknown value
RBX=0x0000000000000000 is an unknown value
RCX=0x0000000000000d80 is an unknown value
RDX=0x0000000000000000 is an unknown value
RSP=0x000000000288de90 is pointing into the stack for thread: 0x000000000289d800
RBP=0x000000000288e0c8 is pointing into the stack for thread: 0x000000000289d800
RSI=0x000000000289d9f8 is an unknown value
RDI=0x000000000289d800 is a thread
R8 =0x0000000000000000 is an unknown value
R9 =0x0000000000000040 is an unknown value
R10=0x00007ff990f40000 is an unknown value
R11=0x00007ff9913b676d is an unknown value
R12=0x0000000000000000 is an unknown value
R13=0x000000002563afe0 is pointing into metadata
R14=0x000000000288e118 is pointing into the stack for thread: 0x000000000289d800
R15=0x000000000289d800 is a thread

Stack: [0x0000000002790000,0x0000000002890000],  sp=0x000000000288de90,  free space=1015k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x14a1ce]
C  [taos.dll+0x183ba]
C  0x0000000002b717b0

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.taosdata.jdbc.tmq.TMQConnector.fetchRawBlockImp(JJLcom/taosdata/jdbc/TSDBResultSetBlockData;Ljava/util/List;)I+0
j  com.taosdata.jdbc.tmq.TMQConnector.fetchBlock(JLcom/taosdata/jdbc/TSDBResultSetBlockData;Ljava/util/List;)I+9
j  com.taosdata.jdbc.tmq.TMQResultSet.next()Z+28
J 701 C1 com.taosdata.jdbc.tmq.TaosConsumer.poll(Ljava/time/Duration;)Lcom/taosdata/jdbc/tmq/ConsumerRecords; (390 bytes) @ 0x0000000002fcd6ac [0x0000000002fcc9a0+0xd0c]
j  com.shsany.rule.test.TaosTestWithoutSpring.subTopic()V+96
v  ~StubRoutines::call_stub
j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+100
j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+56
j  org.junit.runners.model.FrameworkMethod$1.runReflectiveCall()Ljava/lang/Object;+15
j  org.junit.internal.runners.model.ReflectiveCallable.run()Ljava/lang/Object;+1
j  org.junit.runners.model.FrameworkMethod.invokeExplosively(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+10
j  org.junit.internal.runners.statements.InvokeMethod.evaluate()V+12
j  org.junit.runners.ParentRunner$3.evaluate()V+4
j  org.junit.runners.BlockJUnit4ClassRunner$1.evaluate()V+11
j  org.junit.runners.ParentRunner.runLeaf(Lorg/junit/runners/model/Statement;Lorg/junit/runner/Description;Lorg/junit/runner/notification/RunNotifier;)V+17
j  org.junit.runners.BlockJUnit4ClassRunner.runChild(Lorg/junit/runners/model/FrameworkMethod;Lorg/junit/runner/notification/RunNotifier;)V+38
j  org.junit.runners.BlockJUnit4ClassRunner.runChild(Ljava/lang/Object;Lorg/junit/runner/notification/RunNotifier;)V+6
j  org.junit.runners.ParentRunner$4.run()V+12
j  org.junit.runners.ParentRunner$1.schedule(Ljava/lang/Runnable;)V+1
j  org.junit.runners.ParentRunner.runChildren(Lorg/junit/runner/notification/RunNotifier;)V+44
j  org.junit.runners.ParentRunner.access$100(Lorg/junit/runners/ParentRunner;Lorg/junit/runner/notification/RunNotifier;)V+2
j  org.junit.runners.ParentRunner$2.evaluate()V+8
j  org.junit.runners.ParentRunner$3.evaluate()V+4
j  org.junit.runners.ParentRunner.run(Lorg/junit/runner/notification/RunNotifier;)V+24
j  org.junit.runner.JUnitCore.run(Lorg/junit/runner/Runner;)Lorg/junit/runner/Result;+37
j  com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs([Ljava/lang/String;Ljava/lang/String;IZ)I+166
j  com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(Lcom/intellij/rt/junit/IdeaTestRunner;[Ljava/lang/String;Ljava/util/ArrayList;Ljava/lang/String;IZ)I+22
j  com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart([Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;Ljava/lang/String;)I+116
j  com.intellij.rt.junit.JUnitStarter.main([Ljava/lang/String;)V+97
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x0000000029b79800 JavaThread "Service Thread" daemon [_thread_blocked, id=44488, stack(0x000000002a9a0000,0x000000002aaa0000)]
  0x0000000029af9000 JavaThread "C1 CompilerThread11" daemon [_thread_blocked, id=44740, stack(0x000000002a8a0000,0x000000002a9a0000)]
  0x0000000029af8000 JavaThread "C1 CompilerThread10" daemon [_thread_blocked, id=43452, stack(0x000000002a6a0000,0x000000002a7a0000)]
  0x0000000029af7800 JavaThread "C1 CompilerThread9" daemon [_thread_blocked, id=29584, stack(0x000000002a5a0000,0x000000002a6a0000)]
  0x0000000029af3000 JavaThread "C1 CompilerThread8" daemon [_thread_blocked, id=41052, stack(0x000000002a4a0000,0x000000002a5a0000)]
  0x0000000029af4800 JavaThread "C2 CompilerThread7" daemon [_thread_blocked, id=46420, stack(0x000000002a3a0000,0x000000002a4a0000)]
  0x0000000029aea000 JavaThread "C2 CompilerThread6" daemon [_thread_blocked, id=45432, stack(0x000000002a2a0000,0x000000002a3a0000)]
  0x0000000029ad9800 JavaThread "C2 CompilerThread5" daemon [_thread_blocked, id=42472, stack(0x000000002a1a0000,0x000000002a2a0000)]
  0x0000000029ad0800 JavaThread "C2 CompilerThread4" daemon [_thread_blocked, id=33380, stack(0x000000002a0a0000,0x000000002a1a0000)]
  0x0000000029aca000 JavaThread "C2 CompilerThread3" daemon [_thread_blocked, id=45252, stack(0x0000000029fa0000,0x000000002a0a0000)]
  0x0000000029aaf800 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=40164, stack(0x0000000029ea0000,0x0000000029fa0000)]
  0x0000000029aaf000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=39964, stack(0x0000000029da0000,0x0000000029ea0000)]
  0x0000000029aae000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=4824, stack(0x0000000029ca0000,0x0000000029da0000)]
  0x0000000027692000 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=43872, stack(0x00000000293a0000,0x00000000294a0000)]
  0x0000000027687800 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=39568, stack(0x00000000292a0000,0x00000000293a0000)]
  0x000000002767a800 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=41420, stack(0x00000000291a0000,0x00000000292a0000)]
  0x0000000027670800 JavaThread "Attach Listener" daemon [_thread_blocked, id=43408, stack(0x00000000290a0000,0x00000000291a0000)]
  0x0000000027616000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=46704, stack(0x0000000028fa0000,0x00000000290a0000)]
  0x00000000275ec000 JavaThread "Finalizer" daemon [_thread_blocked, id=44944, stack(0x0000000028e40000,0x0000000028f40000)]
  0x0000000025b99000 JavaThread "Reference Handler" daemon [_thread_blocked, id=44172, stack(0x0000000028d40000,0x0000000028e40000)]
=>0x000000000289d800 JavaThread "main" [_thread_in_vm, id=39796, stack(0x0000000002790000,0x0000000002890000)]

Other Threads:
  0x0000000025b8d800 VMThread [stack: 0x0000000028c40000,0x0000000028d40000] [id=46676]
  0x000000002aadb800 WatcherThread [stack: 0x000000002ba70000,0x000000002bb70000] [id=46876]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap:
 PSYoungGen      total 150016K, used 44754K [0x0000000718b00000, 0x0000000723200000, 0x00000007c0000000)
  eden space 129024K, 34% used [0x0000000718b00000,0x000000071b6b4990,0x0000000720900000)
  from space 20992K, 0% used [0x0000000721d80000,0x0000000721d80000,0x0000000723200000)
  to   space 20992K, 0% used [0x0000000720900000,0x0000000720900000,0x0000000721d80000)
 ParOldGen       total 343040K, used 0K [0x00000005ca000000, 0x00000005def00000, 0x0000000718b00000)
  object space 343040K, 0% used [0x00000005ca000000,0x00000005ca000000,0x00000005def00000)
 Metaspace       used 8154K, capacity 8376K, committed 8576K, reserved 1056768K
  class space    used 958K, capacity 1027K, committed 1152K, reserved 1048576K

Card table byte_map: [0x0000000011f10000,0x0000000012ed0000] byte_map_base: 0x000000000f0c0000

Marking Bits: (ParMarkBitMap*) 0x000000005882f860
 Begin Bits: [0x0000000014650000, 0x000000001c3d0000)
 End Bits:   [0x000000001c3d0000, 0x0000000024150000)

Polling page: 0x0000000000510000

CodeCache: size=245760Kb used=4631Kb max_used=4631Kb free=241128Kb
 bounds [0x0000000002b50000, 0x0000000002fe0000, 0x0000000011b50000]
 total_blobs=1039 nmethods=710 adapters=248
 compilation: enabled

Compilation events (10 events):
Event: 29.346 Thread 0x0000000029af8000  705       3       com.taosdata.jdbc.tmq.ConsumerRecords::iterator (9 bytes)
Event: 29.346 Thread 0x0000000029af3000  706       3       com.taosdata.jdbc.tmq.ConsumerRecords$1::<init> (31 bytes)
Event: 29.346 Thread 0x0000000029af9000  707       3       com.taosdata.jdbc.tmq.ConsumerRecords$1::hasNext (59 bytes)
Event: 29.347 Thread 0x0000000029af3000 nmethod 706 0x0000000002fd2350 code [0x0000000002fd24e0, 0x0000000002fd2878]
Event: 29.347 Thread 0x0000000029af8000 nmethod 705 0x0000000002fd2a10 code [0x0000000002fd2ba0, 0x0000000002fd2ff8]
Event: 29.347 Thread 0x0000000029af9000 nmethod 707 0x0000000002fd31d0 code [0x0000000002fd3380, 0x0000000002fd3a58]
Event: 245.007 Thread 0x0000000029af7800  709   !   3       java.util.zip.ZipFile::getInflater (56 bytes)
Event: 245.007 Thread 0x0000000029af3000  710       3       java.util.zip.InflaterInputStream::<init> (79 bytes)
Event: 245.008 Thread 0x0000000029af3000 nmethod 710 0x0000000002fd3fd0 code [0x0000000002fd41a0, 0x0000000002fd4898]
Event: 245.008 Thread 0x0000000029af7800 nmethod 709 0x0000000002fd4bd0 code [0x0000000002fd4dc0, 0x0000000002fd59d8]

GC Heap History (0 events):
No events

Deoptimization events (1 events):
Event: 1.337 Thread 0x000000000289d800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000002e2ba6c method=java.lang.String.indexOf([CII[CIII)I @ 3

Classes redefined (0 events):
No events

Internal exceptions (10 events):
Event: 1.306 Thread 0x000000000289d800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x000000071af9f060) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u161\10277\hotspot\src\share\vm\prims\methodHandles.cpp, line 1167]
Event: 1.358 Thread 0x000000000289d800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x000000071b2555d8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u161\10277\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605]
Event: 1.358 Thread 0x000000000289d800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x000000071b259678) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u161\10277\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605]
Event: 1.358 Thread 0x000000000289d800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x000000071b25b5a8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u161\10277\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605]
Event: 1.359 Thread 0x000000000289d800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x000000071b265980) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u161\10277\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605]
Event: 1.366 Thread 0x000000000289d800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x000000071b297360) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u161\10277\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605]
Event: 1.366 Thread 0x000000000289d800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x000000071b298e38) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u161\10277\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605]
Event: 1.367 Thread 0x000000000289d800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x000000071b29c928) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u161\10277\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605]
Event: 1.371 Thread 0x000000000289d800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x000000071b2d0cb0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u161\10277\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605]
Event: 1.381 Thread 0x000000000289d800 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0x000000071b319508) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u161\10277\hotspot\src\share\vm\runtime\sharedRuntime.cpp, line 605]

Events (10 events):
Event: 245.010 Thread 0x000000000289d800 DEOPT PACKING pc=0x0000000002eb2b84 sp=0x000000000288cea0
Event: 245.010 Thread 0x000000000289d800 DEOPT UNPACKING pc=0x0000000002b97490 sp=0x000000000288ccc0 mode 1
Event: 245.010 Executing VM operation: RevokeBias
Event: 245.010 Executing VM operation: RevokeBias done
Event: 245.010 Thread 0x000000000289d800 DEOPT PACKING pc=0x0000000002eb291c sp=0x000000000288d030
Event: 245.010 Thread 0x000000000289d800 DEOPT UNPACKING pc=0x0000000002b97490 sp=0x000000000288ce50 mode 1
Event: 245.011 loading class java/sql/SQLDataException
Event: 245.011 loading class java/sql/SQLNonTransientException
Event: 245.011 loading class java/sql/SQLNonTransientException done
Event: 245.011 loading class java/sql/SQLDataException done

Dynamic libraries:
0x00007ff690bc0000 - 0x00007ff690bf7000     E:\Java\jdk1.8.0_161\bin\java.exe
0x00007ffa2a2d0000 - 0x00007ffa2a4c8000     C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ffa288c0000 - 0x00007ffa2897d000     C:\WINDOWS\System32\KERNEL32.DLL
0x00007ffa27b40000 - 0x00007ffa27e0e000     C:\WINDOWS\System32\KERNELBASE.dll
0x00007ffa291b0000 - 0x00007ffa2925e000     C:\WINDOWS\System32\ADVAPI32.dll
0x00007ffa29260000 - 0x00007ffa292fe000     C:\WINDOWS\System32\msvcrt.dll
0x00007ffa2a160000 - 0x00007ffa2a1fc000     C:\WINDOWS\System32\sechost.dll
0x00007ffa299e0000 - 0x00007ffa29b05000     C:\WINDOWS\System32\RPCRT4.dll
0x00007ffa29b90000 - 0x00007ffa29d30000     C:\WINDOWS\System32\USER32.dll
0x00007ffa28300000 - 0x00007ffa28322000     C:\WINDOWS\System32\win32u.dll
0x00007ffa29660000 - 0x00007ffa2968a000     C:\WINDOWS\System32\GDI32.dll
0x00007ffa28150000 - 0x00007ffa2825b000     C:\WINDOWS\System32\gdi32full.dll
0x00007ffa28260000 - 0x00007ffa282fd000     C:\WINDOWS\System32\msvcp_win.dll
0x00007ffa27a40000 - 0x00007ffa27b40000     C:\WINDOWS\System32\ucrtbase.dll
0x00007ffa12280000 - 0x00007ffa1251a000     C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e\COMCTL32.dll
0x00007ffa2a050000 - 0x00007ffa2a080000     C:\WINDOWS\System32\IMM32.DLL
0x00000000588b0000 - 0x0000000058982000     E:\Java\jdk1.8.0_161\jre\bin\msvcr100.dll
0x0000000058010000 - 0x00000000588af000     E:\Java\jdk1.8.0_161\jre\bin\server\jvm.dll
0x00007ffa29840000 - 0x00007ffa29848000     C:\WINDOWS\System32\PSAPI.DLL
0x00007ffa1e280000 - 0x00007ffa1e2a7000     C:\WINDOWS\SYSTEM32\WINMM.dll
0x00007ffa20f70000 - 0x00007ffa20f7a000     C:\WINDOWS\SYSTEM32\VERSION.dll
0x00007ffa108e0000 - 0x00007ffa108e9000     C:\WINDOWS\SYSTEM32\WSOCK32.dll
0x00007ffa29b10000 - 0x00007ffa29b7b000     C:\WINDOWS\System32\WS2_32.dll
0x000000005a450000 - 0x000000005a45f000     E:\Java\jdk1.8.0_161\jre\bin\verify.dll
0x0000000057fe0000 - 0x0000000058009000     E:\Java\jdk1.8.0_161\jre\bin\java.dll
0x0000000059040000 - 0x0000000059075000     E:\Java\jdk1.8.0_161\jre\bin\jdwp.dll
0x0000000059030000 - 0x0000000059038000     E:\Java\jdk1.8.0_161\jre\bin\npt.dll
0x0000000059000000 - 0x0000000059023000     E:\Java\jdk1.8.0_161\jre\bin\instrument.dll
0x0000000057fc0000 - 0x0000000057fd6000     E:\Java\jdk1.8.0_161\jre\bin\zip.dll
0x00007ffa289e0000 - 0x00007ffa29124000     C:\WINDOWS\System32\SHELL32.dll
0x00007ffa25730000 - 0x00007ffa25ec4000     C:\WINDOWS\SYSTEM32\windows.storage.dll
0x00007ffa29300000 - 0x00007ffa29654000     C:\WINDOWS\System32\combase.dll
0x00007ffa27430000 - 0x00007ffa27460000     C:\WINDOWS\SYSTEM32\Wldp.dll
0x00007ffa29930000 - 0x00007ffa299dd000     C:\WINDOWS\System32\SHCORE.dll
0x00007ffa29130000 - 0x00007ffa29185000     C:\WINDOWS\System32\shlwapi.dll
0x00007ffa27930000 - 0x00007ffa2794f000     C:\WINDOWS\SYSTEM32\profapi.dll
0x0000000058ff0000 - 0x0000000058ff9000     E:\Java\jdk1.8.0_161\jre\bin\dt_socket.dll
0x00007ffa27150000 - 0x00007ffa271ba000     C:\WINDOWS\system32\mswsock.dll
0x00007ff990f40000 - 0x00007ff991a87000     E:\java\jdk1.8.0_161\jre\bin\taos.dll
0x00007ffa29de0000 - 0x00007ffa29f0a000     C:\WINDOWS\System32\ole32.dll
0x00007ffa26e10000 - 0x00007ffa26e4b000     C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
0x00007ffa278b0000 - 0x00007ffa278de000     C:\WINDOWS\SYSTEM32\USERENV.dll
0x00007ffa272f0000 - 0x00007ffa272fc000     C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL
0x0000000058fe0000 - 0x0000000058fed000     E:\java\jdk1.8.0_161\jre\bin\management.dll
0x0000000057fa0000 - 0x0000000057fba000     E:\java\jdk1.8.0_161\jre\bin\net.dll
0x0000000057f80000 - 0x0000000057f91000     E:\java\jdk1.8.0_161\jre\bin\nio.dll
0x00007ffa26220000 - 0x00007ffa26232000     C:\WINDOWS\SYSTEM32\kernel.appcore.dll
0x00007ffa27fe0000 - 0x00007ffa28062000     C:\WINDOWS\System32\bcryptPrimitives.dll
0x00007ffa27300000 - 0x00007ffa27318000     C:\WINDOWS\SYSTEM32\CRYPTSP.dll
0x00007ffa26a80000 - 0x00007ffa26ab4000     C:\WINDOWS\system32\rsaenh.dll
0x00007ffa28120000 - 0x00007ffa28147000     C:\WINDOWS\System32\bcrypt.dll
0x00007ffa278e0000 - 0x00007ffa27912000     C:\WINDOWS\SYSTEM32\SspiCli.dll
0x00007ffa05fe0000 - 0x00007ffa05ff7000     C:\WINDOWS\system32\napinsp.dll
0x00007ffa05fc0000 - 0x00007ffa05fdb000     C:\WINDOWS\system32\pnrpnsp.dll
0x00007ffa22a30000 - 0x00007ffa22a45000     C:\WINDOWS\system32\wshbth.dll
0x00007ffa22ee0000 - 0x00007ffa22efd000     C:\WINDOWS\system32\NLAapi.dll
0x00007ffa26e50000 - 0x00007ffa26f1a000     C:\WINDOWS\SYSTEM32\DNSAPI.dll
0x00007ffa2a040000 - 0x00007ffa2a048000     C:\WINDOWS\System32\NSI.dll
0x00007ffa05fa0000 - 0x00007ffa05fb2000     C:\WINDOWS\System32\winrnr.dll
0x00007ffa1e7f0000 - 0x00007ffa1e7fa000     C:\Windows\System32\rasadhlp.dll
0x00007ffa1caa0000 - 0x00007ffa1cb20000     C:\WINDOWS\System32\fwpuclnt.dll
0x00007ffa26f30000 - 0x00007ffa26f7b000     C:\WINDOWS\SYSTEM32\powrprof.dll
0x00007ffa26df0000 - 0x00007ffa26e02000     C:\WINDOWS\SYSTEM32\UMPDC.dll
0x00007ffa25070000 - 0x00007ffa2510e000     C:\WINDOWS\system32\uxtheme.dll
0x00007ffa26010000 - 0x00007ffa261f4000     C:\WINDOWS\SYSTEM32\dbghelp.dll

VM Arguments:
jvm_args: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:63332,suspend=y,server=n -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:C:\Users\15400\Desktop\常用\ideaIU-2020.2.2.win\plugins\java\lib\rt\debugger-agent.jar -Dfile.encoding=UTF-8 
java_command: com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 com.shsany.rule.test.TaosTestWithoutSpring,subTopic
java_class_path (initial): C:\Users\15400\Desktop\常用\ideaIU-2020.2.2.win\lib\idea_rt.jar;C:\Users\15400\Desktop\常用\ideaIU-2020.2.2.win\plugins\junit\lib\junit5-rt.jar;C:\Users\15400\Desktop\常用\ideaIU-2020.2.2.win\plugins\junit\lib\junit-rt.jar;E:\java\jdk1.8.0_161\jre\lib\charsets.jar;E:\java\jdk1.8.0_161\jre\lib\deploy.jar;E:\java\jdk1.8.0_161\jre\lib\ext\access-bridge-64.jar;E:\java\jdk1.8.0_161\jre\lib\ext\cldrdata.jar;E:\java\jdk1.8.0_161\jre\lib\ext\dnsns.jar;E:\java\jdk1.8.0_161\jre\lib\ext\jaccess.jar;E:\java\jdk1.8.0_161\jre\lib\ext\jfxrt.jar;E:\java\jdk1.8.0_161\jre\lib\ext\localedata.jar;E:\java\jdk1.8.0_161\jre\lib\ext\nashorn.jar;E:\java\jdk1.8.0_161\jre\lib\ext\sunec.jar;E:\java\jdk1.8.0_161\jre\lib\ext\sunjce_provider.jar;E:\java\jdk1.8.0_161\jre\lib\ext\sunmscapi.jar;E:\java\jdk1.8.0_161\jre\lib\ext\sunpkcs11.jar;E:\java\jdk1.8.0_161\jre\lib\ext\zipfs.jar;E:\java\jdk1.8.0_161\jre\lib\javaws.jar;E:\java\jdk1.8.0_161\jre\lib\jce.jar;E:\java\jdk1.8.0_161\jre\lib\jfr.jar;E:\java\jdk1.8.0_161\jre\lib\jfxswt.jar;E:\java\jdk1.8.0_161\jre\lib\jsse.jar;E:\java\jdk1.8.0_161\jre\lib\management-agent.jar;E:\java\jdk1.8.0_161\jre\lib\plugin.jar;E:\java\jdk1.8.0_161\jre\lib\resources.jar;E:\java\jdk1.8.0_161\jre\lib\rt.jar;C:\Users\15400\Desktop\山源科技\物联平台代码\iot_platform\iot-service\rule-service\target\test-classes;C:\Users\15400\Desktop\山源科技\物联平台代码\iot_platform\iot-service\rule-service\target\classes;E:\java\jarRepository\com\taosdata\jdbc\taos-jdbcdriver\3.0.0\taos-jdbcdriver-3.0.0.jar;E:\java\jarRepository\org\apache\httpcomponents\httpclient\4.5.12\httpclient-4.5.12.jar;E:\java\jarRepository\org\apache\httpcomponents\httpcore\4.4.13\httpcore-4.4.13.jar;E:\java\jarRepository\commons-codec\commons-codec\1.14\commons-codec-1.14.jar;E:\java\jarRepository\org\java-websocket\Java-WebSocket\1.5.2\Java-WebSocket-1.5.2.jar;E:\java\jarRepository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-discovery\2.2.4.RELEASE\spring-cloud-starter-al
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=E:\java\jdk1.8.0_161
PATH=C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\libnvvp;C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts;E:\Python27;E:\xftp\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;E:\java\jdk1.8.0_161\bin;E:\Git\cmd;E:\sqlite;E:\ffmpeg-n4.3.1-18-g6d886b6586-win64-gpl-4.3\bin;C:\MinGW\bin;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;E:\mysql-8.0.22-winx64\bin;C:\Program Files\dotnet\;C:\Users\15400\AppData\Roaming\nvm;C:\Program Files\nodejs;E:\CMake\bin;E:\apache-maven-3.6.3\bin;C:\Program Files\OpenSSL-Win64\bin;C:\Program Files\NVIDIA Corporation\Nsight Compute 2021.1.1\;E:\Emscripten\node\0.12.2_64bit;E:\huchuan\EasyShare\x86\;E:\huchuan\EasyShare\x64\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;E:\protoc-3.20.1-win64\bin;C:\Program Files\TortoiseSVN\bin;C:\Users\15400\.windows-build-tools\python27\;C:\Users\15400\AppData\Local\Microsoft\WindowsApps;E:\Microsoft VS Code\bin;E:\mysql-8.0.22-winx64\bin;C:\Users\15400\.dotnet\tools;C:\Users\15400\AppData\Roaming\nvm;C:\Program Files\nodejs;E:\Emscript\emsdk-main;E:\Emscript\emsdk-main\node\14.15.5_64bit\bin;E:\Emscript\emsdk-main\upstream\emscripten;C:\Users\15400\AppData\Local\Microsoft\WindowsApps;E:\DataGrip 2021.3.4\bin;;E:\protoc-3.20.1-win64\bin;C:\Program Files (x86)\Nmap
USERNAME=15400
OS=Windows_NT
PROCESSOR_IDENTIFIER=AMD64 Family 23 Model 96 Stepping 1, AuthenticAMD

---------------  S Y S T E M  ---------------

OS: Windows 10.0 , 64 bit Build 19041 (10.0.19041.1889)

CPU:total 16 (initial active 16) (16 cores per cpu, 1 threads per core) family 23 model 96 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, mmxext, 3dnowpref, lzcnt, sse4a, tsc, tscinvbit, tscinv, bmi1

Memory: 4k page, physical 32896324k(14020600k free), swap 53867844k(19642724k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (25.161-b12) for windows-amd64 JRE (1.8.0_161-b12), built on Dec 19 2017 17:52:25 by "java_re" with MS VC++ 10.0 (VS2010)

time: Mon Aug 29 16:07:53 2022
elapsed time: 245 seconds (0d 0h 4m 5s)
huolibo commented 2 years ago

由于一些变量在创建连接时进行初始化,当单独使用订阅功能时 jni 中部分变量未初始化。已修改详见:[#16498]

sanliang125 commented 2 years ago

我也遇到了相同的问题,甚至直接导致了数据库服务的宕机。

huolibo commented 2 years ago

@sanliang125 两个解决方案,1. 使用 TDengine 源代码编译后的动态库代替项目中的动态库文件。2. 暂时在使用 TMQ 时增加一些创建连接的语句,使 jni 中的初始化代码可以得到执行。