You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
danielclow
changed the title
在OSGI环境下以Bundle形式运行中的程序中,驱动程序初始化时报错
driver fails to initialize when running as a bundle in an OSGi environment
Apr 26, 2024
Bug Description
在正常的Java程序中使用taos的JDBC驱动没有问题。
但是在OSGI环境下,以Bundle形式运行的程序中,taos的JDBC驱动在类加载的过程中失败。
原因分析:
在AbstractDatabaseMetaData初始化过程中,要读取jar包根目录下的taos-jdbc-version.properties文件,
在OSGI环境下调试变量值如下,导致if分支无法进入:
最终报错:
请看看是否可以调整读取配置文件的方式,可以同时支持OSGI Bundle运行场景。
JDBC驱动:
com.taosdata.jdbc
taos-jdbcdriver
3.2.9
TDengine版本:3.2.3.0
To Reproduce
Steps to reproduce the behavior:
Expected Behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: