| View previous topic :: View next topic |
| Author |
Message |
cts Guest
|
Posted: Wed Aug 02, 2006 8:13 am Post subject: Firebird embedded and JBuilderx java applicatiomn |
|
|
I am very close to getting Firebird embedded working with JBuilder
the DataModule wizard can see data
the setconnection throws no exceptions
But when I try to open a table in my program it throws a
com.borland.dx.dataset.DataSetException
Can anyone comment on JBuilderX & FirebirdEmbedded? |
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Wed Aug 02, 2006 6:15 pm Post subject: Re: Firebird embedded and JBuilderx java applicatiomn |
|
|
cts wrote:
| Quote: | I am very close to getting Firebird embedded working with JBuilder
the DataModule wizard can see data
the setconnection throws no exceptions
But when I try to open a table in my program it throws a
com.borland.dx.dataset.DataSetException
Can anyone comment on JBuilderX & FirebirdEmbedded?
|
Run the console version of JBuilder (jbuilder.exe instead of
jbuilderw.exe). The exception will be printed to the console window; that
should give you some idea as to the cause of the error.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html |
|
| Back to top |
|
 |
ctskinner Guest
|
Posted: Thu Aug 03, 2006 8:12 am Post subject: Re: Firebird embedded and JBuilderx java applicatiomn |
|
|
Firebird embedded and JBuilderx java application
I am very close to getting Firebird embedded working with JBuilder
the DataModule wizard can see data
the setconnection throws no exceptions
But when I try to open a table [QueryDataSet in my program it throws a
com.borland.dx.dataset.DataSetException
dDriver = "org.firebirdsql.jdbc.FBDriver";
durl = "jdbc:firebirdsql:embedded:C:\\a\\emFirebird\\T21";
database1.setConnection(new com.borland.dx.sql.dataset.ConnectionDescriptor(durl, dUname, dpass, false, dDriver));
===========================================
com.borland.dx.dataset.DataSetException: Resource Exception. I/O error 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
============================================
[nb its a QueryDataSet, not a 'file' that I am trying to open]
If I omit the "embedded" ie:
durl = "jdbc:firebirdsql:C:\\a\\emFirebird\\T21";
I get:
============================================
com.borland.dx.dataset.DataSetException: Resource Exception. Unable to complete network request to host "C".
Reason: Unable to complete network request to host "C".
============================================
Note: the setconnection throws no exception even when the url points to a directory which does _not_ contain my fdb database
The exceptions arise when I try to open a QueryDataSet |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Aug 03, 2006 8:12 am Post subject: Re: Firebird embedded and JBuilderx The ANSWER |
|
|
the answer is:
jdbc:firebirdsql:embedded:C:\\a\\emFirebird\\T21.fdb
NOT
jdbc:firebirdsql:embedded:C:\\a\\emFirebird\\T21
Obvious (in hindsight)
thanks to a prompt reply on:
http://groups.yahoo.com/group/Firebird-Java/
from:
"Roman Rokytskyy" <rrokytskyy@...>
rrokytskyy
JBuilderX and FireBird, a good combo.... |
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
|
| Back to top |
|
 |
|