org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileRegistrar' defined in org.springframework.cloud.stream.config.codec.kryo.KryoCodecAutoConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.codec.kryo.KryoRegistrar]: Factory method 'fileRegistrar' threw exception; nested exception is java.lang.NoClassDefFoundError: org/objenesis/strategy/InstantiatorStrategy

GitHub | alexkolson | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 1908#238265774

    GitHub | 8 months ago | alexkolson
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileRegistrar' defined in org.springframework.cloud.stream.config.codec.kryo.KryoCodecAutoConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.codec.kryo.KryoRegistrar]: Factory method 'fileRegistrar' threw exception; nested exception is java.lang.NoClassDefFoundError: org/objenesis/strategy/InstantiatorStrategy
  2. 0

    ..JavaBendeR...: Spring Examples & Logging Exceptions

    blogspot.com | 1 year ago
    java.lang.NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException
  3. 0

    ..JavaBendeR...: October 2014

    blogspot.com | 1 year ago
    java.lang.NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Adding Spring Cloud Consul dependencies to Spring Boot POM causes exceptions when running, after compiling

    Stack Overflow | 10 months ago | Seephor
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
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

    org.objenesis.strategy.InstantiatorStrategy

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:372)[?:1.8.0_05]
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:361)[?:1.8.0_05]
    3. java.security.AccessController.doPrivileged(Native Method)[?:1.8.0_05]
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:360)[?:1.8.0_05]
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:424)[?:1.8.0_05]
    5 frames
  3. Spring Boot Loader
    LaunchedURLClassLoader.loadClass
    1. org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:89)[cas-management.war:5.0.0.M3]
    1 frame
  4. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:357)[?:1.8.0_05]
    1 frame
  5. org.springframework.integration
    AbstractKryoRegistrar.<clinit>
    1. org.springframework.integration.codec.kryo.AbstractKryoRegistrar.<clinit>(AbstractKryoRegistrar.java:35)[spring-integration-core-4.3.0.RELEASE.jar!/:4.3.0.RELEASE]
    1 frame
  6. org.springframework.cloud
    KryoCodecAutoConfiguration$$EnhancerBySpringCGLIB$$f1c41e78$$FastClassBySpringCGLIB$$7753b721.invoke
    1. org.springframework.cloud.stream.config.codec.kryo.KryoCodecAutoConfiguration.fileRegistrar(KryoCodecAutoConfiguration.java:61)[spring-cloud-stream-codec-1.0.0.RELEASE.jar!/:1.0.0.RELEASE]
    2. org.springframework.cloud.stream.config.codec.kryo.KryoCodecAutoConfiguration$$EnhancerBySpringCGLIB$$f1c41e78.CGLIB$fileRegistrar$0(<generated>)[spring-cloud-stream-codec-1.0.0.RELEASE.jar!/:1.0.0.RELEASE]
    3. org.springframework.cloud.stream.config.codec.kryo.KryoCodecAutoConfiguration$$EnhancerBySpringCGLIB$$f1c41e78$$FastClassBySpringCGLIB$$7753b721.invoke(<generated>)[spring-cloud-stream-codec-1.0.0.RELEASE.jar!/:1.0.0.RELEASE]
    3 frames
  7. Spring Core
    MethodProxy.invokeSuper
    1. org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)[spring-core-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    1 frame
  8. Spring Context
    ConfigurationClassEnhancer$BeanMethodInterceptor.intercept
    1. org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)[spring-context-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    1 frame
  9. org.springframework.cloud
    KryoCodecAutoConfiguration$$EnhancerBySpringCGLIB$$f1c41e78.fileRegistrar
    1. org.springframework.cloud.stream.config.codec.kryo.KryoCodecAutoConfiguration$$EnhancerBySpringCGLIB$$f1c41e78.fileRegistrar(<generated>)[spring-cloud-stream-codec-1.0.0.RELEASE.jar!/:1.0.0.RELEASE]
    1 frame
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_05]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_05]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_05]
    4. java.lang.reflect.Method.invoke(Method.java:483)[?:1.8.0_05]
    4 frames
  11. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)[spring-beans-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    2. org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)[spring-beans-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)[spring-beans-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)[spring-beans-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)[spring-beans-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    7. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    8. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    9. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    11. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:775)[spring-beans-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    11 frames
  12. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)[spring-context-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)[spring-context-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    2 frames
  13. Spring Boot
    SpringApplicationBuilder.run
    1. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)[spring-boot-1.4.0.RC1.jar!/:1.4.0.RC1]
    2. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)[spring-boot-1.4.0.RC1.jar!/:1.4.0.RC1]
    3. org.springframework.boot.SpringApplication.run(SpringApplication.java:313)[spring-boot-1.4.0.RC1.jar!/:1.4.0.RC1]
    4. org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)[spring-boot-1.4.0.RC1.jar!/:1.4.0.RC1]
    4 frames
  14. org.springframework.cloud
    OutputBindingLifecycle.start
    1. org.springframework.cloud.stream.binder.DefaultBinderFactory.getBinder(DefaultBinderFactory.java:156)[spring-cloud-stream-1.0.0.RELEASE.jar!/:1.0.0.RELEASE]
    2. org.springframework.cloud.stream.binding.ChannelBindingService.getBinderForChannel(ChannelBindingService.java:142)[spring-cloud-stream-1.0.0.RELEASE.jar!/:1.0.0.RELEASE]
    3. org.springframework.cloud.stream.binding.ChannelBindingService.bindProducer(ChannelBindingService.java:104)[spring-cloud-stream-1.0.0.RELEASE.jar!/:1.0.0.RELEASE]
    4. org.springframework.cloud.stream.binding.BindableProxyFactory.bindOutputs(BindableProxyFactory.java:205)[spring-cloud-stream-1.0.0.RELEASE.jar!/:1.0.0.RELEASE]
    5. org.springframework.cloud.stream.binding.OutputBindingLifecycle.start(OutputBindingLifecycle.java:57)[spring-cloud-stream-1.0.0.RELEASE.jar!/:1.0.0.RELEASE]
    5 frames
  15. Spring Context
    AbstractApplicationContext.finishRefresh
    1. org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:173)[spring-context-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    2. org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)[spring-context-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    3. org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:346)[spring-context-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    4. org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:149)[spring-context-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    5. org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:112)[spring-context-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    6. org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:874)[spring-context-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    6 frames
  16. Spring Boot
    EmbeddedWebApplicationContext.finishRefresh
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)[spring-boot-1.4.0.RC1.jar!/:1.4.0.RC1]
    1 frame
  17. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)[spring-context-4.3.1.RELEASE.jar!/:4.3.1.RELEASE]
    1 frame
  18. Spring Boot
    SpringApplicationBuilder.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.0.RC1.jar!/:1.4.0.RC1]
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)[spring-boot-1.4.0.RC1.jar!/:1.4.0.RC1]
    3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)[spring-boot-1.4.0.RC1.jar!/:1.4.0.RC1]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:313)[spring-boot-1.4.0.RC1.jar!/:1.4.0.RC1]
    5. org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)[spring-boot-1.4.0.RC1.jar!/:1.4.0.RC1]
    5 frames
  19. org.apereo.cas
    CasManagementWebApplication$AjcClosure1.run
    1. org.apereo.cas.mgmt.web.CasManagementWebApplication.main_aroundBody0(CasManagementWebApplication.java:58)[cas-management-webapp-support-5.0.0.M3.jar!/:5.0.0.M3]
    2. org.apereo.cas.mgmt.web.CasManagementWebApplication$AjcClosure1.run(CasManagementWebApplication.java:1)[cas-management-webapp-support-5.0.0.M3.jar!/:5.0.0.M3]
    2 frames
  20. AspectJ runtime
    JoinPointImpl.proceed
    1. org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)[aspectjrt-1.8.9.jar!/:?]
    1 frame
  21. org.apereo.inspektr
    TraceLogAspect.traceMethod
    1. org.apereo.inspektr.aspect.TraceLogAspect.traceMethod(TraceLogAspect.java:74)[inspektr-aspects-1.5.GA.jar!/:1.5.GA]
    1 frame
  22. org.apereo.cas
    CasManagementWebApplication.main
    1. org.apereo.cas.mgmt.web.CasManagementWebApplication.main(CasManagementWebApplication.java:57)[cas-management-webapp-support-5.0.0.M3.jar!/:5.0.0.M3]
    1 frame
  23. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_05]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_05]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_05]
    4. java.lang.reflect.Method.invoke(Method.java:483)[?:1.8.0_05]
    4 frames
  24. Spring Boot Loader
    WarLauncher.main
    1. org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)[cas-management.war:5.0.0.M3]
    2. org.springframework.boot.loader.Launcher.launch(Launcher.java:87)[cas-management.war:5.0.0.M3]
    3. org.springframework.boot.loader.Launcher.launch(Launcher.java:50)[cas-management.war:5.0.0.M3]
    4. org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)[cas-management.war:5.0.0.M3]
    4 frames