异常+ Apache derby +错误XSDB0:内存页面Page(89,Container(0,560))Apache derby java

时间:2019-01-02 09:09:49

标签: java apache derby

我在Java上使用Eclipselink,并在尝试打开derby数据库时遇到此异常:

  

错误XSDB0:内存页第Page(89,Container(0,560))上的意外异常

内部异常:java.sql.SQLException:使用类加载器sun.misc.Launcher$AppClassLoader@73d16e93无法启动数据库'/ home / vmonsanto / NetBeansProjects / database / exercise',有关详细信息,请参见下一个异常。 错误代码:40000 线程“ AWT-EventQueue-0”中的异常javax.persistence.PersistenceException:异常[EclipseLink-4002](Eclipse Persistence Services-2.5.2.v20140319-9ad6abd):org.eclipse.persistence.exceptions.DatabaseException 内部异常:java.sql.SQLException:使用类加载器sun.misc.Launcher$AppClassLoader@73d16e93无法启动数据库'/ home / vmonsanto / NetBeansProjects / database / exercise',请参阅下一个异常以获取详细信息。 错误代码:40000     在org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:766)     在org.eclipse.persistence.internal.jpa.EntityManagerFactoryDe​​legate.getAbstractSession(EntityManagerFactoryDe​​legate.java:204)     在org.eclipse.persistence.internal.jpa.EntityManagerFactoryDe​​legate.createEntityManagerImpl(EntityManagerFactoryDe​​legate.java:304)     在org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:336)     在org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:302)     在net.advance.mindbodyhandnet.ui.ParametrosForm.initComponents(ParametrosForm.java:39)     在net.advance.mindbodyhandnet.ui.ParametrosForm。(ParametrosForm.java:23)     在net.advance.mindbodyhandnet.ui.ParametrosForm $ 1.run(ParametrosForm.java:364)     在java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)     在java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)     在java.awt.EventQueue.access $ 400(EventQueue.java:97)     在java.awt.EventQueue $ 3.run(EventQueue.java:697)     在java.awt.EventQueue $ 3.run(EventQueue.java:691)     在java.security.AccessController.doPrivileged(本机方法)     在java.security.ProtectionDomain $ 1.doIntersectionPrivilege(ProtectionDomain.java:75)     在java.awt.EventQueue.dispatchEvent(EventQueue.java:714)     在java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)     在java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)     在java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)     在java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)     在java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)     在java.awt.EventDispatchThread.run(EventDispatchThread.java:82) 由以下原因引起:异常[EclipseLink-4002](Eclipse Persistence Services-2.5.2.v20140319-9ad6abd):org.eclipse.persistence.exceptions.DatabaseException 内部异常:java.sql.SQLException:使用类加载器sun.misc.Launcher$AppClassLoader@73d16e93无法启动数据库'/ home / vmonsanto / NetBeansProjects / database / exercise',请参阅下一个异常以获取详细信息。 错误代码:40000     在org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:331)     在org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:326)     在org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:138)     在org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)     在org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.setOrDetectDatasource(DatabaseSessionImpl.java:204)     在org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:741)     在org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:239)     在org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:685)     ...另外21个 引起原因:java.sql.SQLException:无法使用类加载器sun.misc.Launcher$AppClassLoader@73d16e93启动数据库'/ home / vmonsanto / NetBeansProjects / database / exercise',请参阅下一个异常以获取详细信息。     在org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(未知来源)     在org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(未知来源)     在org.apache.derby.impl.jdbc.Util.seeNextException(未知来源)     在org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(未知来源)     在org.apache.derby.impl.jdbc.EmbedConnection(未知来源)     在org.apache.derby.jdbc.InternalDriver $ 1.run(未知源)     在org.apache.derby.jdbc.InternalDriver $ 1.run(未知源)     在java.security.AccessController.doPrivileged(本机方法)     在org.apache.derby.jdbc.InternalDriver.getNewEmbedConnection(未知源)     在org.apache.derby.jdbc.InternalDriver.connect(未知来源)     在org.apache.derby.jdbc.InternalDriver.connect(未知来源)     在org.apache.derby.jdbc.AutoloadedDriver.connect(未知来源)     在java.sql.DriverManager.getConnection(DriverManager.java:664)     在java.sql.DriverManager.getConnection(DriverManager.java:208)     在org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:98)     ...另外26个 由以下原因导致:错误XJ040:无法使用类加载器sun.misc.Launcher$AppClassLoader@73d16e93启动数据库'/ home / vmonsanto / NetBeansProjects / database / exercise',有关详细信息,请参见下一个异常。     在org.apache.derby.iapi.error.StandardException.newException(未知来源)     在org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(未知来源)     ...另外41个 由以下原因引起:错误XSDFI:在数据库恢复期间尝试将数据写入磁盘时遇到错误。检查数据库磁盘是否未满。如果是,则删除不必要的文件,然后重试连接到数据库。文件系统也可能是只读的,或者磁盘发生了故障,或者介质有其他问题。系统在处理页面Page(89,Container(0,560))时遇到错误。     在org.apache.derby.iapi.error.StandardException.newException(未知来源)     在org.apache.derby.impl.store.raw.data.FileContainer.reCreatePageForRedoRecovery(来源不明)     在org.apache.derby.impl.store.raw.data.BaseContainerHandle.reCreatePageForRedoRecovery(未知来源)     在org.apache.derby.impl.store.raw.data.InitPageOperation.getPageForRedoRecovery(未知来源)     在org.apache.derby.impl.store.raw.data.PageBasicOperation.findpage(未知来源)     在org.apache.derby.impl.store.raw.data.PageBasicOperation.needsRedo(来源不明)     在org.apache.derby.impl.store.raw.log.FileLogger.redo(未知来源)     在org.apache.derby.impl.store.raw.log.LogToFile.recover(未知来源)     在org.apache.derby.impl.store.raw.RawStore.boot(未知来源)     在org.apache.derby.impl.services.monitor.BaseMonitor.boot(未知来源)     在org.apache.derby.impl.services.monitor.TopService.bootModule(未知来源)     在org.apache.derby.impl.services.monitor.BaseMonitor.startModule(未知来源)     在org.apache.derby.impl.services.monitor.FileMonitor.startModule(未知来源)     在org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(未知来源)     在org.apache.derby.impl.store.access.RAMAccessManager $ 5.run(未知源)     在java.security.AccessController.doPrivileged(本机方法)     在org.apache.derby.impl.store.access.RAMAccessManager.bootServiceModule(未知来源)     在org.apache.derby.impl.store.access.RAMAccessManager.boot(未知来源)     在org.apache.derby.impl.services.monitor.BaseMonitor.boot(未知来源)     在org.apache.derby.impl.services.monitor.TopService.bootModule(未知来源)     在org.apache.derby.impl.services.monitor.BaseMonitor.startModule(未知来源)     在org.apache.derby.impl.services.monitor.FileMonitor.startModule(未知来源)     在org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(未知来源)     在org.apache.derby.impl.db.BasicDatabase $ 5.run(未知源)     在java.security.AccessController.doPrivileged(本机方法)     在org.apache.derby.impl.db.BasicDatabase.bootServiceModule(未知来源)     在org.apache.derby.impl.db.BasicDatabase.bootStore(未知来源)     在org.apache.derby.impl.db.BasicDatabase.boot(未知来源)     在org.apache.derby.impl.services.monitor.BaseMonitor.boot(未知来源)     在org.apache.derby.impl.services.monitor.TopService.bootModule(未知来源)     在org.apache.derby.impl.services.monitor.BaseMonitor.bootService(未知来源)     在org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(未知来源)     在org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(未知来源)     在org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(未知来源)     在org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(未知来源)     在org.apache.derby.impl.jdbc.EmbedConnection $ 4.run(未知源)     在org.apache.derby.impl.jdbc.EmbedConnection $ 4.run(未知源)     在java.security.AccessController.doPrivileged(本机方法)     在org.apache.derby.impl.jdbc.EmbedConnection.startPersistentService(未知来源)     ...另外38个 由以下原因引起:错误XSLAA:先前的异常将存储标记为关闭。     在org.apache.derby.iapi.error.StandardException.newException(未知来源)     在org.apache.derby.impl.store.raw.log.LogToFile.flush(未知来源)     在org.apache.derby.impl.store.raw.log.LogToFile.flush(未知来源)     在org.apache.derby.impl.store.raw.data.BaseDataFileFactory.flush(未知来源)     在org.apache.derby.impl.store.raw.data.CachedPage.writePage(未知来源)     在org.apache.derby.impl.store.raw.data.CachedPage.createIdentity(未知来源)     在org.apache.derby.impl.services.cache.ConcurrentCache.create(未知来源)     ...另外76个 由以下原因导致:错误XSDB0:内存页页上的意外异常(89,Container(0,560))     在org.apache.derby.iapi.error.StandardException.newException(未知来源)     在org.apache.derby.iapi.error.StandardException.newException(未知来源)     在org.apache.derby.impl.store.raw.data.StoredPage.initSlotTable(未知来源)     在org.apache.derby.impl.store.raw.data.StoredPage.initFromData(未知来源)     在org.apache.derby.impl.store.raw.data.CachedPage.setIdentity(未知来源)     在org.apache.derby.impl.services.cache.ConcurrentCache.find(未知来源)     在org.apache.derby.impl.store.raw.data.FileContainer.getAnyPage(未知来源)     在org.apache.derby.impl.store.raw.data.BaseContainer.getAnyPage(未知来源)     在org.apache.derby.impl.store.raw.data.BaseContainerHandle.getAnyPage(未知来源)     ...还有73

1 个答案:

答案 0 :(得分:0)

我解决了从日志目录中删除log2.dat和log.dat的问题,但是在执行此操作之前进行数据库备份非常重要,这样会丢失一些数据但对我有用。