db-ddlutils-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian.Eugs...@kost.admin.ch
Subject NullPointerException creating a new platform instance using hsqld b
Date Thu, 16 Feb 2006 10:35:49 GMT
Hi,

I try to use an hsqldb database in my application. The following code throws
a NullPointerException at the last line (>):

	Class.forName( "org.hsqldb.jdbcDriver" );
	org.hsqldb.jdbc.jdbcDataSource ds = new
org.hsqldb.jdbc.jdbcDataSource();
	ds.setDatabase(db.getName());
	ds.setUser("sa");
	ds.setPassword("");
>	Platform platform = PlatformFactory.createNewPlatformInstance(ds,
"sa", "");

The hsqldb server ist running...

The Exception:

Exception in thread "main" java.lang.NullPointerException
	at
org.apache.ddlutils.PlatformUtils.determineDatabaseType(PlatformUtils.java:2
48)
	at
org.apache.ddlutils.PlatformFactory.createNewPlatformInstance(PlatformFactor
y.java:136)
	at
ch.eugster.extraction.DatabaseCreator.initDatabase(DatabaseCreator.java:35)
	at ch.eugster.extraction.Main.<init>(Main.java:38)
	at ch.eugster.extraction.Main.main(Main.java:51)

Has anybody a suggestion where the problem lies?

Thanks

Christian

-------------------------------------- 
Christian Eugster
Koordinationsstelle für die dauerhafte Archivierung elektronischer
Unterlagen
c/o Schweizerisches Bundesarchiv
Archivstrasse 24      
3003 Bern

T/ 031 324 17 94
F/ 031 322 78 32
E/ christian.eugster@kost.admin.ch
W/ www.vsa-aas.org/Koordinationsstelle.78.0.html


Mime
View raw message