ArcadeData / arcadedb

ArcadeDB Multi-Model Database, one DBMS that supports SQL, Cypher, Gremlin, HTTP/JSON, MongoDB and Redis. ArcadeDB is a conceptual fork of OrientDB, the first Multi-Model DBMS. ArcadeDB supports Vector Embeddings.
https://arcadedb.com
Apache License 2.0
505 stars 63 forks source link

java embedded create() works but subsequent open() fails with NoSuchMethodError #262

Closed grimace closed 2 years ago

grimace commented 2 years ago

ArcadeDB Version: v21.12.1-SNAPSHOT (

JDK Version: 11.0.1

OS: OS/X

Expected behavior

open a created database

Actual behavior

fails with:

Exception in thread "main" java.lang.NoSuchMethodError: org.json.JSONObject.keySet()Ljava/util/Set;
    at com.arcadedb.ContextConfiguration.fromJSON(ContextConfiguration.java:68)
    at com.arcadedb.database.EmbeddedDatabase.open(EmbeddedDatabase.java:172)
    at com.arcadedb.database.DatabaseFactory.open(DatabaseFactory.java:65)
    at com.arcadedb.database.DatabaseFactory.open(DatabaseFactory.java:59)
    at com.kombi.test.ArcadeTest.initDB(ArcadeTest.java:27)

Steps to reproduce

create a database with:

       DatabaseFactory databaseFactory = new DatabaseFactory(testDB.getPath());
        try( Database db = databaseFactory.created(); ) {
            // YOUR CODE
            System.out.println("DB successfully created!");
        } catch (Exception e) {
            e.printStackTrace();
        }

then try to reopen with:

       DatabaseFactory databaseFactory = new DatabaseFactory(testDB.getPath());
        try( Database db = databaseFactory.open(); ) {
            // YOUR CODE
            System.out.println("DB successfully opened!");
        } catch (Exception e) {
            e.printStackTrace();
        }
grimace commented 2 years ago

my bad! had an old json.jar file in my ~/.m2 repository

lvca commented 2 years ago

NP.