db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Re: NullPointerException deep in Derby
Date Wed, 09 Feb 2011 18:32:16 GMT
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.


Mime
View raw message