org.pentaho.platform.api.engine.ObjectFactoryException: Failed to create an instance of object with key [IBackingRepositoryLifecycleManager].

tip

This happens when you try to instantiate a class that can't be instantiated, either because the class object is abstract, an interface, an array class, a primitive type, void, or because the class has no nullary constructor.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • ElasticSearch and lucene jars were last upgraded in data-integration on July 12, 2001 in kettle-trunk. Revision 15510. No JIRA case was mentioned in the check in comment. Upgrading to these same jars in the DI Server will cause the JCR not to start. To reproduce: In data-integration-server/tomcat/webapps/pentaho-di/WEB-INF/lib - delete lucene-core-2.4.1.jar - Expand attached archive of lucene 3.1.0 jars Start DI Server and check logs: 21:13:04,800 ERROR [Logger] misc-org.pentaho.platform.engine.core.system.PentahoSystem: PentahoSystem.ERROR_0026 - Failed to retrieve object with name "IBackingRepositoryLifecycleManager" from the Pentaho object factory. org.pentaho.platform.api.engine.ObjectFactoryException: Failed to create an instance of object with key [IBackingRepositoryLifecycleManager]. at org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.instanceClass(AbstractSpringPentahoObjectFactory.java:81) at org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.retreiveObject(AbstractSpringPentahoObjectFactory.java:117) at org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.get(AbstractSpringPentahoObjectFactory.java:72) at com.pentaho.platform.web.http.context.WebSpringPentahoObjectFactory.get(SourceFile:130) at org.pentaho.platform.engine.core.system.PentahoSystem.get(PentahoSystem.java:546) at org.pentaho.platform.engine.core.system.PentahoSystem.get(PentahoSystem.java:512) at org.pentaho.platform.repository2.unified.BackingRepositoryLifecycleManagerSystemListener.startup(BackingRepositoryLifecycleManagerSystemListener.java:48) at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:341) at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:323) at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:291) at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:202) at org.pentaho.platform.web.http.context.SolutionContextListener.contextInitialized(SolutionContextListener.java:137) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.lang.InstantiationException: org.pentaho.platform.repository2.unified.lifecycle.DelegatingBackingRepositoryLifecycleManager at java.lang.Class.newInstance0(Class.java:340) at java.lang.Class.newInstance(Class.java:308) at org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.instanceClass(AbstractSpringPentahoObjectFactory.java:78) ... 35 more
    via by Sean Flatley,
  • ElasticSearch and lucene jars were last upgraded in data-integration on July 12, 2001 in kettle-trunk. Revision 15510. No JIRA case was mentioned in the check in comment. Upgrading to these same jars in the DI Server will cause the JCR not to start. To reproduce: In data-integration-server/tomcat/webapps/pentaho-di/WEB-INF/lib - delete lucene-core-2.4.1.jar - Expand attached archive of lucene 3.1.0 jars Start DI Server and check logs: 21:13:04,800 ERROR [Logger] misc-org.pentaho.platform.engine.core.system.PentahoSystem: PentahoSystem.ERROR_0026 - Failed to retrieve object with name "IBackingRepositoryLifecycleManager" from the Pentaho object factory. org.pentaho.platform.api.engine.ObjectFactoryException: Failed to create an instance of object with key [IBackingRepositoryLifecycleManager]. at org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.instanceClass(AbstractSpringPentahoObjectFactory.java:81) at org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.retreiveObject(AbstractSpringPentahoObjectFactory.java:117) at org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.get(AbstractSpringPentahoObjectFactory.java:72) at com.pentaho.platform.web.http.context.WebSpringPentahoObjectFactory.get(SourceFile:130) at org.pentaho.platform.engine.core.system.PentahoSystem.get(PentahoSystem.java:546) at org.pentaho.platform.engine.core.system.PentahoSystem.get(PentahoSystem.java:512) at org.pentaho.platform.repository2.unified.BackingRepositoryLifecycleManagerSystemListener.startup(BackingRepositoryLifecycleManagerSystemListener.java:48) at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:341) at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:323) at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:291) at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:202) at org.pentaho.platform.web.http.context.SolutionContextListener.contextInitialized(SolutionContextListener.java:137) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.lang.InstantiationException: org.pentaho.platform.repository2.unified.lifecycle.DelegatingBackingRepositoryLifecycleManager at java.lang.Class.newInstance0(Class.java:340) at java.lang.Class.newInstance(Class.java:308) at org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.instanceClass(AbstractSpringPentahoObjectFactory.java:78) ... 35 more
    via by Sean Flatley,
  • How to reproduce: 1. In the DI Server, edit pentaho-solutions/system/jackrabbit/repository.xml such that the SecurityManager class does not exist. 2. Start the DI Server. Watch for following exception: java.lang.InstantiationException: org.pentaho.platform.repository2.unified.lifecycle.DelegatingBackingRepositoryLifecycleManager at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.instanceClass(AbstractSpringPentahoObjectFactory.java:78) ... 35 more Had the original exception been preserved, it would have been: org.apache.jackrabbit.core.config.ConfigurationException: Configured bean implementation class org.apache.jackrabbit.core.PentahoSecurityManagerxxxxxxxxxxxxxxxxxxxxxxxx was not found. The call that causes this exception is in a IPentahoSystemListener which does the following: PentahoSystem.get(IBackingRepositoryLifecycleManager.class).startup(); There is logic in AbstractSpringPentahoObjectFactory (snippet below) that attempts to let Spring instantiate an object and if it fails (catches Throwable), it will attempt to call the no-arg constructor. 1. Why the fallback logic? 2. If the fallback logic must be there, why assume a no-arg constructor? Problems: 1. The original exception would have led to an immediate solution. It was lost when we attempted the newInstance. 2. We cannot blindly call a no-arg constructor. In the case of DelegatingBackingRepositoryLifecycleManager, there isn't one. 3. At a minimum, we should log a WARNING with the original exception. <snip> protected Object retreiveObject(String key, final IPentahoSession session) throws ObjectFactoryException { //cannot access logger here since this object factory provides the logger Logger.debug(this, "Attempting to get an instance of [" + key + "] while in session [" + session + "]"); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$ Object object = null; if (session != null && session instanceof StandaloneSession) { //first ask Spring for the object, if it is session scoped it will fail //since Spring doesn't know about StandaloneSessions try { object = beanFactory.getBean(key); } catch (Throwable t) { //Spring could not create the object, perhaps due to session scoping, let's try //retrieving it from our internal session map Logger.debug(this, "Retrieving object from Pentaho session map (not Spring)."); //$NON-NLS-1$ object = session.getAttribute(key); if ((object == null)) { //our internal session map doesn't have it, let's create it object = instanceClass(key); session.setAttribute(key, object); } } } else { //Spring can handle the object retrieval since we are not dealing with StandaloneSession object = retrieveViaSpring(key); } //FIXME: what is this doing here?? if (object instanceof IPentahoInitializer) { ((IPentahoInitializer) object).init(session); } Logger.debug(this, " got an instance of [" + key + "]: " + object); //$NON-NLS-1$ //$NON-NLS-2$ return object; } </snip>
    via by Mat Lowery,
  • How to reproduce: 1. In the DI Server, edit pentaho-solutions/system/jackrabbit/repository.xml such that the SecurityManager class does not exist. 2. Start the DI Server. Watch for following exception: java.lang.InstantiationException: org.pentaho.platform.repository2.unified.lifecycle.DelegatingBackingRepositoryLifecycleManager at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.instanceClass(AbstractSpringPentahoObjectFactory.java:78) ... 35 more Had the original exception been preserved, it would have been: org.apache.jackrabbit.core.config.ConfigurationException: Configured bean implementation class org.apache.jackrabbit.core.PentahoSecurityManagerxxxxxxxxxxxxxxxxxxxxxxxx was not found. The call that causes this exception is in a IPentahoSystemListener which does the following: PentahoSystem.get(IBackingRepositoryLifecycleManager.class).startup(); There is logic in AbstractSpringPentahoObjectFactory (snippet below) that attempts to let Spring instantiate an object and if it fails (catches Throwable), it will attempt to call the no-arg constructor. 1. Why the fallback logic? 2. If the fallback logic must be there, why assume a no-arg constructor? Problems: 1. The original exception would have led to an immediate solution. It was lost when we attempted the newInstance. 2. We cannot blindly call a no-arg constructor. In the case of DelegatingBackingRepositoryLifecycleManager, there isn't one. 3. At a minimum, we should log a WARNING with the original exception. <snip> protected Object retreiveObject(String key, final IPentahoSession session) throws ObjectFactoryException { //cannot access logger here since this object factory provides the logger Logger.debug(this, "Attempting to get an instance of [" + key + "] while in session [" + session + "]"); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$ Object object = null; if (session != null && session instanceof StandaloneSession) { //first ask Spring for the object, if it is session scoped it will fail //since Spring doesn't know about StandaloneSessions try { object = beanFactory.getBean(key); } catch (Throwable t) { //Spring could not create the object, perhaps due to session scoping, let's try //retrieving it from our internal session map Logger.debug(this, "Retrieving object from Pentaho session map (not Spring)."); //$NON-NLS-1$ object = session.getAttribute(key); if ((object == null)) { //our internal session map doesn't have it, let's create it object = instanceClass(key); session.setAttribute(key, object); } } } else { //Spring can handle the object retrieval since we are not dealing with StandaloneSession object = retrieveViaSpring(key); } //FIXME: what is this doing here?? if (object instanceof IPentahoInitializer) { ((IPentahoInitializer) object).init(session); } Logger.debug(this, " got an instance of [" + key + "]: " + object); //$NON-NLS-1$ //$NON-NLS-2$ return object; } </snip>
    via by Mat Lowery,
  • GitHub comment 32#6733959
    via GitHub by marioosh-net
    ,
  • Getting started with ReST
    via by akhil achuthan,
    • org.pentaho.platform.api.engine.ObjectFactoryException: Failed to create an instance of object with key [IBackingRepositoryLifecycleManager]. at org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.instanceClass(AbstractSpringPentahoObjectFactory.java:81) at org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.retreiveObject(AbstractSpringPentahoObjectFactory.java:117) at org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.get(AbstractSpringPentahoObjectFactory.java:72) at com.pentaho.platform.web.http.context.WebSpringPentahoObjectFactory.get(SourceFile:130) at org.pentaho.platform.engine.core.system.PentahoSystem.get(PentahoSystem.java:546) at org.pentaho.platform.engine.core.system.PentahoSystem.get(PentahoSystem.java:512) at org.pentaho.platform.repository2.unified.BackingRepositoryLifecycleManagerSystemListener.startup(BackingRepositoryLifecycleManagerSystemListener.java:48) at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:341) at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:323) at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:291) at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:202) at org.pentaho.platform.web.http.context.SolutionContextListener.contextInitialized(SolutionContextListener.java:137) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.lang.InstantiationException: org.pentaho.platform.repository2.unified.lifecycle.DelegatingBackingRepositoryLifecycleManager at java.lang.Class.newInstance0(Class.java:340) at java.lang.Class.newInstance(Class.java:308) at org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.instanceClass(AbstractSpringPentahoObjectFactory.java:78) ... 35 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    38 more bugmates