org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in testjd.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is grails.plugins.exceptions.PluginException: Error initialising plugin for class [grails.plugin.cache.CacheGrailsPlugin]:javassist/util/proxy/ProxyFactory$ClassLoaderProvider

GitHub | cihanzengin | 3 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Failed to initialize class [org.grails.plugins.filterpane.test.BookController] from plugin [filterpane] : org.grails.plugins.filterpane.test.BookController

    GitHub | 1 year ago | kschmit90
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in myApp.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is grails.plugins.exceptions.PluginException: Failed to initialize class [org.grails.plugins.filterpane.test.BookController] from plugin [filterpane] : org.grails.plugins.filterpane.test.BookController
  2. 0

    [3.1.1] Parent class methods are not registered as controller actions

    GitHub | 1 year ago | droggo
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in abstractparentcontroller.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class abstractparentcontroller.SpecificAppController] of type [class org.grails.core.DefaultGrailsControllerClass]: InvocationTargetException
  3. 0
    samebug tip
    If you want to keep using @EnableWebMvc annotation, you have to add the code on the first answer of this page: https://goo.gl/JoHTKU to your code
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Springboot auto-configuration is disabled when you try to use WebMvcConfigurerAdapter and @EnableWebMvc. If WebConfig is not of the essence, remove it and use SpringBoot auto-configuration.
  6. 0

    Grails 3.2.0.M2 spring security exception on application startup

    Stack Overflow | 8 months ago | Sap
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in workspace.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is java.lang.NoClassDefFoundError: grails/plugin/springsecurity/ControllerMixin

  1. batwalrus76 3 times, last 2 weeks ago
  2. rsprangemeijer 1 times, last 3 weeks ago
  3. andyglick 2 times, last 1 month ago
  4. bamboomy 1 times, last 2 months ago
  5. Handemelindo 4 times, last 3 months ago
9 more registered users
86 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.ClassNotFoundException

    javassist.util.proxy.ProxyFactory$ClassLoaderProvider

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    8. java.lang.ClassLoader.defineClass1(Native Method)
    9. java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    10. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    11. java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    12. java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    13. java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    14. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    15. java.security.AccessController.doPrivileged(Native Method)
    16. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    17. java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    18. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    19. java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    19 frames
  3. grails.plugin.cache
    CacheGrailsPlugin.<clinit>
    1. grails.plugin.cache.CacheGrailsPlugin.<clinit>(CacheGrailsPlugin.groovy:36)
    1 frame
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    4 frames
  5. Springloaded
    ReflectiveInterceptor.jlrConstructorNewInstance
    1. org.springsource.loaded.ri.ReflectiveInterceptor.jlrConstructorNewInstance(ReflectiveInterceptor.java:1075)
    1 frame
  6. Grails
    GrailsAutoConfiguration.grailsApplicationPostProcessor
    1. org.grails.core.AbstractGrailsClass.newInstance(AbstractGrailsClass.java:119)
    2. org.grails.plugins.DefaultGrailsPlugin.initialisePlugin(DefaultGrailsPlugin.java:177)
    3. org.grails.plugins.DefaultGrailsPlugin.<init>(DefaultGrailsPlugin.java:122)
    4. org.grails.plugins.DefaultGrailsPlugin.<init>(DefaultGrailsPlugin.java:320)
    5. org.grails.plugins.BinaryGrailsPlugin.<init>(BinaryGrailsPlugin.java:72)
    6. grails.plugins.DefaultGrailsPluginManager.createBinaryGrailsPlugin(DefaultGrailsPluginManager.java:375)
    7. grails.plugins.DefaultGrailsPluginManager.findCorePlugins(DefaultGrailsPluginManager.java:362)
    8. grails.plugins.DefaultGrailsPluginManager.attemptLoadPlugins(DefaultGrailsPluginManager.java:314)
    9. grails.plugins.DefaultGrailsPluginManager.loadPlugins(DefaultGrailsPluginManager.java:224)
    10. grails.boot.config.GrailsApplicationPostProcessor.initializeGrailsApplication(GrailsApplicationPostProcessor.groovy:89)
    11. grails.boot.config.GrailsApplicationPostProcessor.setApplicationContext(GrailsApplicationPostProcessor.groovy:225)
    12. grails.boot.config.GrailsApplicationPostProcessor.<init>(GrailsApplicationPostProcessor.groovy:77)
    13. grails.boot.config.GrailsAutoConfiguration.grailsApplicationPostProcessor(GrailsAutoConfiguration.groovy:69)
    13 frames
  7. testjd
    Application.grailsApplicationPostProcessor
    1. testjd.Application.grailsApplicationPostProcessor(Application.groovy)
    1 frame
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:601)
    4 frames
  9. Springloaded
    ReflectiveInterceptor.jlrMethodInvoke
    1. org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1426)
    1 frame
  10. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
    2. org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1128)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1022)
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    7. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    8. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    9. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
    10 frames
  11. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:115)
    2. org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)
    3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:524)
    3 frames
  12. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)
    3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
    4 frames
  13. Grails
    GrailsApp$run.call
    1. grails.boot.GrailsApp.run(GrailsApp.groovy:83)
    2. grails.boot.GrailsApp.run(GrailsApp.groovy:387)
    3. grails.boot.GrailsApp.run(GrailsApp.groovy:374)
    4. grails.boot.GrailsApp$run.call(Unknown Source)
    4 frames
  14. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
    3 frames
  15. testjd
    Application.main
    1. testjd.Application.main(Application.groovy:8)
    1 frame