Menu

Build failed

Help
2012-04-15
2013-04-23
  • Martin Ledvinka

    Martin Ledvinka - 2012-04-15

    Hi all,

    I'd like to use OWLDB in our research project, but I haven't been able to build it. When I run build.sh, it fails due to not existing tables in H2 database. Log:

    …     Apr 15, 2012 6:03:10 PM org.hibernate.tool.hbm2ddl.DatabaseMetadata getTableMetadata
         INFO: table not found: rule_variables
         Apr 15, 2012 6:03:10 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
         INFO: schema update complete
         Apr 15, 2012 6:03:10 PM org.hibernate.cache.UpdateTimestampsCache <init>
         INFO: starting update timestamps cache at region: org.hibernate.cache.UpdateTimestampsCache
         Apr 15, 2012 6:03:10 PM org.hibernate.cache.StandardQueryCache <init>
         INFO: starting query cache at region: org.hibernate.cache.StandardQueryCache
         Hibernate: select this_.id as id0_0_, this_.ontologyIRI as ontology2_0_0_ from OntologyIRI this_
         Apr 15, 2012 6:03:10 PM de.fraunhofer.iitb.owldb.OWLDBOntology <init>
         INFO: Logical IRI is: null
         Tests run: 0, Failures: 0, Errors: 1, Time elapsed: 4.006 sec

    Any ideas where the problem could be?

    Thanks,
    Martin

     
  • Manfred Schenk

    Manfred Schenk - 2012-04-16

    I just tested the current version from svn here on my local machine and got no errors (so at least the build works on a windows based machine).

    Nevertheless, the error comes from the automated test runs which are included in the build process if you run the build.bat or build.sh without parameters.

    So, if you just want to build owldb without running the tests, you can add the target "createReleaseZip" to the build script, e.g. ./build.sh createReleaseZip

    I'll try to test the build process also with a linux machine, but I hope this information was already helpful.

     
  • Manfred Schenk

    Manfred Schenk - 2012-04-16

    Now I've tested it again on a linux machine with the same result: the build including the tests is working for me.

     
  • Martin Ledvinka

    Martin Ledvinka - 2012-04-16

    Thanks for the quick reply. I'll try to download the latest version and rerun the build.

     
  • Martin Ledvinka

    Martin Ledvinka - 2012-05-01

    Hi again,
    I'm still unable to run the tests in build. What kind of setup do I need to run these tests? Because I have H2 database running in the location set in tests and the tests fail with exception 'Table "SYSTEM_SEQUENCES" does not exist.' I found that this exception is due to incompatibility of certain versions of H2 (I have the latest version) and Hibernate.

    I tried to go around this exception by using the HSQL database, but I got the errors mentioned above.

    I created the release zip file, so this works fine, but I'd like to have also these tests fixed. Should I try using an older version of H2 or am I making a mistake somewhere?

    Thanks very much,
    Martin

     
  • Manfred Schenk

    Manfred Schenk - 2012-05-02

    Hi,
    I tried again to reproduce your results, but even with the latest version of H2 it works for me. Could you please include a complete list of versions for all jars in your classpath so that we can check.
    As a remark: Our automated build system only tests with the library versions delivered with this project. So if one uses different versions of the libraries it may work but it also may not work.

    Regards,
    Manfred

     
  • Martin Ledvinka

    Martin Ledvinka - 2012-05-13

    Hi Manfred,

    Here is a list of libraries and jars and their versions:
    h2-1.3.164.jar
    hsqldb-2.2.8
    Apache Ant version 1.8.1
    JDK 1.7.0 (Oracle's implementation)

    JDBC drivers, Hibernate and OWLAPI are used according to owldb configuration, I don't have other versions running on my computer.
    I didn't change any configuration of owldb, I just created H2 database in a location needed by the LUBMOntologyTestOWLDB test. If you need more info, please let me know.

    Thanks,
    Martin

     
  • Jürgen Moßgraber

    Try again with JDK 1.6, that should fix the issue.

     
  • Martin Ledvinka

    Martin Ledvinka - 2012-05-17

    Hi,

    I'm sorry but I still can't get the build to work. All the examples work just fine, but the tests run during build always fail. I decided to start from scratch, so I removed all versions of h2 and hsqldb from my machine and downloaded a fresh owldb archive.

    I also switched JDK to 1.6 as you suggested. If I run the build without any modifications, I get error that file "./resources/LUBM10-DB/LUBM10.h2.db" does not exist. So I created the original and copy file (according to paths in the LUBMOntologyTestOWLDB.java), but then I get the 'table not found' exception.

    I pasted full build log to pastebin, if you can take a look and guess why the tests are still failing.
    http://pastebin.com/9qXG3z6v

    Thanks again,
    Martin

     

Log in to post a comment.

MongoDB Logo MongoDB