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

com.mysql.cj.conf.PropertySet do not have getBooleanReadableProperty #2823

Open
1715640858 opened this issue Sep 21, 2018 · 5 comments
Open

Comments

@1715640858
Copy link

1715640858 commented Sep 21, 2018

I used the latest version:

	<dependency>
		<groupId>com.alibaba</groupId>
		<artifactId>druid</artifactId>
		<version>1.1.11</version>
	</dependency>
	<dependency>
		<groupId>mysql</groupId>
		<artifactId>mysql-connector-java</artifactId>
		<version>8.0.12</version>
	</dependency>

and error happened when start:

java.lang.NoSuchMethodException: com.mysql.cj.conf.PropertySet.getBooleanReadableProperty(java.lang.String)
	at java.lang.Class.getMethod(Unknown Source)
	at com.alibaba.druid.util.MySqlUtils.createXAConnection(MySqlUtils.java:119)

It's true, PropertySet do not have getBooleanReadableProperty

@1715640858
Copy link
Author

Permission to this denied to me

@cmonkey
Copy link

cmonkey commented Nov 23, 2018

mysql-connector-java 8.0.11 这个方法还是存在的,没有问题

比这个版本高的,没有看到这个方法了,你需要暂时降级版本到8.0.11

@lltx
Copy link

lltx commented Jun 8, 2019

emmm 降版本也不是个解决办法( ⊙ o ⊙ )!

@yuanshichao1988
Copy link

mysql降到8.0.11确实启动不报错了,还是希望官方修复issue

@Redliver
Copy link

Redliver commented Aug 7, 2019

mysql-connector-java 8.0.15 和之前的版本有级别为高的CVE漏洞

使用最新版本的druid 1.1.19 无法正常加载驱动,原因是mysql-connector-java-8.0.12 开始 PropertySet 里不再有 getBooleanReadableProperty 这个方法。

望官方修复。

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

5 participants