Subject | RE: [Firebird-Java] Re: Type 2 driver modifications are ready for review. |
---|---|
Author | Ryan Baldwin |
Post date | 2003-06-17T14:22:50Z |
Hello,
Did Roman's suggestion help ?
If not then which jar file are you attempting to use ?
These changes have not been commited to CVS yet so the CVS version will not
accept this URL yet.
Thanks
Ryan
-----Original Message-----
From: Luca Lafranchi [mailto:luca.lafranchi@...]
Sent: 17 June 2003 08:02
To: Firebird-Java@yahoogroups.com
Subject: Re: [Firebird-Java] Re: Type 2 driver modifications are ready
for review.
Hi Ryan :)
If I try "jdbc:firebirdsql:native://localhost/e:/path/to/mydb.fdb" I get
"Cannot connect to this database:
jdbc:firebirdsql:native://localhost/e:/databases/firebird/immopac_20030616.f
db
org.firebirdsql.jdbc.FBSQLException: Resource Exception. unavailable
database
Reason: unavailable database"
If I try "jdbc:firebirdsql:native//localhost/e:/path/to/mydb.fdb"
(without ":" after "native") I get
"java.lang.NumberFormatException: For input string: "/e"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48
)
at java.lang.Integer.parseInt(Integer.java:426)
at java.lang.Integer.parseInt(Integer.java:476)
at org.firebirdsql.jgds.GDS_Impl$DbAttachInfo.<init>(GDS_Impl.java:2051)
at org.firebirdsql.jgds.GDS_Impl.isc_attach_database(GDS_Impl.java:254)
at
org.firebirdsql.jca.FBManagedConnectionFactory.createDbHandle(FBManagedConne
ctionFactory.java:602)
at
org.firebirdsql.jca.FBManagedConnection.<init>(FBManagedConnection.java:109)
at
org.firebirdsql.jca.FBManagedConnectionFactory.createManagedConnection(FBMan
agedConnectionFactory.java:433)
at
org.firebirdsql.jca.FBStandAloneConnectionManager.allocateConnection(FBStand
AloneConnectionManager.java:61)
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:104)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:288)"
Note that I can substitute "localhost" with anything ("loopback"
included), and still it doesn't work.
The dlls are in /bin directory of the jdk, and using the prevoius
"firebird_embeded.jar" file everything goes well.
What am I doing wrong?
TIA
Luca
To unsubscribe from this group, send an email to:
Firebird-Java-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Did Roman's suggestion help ?
If not then which jar file are you attempting to use ?
These changes have not been commited to CVS yet so the CVS version will not
accept this URL yet.
Thanks
Ryan
-----Original Message-----
From: Luca Lafranchi [mailto:luca.lafranchi@...]
Sent: 17 June 2003 08:02
To: Firebird-Java@yahoogroups.com
Subject: Re: [Firebird-Java] Re: Type 2 driver modifications are ready
for review.
Hi Ryan :)
> Hello,'jdbc:firebirdsql:native
>
> I've continued to develop the type 2 driver modifications. The main things
> I've done since my last post are:
>
> 1) Exposed type 2 driver.
>
> a) Through DriverManager.getConnection() using url
> etc etc'. Url 'jdbc:firebirdsql etc etc' uses type 4 asnormal.
>Sorry if this seems trivial, but I'm stuck at the connection.
If I try "jdbc:firebirdsql:native://localhost/e:/path/to/mydb.fdb" I get
"Cannot connect to this database:
jdbc:firebirdsql:native://localhost/e:/databases/firebird/immopac_20030616.f
db
org.firebirdsql.jdbc.FBSQLException: Resource Exception. unavailable
database
Reason: unavailable database"
If I try "jdbc:firebirdsql:native//localhost/e:/path/to/mydb.fdb"
(without ":" after "native") I get
"java.lang.NumberFormatException: For input string: "/e"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48
)
at java.lang.Integer.parseInt(Integer.java:426)
at java.lang.Integer.parseInt(Integer.java:476)
at org.firebirdsql.jgds.GDS_Impl$DbAttachInfo.<init>(GDS_Impl.java:2051)
at org.firebirdsql.jgds.GDS_Impl.isc_attach_database(GDS_Impl.java:254)
at
org.firebirdsql.jca.FBManagedConnectionFactory.createDbHandle(FBManagedConne
ctionFactory.java:602)
at
org.firebirdsql.jca.FBManagedConnection.<init>(FBManagedConnection.java:109)
at
org.firebirdsql.jca.FBManagedConnectionFactory.createManagedConnection(FBMan
agedConnectionFactory.java:433)
at
org.firebirdsql.jca.FBStandAloneConnectionManager.allocateConnection(FBStand
AloneConnectionManager.java:61)
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:104)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:288)"
Note that I can substitute "localhost" with anything ("loopback"
included), and still it doesn't work.
The dlls are in /bin directory of the jdk, and using the prevoius
"firebird_embeded.jar" file everything goes well.
What am I doing wrong?
TIA
Luca
To unsubscribe from this group, send an email to:
Firebird-Java-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/