Friday, November 16, 2018

com.endeca.itl.component.manager.ComponentManagerException - Could not create component instance


ERROR [ComponentInstanceManager] [main] com.endeca.itl.component.manager.impl.ComponentInstanceManagerImpl: Error auto starting instance 'Extensions of type RecordStore
com.endeca.itl.component.manager.ComponentManagerException: Could not create component instance
at com.endeca.itl.component.manager.impl.ComponentInstanceManagerImpl.startInstance(ComponentInstanceManagerImpl.java:142)
at com.endeca.itl.component.manager.impl.ComponentInstanceManagerImpl.<init>(ComponentInstanceManagerImpl.java:60)
at com.endeca.itl.component.manager.impl.ComponentInstanceManagerImpl.<init>(ComponentInstanceManagerImpl.java:47)
at com.endeca.itl.service.ServiceHubServlet.loadBus(ServiceHubServlet.java:50)
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.endeca.itl.plugin.ThreadContextRunner$1$1.doWork(ThreadContextRunner.java:19)
at com.endeca.itl.plugin.ThreadContextRunner.run(ThreadContextRunner.java:110)
at com.endeca.itl.plugin.ThreadContextRunner$1.invoke(ThreadContextRunner.java:25)
at com.sun.proxy.$Proxy1.init(Unknown Source)
at com.endeca.itl.bootstrap.CasBootStrapServlet.init(CasBootStrapServlet.java:42)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:736)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at com.endeca.itl.jetty.Main.main(Main.java:74)
Caused by: com.endeca.itl.recordstore.RecordStoreException: Error starting embedded database: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@f1d244ec[file =/u01/endeca/CAS/workspace/state/WCSExtensions/data/dictionary/db.lck, exists=true, locked=false, valid=false, ] method: checkHeartbeat length: 2289
at com.endeca.itl.recordstore.impl.RecordStoreImpl.startup(RecordStoreImpl.java:108)
at com.endeca.itl.recordstore.impl.RecordStoreImpl.<init>(RecordStoreImpl.java:91)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.endeca.itl.component.manager.impl.ComponentInstanceManagerImpl.startInstance(ComponentInstanceManagerImpl.java:130)
... 31 more
Caused by: java.sql.SQLException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@f1d244ec[file =/u01/endeca/CAS/workspace/state/WCSExtensions/data/dictionary/db.lck, exists=true, locked=false, valid=false, ] method: checkHeartbeat length: 2289
at org.hsqldb.jdbc.Util.sqlException(Util.java:418)
at org.hsqldb.jdbc.Util.sqlException(Util.java:113)
at org.hsqldb.jdbc.JDBCConnection.<init>(JDBCConnection.java:3596)
at org.hsqldb.jdbc.JDBCDriver.getConnection(JDBCDriver.java:322)
at org.hsqldb.jdbc.JDBCDataSource.getConnection(JDBCDataSource.java:190)
at org.hsqldb.jdbc.JDBCDataSource.getConnection(JDBCDataSource.java:149)
at com.endeca.itl.db.Database.createConnection(Database.java:116)
at com.endeca.itl.db.Database.createConnection(Database.java:112)
at com.endeca.itl.db.Database.startup(Database.java:88)
at com.endeca.itl.recordstore.impl.RecordStoreImpl.startup(RecordStoreImpl.java:105)
... 37 more
Caused by: org.hsqldb.HsqlException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@f1d244ec[file =/u01/endeca/CAS/workspace/state/WCSExtensions/data/dictionary/db.lck, exists=true, locked=false, valid=false, ] method: checkHeartbeat length: 2289
at org.hsqldb.error.Error.error(Error.java:81)
at org.hsqldb.error.Error.error(Error.java:70)
at org.hsqldb.persist.LockFile.newLockFileLock(LockFile.java:642)
at org.hsqldb.persist.Logger.acquireLock(Logger.java:1211)
at org.hsqldb.persist.Logger.openPersistence(Logger.java:349)
at org.hsqldb.Database.reopen(Database.java:227)
at org.hsqldb.Database.open(Database.java:193)
at org.hsqldb.DatabaseManager.getDatabase(DatabaseManager.java:250)
at org.hsqldb.DatabaseManager.newSession(DatabaseManager.java:157)
at org.hsqldb.jdbc.JDBCConnection.<init>(JDBCConnection.java:3576)
... 44 more
2018-10-18 11:40:51,114 INFO [ComponentInstanceManager] [main] com.endeca.itl.component.manager.impl.ComponentInstanceManagerImpl: Starting component instance 'CRS_en_data' of component type 'RecordStore'.
2018-10-18 11:40:51,192 INFO [CRS_en_data] [main] com.endeca.itl.recordstore.impl.RecordStoreImpl: Starting up RecordStore
2018-10-18 11:40:51,299 INFO [CRS_en_data] [main] com.endeca.itl.recordstore.impl.GenerationManager: Last committed generation: 13








Solution:



1. Stop CAS services

2. Run initialize_rs_feeds.sh script for linux or initialize_rs_feeds.bat for windows

3. Start CAS services

4. Run Baseline indexing in Dyn/Admin







Popular Posts