db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Bortnovskiy <PBortnovs...@Jefferies.com>
Subject Re: NullPointerException deep in Derby
Date Wed, 09 Feb 2011 18:46:07 GMT
Did so, Kathey, but got the same error...

maybe I can't use URL=jdbc:derby:memory:testdb;create=true

in 10.2 and 10.3?

Kathey Marsden <kmarsdenderby@sbcglobal.net>
Derby Discussion <derby-user@db.apache.org>
Pavel Bortnovskiy <PBortnovskiy@Jefferies.com>
02/09/2011 01:32 PM
Re: NullPointerException deep in Derby

On 2/9/2011 10:19 AM, Pavel Bortnovskiy wrote: 
Hello, Kathey: 

thank you for prompt response. 

I was running 10.6. Upgraded to 10.7 and encountered the same NPE. 

Downgraded to 10.3 and 10.2 but got a different error 
        Caused by: java.sql.SQLException: No suitable driver found for 

What could be a problem there? 
Older versions do not have driver autoloading.  You will need to add:
Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();  to 
your code in the beginning to get the driver loaded.

Jefferies archives and monitors outgoing and incoming e-mail. The contents of this email,
including any attachments, are confidential to the ordinary user of the email address to which
it was addressed. If you are not the addressee of this email you may not copy, forward, disclose
or otherwise use it or any part of it in any form whatsoever. This email may be produced at
the request of regulators or in connection with civil litigation. Jefferies accepts no liability
for any errors or omissions arising as a result of transmission. Use by other than intended
recipients is prohibited.  In the United Kingdom, Jefferies operates as Jefferies International
Limited; registered in England: no. 1978621; registered office: Vintners Place, 68 Upper Thames
Street, London EC4V 3BJ.  Jefferies International Limited is authorised and regulated by the
Financial Services Authority.
View raw message