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

java.lang.NoClassDefFoundError: org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPUFullInstr #209

Closed
ram3shpala opened this issue Jun 10, 2020 · 7 comments

Comments

@ram3shpala
Copy link

ram3shpala commented Jun 10, 2020

Describe the bug
Throws class not found exception WAS Liberty App Server, while CPU Profiling
ERROR Bundle:com.ibm.ws.event(id=13) java.lang.NoClassDefFoundError: org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPUFullInstr

To Reproduce
Steps to reproduce the behavior:
Open VisualVM

  1. Go to 'Profiler' tab
  2. Click on 'CPU'
  3. Navigate back to the application deployed on WAS Liberty App Server, Click on a link to fetch data
  4. The application is crached and throws exception :
    ERROR Bundle:com.ibm.ws.event(id=13) java.lang.NoClassDefFoundError: org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPUFullInstr

Expected behavior
Application shouldn't be crashed while CPU profiling

VisualVM log
This message is thrown by the Application Server Liberty:
ERROR Bundle:com.ibm.ws.event(id=13) java.lang.NoClassDefFoundError: org/graalvm/visualvm/lib/jfluid/server/ProfilerRuntimeCPUFullInstr

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
-visualvm_202

  • OS: [Windows 10]
  • JDK version [JDK 1.8.0_121]

Additional context

@thurka
Copy link
Member

thurka commented Jun 10, 2020

What is "WAS Liberty App Server"? Does it have some connection to JBoss/WildFly?

@ram3shpala
Copy link
Author

ram3shpala commented Jun 10, 2020

WebSphere Liberty is MicroProfile application server from IBM. For more info https://www.ibm.com/in-en/cloud/websphere-liberty

@thurka
Copy link
Member

thurka commented Jun 14, 2020

The error looks very similar to JBoss/WildFly. JBoss has to be started with "-Djboss.modules.system.pkgs=org.jboss.byteman,org.graalvm.visualvm.lib.jfluid.server" system property to allow loading of profiler classes from org.graalvm.visualvm.lib.jfluid.server package. Maybe something similar can be done for WebSphere Liberty because it also uses OSGI framerowk with boot delegation.

@ram3shpala
Copy link
Author

ram3shpala commented Jun 15, 2020

Thanks for update. Appreciate quick response.
Added -Dorg.osgi.framework.bootdelegation=org.graalvm.* to Liberty Server its working now.

@rjdkolb
Copy link

rjdkolb commented Dec 11, 2020

The only way this -Dorg.osgi.framework.bootdelegation=org.graalvm.* worked is by added this to my bootstrap.properties. It did not work when I made this a JVM arg when running the jar or adding it to my jvm.options file

@aIbrahiim
Copy link

I got the same error but with wildfly

@srl295
Copy link

srl295 commented Dec 29, 2023

The only way this -Dorg.osgi.framework.bootdelegation=org.graalvm.* worked is by added this to my bootstrap.properties. It did not work when I made this a JVM arg when running the jar or adding it to my jvm.options file

To be precise, adding the following to bootstrap.properties works for OpenLiberty.

org.osgi.framework.bootdelegation=org.graalvm.*

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