Subject Moving from JBird 1.5 to 2.1.1
Author Ian A. Newby
Hi Folks,

I'm trying to move from Jbird 1.5 to 2.1.1 but am having some
problems. I've created the following test program:

package javaapplication2;

import java.sql.Connection;
import org.firebirdsql.pool.FBWrappingDataSource;

public class Main {

/** Creates a new instance of Main */
public Main() {

}

public static void main(String[] args) {

try {
FBWrappingDataSource ds = new FBWrappingDataSource();

ds.setDescription("Main Aktiv Firebird Database");

ds.setDatabase("localhost/C:\\!Development\\Aktiv3\\DataSafe\\Aktiv3.fdb");
ds.setUserName("aktivate");
ds.setPassword("*****");
ds.setMaxPoolSize(20);
ds.setMaxIdleTime(60000);
ds.setPooling(true);
ds.setType("TYPE4");
ds.setMinPoolSize(3);
ds.setLoginTimeout(10);
Connection con = ds.getConnection();
} catch (Exception e) {
e.printStackTrace();
}
}
}

but when I run it i get the following error:

Exception in thread "main" java.lang.ExceptionInInitializerError
at
org.firebirdsql.jdbc.FBDriverPropertyManager.<clinit>(FBDriverPropertyManager.java:140)
at
org.firebirdsql.jdbc.FBConnectionProperties.getCanonicalName(FBConnectionProperties.java:60)
at
org.firebirdsql.jdbc.FBConnectionProperties.setStringProperty(FBConnectionProperties.java:93)
at
org.firebirdsql.jdbc.FBConnectionProperties.setUserName(FBConnectionProperties.java:286)
at
org.firebirdsql.pool.AbstractFBConnectionPoolDataSource.setUserName(AbstractFBConnectionPoolDataSource.java:711)
at
org.firebirdsql.pool.FBWrappingDataSource.setUserName(FBWrappingDataSource.java:639)
at javaapplication2.Main.main(Main.java:38)
Caused by: java.lang.NullPointerException
at
org.firebirdsql.jdbc.FBConnectionHelper.loadDpbParameterTypes(FBConnectionHelper.java:301)
at
org.firebirdsql.jdbc.FBConnectionHelper.<clinit>(FBConnectionHelper.java:104)
... 7 more
Java Result: 1


Any ideas?

Regards
Ian