Hi,
I just downloaded latest snapshot and I can not get connection from the pool.
OrientDB release? (If you're using a SNAPSHOT please attach also the build number found in "build.number" file):
orientdb-1.0-SNAPSHOT => 23.appril. => orientdb-1.0-20120423.135731-15-distribution.zip
What steps will reproduce the problem?
The only thing I do in the code is following:
dbURL=remote:localhost/testDatabase
user= admin, password=admin
ODatabaseDocumentTx db = orientPool.acquire(dbUrl, user, password);
and I receive:
com.orientechnologies.common.concur.lock.OLockException: Error on creation of the new resource in the pool
at com.orientechnologies.common.concur.resource.OResourcePool.getResource(OResourcePool.java:71)
at com.orientechnologies.orient.core.db.ODatabasePoolAbstract.acquire(ODatabasePoolAbstract.java:70)
at com.orientechnologies.orient.core.db.ODatabasePoolAbstract.acquire(ODatabasePoolAbstract.java:52)
at com.orientechnologies.orient.core.db.ODatabasePoolBase.acquire(ODatabasePoolBase.java:83)
Caused by: java.lang.NumberFormatException: For input string: "p"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:449)
at java.lang.Integer.parseInt(Integer.java:499)
at com.orientechnologies.orient.core.config.OStorageConfiguration.fromStream(OStorageConfiguration.java:170)
at com.orientechnologies.orient.core.config.OStorageConfiguration.load(OStorageConfiguration.java:94)
at com.orientechnologies.orient.client.remote.OStorageRemote.open(OStorageRemote.java:166)
at com.orientechnologies.orient.client.remote.OStorageRemoteThread.open(OStorageRemoteThread.java:64)
at com.orientechnologies.orient.core.db.raw.ODatabaseRaw.open(ODatabaseRaw.java:83)
... 47 more
Database was created using root/pippo:
OServerAdmin oServerAdmin = connectWithServerAdmin(databaseURL);
if (oServerAdmin.existsDatabase()) {
oServerAdmin.dropDatabase();
}
oServerAdmin.createDatabase("document", "local");
If you're using custom settings please provide them below (to dump all the settings run the application using the JVM argument -Denvironment.dumpCfgAtStartup=true):
No custom settings I just started as it was downloaded.
What is the expected output? What do you see instead?
That I will have connection.
If you're describing a performance or memory problem the profiler dump can be very useful (to dump it run the application using the JVM arguments -Dprofiler.autoDump.reset=true -Dprofiler.autoDump.interval=10 -Dprofiler.enabled=true):
Thank you for any help,
Frantisek