Hi, That's strange. I see that a null password, salt, or hash results in a NPE, and I will fix that. But an existing database shouldn't have such users. Could you send me the database file?
Regards, Thomas On Tuesday, April 21, 2015, Wes Clark <[email protected]> wrote: > I am using the latest build 1.4.187. I am getting an NPE running a test > suite with the stack trace below: > > Caused by: java.lang.NullPointerException > at org.h2.util.StringUtils.convertHexToBytes(StringUtils.java:968) > at org.h2.command.ddl.CreateUser.getByteArray(CreateUser.java:53) > at org.h2.command.ddl.CreateUser.update(CreateUser.java:76) > at org.h2.engine.MetaRecord.execute(MetaRecord.java:58) > at org.h2.engine.Database.open(Database.java:735) > at org.h2.engine.Database.openDatabase(Database.java:266) > at org.h2.engine.Database.<init>(Database.java:260) > at org.h2.engine.Engine.openSession(Engine.java:60) > at org.h2.engine.Engine.openSession(Engine.java:167) > at org.h2.engine.Engine.createSessionAndValidate(Engine.java:145) > at org.h2.engine.Engine.createSession(Engine.java:128) > at org.h2.engine.Engine.createSession(Engine.java:26) > at > org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:347) > at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:108) > at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:92) > at org.h2.Driver.connect(Driver.java:72) > at java.sql.DriverManager.getConnection(DriverManager.java:571) > at java.sql.DriverManager.getConnection(DriverManager.java:233) > at > org.apache.commons.dbcp2.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75) > at > org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:205) > at > org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:861) > at > org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435) > at > org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363) > at org.apache.commons.dbcp2.PoolingDriver.connect(PoolingDriver.java:129) > at > com.guidewire.pl.system.database.connection.DBCPConnectionPool.getConnection(DBCPConnectionPool.java:63) > > As you can see, I am getting a connection from a DBCP connection pool. We > never specify a user or password in the JDBC URL, so they are set to empty > strings (""). We run other suites, but don't seem to get the error there. > I don't understand what is different about this test suite. > > -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');> > . > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > Visit this group at http://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
