Skip to content

WARNING: An illegal reflective access operation has occurred #8

@cvarela

Description

@cvarela

Warning messages are displayed when running the application. This requires review to determine the change to be made to avoid incorrect operation with new Java versions.

Messages:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.dattack.jtoolbox.jdbc.DataSourceClasspathDecorator (file:/opt/bin/dbcopy/latest/lib/jtoolbox-core-0.3.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of com.dattack.jtoolbox.jdbc.DataSourceClasspathDecorator
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
May 24, 2021 1:12:01 PM com.dattack.jtoolbox.jdbc.DataSourceClasspathDecorator configureClasspath
WARNING: object is not an instance of declaring class

Environment:

$ java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-b09)
Eclipse OpenJ9 VM (build openj9-0.20.0, JRE 1.8.0 Mac OS X amd64-64-Bit Compressed References 20200416_527 (JIT enabled, AOT enabled)
OpenJ9   - 05fa2d361
OMR      - d4365f371
JCL      - cfa47e66cd based on jdk8u252-b09)

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions