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?


From: Kathey Marsden <kmarsdenderby@sbcglobal.net>
To: Derby Discussion <derby-user@db.apache.org>
Cc: Pavel Bortnovskiy <PBortnovskiy@Jefferies.com>
Date: 02/09/2011 01:32 PM
Subject: 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 jdbc:derby:memory:testdb;create=true

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.