-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Illegal reflective access operation to constructor sun.security.provider.Sun() #510
Comments
Interesting,I've fixed it so you should no longer see the exception (funnily enough it's code for pre-1.9 JVMs that triggers this, so it was a simple change). It's now in the latest beta (162b13 or later) |
fyi, I've bcprov-jdk15on version 1.62 release installed ... and am still seeing this^^ behvior on app launch (fwiw, currently, 'kcadm.sh' from keycloak) afaict (?), nothing adverse ... other than the warning |
What is the text of the messsage? |
as example, if 'app' is keycloak v7.0.0's "kcadm.sh",
where, atm
otoh, if I
then
|
It is not possible to use the BouncyCastleFipsProvider and the BouncyCastleProvider in the same class path. The error is coming from BouncyCastleProvider but I suspect there is an earlier version in the class path somewhere. You'd only see this is SecureRandom.getInstanceStrong() does not exist or there's an exception trying to access it (which is probably possible given that the two BC provider jars will not get along). |
fwiw, reducing to just
doesn't cure the issue; WARNINGS appear as above. |
There's still something odd about this - if SecureRandom.getInstanceStrong() exists in the JVM you shouldn't see the warning as the access will never take place. Are you absolutely sure another version of BC hasn't crept into the classpath somewhere? Also which JVM is this on? |
I agree about the 'odd' bit. There's 'only one' system-wide version of BC installed -- by me. That's v1.62, into the usual "/usr/share/java/bc*.jar" locations. That said, the reason I'm trying to get this to behave is that keycloak currently includes BC 1.60 -- supposedly loaded dynamically at runtime as a jboss module -- and affects the running server. Whether that 'creeps in' somewhere/how -- TBH, I'm not yet sure. Still poking around trying to figure out what's what ...
ATM, here
|
not sure if this is a useful check for that,
|
It's in Java 12 - it appears it points at the blocking NativePRNG which is what would be expected. |
whatever the issue, so far it appears to be unique to 'kcadm.sh' usage ... jboss-cli.sh, also from the keycloak distrib, isn't similarly complaining. |
Sorry if I post the duplicate, but to my surprise, I couldn't find any issue for illegal reflective access...
My program is using bcprov-jdk15on version 1.61
After starting it with JDK 12 I've got the following warting:
The library is still working, but it is suggested, such illegal access might be blocked in next JDK versions.
It might be a tip of an iceberg, because JDK reports only first illegal access.
The text was updated successfully, but these errors were encountered: