dopicar / hypergraphdb

Automatically exported from code.google.com/p/hypergraphdb
0 stars 0 forks source link

Error loading wordnet into hypergraphdb #68

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello 
I am trying the code you provide in the wiki to load the wordnet into 
hypergraph but I get the following error.

BERKELEYDB: Error: closing the transaction region with active transactions
java.lang.IllegalArgumentException: Invalid argument
    at com.sleepycat.db.internal.db_javaJNI.DbEnv_close0(Native Method)
    at com.sleepycat.db.internal.DbEnv.close0(DbEnv.java:286)
    at com.sleepycat.db.internal.DbEnv.close(DbEnv.java:81)
    at com.sleepycat.db.Environment.close(Environment.java:150)
    at org.hypergraphdb.storage.BDBStorageImplementation.shutdown(BDBStorageImplementation.java:171)
    at org.hypergraphdb.HGStore.close(HGStore.java:350)
    at org.hypergraphdb.HyperGraph.open(HyperGraph.java:389)
    at org.hypergraphdb.HyperGraph.open(HyperGraph.java:211)
    at org.hypergraphdb.HGEnvironment.get(HGEnvironment.java:94)
    at org.hypergraphdb.HGEnvironment.get(HGEnvironment.java:119)
    at Test.main(Test.java:22)
org.hypergraphdb.HGException: java.lang.RuntimeException: 
org.hypergraphdb.HGException: JavaTypeBinding.make: 
java.lang.ClassCastException: org.hypergraphdb.transaction.VanillaTransaction 
cannot be cast to org.hypergraphdb.transaction.TransactionBDBImpl
    at org.hypergraphdb.HyperGraph.open(HyperGraph.java:392)
    at org.hypergraphdb.HyperGraph.open(HyperGraph.java:211)
    at org.hypergraphdb.HGEnvironment.get(HGEnvironment.java:94)
    at org.hypergraphdb.HGEnvironment.get(HGEnvironment.java:119)
    at Test.main(Test.java:22)
Caused by: java.lang.RuntimeException: org.hypergraphdb.HGException: 
JavaTypeBinding.make: java.lang.ClassCastException: 
org.hypergraphdb.transaction.VanillaTransaction cannot be cast to 
org.hypergraphdb.transaction.TransactionBDBImpl
    at org.hypergraphdb.transaction.HGTransactionManager.ensureTransaction(HGTransactionManager.java:320)
    at org.hypergraphdb.transaction.HGTransactionManager.ensureTransaction(HGTransactionManager.java:294)
    at org.hypergraphdb.HyperGraph.loadAtom(HyperGraph.java:1590)
    at org.hypergraphdb.HyperGraph.get(HyperGraph.java:811)
    at org.hypergraphdb.HyperGraph$9.call(HyperGraph.java:2120)
    at org.hypergraphdb.transaction.HGTransactionManager.transact(HGTransactionManager.java:397)
    at org.hypergraphdb.transaction.HGTransactionManager.transact(HGTransactionManager.java:355)
    at org.hypergraphdb.HyperGraph.initAtomManagement(HyperGraph.java:2115)
    at org.hypergraphdb.HyperGraph.open(HyperGraph.java:358)
    ... 4 more
Caused by: org.hypergraphdb.HGException: JavaTypeBinding.make: 
java.lang.ClassCastException: org.hypergraphdb.transaction.VanillaTransaction 
cannot be cast to org.hypergraphdb.transaction.TransactionBDBImpl
    at org.hypergraphdb.type.JavaBeanBinding.make(JavaBeanBinding.java:117)
    at org.hypergraphdb.HyperGraph$7.call(HyperGraph.java:1622)
    at org.hypergraphdb.HyperGraph$7.call(HyperGraph.java:1591)
    at org.hypergraphdb.transaction.HGTransactionManager.ensureTransaction(HGTransactionManager.java:316)
    ... 12 more
Caused by: java.lang.ClassCastException: 
org.hypergraphdb.transaction.VanillaTransaction cannot be cast to 
org.hypergraphdb.transaction.TransactionBDBImpl
    at org.hypergraphdb.storage.BDBStorageImplementation$1.createTransaction(BDBStorageImplementation.java:389)
    at org.hypergraphdb.transaction.HGTransactionManager.createTransaction(HGTransactionManager.java:185)
    at org.hypergraphdb.transaction.DefaultTransactionContext.beginTransaction(DefaultTransactionContext.java:43)
    at org.hypergraphdb.transaction.HGTransactionManager.beginTransaction(HGTransactionManager.java:225)
    at org.hypergraphdb.transaction.HGTransactionManager.beginTransaction(HGTransactionManager.java:211)
    at org.hypergraphdb.util.HGUtils.queryBatchProcess(HGUtils.java:250)
    at org.hypergraphdb.HGQuery$hg.getAll(HGQuery.java:1009)
    at org.hypergraphdb.type.RecordType.getReferenceMode(RecordType.java:81)
    at org.hypergraphdb.type.RecordType.make(RecordType.java:191)
    at org.hypergraphdb.type.JavaBeanBinding.make(JavaBeanBinding.java:88)
    ... 15 more

What version of the product are you using? On what operating system?
I am using eclipse with java 6 and I am using MacOS

Could you help me please?

Original issue reported on code.google.com by copy4e...@gmail.com on 12 Nov 2011 at 8:35

GoogleCodeExporter commented 9 years ago
Hi,

Are you using 1.0, 1.1 or an SVN snapshot?

Original comment by borislav...@gmail.com on 12 Nov 2011 at 2:41

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for your replay I am using 1.1 

Original comment by copy4e...@gmail.com on 13 Nov 2011 at 5:37

GoogleCodeExporter commented 9 years ago
Hi 

I tried the old version 1.0 and it's work fine with me. Thank you

Do you have examples of the wordnet hypergraph?

Could you help me please

thank you

Original comment by copy4e...@gmail.com on 14 Nov 2011 at 6:09

GoogleCodeExporter commented 9 years ago
It's supposed to work with 1.1 as well. I'll look into it...

What examples are you interested in? I've used this in a NLP project called 
disko (http://code.google.com/p/disko/), that's unfortunately not really 
documented, but documented enough for you to actually install and run it on 
your machine, see 
http://code.google.com/p/disko/wiki/SettingUpDiskoFromSubversion 

Original comment by borislav...@gmail.com on 15 Nov 2011 at 2:06

GoogleCodeExporter commented 9 years ago
Hello 

I want to do my own project using hypergraph and wordnet 
but I am new to java programming 
I want a java code for example how to query wordnet form the hypergraph and 
printout the result on the screen for a particular word?

Thank you for your help

Original comment by copy4e...@gmail.com on 15 Nov 2011 at 4:39