Subject Re: [firebird-support] Error 335544344 when connecting to Firebird 2 from web application
Author Mark Rotteveel
See: http://tracker.firebirdsql.org/browse/JDBC-96

Summary occurs with Firebird 2.0 SS (maybe also 2.1) in combination with Jaybird 2.1

This should be solved in the next Jaybird (2.2). For now use the old style jdbc url ( jdbc:firebirdsql:localhost/3050:libman2 ), which should work according to the bug-description).

Mark

> 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.
>
>
>
> ------------------------------------
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Visit http://www.firebirdsql.org and click the Resources item
> on the main (top) menu. Try Knowledgebase and FAQ links !
>
> Also search the knowledgebases at http://www.ibphoenix.com
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Yahoo! Groups Links
>
>
>
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser