liangjun-jiang edited a comment on issue #4949:
URL: https://github.com/apache/skywalking/issues/4949#issuecomment-697617705


   I am facing the same issue.  A sample application to replicate this issue 
can be found:
   https://github.com/linkedin/datahub
   Of course, it is a big project so it would take some effort to understand 
it. 
   But if we just use one of its module: 
https://github.com/linkedin/datahub/tree/master/metadata-jobs/mce-consumer-job
   and run this module's jar file. I am seeing the same error reported.
   environment: 
   jdk 1.8.0
   skywalking version: 8.1.0
   
   
   ```
   o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception 
encountered during context initialization - cancelling refresh attempt: 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 
'org.springframework.context.annotation.internalConfigurationAnnotationProcessor':
 Instantiation of bean failed; nested exception is java.lang.ClassFormatError: 
Duplicate interface name 
"org/apache/skywalking/apm/agent/core/plugin/interceptor/enhance/EnhancedInstance"
 in class file org/springframework/beans/BeanWrapperImpl
   11:01:55.512 [main] ERROR o.s.boot.SpringApplication - Application run failed
   org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 
'org.springframework.context.annotation.internalConfigurationAnnotationProcessor':
 Instantiation of bean failed; nested exception is java.lang.ClassFormatError: 
Duplicate interface name 
"org/apache/skywalking/apm/agent/core/plugin/interceptor/enhance/EnhancedInstance"
 in class file org/springframework/beans/BeanWrapperImpl
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1318)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1213)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
        at 
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:90)
        at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:707)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:533)
        at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
        at 
com.linkedin.metadata.kafka.MceConsumerApplication.main(MceConsumerApplication.java:23)
   Caused by: java.lang.ClassFormatError: Duplicate interface name 
"org/apache/skywalking/apm/agent/core/plugin/interceptor/enhance/EnhancedInstance"
 in class file org/springframework/beans/BeanWrapperImpl
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:757)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
   Caused by: java.lang.ClassFormatError: Duplicate interface name 
"org/apache/skywalking/apm/agent/core/plugin/interceptor/enhance/EnhancedInstance"
 in class file org/springframework/beans/BeanWrapperImpl
   
   ```
   
   
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to