Unfortunately, even I take out the neo4j-ha dependency and neo4j-management 
dependency, it still has the same error message

Besides, if I take out neo4j-ha, neo4j-management and cache_type setting, 
it gives me another error message:
Exception in thread "main" java.lang.AbstractMethodError: 
org.neo4j.kernel.impl.cache.CacheProvider.newNodeCache(Lorg/neo4j/kernel/impl/util/StringLogger;
 
  
 
Lorg/neo4j/kernel/configuration/Config;Lorg/neo4j/kernel/monitoring/Monitors;)Lorg/neo4j/kernel/impl/cache/Cache;
    at org.neo4j.kernel.impl.core.DefaultCaches.node(DefaultCaches.java:51)
    at 
org.neo4j.kernel.InternalAbstractGraphDatabase.create(InternalAbstractGraphDatabase.java:492)
    at 
org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:278)
    at 
org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:116)
    at 
org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:81)
    at 
com.tinkerpop.blueprints.impls.neo4j.Neo4jGraph.<init>(Neo4jGraph.java:153)
    at netdb.graph.unit.CacheManager.loadGraphToCache(CacheManager.java:130)
    at netdb.graph.unit.CacheManager.findVertexInCache(CacheManager.java:67)
    at netdb.graph.opts.framework.IndexedGraph.query(IndexedGraph.java:47)
    at netdb.graph.opts.framework.run.OptsExecutor.run(OptsExecutor.java:62)
    at 
netdb.graph.opts.framework.run.OptsExecutor.main(OptsExecutor.java:130)


I now have a question about configure in embedded neo4j,  How exactly to 
set the database config in java embedded neo4j? Is it still modify the 
neo4j.propertise file? or use program to control it?

I'm afraid that I use the wrong way to setting cahce_type
here is what I do to config a new create Neo4j Database

String prefix = "home/arvin/neo4j-community-1.9.7/data/";

  HashMap<String, String> config = *new* HashMap<String, String>();

  config.put("online_backup_enabled", "false");

  config.put("neostore.nodestore.db.mapped_memory", "20G");

  config.put("neostore.relationshipstore.db.mapped_memory", "30G");

  config.put("neostore.propertystore.db.mapped_memory", "50G");

  config.put("neostore.propertystore.db.strings.mapped_memory", "20G");

  config.put("neostore.propertystore.db.arrays.mapped_memory", "20G");

  config.put("cache_type", "soft");

  Neo4jGraph indexedGraph = *new* Neo4jGraph(prefix+"graph-"+BorderID+".db", 
config);





Chris Vest於 2014年6月4日星期三UTC+8下午6時57分16秒寫道:
>
> The neo4j-ha dependency is an enterprise edition thing, and the 
> neo4j-management is an advanced edition thing.
>
> It is the neo4j-ha dependency that gives you the GCResistantCache.
>
> --
> Chris Vest
> System Engineer, Neo Technology
> [ skype: mr.chrisvest, twitter: chvest ]
>
>  
> On 04 Jun 2014, at 11:11, Arvin <[email protected] <javascript:>> wrote:
>
> Hi Chris,
>
> I've upgraded to 1.9.7 but still in vain, I'm not sure if I have any 
> enterprise-edition jars or not
> here is my pom.xml in my application
>
>
>
>
>
>
>
>
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";
>
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>
>   <modelVersion>4.0.0</modelVersion>
>
>
>   <groupId>Research_MalwareDiscover</groupId>
>   <artifactId>Research_MalwareDiscover</artifactId>
>   <version>0.0.1-SNAPSHOT</version>
>   <packaging>jar</packaging>
>
>
>   <name>Research_MalwareDiscover</name>
>
>   <url>http://maven.apache.org</url>
>
>
>
>   <properties>
>
>     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>
>   </properties>
>
>
>
>   <dependencies>
>
>     <dependency>
>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>       <scope>test</scope>
>
>     </dependency>
>
>     <dependency>
>
>             <groupId>org.codehaus.jettison</groupId>
>             <artifactId>jettison</artifactId>
>             <version>1.3.3</version>
>
>         </dependency>
>
>         <dependency>
>
>             <groupId>com.fasterxml.jackson.datatype</groupId>
>             <artifactId>jackson-datatype-json-org</artifactId>
>             <version>2.2.3</version>
>
>         </dependency>
>
>         <dependency>
>
>             <groupId>colt</groupId>
>             <artifactId>colt</artifactId>
>             <version>1.2.0</version>
>
>         </dependency>
>
>        
>
>         <dependency>
>
>             <groupId>commons-configuration</groupId>
>             <artifactId>commons-configuration</artifactId>
>             <version>1.6</version>
>
>         </dependency>
>
>         <dependency>
>
>             <groupId>com.tinkerpop.blueprints</groupId>
>             <artifactId>blueprints-core</artifactId>
>             <version>2.4.0</version>
>
>         </dependency>
>
>         <dependency>
>
>             <groupId>com.tinkerpop.blueprints</groupId>
>             <artifactId>blueprints-neo4j-graph</artifactId>
>             <version>2.4.0</version>
>
>         </dependency>
>
>         <dependency>
>
>                         <groupId>com.tinkerpop.blueprints</groupId>
>                         <artifactId>blueprints-graph-jung</artifactId>
>                         <version>2.4.0</version>
>
>                 </dependency>
>
>         <dependency>
>
>             <groupId>com.tinkerpop.blueprints</groupId>
>             <artifactId>blueprints-test</artifactId>
>             <version>2.4.0</version>
>             <scope>test</scope>
>
>         </dependency>
>
>        
>
>         <dependency>
>
>             <groupId>org.neo4j</groupId>
>             <artifactId>neo4j</artifactId>
>             <version>1.9.7</version>
>             <type>pom</type>
>
>         </dependency>
>
>         <dependency>
>
>             <groupId>org.neo4j</groupId>
>             <artifactId>neo4j-ha</artifactId>
>             <version>1.9.7</version>
>             <scope>compile</scope>
>
>         </dependency>
>
>         <dependency>
>
>             <groupId>org.neo4j</groupId>
>             <artifactId>neo4j-management</artifactId>
>             <version>1.9.7</version>
>             <scope>compile</scope>
>
>         </dependency>
>
>        
>
>         <dependency>
>
>       <groupId>org.neo4j</groupId>
>       <artifactId>neo4j-kernel</artifactId>
>       <version>1.9.7</version>
>
>     </dependency>
>
>     <dependency>
>
>       <groupId>org.neo4j</groupId>
>       <artifactId>neo4j-lucene-index</artifactId>
>       <version>1.9.7</version>
>
>     </dependency>
>
>     <dependency>
>
>       <groupId>org.neo4j</groupId>
>       <artifactId>neo4j-graph-algo</artifactId>
>       <version>1.9.7</version>
>
>     </dependency>
>
>     <dependency>
>
>       <groupId>org.neo4j</groupId>
>       <artifactId>neo4j-udc</artifactId>
>       <version>1.9.7</version>
>
>     </dependency>
>
>     <dependency>
>
>       <groupId>org.neo4j</groupId>
>       <artifactId>neo4j-graph-matching</artifactId>
>       <version>1.9.7</version>
>
>     </dependency>
>
>     <dependency>
>
>       <groupId>org.neo4j</groupId>
>       <artifactId>neo4j-cypher</artifactId>
>       <version>1.9.7</version>
>
>     </dependency>
>
>     <dependency>
>
>       <groupId>org.neo4j</groupId&g
>
> ...

-- 
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