java.sql.BatchUpdateException

Page Page(41494,Container(0, 2128)) could not be read from disk.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web488

  • via Apache's JIRA Issue Tracker by Varma R, 1 year ago
    Page Page(41494,Container(0, 2128)) could not be read from disk.
  • via GitHub by iwasnobody
    , 5 months ago
    Could not read resultset: unexpected end of stream, read 0 bytes from 4
  • via GitHub by schmeic
    , 1 year ago
    Could not read resultset: unexpected end of stream, read 0 bytes from 4 And here is the relevant portion of the stack trace:
  • Stack trace

    • java.sql.BatchUpdateException: Page Page(41494,Container(0, 2128)) could not be read from disk. at org.apache.derby.impl.jdbc.EmbedStatement.executeBatch(EmbedStatement.java:1008) at com.idelji.operations.iasset.plugin.imon.dao.ProcessDAO.insertData(ProcessDAO.java:142) at com.idelji.operations.iasset.plugin.imon.comm.CPUProcessDataStoreWriter.onData(CPUProcessDataStoreWriter.java:56) at com.idelji.operations.iasset.plugin.imon.handler.CPUProcessDataHandler.gotData(CPUProcessDataHandler.java:205) at com.idelji.operations.ibase.core.comm.Connector.makeRequest(Connector.java:83) at com.idelji.operations.ibase.core.comm.EntityConnector.makeRequest(EntityConnector.java:36) at com.idelji.operations.iasset.plugin.imon.comm.CPUProcessCommunicator.run(CPUProcessCommunicator.java:98) Caused by: java.sql.SQLException: Page Page(41494,Container(0, 2128)) could not be read from disk. at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(SQLExceptionFactory40.java:98) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:142) at org.apache.derby.impl.jdbc.Util.seeNextException(Util.java:278) at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:431) at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:353) at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2290) at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1334) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeBatchElement(EmbedPreparedStatement.java:1040) at org.apache.derby.impl.jdbc.EmbedStatement.executeBatch(EmbedStatement.java:984) ... 6 more Caused by: java.sql.SQLException: Page Page(41494,Container(0, 2128)) could not be read from disk. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45) at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory40.java:122) at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(SQLExceptionFactory40.java:71) ... 15 more Caused by: java.sql.SQLException: Java exception: 'Reached end of file while attempting to read a whole page.: java.io.EOFException'. at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:45) at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(SQLExceptionFactory40.java:122) at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(SQLExceptionFactory40.java:71) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java:142) at org.apache.derby.impl.jdbc.Util.javaException(Util.java:299) at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:436) ... 13 more Caused by: java.io.EOFException: Reached end of file while attempting to read a whole page. at org.apache.derby.impl.store.raw.data.RAFContainer4.readFull(RAFContainer4.java:1165) at org.apache.derby.impl.store.raw.data.RAFContainer4.readPage0(RAFContainer4.java:429) at org.apache.derby.impl.store.raw.data.RAFContainer4.readPage(RAFContainer4.java:369) at org.apache.derby.impl.store.raw.data.RAFContainer4.readPage(RAFContainer4.java:263) at org.apache.derby.impl.store.raw.data.CachedPage.readPage(CachedPage.java:673) at org.apache.derby.impl.store.raw.data.CachedPage.setIdentity(CachedPage.java:193) at org.apache.derby.impl.services.cache.ConcurrentCache.find(ConcurrentCache.java:295) at org.apache.derby.impl.store.raw.data.FileContainer.initPage(FileContainer.java:2431) at org.apache.derby.impl.store.raw.data.FileContainer.newPage(FileContainer.java:1879) at org.apache.derby.impl.store.raw.data.BaseContainer.addPage(BaseContainer.java:314) at org.apache.derby.impl.store.raw.data.BaseContainerHandle.addPage(BaseContainerHandle.java:183) at org.apache.derby.impl.store.access.heap.HeapController.doInsert(HeapController.java:302) at org.apache.derby.impl.store.access.heap.HeapController.insertAndFetchLocation(HeapController.java:599) at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(RowChangerImpl.java:452) at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(InsertResultSet.java:1028) at org.apache.derby.impl.sql.execute.InsertResultSet.open(InsertResultSet.java:505) at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(GenericPreparedStatement.java:438) at org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:319) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1242) ... 8 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.