Hi,
I just got the same exception. I used the script tool to upgrade the
database to the new version:
General error: "java.lang.RuntimeException: parent not found:
383" [50000-129]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:
317)
at org.h2.message.DbException.get(DbException.java:157)
at org.h2.message.DbException.convert(DbException.java:285)
at org.h2.engine.Database.openDatabase(Database.java:230)
at org.h2.engine.Database.<init>(Database.java:195)
at org.h2.engine.Engine.openSession(Engine.java:56)
at org.h2.engine.Engine.openSession(Engine.java:140)
at org.h2.engine.Engine.getSession(Engine.java:120)
at org.h2.engine.Session.createSession(Session.java:119)
at
org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:
236)
at org.h2.engine.SessionRemote.createSession(SessionRemote.java:214)
at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:111)
at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:95)
at org.h2.Driver.connect(Driver.java:58)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at
org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:
133)
at
org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:
446)
... 15 more
Caused by: java.lang.RuntimeException: parent not found:383
at org.h2.message.DbException.throwInternalError(DbException.java:
227)
at org.h2.store.PageStore.addMeta(PageStore.java:1303)
at org.h2.store.PageStore.readMetaData(PageStore.java:1234)
at org.h2.store.PageStore.recover(PageStore.java:1046)
at org.h2.store.PageStore.openExisting(PageStore.java:300)
at org.h2.store.PageStore.open(PageStore.java:258)
at org.h2.engine.Database.getPageStore(Database.java:2014)
at org.h2.engine.Database.open(Database.java:524)
at org.h2.engine.Database.openDatabase(Database.java:200)
... 29 more
Sorry, I can't provide the database because it's a customer's
database, but I will try to give some additional information.
- The .trace.db file contains the following:
02-23 13:46:43 log: flush
java.lang.NullPointerException
at org.h2.engine.Database.flush(Database.java:1681)
at org.h2.store.WriterThread.run(WriterThread.java:85)
at java.lang.Thread.run(Thread.java:619)
> - What is your database URL?
jdbc:h2:file:C:\Users\om\Epikur/data/epikur;CACHE_SIZE=131072
> - Do you use temporary tables?
no
> - Did you use multiple connections?- A workarounds is: use the tool
> org.h2.tools.Recover to create
no
> the SQL script file, and then re-create the database using this script.
> Does it work when you do this?- With which version of H2was this database
> created?
1.1.118
> - Did the application run out of memory (once, or multiple times)?
The Script-Tool ran out of memory when trying to convert the database,
I increased the memory to 512M and it worked.
> - Do you use any H2-specific system properties?
no
> - Is the application multi-threaded?
no
> - What operating system, file system, and virtual machine
> (java -version) do you use?
Windows 7, NTFS, 1.6.0_13-b03
> - How did you start the Java process (java -Xmx... and so on)?
-Xmx1024M
> - How big is the database (file sizes)?
.data.db: 58MB, .index.db: 18MB, lobs.db: 112MB
> - Is the database usually closed normally, or is process terminated
> forcefully or the computer switched off?
No, database was closed normally.
Greetings,
Oliver
--
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.