ObjectDB ObjectDB

Issue #2660: Can not connect to replication node

Type: Bug ReoprtVersion: 2.8.5_03Priority: NormalStatus: ActiveReplies: 3
#1

Hi, I tried to connect the database server using uri..

However the program emits error saying that no such Provider..

The code is below:

var uri = "objectdb://10.11.12.3:6136/asli-webmapper/accesslog.odb;user=asli-webmapper;password=admin1";

var emf = Persistence.createEntityManagerFactory(uri);

Error log:

bmpccdeMac-mini:mapper eko$  cd /Users/eko/work/asli/asli-java/mapper ; /usr/bin/env /Library/Java/JavaVirtualMachines/jdk-11.0.8.jdk/Contents/Home/bin/java -Dfile.encoding=UTF-8 @/var/folders/nd/0154lndn6tg_gd3c6857mt380000gp/T/cp_44eka4akdrg7edivffdip1wz0.argfile jp.asli.webmapper.WebMapperHttpServer 
Current Working directory /Users/eko/work/asli/asli-java/mapper
Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named objectdb://10.11.12.3:6136/asli-webmapper/accesslog.odb;user=asli-webmapper;password=admin1
        at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:85)
        at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54)
        at jp.asli.webmapper.WebMapperHttpServer.loadConfig(WebMapperHttpServer.java:221)
        at jp.asli.webmapper.WebMapperHttpServer.main(WebMapperHttpServer.java:37)

 

edit
delete
#2

This error message is usually shown when the objectdb.jar file is not available in the classpath.

ObjectDB Support
edit
delete
#3

Thanks for your suggestion.. It solved my problem.

However, do  you have any clue on error below:

 

Please report this error on http://www.objectdb.com/issue/new

com.objectdb.o.InternalException: null

com.objectdb.o.InternalException

        at com.objectdb.o.BYR.n(BYR.java:114)

        at com.objectdb.o.BYR.U(BYR.java:525)

        at com.objectdb.o.BYR.L(BYR.java:504)

        at com.objectdb.o.QJD.a(QJD.java:242)

        at com.objectdb.o.QRD.f(QRD.java:369)

        at com.objectdb.o.QRQ.m(QRQ.java:372)

        at com.objectdb.o.STC.h(STC.java:462)

        at com.objectdb.o.SHN.I(SHN.java:491)

        at com.objectdb.o.SHN.w(SHN.java:157)

        at com.objectdb.o.HND.run(HND.java:134)

        at java.base/java.lang.Thread.run(Thread.java:832)

edit
delete
#4

Is the new stack trace related to replication?

Please provide more details, including whether it happens also after restarting the server and fixing the database.

ObjectDB Support
edit
delete

Reply

To post on this website please sign in.