[RESOLVED] MBeanExporter error on startup

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2010 11:19 PM
Hi All,
I am trying to test a backup i've created of my production Alfresco instance on a development box. My environments are the same - Tomcat version 6.0.18, Windows Server 2003, Alfresco Version 3.0.0. I used exactly the same war file to set up the development environment. There is a slight difference in the Java versions - Production has Java 1.6 u16, while development has Java 1.6 u18. I've followed the instructions in the Wiki on backup and restore http://wiki.alfresco.com/wiki/Backup_and_Restore to back up the Production Alfresco.
When I try to restore the backup, I get the below error about the class, MBeanExporter;
I've investigated this MBeanExporter class and found that it is contained inside Spring 2.0.6.jar, however I cant find anywhere to download this source to look into it further. The xml file where the 'exporter' object is configured (core-services-context.xml) is exactly the same for the Production and Development environments, but it does not cause an error in Production.
Does anyone have any ideas on what I should try next? Any help would be greatly appreciated!
Many thanks!
I am trying to test a backup i've created of my production Alfresco instance on a development box. My environments are the same - Tomcat version 6.0.18, Windows Server 2003, Alfresco Version 3.0.0. I used exactly the same war file to set up the development environment. There is a slight difference in the Java versions - Production has Java 1.6 u16, while development has Java 1.6 u18. I've followed the instructions in the Wiki on backup and restore http://wiki.alfresco.com/wiki/Backup_and_Restore to back up the Production Alfresco.
When I try to restore the backup, I get the below error about the class, MBeanExporter;
13:40:33,201 INFO [config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]13:40:35,139 ERROR [web.context.ContextLoader] Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exporter' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is javax.management.RuntimeMBeanException: RuntimeException thrown in preDeregister methodCaused by: javax.management.RuntimeMBeanException: RuntimeException thrown in preDeregister method at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preDeregisterInvoke(DefaultMBeanServerInterceptor.java:1050) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:421) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:403) at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:506) at org.springframework.jmx.support.MBeanRegistrationSupport.doRegister(MBeanRegistrationSupport.java:175) at org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:589) at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:565) at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:494) at org.springframework.jmx.export.MBeanExporter.afterPropertiesSet(MBeanExporter.java:388) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1247) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:604) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:129) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:269) at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:81) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619)Caused by: java.lang.NullPointerException at org.apache.log4j.jmx.AbstractDynamicMBean.preDeregister(AbstractDynamicMBean.java:119) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preDeregisterInvoke(DefaultMBeanServerInterceptor.java:1048) … 42 morelog4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
I've investigated this MBeanExporter class and found that it is contained inside Spring 2.0.6.jar, however I cant find anywhere to download this source to look into it further. The xml file where the 'exporter' object is configured (core-services-context.xml) is exactly the same for the Production and Development environments, but it does not cause an error in Production.
Does anyone have any ideas on what I should try next? Any help would be greatly appreciated!

Many thanks!
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2010 01:05 AM
I think there was a problem with my MySQL instance. I reinstalled MySQL, and restarted Alfresco and I am not getting this problem. I think hibernate was silently dying.
