AnsweredAssumed Answered

JRebel + Community Manager Plugin = NoClassDefFoundError?

Question asked by bergerle on Apr 7, 2015

Hi everyone,

 

after a pause of some weeks I started working on a Jive 6 plugin again. The plugin I'm developing depends on the extended analytics database created by the Community Manager Reports Plugin. We use JRebel to avoid countless redeploys while developing.

Not I noticed a severe issue: As soon as I enable both JRebel and the Community Manager plugin, I get an error while starting my instance (stack trace below)

 

As soon as i disable either of the two, I can start my instance without any errors.

Does anyone have a solution for this, or at least an idea for what could be the reason?

 

Thanks in advance

 

Stack trace:

[INFO] [talledLocalContainer] 2015-04-07 14:30:59 JRebel-CgLib: Could not define reloadable class 'com.jivesoftware.community.analytics.chart.summary.points.SummaryUserPointsChart$$EnhancerByCGLIB$$21c8527a'
[INFO] [talledLocalContainer] 2015-04-07 14:30:59 JRebel-CgLib: ERROR java.lang.NoClassDefFoundError: com/zeroturnaround/javarebel/gen/RebelLocator$$8
[INFO] [talledLocalContainer] at com.jivesoftware.community.analytics.chart.summary.points.SummaryUserPointsChart$$EnhancerByCGLIB$$21c8527a.<clinit>(<generated>:50001)
[INFO] [talledLocalContainer] at java.lang.Class.forName0(Native Method)
[INFO] [talledLocalContainer] at java.lang.Class.forName(Class.java:270)
[INFO] [talledLocalContainer] at net.sf.cglib.core.AbstractClassGenerator.__define(AbstractClassGenerator.java)
[INFO] [talledLocalContainer] at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
[INFO] [talledLocalContainer] at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
[INFO] [talledLocalContainer] at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285)
[INFO] [talledLocalContainer] at org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:200)
[INFO] [talledLocalContainer] at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:112)
[INFO] [talledLocalContainer] at org.springframework.jmx.export.MBeanExporter.registerLazyInit(MBeanExporter.java:698)
[INFO] [talledLocalContainer] at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:573)
[INFO] [talledLocalContainer] at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:527)
[INFO] [talledLocalContainer] at org.springframework.jmx.export.MBeanExporter.afterPropertiesSet(MBeanExporter.java:413)
[INFO] [talledLocalContainer] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
[INFO] [talledLocalContainer] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
[INFO] [talledLocalContainer] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
[INFO] [talledLocalContainer] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
[INFO] [talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
[INFO] [talledLocalContainer] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
[INFO] [talledLocalContainer] at com.jivesoftware.community.lifecycle.spring.JiveDefaultListableBeanFactory.getSingleton(JiveDefaultListableBeanFactory.java:183)
[INFO] [talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
[INFO] [talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
[INFO] [talledLocalContainer] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:598)
[INFO] [talledLocalContainer] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
[INFO] [talledLocalContainer] at org.springframework.context.support.AbstractApplicationContext.__refresh(AbstractApplicationContext.java:425)
[INFO] [talledLocalContainer] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java)
[INFO] [talledLocalContainer] at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
[INFO] [talledLocalContainer] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
[INFO] [talledLocalContainer] at com.jivesoftware.community.lifecycle.JiveApplication.initialize(JiveApplication.java:150)
[INFO] [talledLocalContainer] at com.jivesoftware.community.Jive.start(Jive.java:141)
[INFO] [talledLocalContainer] at com.jivesoftware.community.web.JiveApplicationContextLoaderListener.contextInitialized(JiveApplicationContextLoaderListener.java:45)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardService.start(StandardService.java:525)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:606)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
[INFO] [talledLocalContainer] Caused by: java.lang.ClassNotFoundException: com.zeroturnaround.javarebel.gen.RebelLocator$$8
[INFO] [talledLocalContainer] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
[INFO] [talledLocalContainer] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
[INFO] [talledLocalContainer] at com.jivesoftware.community.util.ChainingClassLoader.loadClass(ChainingClassLoader.java:64)
[INFO] [talledLocalContainer] ... 54 more
[INFO] [talledLocalContainer] 
[WARNING] [talledLocalContainer] Apr 07, 2015 2:31:01 PM org.apache.catalina.core.StandardContext listenerStart
[WARNING] [talledLocalContainer] Schwerwiegend: Exception sending context initialized event to listener instance of class com.jivesoftware.community.web.JiveApplicationContextLoaderListener
[WARNING] [talledLocalContainer] java.lang.RuntimeException: com.jivesoftware.community.JiveRuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmxExporter' defined in class path resource [spring-jmxContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.jivesoftware.community.analytics.chart.summary.points.SummaryUserPointsChart$$EnhancerByCGLIB$$21c8527a
[WARNING] [talledLocalContainer] at com.jivesoftware.community.Jive.start(Jive.java:151)
[WARNING] [talledLocalContainer] at com.jivesoftware.community.web.JiveApplicationContextLoaderListener.contextInitialized(JiveApplicationContextLoaderListener.java:45)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
[WARNING] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
[WARNING] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
[WARNING] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
[WARNING] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
[WARNING] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
[WARNING] [talledLocalContainer] at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.StandardService.start(StandardService.java:525)
[WARNING] [talledLocalContainer] at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
[WARNING] [talledLocalContainer] at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
[WARNING] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[WARNING] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[WARNING] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[WARNING] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:606)
[WARNING] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
[WARNING] [talledLocalContainer] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
... (more Spring errors)

Outcomes