how would i change the port number on the embedded version?
Main Topics
Browse All TopicsI am trying to get my java application to connect to a firebird embedded database and so far i keep getting errors currently i am getting this error
org.firebirdsql.gds.impl.j
at org.firebirdsql.gds.impl.j
at org.firebirdsql.gds.impl.j
at org.firebirdsql.gds.impl.j
at org.firebirdsql.gds.impl.j
at org.firebirdsql.gds.impl.j
at org.firebirdsql.gds.impl.G
In order to get to this point i dropped both the fbembed.dll and the gds32.dll(which is actually just the renamed fbembed.dll) into the c:\windows\system32 folder.
I then tried dropping all kinds of other files including the intl folder from the firebird embedded download and the firebird.conf and firebird.msg
I also tried putting them directly in my lib folder it still cannot find the the gds32.dll.
Any ideas on what i am doing wrong or where the gds32.dll should go?
oh yeah the connection url i am using in my project is this
try{
Connection con = null;
Driver d = (Driver)Class.forName( "org.firebirdsql.jdbc.FBDr
con = DriverManager.getConnectio
System.out.println("sqlUti
Statement stmt = con.createStatement(Result
}catch (java.sql.SQLException e){
System.out.println("except
e.printStackTrace();
}
the error occurs after the DriverManager.getConnectio
and i should add also i have firebird 2.0 superserver installed and running on my system possibly is this causing a conflict?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I managed to find a setting in the firebird.conf which says
RemoteServicePort
and i uncommented it and change it to look like this
RemoteServicePort = 3059
that gave me the same error as above
Ok i went back to what the readme file says to do and i uninstalled firebird 2.0 superserver and i get this error.
exception: Message-Unexpected exception caught. ToString-org.firebirdsql.g
org.firebirdsql.gds.impl.j
at org.firebirdsql.gds.impl.j
at org.firebirdsql.gds.impl.j
at org.firebirdsql.jca.FBMana
at org.firebirdsql.jca.FBMana
at org.firebirdsql.jca.FBStan
at org.firebirdsql.jdbc.FBDat
I setup the file directly like it says in the readme
c:\my_app\app.exe
c:\my_app\gds32.dll
c:\my_app\ib_util.dll
c:\my_app\icudt30.dll
c:\my_app\icuin30.dll
c:\my_app\icuuc30.dll
c:\my_app\firebird.conf
c:\my_app\firebird.msg
c:\my_app\intl\fbintl.dll
c:\my_app\intl\fbintl.conf
c:\my_app\udf\fbudf.dll
this didn't work either
Yes isql can connect to it i did not know if i was connected so i just ran a query to test(as i have never used isql yet)
Use CONNECT or CREATE DATABASE to specify a database
SQL> CONNECT C:\zee03\Database\USERDB.F
CON> user 'SYSDBA' password 'masterkey';
Database: C:\zee03\Database\USERDB.F
SQL> SELECT COUNT(*) FROM ORDERS
CON> go;
COUNT
============
0
SQL>
Another thing i just found out was that if i change the connection string from
con = DriverManager.getConnectio
to:
con = DriverManager.getConnectio
All of the documentation at firebird says i should be using the embedded tag not localhost so i am assuming it's somehow using the installed firebird server to make the connection(not say i have any idea how this works thats just my guess).
I want to use the embedded database in my application however so i should not have to install the server on my system just the files for the embedded version.
yes it's using which ever version you installed as a server, most commonly the server version is used for development as you can have multiple connection open at once, then embeded for deployment. I think the problem is that you are trying to have both embedded & server installed at once.
I would remove one (completely), get the other working, edit firebird.conf to move it's port, then install the other and get that working, once each work via isql you know it's just the java params that need to change
I have a problem, ehh if i uninstall firebird 2.0 superserver than i don't seem to have isql on my system and i can't seem to find it online to download anywhere. As it is not included with the embedded download package. Do you know where i can find it.
I do have flamerobin installed on my computer and no it cannot connect without the superserver installed on my computer it gives me an error.
Context: Database: Connect
Message: isc_attach_Database failed
SQL Message: -904
can't format message 13:96 --message c:\Program Files\firebird.msg not found
Engine Code 335544375
This is kind of strange since i never installed firebird to the program files folder it was installed to the default folder
C:\Program Files\Firebird\Firebird_2_
I tried connecting again with java same error
exception: Message-Unexpected exception caught. ToString-org.firebirdsql.g
org.firebirdsql.gds.impl.j
at org.firebirdsql.gds.impl.j
at org.firebirdsql.gds.impl.j
at org.firebirdsql.jca.FBMana
at org.firebirdsql.jca.FBMana
at org.firebirdsql.jca.FBStan
at org.firebirdsql.jdbc.FBDat
at org.firebirdsql.jdbc.FBDri
I could just be putting the embedded files in the wrong place
I am using netbeans as my IDE and it has the usual folder arrangement
My Project
build
dist
nbproject
src
test
I placed my embedded files in the My Project folder which now looks like this
My Project
build
dist
intl --firebird embedded folder
nbproject
src
test
udf --firebird embedded folder
fbembed.dll -- embedded file
gds32.dll -- embedded file
fbclient.dll --embedded file
jaybird21.dll -- embedded file
Business Accounts
Answer for Membership
by: NickUpsonPosted on 2006-11-28 at 22:55:58ID: 18034830
to run 2 versions on the same machine at the same time you need to configure one to run on a non-default port number, say 1.5 on 3050 (default) & 2.0 on 3059 (say)
once that is done, please try using the commandline isql tool to connect to the database (correct version)
isql localhost:c:\dbs\mydb.fdb -user sysdba -password masterkey