Re: JAVA 11: "illegal reflective access" warning
Posted by SteveV on Mar 04, 2020; 3:05am
URL: https://forum.jogamp.org/JAVA-11-illegal-reflective-access-warning-tp4039322p4040410.html
I followed the instructions on your wiki. I noticed your site pointed to java3d 1.7.0-pre1, which is slightly different than what I had earlier downloaded. I am still having the same problem, although this time it seems to be extremely slow but less likely to hang completely. I also get an actual error message, below.
I am using this with swing, Canvas3D as a heavy-weight AWT component. I know this is sometimes not recommended, but it worked fine on an earlier Windows 7 and two even more ancient Windows Vista machines. JCanvas3D, which was a work-in-progress, used to not work.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jogamp.java3d.JoglPipeline (file:/C:/Users/stevevestal/Documents/SolidSystems/solidwork/java3d-1.7/j3dcore.jar) to method sun.awt.AppContext.getAppContext()
WARNING: Please consider reporting this to the maintainers of org.jogamp.java3d.JoglPipeline
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
com.jogamp.opengl.GLException: Error swapping buffers
at jogamp.opengl.windows.wgl.WindowsWGLDrawable.swapBuffersImpl(WindowsWGLDrawable.java:93)
at jogamp.opengl.GLDrawableImpl.swapBuffers(GLDrawableImpl.java:88)
at org.jogamp.java3d.JoglPipeline.swapBuffers(JoglPipeline.java:6787)
at org.jogamp.java3d.Canvas3D.swapBuffers(Canvas3D.java:4631)
at org.jogamp.java3d.Renderer.doWork(Renderer.java:267)
at org.jogamp.java3d.J3dThread.run(J3dThread.java:271)