java.lang.NumberFormatException: For input string: "p"

775 views
Skip to first unread message

František Kolář

unread,
Apr 26, 2012, 6:25:48 PM4/26/12
to orient-...@googlegroups.com
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  


Luca Garulli

unread,
Apr 26, 2012, 6:29:50 PM4/26/12
to orient-...@googlegroups.com
Hi,
what is the version of OrientDB that created the database?

Lvc@

František Kolář

unread,
Apr 26, 2012, 6:34:53 PM4/26/12
to orient-...@googlegroups.com
You mean this information?

2012-04-27 12:11:59:958 INFO OrientDB Server v1.0-SNAPSHOT (build trunk@r5219; 2012-04-23 15:54:07+0200) is starting up... [OServer]
 or 

orientdb-1.0-SNAPSHOT =>  23.appril. => orientdb-1.0-20120423.135731-15-distribution.zip

----

Then I have application libraries that are were downloaded by maven and in the manifest it says following [so the server is several days newer than client libraries. ]:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven Bundle Plugin
Built-By: Luca
Build-Jdk: 1.7.0_03
Specification-Title: OrientDB Core
Specification-Version: 1.0-SNAPSHOT
Specification-Vendor: Orient Technologies
Implementation-Title: OrientDB Core
Implementation-Version: 1.0-SNAPSHOT
Implementation-Vendor-Id: com.orientechnologies
Implementation-Vendor: Orient Technologies
Implementation-Build: trunk@r5199
Implementation-Build-Date: 2012-04-19 01:49:12+0200
X-Compile-Source-JDK: 1.5
X-Compile-Target-JDK: 1.5
Bnd-LastModified: 1334793005367
Bundle-Description: OrientDB NoSQL document graph dbms
Bundle-ManifestVersion: 2
Bundle-Name: OrientDB Core
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-SymbolicName: com.orientechnologies.orientdb-core
Bundle-Vendor: Orient Technologies
Bundle-Version: 1.0.0.SNAPSHOT

František Kolář

unread,
Apr 26, 2012, 6:52:29 PM4/26/12
to orient-...@googlegroups.com
Just an update:


I refresh from maven repository and now it says the date and not it work. so only issue with those client libraries from 19th agains the DB from 23th. :

Implementation-Vendor: Orient Technologies
Implementation-Build: trunk@r5394
Implementation-Build-Date: 2012-04-27 00:27:58+0200
X-Compile-Source-JDK: 1.5
X-Compile-Target-JDK: 1.5
Bnd-LastModified: 1335479335942
Bundle-Description: OrientDB NoSQL document graph dbms

František Kolář

unread,
Apr 26, 2012, 6:57:12 PM4/26/12
to orient-...@googlegroups.com
JUst download also DB server and started:

2012-04-27 12:55:18:383 INFO OrientDB Server v1.0-SNAPSHOT (build trunk@r5219; 2012-04-27 00:27:58+0200) is starting up... [OServer]
and it works too. So probably good to remember that libraries and the DB should be  from the same version ;-)

Luca Garulli

unread,
Apr 27, 2012, 12:20:23 AM4/27/12
to orient-...@googlegroups.com

Hi,
backward compatibility is supported, but probably that snapshot version has some bug on it.

Lvca@

Sent from a touch phone: sorry for this fruit of crappy keyboard..

Reply all
Reply to author
Forward
0 new messages