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

Getting NoClassDefFoundError: org/json/JSONException #27

Open
asafkiv opened this issue Nov 2, 2023 · 1 comment
Open

Getting NoClassDefFoundError: org/json/JSONException #27

asafkiv opened this issue Nov 2, 2023 · 1 comment

Comments

@asafkiv
Copy link

asafkiv commented Nov 2, 2023

Hi. Trying to use the extension, I'm getting these errors in the agent log:
ERROR TasksExecutionServiceProvider-WMQMonitor - Unforeseen error or exception happened
java.lang.NoClassDefFoundError: org/json/JSONException
at com.appdynamics.extensions.webspheremq.WMQMonitorTask.initMQQueueManager(WMQMonitorTask.java:91) ~[?:?]
at com.appdynamics.extensions.webspheremq.WMQMonitorTask.run(WMQMonitorTask.java:64) ~[?:?]
at com.appdynamics.extensions.TasksExecutionServiceProvider$1.run(TasksExecutionServiceProvider.java:48) [?:?]
at com.appdynamics.extensions.executorservice.MonitorThreadPoolExecutor$TaskRunnable.run(MonitorThreadPoolExecutor.java:113) [?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.lang.ClassNotFoundException: org.json.JSONException
at com.singularity.ee.util.loader.FileSystemClassLoader.findClass(FileSystemClassLoader.java:372) ~[agent-23.8.0-116.jar:?]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
at com.singularity.ee.util.loader.FileSystemClassLoader.loadClass(FileSystemClassLoader.java:320) ~[agent-23.8.0-116.jar:?]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
... 9 more

Any Idea how to fix that ?

Thanks!

@arpit0105
Copy link

download the jar and add to classpath:

wget https://repo1.maven.org/maven2/org/json/json/20210307/json-20210307.jar -O json.jar

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

2 participants