Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.sql.SQLException: JNI ERROR (0x2354): Conn is broken #25851

Closed
fulin-peng-ydxs opened this issue May 20, 2024 · 1 comment
Closed

java.sql.SQLException: JNI ERROR (0x2354): Conn is broken #25851

fulin-peng-ydxs opened this issue May 20, 2024 · 1 comment
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@fulin-peng-ydxs
Copy link

使用java客户端:3.2.3

com.taosdata.jdbc
taos-jdbcdriver
3.2.3

连接相同版本的数据库报错:JNI ERROR (0x2354): Conn is broken

    String jdbcUrl = "jdbc:TAOS://xxxx:6030?user=root&password=taosdata";
    Properties connProps = new Properties();
    Connection conn = DriverManager.getConnection(jdbcUrl, connProps);
    System.out.println("Connected");
    conn.close();

值得注意的是我使用相同版本linux客户端却可以正常连接!!!!
Welcome to the TDengine Command Line Interface, Client Version:3.2.3.0
Copyright (c) 2023 by TDengine, all rights reserved.

******************************** Tab Completion ************************************

  • The TDengine CLI supports tab completion for a variety of items, *
  • including database names, table names, function names and keywords. *
  • The full list of shortcut keys is as follows: *
  • [ TAB ] ...... complete the current word *
  •               ......  if used on a blank line, display all supported commands  *
    
  • [ Ctrl + A ] ...... move cursor to the st[A]rt of the line *
  • [ Ctrl + E ] ...... move cursor to the [E]nd of the line *
  • [ Ctrl + W ] ...... move cursor to the middle of the line *
  • [ Ctrl + L ] ...... clear the entire screen *
  • [ Ctrl + K ] ...... clear the screen after the cursor *
  • [ Ctrl + U ] ...... clear the screen before the cursor *

Server is Community Edition.

taos>

@fulin-peng-ydxs fulin-peng-ydxs added help wanted Extra attention is needed question Further information is requested labels May 20, 2024
@yu285
Copy link
Contributor

yu285 commented May 22, 2024

image
按照这个对应关系

@yu285 yu285 closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants