Subject | Error 335544344 when connecting to Firebird 2 from web application |
---|---|
Author | Jeroen Wenting |
Post date | 2009-07-27T11:29:16Z |
I'm working on a web application connecting to Firebird 2 using Hibernate 3.
When trying to launch Hibernate, a 335544344 gets logged.
WARNING: Could not obtain connection metadata
org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544344. I/O error for file %.0s"CreateFile (open)"
null
Error while trying to open file
null
Reason: I/O error for file %.0s"CreateFile (open)"
null
Error while trying to open file
null
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:122)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:131)
Using the exact same Hibernate configuration to connect to the same database, from the same system, using a Swing application works flawlessly. Same when trying to connect to the database using SQL clients like Squirrel or isql.
When changing the Firebird data in the Hibernate config for Oracle data, connection to the mapped Oracle database can be made just fine as well.
The database is empty right now, created new for the application. But the web application seems unable to connect to any Firebird database existing on the machine (I tried letting it connect to another one that works fine from an existing Swing application, that too fails).
Hibernate config:
<property name="connection.driver_class">org.firebirdsql.jdbc.FBDriver</property>
<property name="connection.url">jdbc:firebirdsql://localhost:3050/libman2></property>
<property name="connection.username">sysdba</property>
<property name="connection.password">masterkey</property>
<property name="dialect">org.hibernate.dialect.FirebirdDialect</property>
aliases.conf contains:
libman2=g:\dev\libman2\database\libman2.fdb
which exists (case sensitive).
Running on Vista Enterprise SP2, Firebird 2.0.something, Jaybird 2.1.1
Database and applications are running on the same machine.
I've in the past successfully used this combination on XP and Linux.
When trying to launch Hibernate, a 335544344 gets logged.
WARNING: Could not obtain connection metadata
org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544344. I/O error for file %.0s"CreateFile (open)"
null
Error while trying to open file
null
Reason: I/O error for file %.0s"CreateFile (open)"
null
Error while trying to open file
null
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:122)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:131)
Using the exact same Hibernate configuration to connect to the same database, from the same system, using a Swing application works flawlessly. Same when trying to connect to the database using SQL clients like Squirrel or isql.
When changing the Firebird data in the Hibernate config for Oracle data, connection to the mapped Oracle database can be made just fine as well.
The database is empty right now, created new for the application. But the web application seems unable to connect to any Firebird database existing on the machine (I tried letting it connect to another one that works fine from an existing Swing application, that too fails).
Hibernate config:
<property name="connection.driver_class">org.firebirdsql.jdbc.FBDriver</property>
<property name="connection.url">jdbc:firebirdsql://localhost:3050/libman2></property>
<property name="connection.username">sysdba</property>
<property name="connection.password">masterkey</property>
<property name="dialect">org.hibernate.dialect.FirebirdDialect</property>
aliases.conf contains:
libman2=g:\dev\libman2\database\libman2.fdb
which exists (case sensitive).
Running on Vista Enterprise SP2, Firebird 2.0.something, Jaybird 2.1.1
Database and applications are running on the same machine.
I've in the past successfully used this combination on XP and Linux.