Subject | Help Again |
---|---|
Author | Francisco Antonio Vieira Souza |
Post date | 2004-09-13T14:22:07Z |
Please, could someone help me??
I have my application woking ok in winxp but in win98 SE I am having
problema to get authorization to connect, what shoud that be?
Trying to conect with my application using JayBird I get this:
Trying to conect with IBExpert I get this: Connection authorization failure.
I have copied these files to \windows\system :
msvcp60.ddl
msvcrt.dll
And I still have copied this file into the application directory:
fbclient.dll
I was using pool but I tought would be the problem, so I decided to use
normal connection, which did not solve the problem:
After registering the driver I get the connection this way:
public static void setRegFirebird()
{
try
{
Class.forName("org.firebirdsql.jdbc.FBDriver");
}
catch(java.lang.ClassNotFoundException e)
{
TG.Mess("Não pode Registar o Driver", "O Sistema não pode
ser executado sem o driver ser registrado.\n\n"+e.getMessage());
System.exit(0);
return;
}
}
public static Connection getCon()
{
Connection c = null;
String maquina = "";
try
{
maquina = "localhost"; //getCaminhoServidor();
}
catch(Exception io){}
String user = "SYSDBA";
String pwd = "masterkey";
String dir_db = "C:\\Kooky\\SiGet\\dados\\SIGET.FDB";
String url =
"jdbc:firebirdsql:"+maquina+"/3050:"+dir_db+"?lc_ctype=ISO8859_1";
try
{
c = java.sql.DriverManager.getConnection (url, user,
pwd);
}
catch(org.firebirdsql.jdbc.FBSQLException ef) // EXCEPTION
OCCURS HERE
{
ef.printStackTrace();
TG.Mess("Erro FB/SQL: Pegando a Conexão",ef.getMessage());
return null;
}
catch(SQLException eee)
{
eee.printStackTrace();
TG.Mess("Erro SQL - Pegando a Conexão",eee.getMessage());
return null;
}
return c;
}
Thanks
I would appreciate any help.
I have my application woking ok in winxp but in win98 SE I am having
problema to get authorization to connect, what shoud that be?
Trying to conect with my application using JayBird I get this:
> > org.firebirdsql.jdbc.FBSQLException: Resource Exception. No messageTying to conect with ISQ I get this: ERROR SQLCODE -922
> > for code 335544352 found.
> > null
> > null
> > null
> > Reason: No message for code 335544352 found.
> > null
> > null
> > null
Trying to conect with IBExpert I get this: Connection authorization failure.
I have copied these files to \windows\system :
msvcp60.ddl
msvcrt.dll
And I still have copied this file into the application directory:
fbclient.dll
I was using pool but I tought would be the problem, so I decided to use
normal connection, which did not solve the problem:
After registering the driver I get the connection this way:
public static void setRegFirebird()
{
try
{
Class.forName("org.firebirdsql.jdbc.FBDriver");
}
catch(java.lang.ClassNotFoundException e)
{
TG.Mess("Não pode Registar o Driver", "O Sistema não pode
ser executado sem o driver ser registrado.\n\n"+e.getMessage());
System.exit(0);
return;
}
}
public static Connection getCon()
{
Connection c = null;
String maquina = "";
try
{
maquina = "localhost"; //getCaminhoServidor();
}
catch(Exception io){}
String user = "SYSDBA";
String pwd = "masterkey";
String dir_db = "C:\\Kooky\\SiGet\\dados\\SIGET.FDB";
String url =
"jdbc:firebirdsql:"+maquina+"/3050:"+dir_db+"?lc_ctype=ISO8859_1";
try
{
c = java.sql.DriverManager.getConnection (url, user,
pwd);
}
catch(org.firebirdsql.jdbc.FBSQLException ef) // EXCEPTION
OCCURS HERE
{
ef.printStackTrace();
TG.Mess("Erro FB/SQL: Pegando a Conexão",ef.getMessage());
return null;
}
catch(SQLException eee)
{
eee.printStackTrace();
TG.Mess("Erro SQL - Pegando a Conexão",eee.getMessage());
return null;
}
return c;
}
Thanks
I would appreciate any help.