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

Pentaho BI Platform Tracking | Sean Flatley | 5 years ago
  1. 0

    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

    Pentaho BI Platform Tracking | 5 years ago | Sean Flatley
    org.pentaho.platform.api.engine.ObjectFactoryException: Failed to create an instance of object with key [IBackingRepositoryLifecycleManager].
  2. 0

    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

    Pentaho BI Platform Tracking | 5 years ago | Sean Flatley
    org.pentaho.platform.api.engine.ObjectFactoryException: Failed to create an instance of object with key [IBackingRepositoryLifecycleManager].
  3. 0

    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>

    Pentaho BI Platform Tracking | 6 years ago | Mat Lowery
    java.lang.InstantiationException: org.pentaho.platform.repository2.unified.lifecycle.DelegatingBackingRepositoryLifecycleManager
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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>

    Pentaho BI Platform Tracking | 6 years ago | Mat Lowery
    java.lang.InstantiationException: org.pentaho.platform.repository2.unified.lifecycle.DelegatingBackingRepositoryLifecycleManager
  6. 0

    Mojarra 2.1.0 - FCS doesn't work with tomcat 7

    Stack Overflow | 5 years ago | MahmoudS
    java.lang.InstantiationException: com.sun.faces.application.ServletContextSensitiveSingletonStore
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.InstantiationException

    org.pentaho.platform.repository2.unified.lifecycle.DelegatingBackingRepositoryLifecycleManager

    at java.lang.Class.newInstance0()
  2. Java RT
    Class.newInstance
    1. java.lang.Class.newInstance0(Class.java:340)
    2. java.lang.Class.newInstance(Class.java:308)
    2 frames
  3. org.pentaho.platform
    AbstractSpringPentahoObjectFactory.get
    1. org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.instanceClass(AbstractSpringPentahoObjectFactory.java:78)
    2. org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.retreiveObject(AbstractSpringPentahoObjectFactory.java:117)
    3. org.pentaho.platform.engine.core.system.objfac.AbstractSpringPentahoObjectFactory.get(AbstractSpringPentahoObjectFactory.java:72)
    3 frames
  4. com.pentaho.platform
    WebSpringPentahoObjectFactory.get
    1. com.pentaho.platform.web.http.context.WebSpringPentahoObjectFactory.get(SourceFile:130)
    1 frame
  5. org.pentaho.platform
    SolutionContextListener.contextInitialized
    1. org.pentaho.platform.engine.core.system.PentahoSystem.get(PentahoSystem.java:546)
    2. org.pentaho.platform.engine.core.system.PentahoSystem.get(PentahoSystem.java:512)
    3. org.pentaho.platform.repository2.unified.BackingRepositoryLifecycleManagerSystemListener.startup(BackingRepositoryLifecycleManagerSystemListener.java:48)
    4. org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:341)
    5. org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:323)
    6. org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:291)
    7. org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:202)
    8. org.pentaho.platform.web.http.context.SolutionContextListener.contextInitialized(SolutionContextListener.java:137)
    8 frames
  6. Glassfish Core
    Catalina.start
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
    2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
    3. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    4. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    5. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
    6. org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
    7. org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
    8. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
    9. org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    10. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    11. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    12. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    13. org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    14. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    15. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
    16. org.apache.catalina.core.StandardService.start(StandardService.java:519)
    17. org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    18. org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    18 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  8. Glassfish Core
    Bootstrap.main
    1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    2 frames