Subject | Problems with Firebird Embedded and Java |
---|---|
Author | anaelizabethx |
Post date | 2006-07-03T22:08:07Z |
Hi friends,
I'm having a problem with my Java application that uses Hibernate
and Firebird Embedded as alternative database. I can't use it on
Eclipse. I just try to use it with my .jar, and I receive the
following error:
org.hibernate.exception.GenericJDBCException: Cannot open connection
at
org.hibernate.exception.SQLStateConverter.handledNonSpecificException
(SQLStateConverter.java:82)
at org.hibernate.exception.SQLStateConverter.convert
(SQLStateConverter.j
ava:70)
... (blá blá blá)
at ata.aplicacao.Main.main(Main.java:28)
Caused by: org.firebirdsql.jdbc.FBSQLException: GDS Exception.
335544344. I/O er
ror for file CreateFile (open) ""
Error while trying to open file
null
Reason: I/O error for file CreateFile (open) ""
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)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at
org.hibernate.connection.DriverManagerConnectionProvider.getConnectio
n(DriverManagerConnectionProvider.java:110)
at org.hibernate.jdbc.ConnectionManager.openConnection
(ConnectionManager
.java:298)
... 15 more
The URL is correct (e.g. "c:\application\database\test.fdb"), and I
put firebird.conf, firebird.msg and jaybird21.dll on the application
directory. I put fbembed.dll on c:\windows\system32\ too...
Somebody can help me?
[]'s
Aninha.
***sorry because of my english.. i'm brazilian and i don't speak
english very well..
I'm having a problem with my Java application that uses Hibernate
and Firebird Embedded as alternative database. I can't use it on
Eclipse. I just try to use it with my .jar, and I receive the
following error:
org.hibernate.exception.GenericJDBCException: Cannot open connection
at
org.hibernate.exception.SQLStateConverter.handledNonSpecificException
(SQLStateConverter.java:82)
at org.hibernate.exception.SQLStateConverter.convert
(SQLStateConverter.j
ava:70)
... (blá blá blá)
at ata.aplicacao.Main.main(Main.java:28)
Caused by: org.firebirdsql.jdbc.FBSQLException: GDS Exception.
335544344. I/O er
ror for file CreateFile (open) ""
Error while trying to open file
null
Reason: I/O error for file CreateFile (open) ""
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)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at
org.hibernate.connection.DriverManagerConnectionProvider.getConnectio
n(DriverManagerConnectionProvider.java:110)
at org.hibernate.jdbc.ConnectionManager.openConnection
(ConnectionManager
.java:298)
... 15 more
The URL is correct (e.g. "c:\application\database\test.fdb"), and I
put firebird.conf, firebird.msg and jaybird21.dll on the application
directory. I put fbembed.dll on c:\windows\system32\ too...
Somebody can help me?
[]'s
Aninha.
***sorry because of my english.. i'm brazilian and i don't speak
english very well..