The service locator mechanism can't find any CacheProviders, so when it tries 
to set the cache at index 0 up as the default fall-back implementation in case 
no configuration is provided, it fails. This is strange because the database 
kernel comes with a couple of CacheProvider implementations.
Something in your environment might have broken the service locator mechanism, 
such that it can't find anything anymore.

--
Chris Vest
System Engineer, Neo Technology
[ skype: mr.chrisvest, twitter: chvest ]


On 15 Sep 2014, at 21:03, jer <[email protected]> wrote:

> Hi all,
> 
> I have neo4j imported into my eclipse and build my server script. But when I 
> try to export it into jar file, some errors are constantly showing and I have 
> no idea why that happens. My original server script just run fine. The error 
> comes from the following instructions:
> 
>       GraphDatabaseService db = gdbf.newEmbeddedDatabaseBuilder(DB_PATH)
>                       .setConfig(GraphDatabaseSettings.cache_type, 
> NoCacheProvider.NAME)
>                       .newGraphDatabase();
> 
> From java -jar myapp.jar, the error is as follows:
> 
> Exception in thread "main" java.lang.ExceptionInInitializerError
>         at org.neo4j.onequery.Neo4jQuery.startDb(Neo4jQuery.java:108)
>         at org.neo4j.onequery.Neo4jQuery.main(Neo4jQuery.java:42)
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
>         at 
> org.neo4j.graphdb.factory.GraphDatabaseSettings.<clinit>(GraphDatabaseSettings.java:79)
>         ... 2 more
> 
> Does anyone has idea what is happening?
> 
> Thanks!
> Best Regards
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to