Hi
Now that I'm able to call Derby-Methods without getting strange ErrorMessages I need your help again.
I want to use the EmbeddedSimpleDataSource, which is mostly used by others, but I'm always getting a NullPointerException:

Thats my Code:
public void startDerby() throws DerbyWrapperException {
        try{
            EmbeddedSimpleDataSource ds = new EmbeddedSimpleDataSource();
            ds.setDatabaseName("/mydb");  // I also tried (on my desktop) "c:/test/mydb" but it's the same
            ds.setCreateDatabase("create");
            Connection con = ds.getConnection("sa", "");  // the same with ds.getConnection
        }catch(Exception ex){
            ex.printStackTrace();
        }
    }
I know that the Database is only build at the next request-call and I think getConnection is one. The path should be no problem?!?!

Thx again
--Marc

Reply via email to