So, all of a sudden Xmage wont start anymore. As soon as i click on start client it does this :

As someone who has absolutely NO idea about java whatsoever i cant understand what its trying to tell me. Ive tried reinstalling xmage as well as java, restarting the computer multiple times. I am out of ideas.

I would appreciate some help on how to fix it.

General error: "java.lang.IllegalStateException: Reading from cache:nio:C:/Users/Karaya/Downloads/xmage/mage-client/db/cards.h2.mv.db failed; file length 32022528 read length 192 at 32022687 [1.4.187/1]" [50000-187] at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) at org.h2.message.DbException.get(DbException.java:168) at org.h2.message.DbException.convert(DbException.java:295) at org.h2.engine.Database.openDatabase(Database.java:297) 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:664) at java.sql.DriverManager.getConnection(DriverManager.java:208) at com.j256.ormlite.jdbc.JdbcConnectionSource.makeConnection(JdbcConnectionSource.java:252) at com.j256.ormlite.jdbc.JdbcConnectionSource.getReadWriteConnection(JdbcConnectionSource.java:184) at com.j256.ormlite.table.TableUtils.doCreateTable(TableUtils.java:440) at com.j256.ormlite.table.TableUtils.createTable(TableUtils.java:220) at com.j256.ormlite.table.TableUtils.createTableIfNotExists(TableUtils.java:61) at mage.cards.repository.RepositoryUtil.isDatabaseObsolete(RepositoryUtil.java:20) at mage.cards.repository.ExpansionRepository.<init>(ExpansionRepository.java:42) at mage.cards.repository.ExpansionRepository.<clinit>(ExpansionRepository.java:24) at org.mage.card.arcane.ManaSymbols.loadImages(ManaSymbols.java:71) at mage.client.MageFrame.<init>(MageFrame.java:231) at mage.client.MageFrame.lambda$main$16(MageFrame.java:1171) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)Caused by: java.lang.IllegalStateException: Reading from cache:nio:C:/Users/Karaya/Downloads/xmage/mage-client/db/cards.h2.mv.db failed; file length 32022528 read length 192 at 32022687 [1.4.187/1] at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:773) at org.h2.mvstore.DataUtils.readFully(DataUtils.java:443) at org.h2.mvstore.FileStore.readFully(FileStore.java:98) at org.h2.mvstore.Page.read(Page.java:191) at org.h2.mvstore.MVStore.readPage(MVStore.java:1843) at org.h2.mvstore.MVMap.readPage(MVMap.java:736) at org.h2.mvstore.MVMap.setRootPos(MVMap.java:746) at org.h2.mvstore.MVStore.openMap(MVStore.java:466) at org.h2.mvstore.db.TransactionStore.openMap(TransactionStore.java:389) at org.h2.mvstore.db.TransactionStore$Transaction.openMap(TransactionStore.java:743) at org.h2.mvstore.db.MVPrimaryIndex.<init>(MVPrimaryIndex.java:75) at org.h2.mvstore.db.MVTable.init(MVTable.java:90) at org.h2.mvstore.db.MVTableEngine.createTable(MVTableEngine.java:130) at org.h2.mvstore.db.MVTableEngine.createTable(MVTableEngine.java:41) at org.h2.schema.Schema.createTable(Schema.java:582) at org.h2.command.ddl.CreateTable.update(CreateTable.java:137) 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) ... 37 moreCaused by: java.io.EOFException at org.h2.mvstore.DataUtils.readFully(DataUtils.java:431) ... 54 moreFATAL 2017-04-09 19:50:27,110 MAGE Client UI error =>[AWT-EventQueue-0] EDTExceptionHandler.handle java.lang.NullPointerException at mage.cards.repository.ExpansionRepository.getSetCodes(ExpansionRepository.java:74) at org.mage.card.arcane.ManaSymbols.loadImages(ManaSymbols.java:71) at mage.client.MageFrame.<init>(MageFrame.java:231) at mage.client.MageFrame.lambda$main$16(MageFrame.java:1171) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Try installing xmage in its own separate folder near the root of the drive. At the very least do not have it installed within your user profile folders (desktop/documents/etc). For instance, I have mine installed under c:\games\xmage on one computer, and c:\xmage on another.

Also try uninstalling your current version(s) of Java and redownloading the latest version of it. Finally, you can delete the file it points to "<your-path>/xmage/mage-client/db/cards.h2.mv.db" as it will be re-created on next run of XMage.

thank you very much, i had already reinstalled java a few times, since i was trying to fix that weird graphics bug i keep having. However, i deleted to file it pointed to and IT WORKS. Great help, thank you very much.