Hi,

I had an out of memory, perm gen error in my application (not related
to h2). But afterwards the database seems to be corrupt.

I thought that this stack trace might help you to track down a
potential bug. This happens whenever I try to open the database in
question.



00:10:10.021 [Thread-4] INFO  midwifemate.LoginDialog - Unable to
logon as: [email protected].
java.lang.IllegalStateException: org.h2.jdbc.JdbcSQLException: General
error: "java.lang.NullPointerException" [50000-126]
        at midwifemate.client.conn.DataConfigHelper.getDataSource
(DataConfigHelper.java:171) [swing-client-2.0B14.jar:na]
        at midwifemate.LoginDialog$5.run(LoginDialog.java:257) [swing-
client-2.0B14.jar:na]
        at java.lang.Thread.run(Unknown Source) [na:1.6.0_12]
Caused by: org.h2.jdbc.JdbcSQLException: General error:
"java.lang.NullPointerException" [50000-126]
        at org.h2.message.Message.getSQLException(Message.java:110)
[h2-1.2.126.jar:1.2.126]
        at org.h2.message.Message.convert(Message.java:287) [h2-1.2.126.jar:
1.2.126]
        at org.h2.engine.Database.openDatabase(Database.java:259)
[h2-1.2.126.jar:1.2.126]
        at org.h2.engine.Database.<init>(Database.java:221) [h2-1.2.126.jar:
1.2.126]
        at org.h2.engine.Engine.openSession(Engine.java:58) [h2-1.2.126.jar:
1.2.126]
        at org.h2.engine.Engine.openSession(Engine.java:142) [h2-1.2.126.jar:
1.2.126]
        at org.h2.engine.Engine.getSession(Engine.java:122) [h2-1.2.126.jar:
1.2.126]
        at org.h2.engine.SessionFactoryEmbedded.createSession
(SessionFactoryEmbedded.java:17) [h2-1.2.126.jar:1.2.126]
        at org.h2.engine.SessionRemote.connectEmbeddedOrServer
(SessionRemote.java:245) [h2-1.2.126.jar:1.2.126]
        at org.h2.engine.SessionRemote.createSession(SessionRemote.java:223)
[h2-1.2.126.jar:1.2.126]
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:110)
[h2-1.2.126.jar:1.2.126]
        at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:94)
[h2-1.2.126.jar:1.2.126]
        at org.h2.jdbcx.JdbcXAConnection.<init>(JdbcXAConnection.java:77)
[h2-1.2.126.jar:1.2.126]
        at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:
288) [h2-1.2.126.jar:1.2.126]
        at org.h2.jdbcx.JdbcDataSource.getPooledConnection
(JdbcDataSource.java:318) [h2-1.2.126.jar:1.2.126]
        at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow
(JdbcConnectionPool.java:223) [h2-1.2.126.jar:1.2.126]
        at org.h2.jdbcx.JdbcConnectionPool.getConnection
(JdbcConnectionPool.java:201) [h2-1.2.126.jar:1.2.126]
        at midwifemate.client.conn.DataConfigHelper.getDataSource
(DataConfigHelper.java:140) [swing-client-2.0B14.jar:na]
        ... 2 common frames omitted
Caused by: java.lang.NullPointerException
        at org.h2.index.PageDataLeaf.getRowAt(PageDataLeaf.java:310)
[h2-1.2.126.jar:1.2.126]
        at org.h2.index.PageDataCursor.nextRow(PageDataCursor.java:103)
[h2-1.2.126.jar:1.2.126]
        at org.h2.index.PageDataCursor.next(PageDataCursor.java:55)
[h2-1.2.126.jar:1.2.126]
        at org.h2.table.TableData.addIndex(TableData.java:239)
[h2-1.2.126.jar:1.2.126]
        at org.h2.engine.Database.open(Database.java:686) [h2-1.2.126.jar:
1.2.126]
        at org.h2.engine.Database.openDatabase(Database.java:226)
[h2-1.2.126.jar:1.2.126]
        ... 17 common frames omitted

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to