Hi All,

I've seen this same SQLException mentioned before, but I'm getting it,
and it doesn't have anything to do with large data sets, at least not
in my case I don't believe..

SQL Exception: java.sql.SQLException: Cannot create an instance of generated 
class org.apache.derby.exe.ac601a400fx0111x039dx510fx000007881b282.


I'm using Tomcat 5.5.17 and the latest derby.jar from
db-derby-10.2.2.0, on a Windows XP Pro system.

My Java code is pretty simple:

Connection con = null;          
Statement stmt = null;
ResultSet rs = null;

try
{
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/DataDB");
con = ds.getConnection();

stmt = con.createStatement();
rs = stmt.executeQuery("SELECT computer_UUID FROM computer");
  
All the Objects returned are OK:

(Context)initContext: [EMAIL PROTECTED]
(Context)envContext: [EMAIL PROTECTED]
(DataSource)ds: [EMAIL PROTECTED]
con: [EMAIL PROTECTED]
stmt: [EMAIL PROTECTED]

But it gets the SQLException when it hits the executeQuery().

Is there anything I can do to fix this?

Thanks,

Joe Siebenmann



_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


Reply via email to