I am running the server using this command: java -cp objectdb.jar com.objectdb.Server start
console output: ObjectDB Server started on port 6136.
I am using the example you have given for JPA . I am using maven project download.
Creating connection using -
EntityManagerFactory emf = Persistence.createEntityManagerFactory("objectdb://127.0.0.1:6136/db;user=admin;password=admin");
WHen I run Main.main(), i get this error:
/usr/lib/jvm/java-1.17.0-openjdk-amd64/bin/java -javaagent:/snap/intellij-idea-community/478/lib/idea_rt.jar=41943:/snap/intellij-idea-community/478/bin -Dfile.encoding=UTF-8 -classpath /home/svcid/projects/points-console/target/classes:/home/svcid/.m2/repository/com/objectdb/objectdb/2.8.1/objectdb-2.8.1.jar:/home/svcid/.m2/repository/org/eclipse/persistence/javax.persistence/2.1.0/javax.persistence-2.1.0.jar:/home/svcid/.m2/repository/javax/transaction/jta/1.1/jta-1.1.jar point.Main
Exception in thread "main" [ObjectDB 2.8.1] Unexpected exception (Error 990)
Generated by OpenJDK 64-Bit Server VM 17.0.9 (on Linux 6.5.0-14-generic).
Please report this error on http://www.objectdb.com/issue/new
com.objectdb.o.InternalException: Error reading UTF string
com.objectdb.o.InternalException: Error reading UTF string
at com.objectdb.o.BYR.U(BYR.java:1217)
at com.objectdb.o.BYR.U(BYR.java:523)
at com.objectdb.o.BYR.L(BYR.java:504)
at com.objectdb.o.QJD.a(QJD.java:229)
at com.objectdb.o.QRD.f(QRD.java:372)
at com.objectdb.o.QRQ.m(QRQ.java:364)
at com.objectdb.o.STC.h(STC.java:462)
at com.objectdb.o.SHN.J(SHN.java:491)
at com.objectdb.o.SHN.x(SHN.java:157)
at com.objectdb.o.HND.run(HND.java:134)
at java.base/java.lang.Thread.run(Thread.java:840)
Process finished with exit code 1
======
env
java --version
openjdk 17.0.9 2023-10-17
OpenJDK Runtime Environment (build 17.0.9+9-Ubuntu-123.10)
OpenJDK 64-Bit Server VM (build 17.0.9+9-Ubuntu-123.10, mixed mode, sharing)
uname -r
6.5.0-14-generic
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=23.10
DISTRIB_CODENAME=mantic
DISTRIB_DESCRIPTION="Ubuntu 23.10"