Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

ChaiDB doesn't work with jdk 1.6

Petr Zajac
2007-07-27
2013-04-18
  • Petr Zajac
    Petr Zajac
    2007-07-27

    I tried to run ChainDB with Jdk 1.6.0_02. I got NullPointerException exception because handler was null. I tried to fix the NPE. I got the exception caused null handler. This exception I was not able to fix:

    Exception in thread "main" [100003] I/O error encountered while performing the operation.------root cause:
    org.chaidb.db.helper.cache.storage.SecondaryStorageException: initializing storage failed.
            at org.chaidb.db.helper.cache.storage.BTreePathStorage.init(BTreePathStorage.java:83)
            at org.chaidb.db.index.btree.bufmgr.PageBufferManager.initIdStorage(PageBufferManager.java:234)
            at org.chaidb.db.index.btree.bufmgr.PageBufferManager.initIdStorage(PageBufferManager.java:249)
            at org.chaidb.db.index.btree.bufmgr.PageBufferManager.allocateBTreeId(PageBufferManager.java:327)
            at org.chaidb.db.index.btree.bufmgr.PageBufferManager.open(PageBufferManager.java:433)
            at org.chaidb.db.index.btree.AbstractBTree.open(AbstractBTree.java:455)
            at org.chaidb.db.index.btree.AbstractBTree.open(AbstractBTree.java:437)
            at org.chaidb.db.api.Database.openBTree(Database.java:99)
            at org.chaidb.db.TestDB.testStore(TestDB.java:30)
            at org.chaidb.db.TestDB.main(TestDB.java:24)
    Caused by: java.io.StreamCorruptedException: invalid type code: FF
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1356)
            at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1642)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
            at com.coyotegulch.jisp.BTreePage.readExternal(BTreePage.java:115)
            at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
            at com.coyotegulch.jisp.ObjectDatabaseFile.readObject(ObjectDatabaseFile.java:409)
            at com.coyotegulch.jisp.BTreePageFile.read(BTreePageFile.java:238)
            at com.coyotegulch.jisp.BTreePageFile.readRoot(BTreePageFile.java:249)
            at com.coyotegulch.jisp.BTreeIndex.<init>(BTreeIndex.java:119)
            at org.chaidb.db.helper.cache.storage.BTreePathStorage.init(BTreePathStorage.java:69)
            ... 9 more

            at org.chaidb.db.index.btree.bufmgr.PageBufferManager.initIdStorage(PageBufferManager.java:237)
            at org.chaidb.db.index.btree.bufmgr.PageBufferManager.initIdStorage(PageBufferManager.java:249)
            at org.chaidb.db.index.btree.bufmgr.PageBufferManager.allocateBTreeId(PageBufferManager.java:327)
            at org.chaidb.db.index.btree.bufmgr.PageBufferManager.open(PageBufferManager.java:433)
            at org.chaidb.db.index.btree.AbstractBTree.open(AbstractBTree.java:455)
            at org.chaidb.db.index.btree.AbstractBTree.open(AbstractBTree.java:437)
            at org.chaidb.db.api.Database.openBTree(Database.java:99)
            at org.chaidb.db.TestDB.testStore(TestDB.java:30)
            at org.chaidb.db.TestDB.main(TestDB.java:24)
    /home/pzajac/cvss/chaidb/chaidb/chaidb/trunk/nbproject/ide-file-targets.xml:7: Java returned: 1
            at org.apache.tools.ant.taskdefs.Java.execute(Java.java:107)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
            at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:357)
            at org.apache.tools.ant.Target.performTasks(Target.java:385)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
            at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:256)
            at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:438)
            at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:129)

    Petr

     
    • chaidb-admin
      chaidb-admin
      2007-07-27

      Petr, unfortunately ChaiDB doesn't support jdk 1.6 currently. Check back with us in a few months if you must use jdk 1.6 or alternatively, you can use the earlier versions of jdk.

       
      • Petr Zajac
        Petr Zajac
        2007-07-27

        Thank you for your quick answer. I am developing engine for analyzing software repositories which is part of codeviation.org project. I store everything to files, because it's more handy for me (unittesting). I just only create index file. Yes, it works fine with jd1.5. I am developing against jdk 1.5, but I want also support jdk 1.6. I am looking for for small B-Tree. Is there any chance to change GPL to  Apache, LGPL, Mozilla?  GPL is too limiting. For example I am writing plugin for hudson https://hudson.dev.java.net/ with MIT license. I was considering BerkleyDB but it's too GPL. Probably I will use derby DB :(. 

        Petr