java.lang.LinkageError: loader (instance of com/google/appengine/tools/development/IsolatedAppClassLoader): attempted duplicate class definition for name: "com/thecompany/theproject/uifacade/web/http/RequestScopedContext$$EnhancerBySpringCGLIB$$c8b76c25"

Spring JIRA | Steve Roy | 1 year ago
  1. 0

    Hi, We are receiving an error after upgrading to Spring 4 during bean initialization attempted duplicate class definition for name This bean happens to be an AOP scoped proxy, but other beans that are not receive the same error. Here is the top of the stack trace: java.lang.LinkageError: loader (instance of com/google/appengine/tools/development/IsolatedAppClassLoader): attempted duplicate class definition for name: "com/thecompany/theproject/uifacade/web/http/RequestScopedContext$$EnhancerBySpringCGLIB$$c8b76c25" at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:130) at org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384) at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219) at org.springframework.cglib.proxy.Enhancer.createHelper(Enhancer.java:377) at org.springframework.cglib.proxy.Enhancer.create(Enhancer.java:285) [Stack trace truncated for brevity]

    Spring JIRA | 1 year ago | Steve Roy
    java.lang.LinkageError: loader (instance of com/google/appengine/tools/development/IsolatedAppClassLoader): attempted duplicate class definition for name: "com/thecompany/theproject/uifacade/web/http/RequestScopedContext$$EnhancerBySpringCGLIB$$c8b76c25"
  2. 0

    Hi, We are receiving an error after upgrading to Spring 4 during bean initialization attempted duplicate class definition for name This bean happens to be an AOP scoped proxy, but other beans that are not receive the same error. Here is the top of the stack trace: java.lang.LinkageError: loader (instance of com/google/appengine/tools/development/IsolatedAppClassLoader): attempted duplicate class definition for name: "com/thecompany/theproject/uifacade/web/http/RequestScopedContext$$EnhancerBySpringCGLIB$$c8b76c25" at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:130) at org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384) at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219) at org.springframework.cglib.proxy.Enhancer.createHelper(Enhancer.java:377) at org.springframework.cglib.proxy.Enhancer.create(Enhancer.java:285) [Stack trace truncated for brevity]

    Spring JIRA | 1 year ago | Steve Roy
    java.lang.LinkageError: loader (instance of com/google/appengine/tools/development/IsolatedAppClassLoader): attempted duplicate class definition for name: "com/thecompany/theproject/uifacade/web/http/RequestScopedContext$$EnhancerBySpringCGLIB$$c8b76c25"
  3. 0

    Tomcat 8 failing to start with global jndi data source

    GitHub | 2 years ago | tim-oe
    javassist.CannotCompileException: by java.lang.LinkageError: loader (instance of org/apache/catalina/loader/WebappClassLoader): attempted duplicate class definition for name: "com/codahale/metrics/MetricRegistry"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Gradle plugin does not support parallel builds

    GitHub | 3 years ago | ben-manes
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':domain:service:distributiongroup:flywayValidate'.
  6. 0

    Problem with wildfly 8.2: java.lang.LinkageError: loader constraint violation

    GitHub | 2 years ago | KIC
    org.jboss.resteasy.spi.UnhandledException: java.lang.LinkageError: loader constraint violation: when resolving method "com.mindbusters.cms.module.news.service.NewsService.test()Lcom/mindbusters/cms/module/news/beans/AggregatedNews;" the class loader (instance of sun/reflect/DelegatingClassLoader) of the current class, sun/reflect/GeneratedMethodAccessor41, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for the method's defining class, com/mindbusters/cms/module/news/service/NewsService, have different Class objects for the type com/mindbusters/cms/module/news/beans/AggregatedNews used in the signature

  1. Malcshour 2 times, last 6 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.LinkageError

    loader (instance of com/google/appengine/tools/development/IsolatedAppClassLoader): attempted duplicate class definition for name: "com/thecompany/theproject/uifacade/web/http/RequestScopedContext$$EnhancerBySpringCGLIB$$c8b76c25"

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    Method.invoke
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    3. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    4. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    5. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    6. java.lang.reflect.Method.invoke(Method.java:606)
    6 frames
  3. com.google.appengine
    Runtime.invoke
    1. com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:130)
    1 frame
  4. Spring Core
    Enhancer.create
    1. org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384)
    2. org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
    3. org.springframework.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
    4. org.springframework.cglib.proxy.Enhancer.create(Enhancer.java:285)
    4 frames