当前位置: 首页 > 工具软件 > OpenIDM > 使用案例 >

CentOS下安装openidm报错

权玉泽
2023-12-01
严重: Error on opening database: /path/to/openidm/db/openidm. Current location is: /path/to/openidm/.
java.lang.ExceptionInInitializerError
        at com.orientechnologies.orient.core.storage.impl.local.OTxSegment.<clinit>(OTxSegment.java:68)
        at com.orientechnologies.orient.core.storage.impl.local.OStorageLocalTxExecuter.<init>(OStorageLocalTxExecuter.java:53)
        at com.orientechnologies.orient.core.storage.impl.local.OStorageLocal.<init>(OStorageLocal.java:111)
        at com.orientechnologies.orient.core.engine.local.OEngineLocal.createStorage(OEngineLocal.java:44)
        at com.orientechnologies.orient.core.Orient.loadStorage(Orient.java:158)
        at com.orientechnologies.orient.core.db.raw.ODatabaseRaw.exists(ODatabaseRaw.java:209)
        at com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.exists(ODatabaseWrapperAbstract.java:59)
        at com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.exists(ODatabaseWrapperAbstract.java:59)
        at org.forgerock.openidm.repo.orientdb.impl.DBHelper.checkDB(DBHelper.java:238)
        at org.forgerock.openidm.repo.orientdb.impl.DBHelper.getPool(DBHelper.java:85)
        at org.forgerock.openidm.repo.orientdb.impl.OrientDBRepoService.init(OrientDBRepoService.java:566)
        at org.forgerock.openidm.repo.orientdb.impl.OrientDBRepoService.getRepoBootService(OrientDBRepoService.java:519)
        at org.forgerock.openidm.repo.orientdb.impl.Activator.start(Activator.java:66)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: Node id is possible to generate only on machine which have at least one network interface with mac address.
        at com.orientechnologies.orient.core.util.OHostInfo.getMac(OHostInfo.java:48)
        at com.orientechnologies.orient.core.version.OVersionFactory.<clinit>(OVersionFactory.java:32)
        ... 19 more
七月 13, 2014 9:22:59 上午 org.forgerock.openidm.repo.orientdb.impl.OrientDBRepoService init
警告: Initializing database pool failed
com.orientechnologies.orient.core.exception.ODatabaseException: Error on opening database: /path/to/openidm/db/openidm. Current location is: /path/to/openidm/.
        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.orientechnologies.common.log.OLogManager.error(OLogManager.java:119)
        at com.orientechnologies.orient.core.engine.local.OEngineLocal.createStorage(OEngineLocal.java:47)
        at com.orientechnologies.orient.core.Orient.loadStorage(Orient.java:158)
        at com.orientechnologies.orient.core.db.raw.ODatabaseRaw.exists(ODatabaseRaw.java:209)
        at com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.exists(ODatabaseWrapperAbstract.java:59)
        at com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.exists(ODatabaseWrapperAbstract.java:59)
        at org.forgerock.openidm.repo.orientdb.impl.DBHelper.checkDB(DBHelper.java:238)
        at org.forgerock.openidm.repo.orientdb.impl.DBHelper.getPool(DBHelper.java:85)
        at org.forgerock.openidm.repo.orientdb.impl.OrientDBRepoService.init(OrientDBRepoService.java:566)
        at org.forgerock.openidm.repo.orientdb.impl.OrientDBRepoService.getRepoBootService(OrientDBRepoService.java:519)
        at org.forgerock.openidm.repo.orientdb.impl.Activator.start(Activator.java:66)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ExceptionInInitializerError
        at com.orientechnologies.orient.core.storage.impl.local.OTxSegment.<clinit>(OTxSegment.java:68)
        at com.orientechnologies.orient.core.storage.impl.local.OStorageLocalTxExecuter.<init>(OStorageLocalTxExecuter.java:53)
        at com.orientechnologies.orient.core.storage.impl.local.OStorageLocal.<init>(OStorageLocal.java:111)
        at com.orientechnologies.orient.core.engine.local.OEngineLocal.createStorage(OEngineLocal.java:44)
        ... 15 more
Caused by: java.lang.IllegalStateException: Node id is possible to generate only on machine which have at least one network interface with mac address.
        at com.orientechnologies.orient.core.util.OHostInfo.getMac(OHostInfo.java:48)
        at com.orientechnologies.orient.core.version.OVersionFactory.<clinit>(OVersionFactory.java:32)
        ... 19 more
-> 七月 13, 2014 9:24:07 上午 org.forgerock.openidm.info.impl.HealthService$4 run
严重: OpenIDM failure during startup, ACTIVE_NOT_READY: Not all modules started [org.forgerock.openidm.repo-orientdb] []
OpenIDM failure during startup, ACTIVE_NOT_READY: Not all modules started [org.forgerock.openidm.repo-orientdb] []


解决办法:
使虚拟机联网就行了...

配置 /etc/sysconfig/network-scripts/ifcfg-eth0
然后重启服务
 类似资料: