keko2005
11-28-2005, 07:56 PM
hey guys, im a noob rememebr that. ok i am designing an application that connects to a db, now i got the connection working properly. when i run my driver, which brings up a test GUI to input column name, type length and null. and everything is inputed, click ok and i recieve this error when trying to execute the sql statement
Communication link failure: java.io.EOFException, underlying cause: null
** BEGIN NESTED EXCEPTION **
java.io.EOFException
STACKTRACE:
the method that puts it all together from the GUI fields, is in a seperate class. it appends the appropriate fields(not blank ones), and then passes the string rep of the characters(toString) to a createTables method. everything in the create tables method executes until i reach this line of code:
stmt.execute(sqlStr);
thats when i get the error. but its weird, because if i create the statement myself:
String str = "CREATE TABLE test(testField char(8));
etc...
stmt.execute(str);
it works fine, its only when im recieving the SQL string from another class that i encounter this error. do you guys understand, or do you need me to post the code?
Communication link failure: java.io.EOFException, underlying cause: null
** BEGIN NESTED EXCEPTION **
java.io.EOFException
STACKTRACE:
the method that puts it all together from the GUI fields, is in a seperate class. it appends the appropriate fields(not blank ones), and then passes the string rep of the characters(toString) to a createTables method. everything in the create tables method executes until i reach this line of code:
stmt.execute(sqlStr);
thats when i get the error. but its weird, because if i create the statement myself:
String str = "CREATE TABLE test(testField char(8));
etc...
stmt.execute(str);
it works fine, its only when im recieving the SQL string from another class that i encounter this error. do you guys understand, or do you need me to post the code?