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
For all programs we use a JPMS framework that creates a JPMS layer for every component. So, we have framework in boot layer and in one child layer we have a component with JavaFX modules, our JavaFX application etc.
Now I want to use scenic-view with our JavaFX application. I downloaded scenic-view for linux, added x permission to java and scenicView files and run it. After that I started our program (JPMS framework + JavaFX application in child JPMS layer). This is what I have:
from scenicView:
Platform running
Launching ScenicView v21.0.1
Startup done
Creating server
Server done
Number of running Java applications found: 2
Obtaining properties for Java application with PID:10273
0 JavaFX applications found
Loading agent from: /home/pavel/Programs/scenicview/lib/scenicview.jar
com.sun.tools.attach.AgentInitializationException: Agent JAR loaded but agent failed to initialize
at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.loadAgent(Unknown Source)
at org.scenicview.scenicview/org.fxconnector.remote.RemoteConnectorImpl.loadAgent(Unknown Source)
at org.scenicview.scenicview/org.fxconnector.remote.RemoteConnectorImpl$3.run(Unknown Source)
from JPMS program:
Starting component xxxxx-1.0.0 Exception in thread "Attach Listener" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:560)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:582)
Caused by: java.lang.NoClassDefFoundError: javafx/collections/ListChangeListener
at org.fxconnector.remote.RuntimeAttach.init(RuntimeAttach.java:85)
at org.fxconnector.remote.RuntimeAttach.agentmain(RuntimeAttach.java:58)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 3 more
Caused by: java.lang.ClassNotFoundException: javafx.collections.ListChangeListener
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
... 6 more
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message Outstanding error when calling method in invokeJavaAgentMainMethod at open/src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 627
*** java.lang.instrument ASSERTION FAILED ***: "success" with message invokeJavaAgentMainMethod failed at open/src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 466
*** java.lang.instrument ASSERTION FAILED ***: "success" with message startJavaAgent failed at open/src/java.instrument/share/native/libinstrument/InvocationAdapter.c line: 444
Agent failed to start!
Could anyone say how it can be fixed?
The text was updated successfully, but these errors were encountered:
For all programs we use a JPMS framework that creates a JPMS layer for every component. So, we have framework in boot layer and in one child layer we have a component with JavaFX modules, our JavaFX application etc.
Now I want to use scenic-view with our JavaFX application. I downloaded scenic-view for linux, added
x
permission tojava
andscenicView
files and run it. After that I started our program (JPMS framework + JavaFX application in child JPMS layer). This is what I have:from scenicView:
from JPMS program:
Could anyone say how it can be fixed?
The text was updated successfully, but these errors were encountered: