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

第二次调用一个执行了多次查询的方法会报Unable to establish connection #55

Open
A-Fly-108 opened this issue Jan 4, 2024 · 1 comment

Comments

@A-Fly-108
Copy link

当一个方法内调用了多次查询
1
微信图片_20240104110004
微信图片_20240104110146
xml配置文件:

<!--  TDengine配置  -->
<bean id="druidDataSource" class="com.alibaba.druid.pool.DruidDataSource">
    <property name="driverClassName" value="com.taosdata.jdbc.TSDBDriver"></property>
    <property name="url" value="jdbc:TAOS://taos.gnss.Singapore:****/gnssdbxjp"></property>
    <property name="username" value="****"></property>
    <property name="password" value="***********"></property>
    <property name="initialSize" value="3"></property>
    <property name="minIdle" value="3"></property>
    <property name="maxActive" value="20"></property>
    <property name="maxWait" value="60000"></property>
    <property name="validationQuery" value="select server_status()"></property>
</bean>

报错日志:
QQ截图20240104110556

当一个方法内执行多次查询,第二次调用这个方法时就会报Unable to establish connection无法建立连接。版本是3.2.0

@A-Fly-108
Copy link
Author

当我用的host配置的192.168.*.* taos.gnss.Singapore路径会有问题
但是将配置改成真实ip就不会有上述问题
微信图片_20240105091952

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant