TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

java.sql.SQLException: TDengine Error: invalid resultset pointer

Open Chaexsy opened this issue 6 years ago • 7 comments

Bug Description 查询数据量较大时(13列数据,数据条数 > 1020条)抛 java.sql.SQLException: TDengine Error: invalid resultset pointer! 异常。 无论是使用原生JDBC还是Druid连接池都会出现这个问题。

修改 按照论坛方案,修改服务端配置 shellActivityTimer 为20后,还是不能解决,打印的错误日志如下: image

按照论坛另一个方案,修改服务的和客户端得连接为TCP后,JVM报错,截图如下: image

目前找不到其他解决方案。

Expected Behavior 解决此问题的方案。

Environment (please complete the following information):

  • OS: Server:CentOS7.2,Client:win10 home。
  • Memory 16G, CPU-4, current Disk Space
  • TDengine Version [1.6.6.0-Linux-x64]
  • JDK1.8

Chaexsy avatar Jul 02 '20 09:07 Chaexsy

OK, we'll check it.

Aries-Lee1991 avatar Jul 03 '20 06:07 Aries-Lee1991

Hi, @Chaexsy can you share your code and table schema, we will try to reproduce it.

xiaopingcs avatar Jul 15 '20 07:07 xiaopingcs

Hi: Thank you for your willingness to solve my problem。 My code has been typed into. Zip package,which is attached。

My main test class is TestTao.java, and my create table function is as follows picture:

and my insert data function is as follows picture:

and my query function is as follow picture:

At 2020-07-15 15:54:49, "Xiao Ping" [email protected] wrote:

Hi, @Chaexsy can you share your code and table schema, we will try to reproduce it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

Chaexsy avatar Jul 16 '20 01:07 Chaexsy

cannot see your code or pictures, can you double check? or send to my email: [email protected]

xiaopingcs avatar Jul 16 '20 06:07 xiaopingcs

I have sent a email to [email protected], please check it.

At 2020-07-16 14:29:53, "Xiao Ping" [email protected] wrote:

cannot see your code or pictures, can you double check? or send to my email: [email protected]

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

Chaexsy avatar Jul 16 '20 07:07 Chaexsy

Not able to reproduce your problem, please make sure your taosd is started. And use stmt.executeUpdate("use testdb") before your query. I am closing this issue, if you have other questions, please open a new one. Screen Shot 2020-07-18 at 2 16 13 PM Screen Shot 2020-07-18 at 2 17 04 PM

xiaopingcs avatar Jul 18 '20 06:07 xiaopingcs

update your tdengine and jdbc-taosdriver to the lastest version to fix this issue

zyyang90 avatar Mar 22 '21 02:03 zyyang90