Subject Re: [Firebird-Java] GDS Exception. 335544323. file is not a valid database (was: )
Author Mark Rotteveel
On 10-6-2017 16:34, Jan Agermose // SDHK.dk jan.agermose@...
[Firebird-Java] wrote:
> im trying to connect to a firebird 2.5 database from a java program. I
> get the error
>
> GDS Exception. 335544323. file is not a valid database
>
> the server and client maschine are both windows server 2012, 64bit.
>
> the mainprogram using the database is working but is unrelated to me.
> Ive just been allowed to connect to the database to sync some of the
> data to a system Im developing. But I cannot. So its only my part not
> working. The other system is not java based.
>
> String url =
> "jdbc:firebirdsql://192.168.32.2:3050/c:\\XXXX\\em\\data\\db\\XXXX\\XXXX.edb";
> Class.forName("org.firebirdsql.jdbc.FBDriver").newInstance();
> Connection connection = DriverManager.getConnection(url, "ww","ww");
>
> why would it not be a valid database from java?

This error is reported by the Firebird server, so I don't think you are
connecting to a Firebird database at all. What happens if you connect to
this Firebird server and database using Flamerobin?

Note that edb is also not a common extension for Firebird databases, it
is either FDB, or - historically - GDB.

What is this main program? Are you sure it is actually using Firebird?

Mark
--
Mark Rotteveel