Subject | Re: Problems with Firebird Embedded and Java |
---|---|
Author | anaelizabethx |
Post date | 2006-07-04T01:31:26Z |
Hi =)
I found my mistake. I was trying to create a new database through
hibernate (setting hbm2ddl = create), but i couldn't make this.
After i created a new database, i tried to connect and it worked
well.
Thanks.
Aninha.
--- In Firebird-Java@yahoogroups.com, "anaelizabethx"
<anaelizabethx@...> wrote:
I found my mistake. I was trying to create a new database through
hibernate (setting hbm2ddl = create), but i couldn't make this.
After i created a new database, i tried to connect and it worked
well.
Thanks.
Aninha.
--- In Firebird-Java@yahoogroups.com, "anaelizabethx"
<anaelizabethx@...> wrote:
>connection
> 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
> atorg.hibernate.exception.SQLStateConverter.handledNonSpecificException
>
> (SQLStateConverter.java:82)org.hibernate.connection.DriverManagerConnectionProvider.getConnectio
> 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
>
> n(DriverManagerConnectionProvider.java:110)I
> at org.hibernate.jdbc.ConnectionManager.openConnection
> (ConnectionManager
> .java:298)
> ... 15 more
>
> The URL is correct (e.g. "c:\application\database\test.fdb"), and
> put firebird.conf, firebird.msg and jaybird21.dll on theapplication
> 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..
>