-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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.ClassNotFoundException: org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.StaticMethodsInter #1298
Comments
I think we need your demo application to see what is happening. SkyWalking is used in many companies and projects widely. It is hard to assume this is bug from our release ways. I have following questions?
|
@wu-sheng thx for your reply. in my case , i want to connect SkyWalking in my IDEA . but it show me the exception as my question 1.i have downloaded lastest release 5.0.0-beta. 2.maybe future 3.how can i get the list? |
I am not sure what is happening. What do you mean about connecting from idea? Do you want to debug agent? First, please use official release to make your monitor works. Agent is very complex, don't try to understand that at the beginning. The list is the docs. Supported libraries, frameworks..... |
@zouyx Is there any update for this? |
IDEA is IntelliJ IDEA: The Java IDE for Professional Developers i have run SkyWalking successfully in Linux, but fail in IntelliJ IDEA , OS: windows. fail log as my question |
This is hard to know, we usually use Idea to develop for skywalking. But no such issue. |
I have got the same problem, which the project depends on elasticsearch-6.3.2 . May be the reason is ES6 not compatible with skywalking ? @wu-sheng |
Hi, Which version of skywalking? |
meet the same error too, above solution worked, thanks. |
thanks bro. |
Nice! Thanks bro! |
Please answer these questions before submitting your issue.
Question
when added jvm arguments : -javaagent:E:\agent\skywalking-agent.jar , can't start application.
Bug
SkyWalking:5.0.0 beta
JRE:jdk 1.8
Which company or project?
What happen?
My demo application error log as below:
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.MethodMatchers.(MethodMatchers.java)
... 49 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.skywalking.apm.dependencies.net.bytebuddy.dynamic.Nexus.initialize(Nexus.java:122)
... 54 common frames omitted
Caused by: java.lang.NoClassDefFoundError: Lorg/apache/skywalking/apm/agent/core/plugin/interceptor/enhance/StaticMethodsInter;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at java.lang.Class.getDeclaredField(Class.java:2068)
at org.apache.skywalking.apm.dependencies.net.bytebuddy.implementation.LoadedTypeInitializer$ForStaticField.onLoad(LoadedTypeInitializer.java:99)
at org.apache.skywalking.apm.dependencies.net.bytebuddy.implementation.LoadedTypeInitializer$Compound.onLoad(LoadedTypeInitializer.java:162)
at org.apache.skywalking.apm.dependencies.net.bytebuddy.agent.builder.AgentBuilder$InitializationStrategy$SelfInjection$Dispatcher$InjectingInitializer.onLoad(AgentBuilder.java:2841)
... 59 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.StaticMethodsInter
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 65 common frames omitted
Requirement or improvement
The text was updated successfully, but these errors were encountered: