Subject | JDBC and connectivity in an Applet - using FB 1.5.3 - baffled. |
---|---|
Author | plinehan |
Post date | 2009-03-26T21:48:30Z |
Hi all,
I have simple code below - it just won't work - I would
appreciate any help. TIA and rgs.
private void createCustomerRecord()
{
Connection con;
Statement stmt;
textCustName.setText("Maureen");
Properties props = new Properties();
props.setProperty("user", "SYSDBA");
props.setProperty("password", "masterkey");
con = null;
try
{
textAdd1.setText("Past opening try"); // DEBUGGING
try
{
textAdd2.setText("trying class for name"); // DEBUGGING
Class.forName("org.firebirdsql.jdbc.FBDriver");
textAdd2.setText("past clasforname within try");
}
catch(Exception e)
{
textAdd2.setText(e.toString());
}
The code gets as far as here and stalls completely.
"Past opening try" appears in textAdd1 and
"trying class for name" appears in textAdd2
But nothing further happens - the code just sticks there. In
my try around the whole code - I have e.toString() into
textAdd2 - but it never gets there... I'm really puzzled
by this - what am I missing? I have this working perfectly
in a class - but it won't work in an applet...
Any pointers much appreciated.
Rgs.
Paul...
I have simple code below - it just won't work - I would
appreciate any help. TIA and rgs.
private void createCustomerRecord()
{
Connection con;
Statement stmt;
textCustName.setText("Maureen");
Properties props = new Properties();
props.setProperty("user", "SYSDBA");
props.setProperty("password", "masterkey");
con = null;
try
{
textAdd1.setText("Past opening try"); // DEBUGGING
try
{
textAdd2.setText("trying class for name"); // DEBUGGING
Class.forName("org.firebirdsql.jdbc.FBDriver");
textAdd2.setText("past clasforname within try");
}
catch(Exception e)
{
textAdd2.setText(e.toString());
}
The code gets as far as here and stalls completely.
"Past opening try" appears in textAdd1 and
"trying class for name" appears in textAdd2
But nothing further happens - the code just sticks there. In
my try around the whole code - I have e.toString() into
textAdd2 - but it never gets there... I'm really puzzled
by this - what am I missing? I have this working perfectly
in a class - but it won't work in an applet...
Any pointers much appreciated.
Rgs.
Paul...