0

Neo4j 服务器无法启动,出现以下异常,

Oct 3, 2013 12:05:10 PM org.neo4j.server.logging.Logger log
SEVERE: 
java.lang.RuntimeException: Starting neo server failed, see nested exception.
    at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:124)
    at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:79)
    at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:70)
    at com.Neo4J.src.EmbeddedNeo4j.createDb(EmbeddedNeo4j.java:66)
    at com.Neo4J.src.EmbeddedNeo4j.main(EmbeddedNeo4j.java:38)
Caused by: java.lang.ExceptionInInitializerError
    at org.apache.commons.configuration.AbstractConfiguration.createInterpolator(AbstractConfiguration.java:319)
    at org.apache.commons.configuration.AbstractConfiguration.getSubstitutor(AbstractConfiguration.java:283)
    at org.apache.commons.configuration.PropertyConverter.interpolate(PropertyConverter.java:684)
    at org.apache.commons.configuration.AbstractConfiguration.interpolate(AbstractConfiguration.java:432)
    at org.apache.commons.configuration.AbstractConfiguration.interpolate(AbstractConfiguration.java:419)
    at org.apache.commons.configuration.AbstractConfiguration.getString(AbstractConfiguration.java:1101)
    at org.neo4j.server.AbstractNeoServer.getWebServerAddress(AbstractNeoServer.java:285)
    at org.neo4j.server.AbstractNeoServer.configureWebServer(AbstractNeoServer.java:183)
    at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:101)
    ... 4 more
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException))
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
    at org.apache.commons.configuration.interpol.ConstantLookup.<init>(ConstantLookup.java:64)
    at org.apache.commons.configuration.interpol.ConfigurationInterpolator.<clinit>(ConfigurationInterpolator.java:330)
    ... 13 more
Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException)
    at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
    ... 18 more
Caused by: java.lang.NullPointerException
    at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:374)
    ... 19 more
Oct 3, 2013 12:05:10 PM org.neo4j.server.logging.Logger log
SEVERE: Failed to start Neo Server on port [7474]

在这里我试图通过程序启动服务器程序代码是,

graphDb = new GraphDatabaseFactory()
            .newEmbeddedDatabaseBuilder(DB_PATH)
            .setConfig( config )
            .newGraphDatabase();
        Configurator configurator = new ServerConfigurator((GraphDatabaseAPI)graphDb);

        configurator.configuration().setProperty(Configurator.WEBSERVER_ADDRESS_PROPERTY_KEY, "172.25.218.96");
        configurator.configuration().setProperty(Configurator.WEBSERVER_PORT_PROPERTY_KEY, 7474);
        WrappingNeoServerBootstrapper bootstrapper = new WrappingNeoServerBootstrapper((GraphDatabaseAPI)graphDb, configurator);
        bootstrapper.start();

任何人都可以帮我解决这个问题......

谢谢..

4

1 回答 1

0

确保您的项目中的日志库版本与 Neo4j Server 相同。这似乎是您当前的设置正在引入一些其他版本的 Apache Commons Logging 的情况。

于 2013-10-03T21:30:14.693 回答