Krasimir Cholakov
2018-07-10 05:54:45 UTC
Hello,
I am using OrientDB 3.0.2. I am using the java api to create pooled
connection to the database like this:
OrientDB orientDB = new OrientDB(Constants.DATABASE_HOST, "root",
Constants.DATABASE_ROOT_PASS, OrientDBConfig.defaultConfig());
ODatabasePool pool = new ODatabasePool(orientDB, databaseURL,
Constants.DATABASE_USER, Constants.DATABASE_PASS);
ODatabaseSession db = pool.acquire();
after using the session, it is closed by calling db.close();
After some time without using the application (and also the db connection),
on attempt to call the database again I get:
Caused by:
com.orientechnologies.orient.enterprise.channel.binary.OTokenSecurityException:
The token provided is expired
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at
com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.throwSerializedException(OChannelBinaryAsynchClient.java:318)
Am I using the database connection wrong or there is something else?
Thanks
I am using OrientDB 3.0.2. I am using the java api to create pooled
connection to the database like this:
OrientDB orientDB = new OrientDB(Constants.DATABASE_HOST, "root",
Constants.DATABASE_ROOT_PASS, OrientDBConfig.defaultConfig());
ODatabasePool pool = new ODatabasePool(orientDB, databaseURL,
Constants.DATABASE_USER, Constants.DATABASE_PASS);
ODatabaseSession db = pool.acquire();
after using the session, it is closed by calling db.close();
After some time without using the application (and also the db connection),
on attempt to call the database again I get:
Caused by:
com.orientechnologies.orient.enterprise.channel.binary.OTokenSecurityException:
The token provided is expired
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at
com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.throwSerializedException(OChannelBinaryAsynchClient.java:318)
Am I using the database connection wrong or there is something else?
Thanks
--
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.