SSL cannot connect from client StackOverflow error

#1

Hello,

i am trying to set up the SSL for connections to objectDB server.
I cannot connect the Client, when SSL is enabled.
I can connect from Explorer, when "Use SSL" is checked, isn't there some option, which I missed on java client side?
I read https://www.objectdb.com/java/jpa/setting/ssl and didn't saw any additional option needed.

It fails on method PersistanceManagerFactory.getPersistenceManager()

On server it keeps writing SSL Error: Unsupported or unrecognized SSL message until the StackOverflowError is printed.

2021-03-01 16:17:38,098 | ERROR | java.lang.StackOverflowError 
java.lang.StackOverflowError
    at java.base/java.lang.Exception.<init>(Exception.java:67)
    at java.base/java.io.IOException.<init>(IOException.java:58)
    at java.base/java.net.SocketException.<init>(SocketException.java:47)
    at java.base/sun.net.ConnectionResetException.<init>(ConnectionResetException.java:41)
    at java.base/sun.nio.ch.SocketDispatcher.read0(Native Method)
    at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:47)
    at java.base/sun.nio.ch.NioSocketImpl.tryRead(NioSocketImpl.java:261)
    at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:279)
    at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:309)
    at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:350)
    at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:803)
    at java.base/java.net.Socket$SocketInputStream.read(Socket.java:981)
    at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:244)
    at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
    at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:343)
    at com.objectdb.o.NTS.n(NTS.java:324)
    at com.objectdb.o.NTS.m(NTS.java:284)
    at com.objectdb.o.CLS.y(CLS.java:350)
    at com.objectdb.o.CLS.z(CLS.java:283)
    at com.objectdb.o.CLS.w(CLS.java:172)
    at com.objectdb.o.CLS.x(CLS.java:141)
    at com.objectdb.o.CST.o(CST.java:150)
    at com.objectdb.o.CLS.A(CLS.java:322)
    at com.objectdb.o.CLS.z(CLS.java:290)
    at com.objectdb.o.CLS.w(CLS.java:172)
    at com.objectdb.o.CLS.x(CLS.java:141)
    at com.objectdb.o.CST.o(CST.java:150)
#2

> I can connect from Explorer, when "Use SSL" is checked, isn't there some option, which I missed on java client side?

When "Use SSL" is enabled, the Explorer uses a connection url that starts with objectdbs:// instead of objectdb://. This seems to be the only difference on the client side.

ObjectDB Support
#3

Thank you,

appreciate quick reply.

Indeed, that was the difference, now it is working correctly.
I suppose, that it should be mentioned in the SSL howto https://www.objectdb.com/java/jpa/setting/ssl

#4

Thank you again for this report. The relevant manual page was updated now.

ObjectDB Support

Reply