BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Firebird embedded and JBuilderx java applicatiomn

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Databases
View previous topic :: View next topic  
Author Message
cts
Guest





PostPosted: Wed Aug 02, 2006 8:13 am    Post subject: Firebird embedded and JBuilderx java applicatiomn Reply with 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?
Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Wed Aug 02, 2006 6:15 pm    Post subject: Re: Firebird embedded and JBuilderx java applicatiomn Reply with quote



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





PostPosted: Thu Aug 03, 2006 8:12 am    Post subject: Re: Firebird embedded and JBuilderx java applicatiomn Reply with quote



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






PostPosted: Thu Aug 03, 2006 8:12 am    Post subject: Re: Firebird embedded and JBuilderx The ANSWER Reply with quote

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





PostPosted: Thu Aug 03, 2006 4:51 pm    Post subject: Re: Firebird embedded and JBuilderx The ANSWER Reply with quote

"ctskinner" ctskinnerATyahoo.com wrote:

Quote:
the answer is:

Thanks for posting the solution.

--
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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.