You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Shankar Devi <sh...@sasken.com> on 2010/05/26 12:12:31 UTC
Java exception: '-1: java.lang.ArrayIndexOutOfBoundsException'
error
Hi,
I have an intensive data-processing application which utilises Apache Derby
Version - 10.3.1.4.
My Customer is running this application on Windows 2003 Service Pack 2 and
has 1.6 GB derby database size.
Application has crashed after throwing this error.
Thanks,
Devi
May 7, 2010 3:50:47 PM java.sql.SQLException: Java exception: '-1:
java.lang.ArrayIndexOutOfBoundsException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown
Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
at
org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown
Source)
at
org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown
Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown
Source)
at
org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown
Source)
at
com.netsation.configurator.server.DerbyStorage.saveObjectVersionTree(Unknown
Source)
at
com.netsation.configurator.server.DerbyStorage.saveObjectVersionTree(Unknown
Source)
at
com.netsation.configurator.server.DerbyStorage.saveObjectVersionTree(Unknown
Source)
at
com.netsation.configurator.server.DerbyStorage.saveObjectVersionTree(Unknown
Source)
at
com.netsation.configurator.server.DerbyStorage.saveObjectVersionTree(Unknown
Source)
at com.netsation.configurator.server.DerbyStorage.saveObjectVersion(Unknown
Source)
at com.netsation.configurator.server.Transaction.perform(Unknown Source)
at com.netsation.configurator.server.Transaction.transact(Unknown Source)
at com.netsation.configurator.server.Transaction.checkPointInternal(Unknown
Source)
at com.netsation.configurator.server.Transaction.checkPoint(Unknown Source)
at
com.netsation.configurator.common.StorageMechanism.checkPointTransaction(Unknown
Source)
at com.netsation.configurator.server.HardLimitCache.cleanObject(Unknown
Source)
at com.netsation.configurator.server.HardLimitCache.removeObject(Unknown
Source)
at com.netsation.configurator.server.HardLimitCache.removeTail(Unknown
Source)
at com.netsation.configurator.server.HardLimitCache.punt(Unknown Source)
at com.netsation.configurator.server.HardLimitCache.write(Unknown Source)
at com.netsation.configurator.common.StorageMechanism.writeToCache(Unknown
Source)
at com.netsation.configurator.common.StorageMechanism.loadObject(Unknown
Source)
at com.netsation.configurator.common.StorageMechanism.loadObject(Unknown
Source)
at com.netsation.configurator.server.LowLevelServices.loadObject(Unknown
Source)
at com.netsation.configurator.server.AccessService.loadAccess(Unknown
Source)
at com.netsation.configurator.server.AccessService.getAccess(Unknown
Source)
at com.netsation.configurator.server.CConfigurable.getAccess(Unknown
Source)
at com.netsation.configurator.server.CConfigurable.checkAccess(Unknown
Source)
at com.netsation.configurator.server.CConfigurable.representation(Unknown
Source)
at com.netsation.configurator.server.CConfigurable.representation(Unknown
Source)
at
com.netsation.configurator.server.NsConfigurationServer.propagateEventsToClients(Unknown
Source)
at
com.netsation.configurator.server.LowLevelServices.commitTransaction(Unknown
Source)
at
com.baynetworks.optivity.configurator.NetworkImportThread.postprocess(Unknown
Source)
at
com.baynetworks.optivity.configurator.NetworkImportThread.execute(Unknown
Source)
at com.netsation.util.ThreadedOperation.run(Unknown Source)
Caused by: java.sql.SQLException: Java exception: '-1:
java.lang.ArrayIndexOutOfBoundsException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
Source)
at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
Source)
... 41 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at org.apache.derby.impl.store.raw.data.BasePage.getHeaderAtSlot(Unknown
Source)
at
org.apache.derby.impl.store.raw.data.StoredPage.restorePortionLongColumn(Unknown
Source)
at
org.apache.derby.impl.store.raw.data.OverflowInputStream.fillByteHolder(Unknown
Source)
at
org.apache.derby.impl.store.raw.data.BufferedByteHolderInputStream.read(Unknown
Source)
at java.io.DataInputStream.read(DataInputStream.java:132)
at org.apache.derby.impl.store.raw.data.MemByteHolder.write(Unknown Source)
at
org.apache.derby.impl.store.raw.data.RememberBytesInputStream.fillBuf(Unknown
Source)
at org.apache.derby.impl.store.raw.data.StoredPage.logColumn(Unknown
Source)
at org.apache.derby.impl.store.raw.data.StoredPage.logLongColumn(Unknown
Source)
at
org.apache.derby.impl.store.raw.data.InsertOperation.writeOptionalDataToBuffer(Unknown
Source)
at org.apache.derby.impl.store.raw.data.InsertOperation.<init>(Unknown
Source)
at
org.apache.derby.impl.store.raw.data.LoggableActions.actionInsert(Unknown
Source)
at org.apache.derby.impl.store.raw.data.BasePage.insertLongColumn(Unknown
Source)
at
org.apache.derby.impl.store.raw.data.BasePage.insertAllowOverflow(Unknown
Source)
at org.apache.derby.impl.store.raw.data.BasePage.insert(Unknown Source)
at org.apache.derby.impl.store.access.heap.HeapController.doInsert(Unknown
Source)
at
org.apache.derby.impl.store.access.heap.HeapController.insertAndFetchLocation(Unknown
Source)
at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown
Source)
at
org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown
Source)
at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown
Source)
... 34 more
May 7, 2010 3:50:47 PM java.sql.SQLTransientConnectionException: No current
connection.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown
Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.noCurrentConnection(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.checkIfClosed(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.setupContextStack(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown
Source)
at
com.netsation.configurator.server.DerbyStorage.saveObjectVersionTree(Unknown
Source)
at com.netsation.configurator.server.DerbyStorage.saveObjectVersion(Unknown
Source)
at com.netsation.configurator.server.Transaction.perform(Unknown Source)
at com.netsation.configurator.server.Transaction.transact(Unknown Source)
at com.netsation.configurator.server.Transaction.checkPointInternal(Unknown
Source)
at com.netsation.configurator.server.Transaction.checkPoint(Unknown Source)
at
com.netsation.configurator.common.StorageMechanism.checkPointTransaction(Unknown
Source)
at com.netsation.configurator.server.HardLimitCache.cleanObject(Unknown
Source)
at com.netsation.configurator.server.HardLimitCache.removeObject(Unknown
Source)
at com.netsation.configurator.server.HardLimitCache.removeTail(Unknown
Source)
at com.netsation.configurator.server.HardLimitCache.punt(Unknown Source)
at com.netsation.configurator.server.HardLimitCache.write(Unknown Source)
at com.netsation.configurator.common.StorageMechanism.writeToCache(Unknown
Source)
at com.netsation.configurator.common.StorageMechanism.loadObject(Unknown
Source)
at com.netsation.configurator.common.StorageMechanism.loadObject(Unknown
Source)
at com.netsation.configurator.server.LowLevelServices.loadObject(Unknown
Source)
at com.netsation.configurator.server.AccessService.loadAccess(Unknown
Source)
at com.netsation.configurator.server.AccessService.getAccess(Unknown
Source)
at com.netsation.configurator.server.CConfigurable.getAccess(Unknown
Source)
at com.netsation.configurator.server.CConfigurable.checkAccess(Unknown
Source)
at com.netsation.configurator.server.CConfigurable.representation(Unknown
Source)
at com.netsation.configurator.server.CConfigurable.representation(Unknown
Source)
at
com.netsation.configurator.server.NsConfigurationServer.propagateEventsToClients(Unknown
Source)
at
com.netsation.configurator.server.LowLevelServices.commitTransaction(Unknown
Source)
at
com.baynetworks.optivity.configurator.NetworkImportThread.postprocess(Unknown
Source)
at
com.baynetworks.optivity.configurator.NetworkImportThread.execute(Unknown
Source)
at com.netsation.util.ThreadedOperation.run(Unknown Source)
Caused by: java.sql.SQLException: No current connection.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
Source)
at
org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
Source)
... 35 more
--
View this message in context: http://old.nabble.com/Java-exception%3A-%27-1%3A-java.lang.ArrayIndexOutOfBoundsException%27-error-tp28678738p28678738.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.
Re: Java exception: '-1: java.lang.ArrayIndexOutOfBoundsException'
error
Posted by Kristian Waagan <Kr...@Sun.COM>.
On 02.06.10 10:35, Shankar Devi wrote:
> Hi Kristian,
> Thanks for the reply.
> 1. It looks like once connection is selecting from the BLOB, and then
> another connection
> deletes (or updates) it. Does this sound plausible for your application?
> [Devi] - yes.It is possible.
>
In that case, how do you obtain the value?
a) InputStream is = rs.getBinaryStream(...);
b) Blob blob = rs.getBlob(...) ; InputStream is = blob.getBinaryStream();
> 2. Does this bug cause database corruption?
>
No.
--
Kristian
> Thanks& Regards,
> Devi
>
>
>
Re: Java exception: '-1: java.lang.ArrayIndexOutOfBoundsException'
error
Posted by Kristian Waagan <kr...@oracle.com>.
On 13.08.10 12:45, Shankar Devi wrote:
> Hi,
> Please let me know the timeframe for when this issue is likely to be
> fixed.
>
Hi,
I'm not sure we have identified the real problem yet.
Can you answer my latest question which I believe was:
-----
> 1. It looks like once connection is selecting from the BLOB, and then
> another connection
> deletes (or updates) it. Does this sound plausible for your application?
> [Devi] - yes.It is possible.
In that case, how do you obtain the value?
a) InputStream is = rs.getBinaryStream(...);
b) Blob blob = rs.getBlob(...) ; InputStream is = blob.getBinaryStream()
-----
It is impossible to say when this issue will be fixed, because:
o nobody has committed to fix it
o there is no runnable repro to demonstrate the bug
o there is still no *clear* understanding of what the underlying
problem is (answering the question might help, providing a repro would
help for certain )
I do however have some thoughts, and I do plan to follow up on those.
In any case, the next 10.6 maintenance release hasn't been scheduled
yet. You could of course roll your own build once the fix has been
committed to the source repository.
Regards,
--
Kristian
> Thanks& Regards,
> Devi.
>
>
Re: Java exception: '-1: java.lang.ArrayIndexOutOfBoundsException'
error
Posted by Shankar Devi <sh...@sasken.com>.
Hi,
Please let me know the timeframe for when this issue is likely to be
fixed.
Thanks & Regards,
Devi.
--
View this message in context: http://old.nabble.com/Java-exception%3A-%27-1%3A-java.lang.ArrayIndexOutOfBoundsException%27-error-tp28678738p29427523.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.
Re: Java exception: '-1: java.lang.ArrayIndexOutOfBoundsException'
error
Posted by Shankar Devi <sh...@sasken.com>.
Hi Kristian,
Is it possible to give me a time frame for when this issue is likely to be
fixed.
Thanks & Regards,
Devi.
--
View this message in context: http://old.nabble.com/Java-exception%3A-%27-1%3A-java.lang.ArrayIndexOutOfBoundsException%27-error-tp28678738p28840567.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.
Re: Java exception: '-1: java.lang.ArrayIndexOutOfBoundsException'
error
Posted by Shankar Devi <sh...@sasken.com>.
Hi Kristian,
Thanks for the reply.
1. It looks like once connection is selecting from the BLOB, and then
another connection
deletes (or updates) it. Does this sound plausible for your application?
[Devi] - yes.It is possible.
2. Does this bug cause database corruption?
Thanks & Regards,
Devi
--
View this message in context: http://old.nabble.com/Java-exception%3A-%27-1%3A-java.lang.ArrayIndexOutOfBoundsException%27-error-tp28678738p28751577.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.
Re: Java exception: '-1: java.lang.ArrayIndexOutOfBoundsException'
error
Posted by Kristian Waagan <Kr...@Sun.COM>.
On 31.05.2010 12:27, Shankar Devi wrote:
> Hi Kristian,
>
> Thanks for the very quick reply.
>
> 1. which transaction isolation level the application is running with?
> [Devi] - Our application uses TRANSACTION_READ_UNCOMMITTED transaction
> isolation level.
>
> 2. I'm assuming this is a multi-threaded / -user application?
> [Devi] - Standalone application which supports 5 parallel operation(Multi
> threaded). Maximum database Connections=20.
>
> 3. How easily is the bug reproducible?
> [Devi] - Once customer has seen this issue. I have backup of customer
> database. But Unable to reproduce the same.
>
> 4. looks like you may be inserting data returned by a select.Is this
> correct?
> Yes. Eg.,
> con.prepareStatement(("insert into cfgdata_objects (objKey, objParent, name,
> class, versionID, viewID, objData) " +
>
> "select objKey, objParent, name, class, CAST (? AS BIGINT), viewID, objData
> from cfgdata_objects where objKey = ? and versionID = 0");
>
> con.prepareStatement(("insert into cfgdata_property (objKey, versionID,
> viewID, objData) " +
>
> "select objKey, CAST (? AS BIGINT), viewID, objData from cfgdata_property
> where objKey = ? and versionID = 0");
>
> 5. is the source data a BLOB or a CLOB?
> [Devi] - Source data is BLOB. Application is trying to insert data into
> the below given table
> CREATE TABLE cfgdata_objects(
> objKey INT,
> objParent INT,
> name VARCHAR(255),
> class VARCHAR(255),
> versionID BIGINT DEFAULT 0,
> viewID INT DEFAULT 0,
> objData BLOB,
> CONSTRAINT kvk_cfgdata_objects Primary Key (objKey, versionID),
> CONSTRAINT pvk_cfgdata_objects Foreign Key (objParent, versionID)
> REFERENCES cfgdata_objects(objKey, versionID) ON DELETE CASCADE);
>
> CREATE TABLE cfgdata_property(
> objKey INT,
> versionID BIGINT DEFAULT 0,
> viewID INT DEFAULT 0,
> objData BLOB(2M),
> CONSTRAINT kvk_cfgdata_property Foreign Key (objKey, versionID)
> REFERENCES cfgdata_objects(objKey, versionID) ON DELETE CASCADE);
>
> Does this issue is occurring due to multi thread operations with derby
> database?
>
Thanks for the information.
This bug is triggered by concurrent access, yes. It looks like once
connection is selecting from the BLOB, and then another connection
deletes (or updates) it. Does this sound plausible for your application?
I think it is caused by a missing lock in Derby, I'll investigate a bit
more.
If your BLOBs are of limited size (or you have enough memory), it might
help you to use getBytes() instead of getBinaryStream() to work around
the issue. Depending on your application code, there might still be a
time window where the bug can be triggered. If it has only happened
once, maybe it is better to wait for a fix?
I'll post the relevant JIRA issue here when I have found / created it.
Regards,
--
Kristian
> Thanks& Regards,
> Devi
>
Re: Java exception: '-1: java.lang.ArrayIndexOutOfBoundsException'
error
Posted by Shankar Devi <sh...@sasken.com>.
Hi Kristian,
Thanks for the very quick reply.
1. which transaction isolation level the application is running with?
[Devi] - Our application uses TRANSACTION_READ_UNCOMMITTED transaction
isolation level.
2. I'm assuming this is a multi-threaded / -user application?
[Devi] - Standalone application which supports 5 parallel operation(Multi
threaded). Maximum database Connections=20.
3. How easily is the bug reproducible?
[Devi] - Once customer has seen this issue. I have backup of customer
database. But Unable to reproduce the same.
4. looks like you may be inserting data returned by a select.Is this
correct?
Yes. Eg.,
con.prepareStatement(("insert into cfgdata_objects (objKey, objParent, name,
class, versionID, viewID, objData) " +
"select objKey, objParent, name, class, CAST (? AS BIGINT), viewID, objData
from cfgdata_objects where objKey = ? and versionID = 0");
con.prepareStatement(("insert into cfgdata_property (objKey, versionID,
viewID, objData) " +
"select objKey, CAST (? AS BIGINT), viewID, objData from cfgdata_property
where objKey = ? and versionID = 0");
5. is the source data a BLOB or a CLOB?
[Devi] - Source data is BLOB. Application is trying to insert data into
the below given table
CREATE TABLE cfgdata_objects(
objKey INT,
objParent INT,
name VARCHAR(255),
class VARCHAR(255),
versionID BIGINT DEFAULT 0,
viewID INT DEFAULT 0,
objData BLOB,
CONSTRAINT kvk_cfgdata_objects Primary Key (objKey, versionID),
CONSTRAINT pvk_cfgdata_objects Foreign Key (objParent, versionID)
REFERENCES cfgdata_objects(objKey, versionID) ON DELETE CASCADE);
CREATE TABLE cfgdata_property(
objKey INT,
versionID BIGINT DEFAULT 0,
viewID INT DEFAULT 0,
objData BLOB(2M),
CONSTRAINT kvk_cfgdata_property Foreign Key (objKey, versionID)
REFERENCES cfgdata_objects(objKey, versionID) ON DELETE CASCADE);
Does this issue is occurring due to multi thread operations with derby
database?
Thanks & Regards,
Devi
--
View this message in context: http://old.nabble.com/Java-exception%3A-%27-1%3A-java.lang.ArrayIndexOutOfBoundsException%27-error-tp28678738p28729484.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.
Re: Java exception: '-1: java.lang.ArrayIndexOutOfBoundsException'
error
Posted by Kristian Waagan <Kr...@Sun.COM>.
On 26.05.10 12:12, Shankar Devi wrote:
> Hi,
> I have an intensive data-processing application which utilises Apache Derby
> Version - 10.3.1.4.
> My Customer is running this application on Windows 2003 Service Pack 2 and
> has 1.6 GB derby database size.
> Application has crashed after throwing this error.
>
Hi Devi,
Can you say which transaction isolation level the application is running
with?
And I'm assuming this is a multi-threaded / -user application?
How easily is the bug reproducible?
Taking a guess from the stack trace it looks like you may be inserting
data returned by a select.
Is this correct, and is the source data a BLOB or a CLOB?
You may have hit issue DERBY-3811 [1].
Regards,
--
Kristian
[1] https://issues.apache.org/jira/browse/DERBY-3811
> Thanks,
> Devi
>
>
> May 7, 2010 3:50:47 PM java.sql.SQLException: Java exception: '-1:
> java.lang.ArrayIndexOutOfBoundsException'.
> at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown
> Source)
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
> at
> org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown
> Source)
> at
> org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown
> Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown
> Source)
> at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown
> Source)
> at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown
> Source)
> at
> org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown
> Source)
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown
> Source)
> at
> com.netsation.configurator.server.DerbyStorage.saveObjectVersionTree(Unknown
> Source)
> at
> com.netsation.configurator.server.DerbyStorage.saveObjectVersionTree(Unknown
> Source)
> at
> com.netsation.configurator.server.DerbyStorage.saveObjectVersionTree(Unknown
> Source)
> at
> com.netsation.configurator.server.DerbyStorage.saveObjectVersionTree(Unknown
> Source)
> at
> com.netsation.configurator.server.DerbyStorage.saveObjectVersionTree(Unknown
> Source)
> at com.netsation.configurator.server.DerbyStorage.saveObjectVersion(Unknown
> Source)
> at com.netsation.configurator.server.Transaction.perform(Unknown Source)
> at com.netsation.configurator.server.Transaction.transact(Unknown Source)
> at com.netsation.configurator.server.Transaction.checkPointInternal(Unknown
> Source)
> at com.netsation.configurator.server.Transaction.checkPoint(Unknown Source)
> at
> com.netsation.configurator.common.StorageMechanism.checkPointTransaction(Unknown
> Source)
> at com.netsation.configurator.server.HardLimitCache.cleanObject(Unknown
> Source)
> at com.netsation.configurator.server.HardLimitCache.removeObject(Unknown
> Source)
> at com.netsation.configurator.server.HardLimitCache.removeTail(Unknown
> Source)
> at com.netsation.configurator.server.HardLimitCache.punt(Unknown Source)
> at com.netsation.configurator.server.HardLimitCache.write(Unknown Source)
> at com.netsation.configurator.common.StorageMechanism.writeToCache(Unknown
> Source)
> at com.netsation.configurator.common.StorageMechanism.loadObject(Unknown
> Source)
> at com.netsation.configurator.common.StorageMechanism.loadObject(Unknown
> Source)
> at com.netsation.configurator.server.LowLevelServices.loadObject(Unknown
> Source)
> at com.netsation.configurator.server.AccessService.loadAccess(Unknown
> Source)
> at com.netsation.configurator.server.AccessService.getAccess(Unknown
> Source)
> at com.netsation.configurator.server.CConfigurable.getAccess(Unknown
> Source)
> at com.netsation.configurator.server.CConfigurable.checkAccess(Unknown
> Source)
> at com.netsation.configurator.server.CConfigurable.representation(Unknown
> Source)
> at com.netsation.configurator.server.CConfigurable.representation(Unknown
> Source)
> at
> com.netsation.configurator.server.NsConfigurationServer.propagateEventsToClients(Unknown
> Source)
> at
> com.netsation.configurator.server.LowLevelServices.commitTransaction(Unknown
> Source)
> at
> com.baynetworks.optivity.configurator.NetworkImportThread.postprocess(Unknown
> Source)
> at
> com.baynetworks.optivity.configurator.NetworkImportThread.execute(Unknown
> Source)
> at com.netsation.util.ThreadedOperation.run(Unknown Source)
> Caused by: java.sql.SQLException: Java exception: '-1:
> java.lang.ArrayIndexOutOfBoundsException'.
> at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
> Source)
> at
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
> Source)
> ... 41 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
> at org.apache.derby.impl.store.raw.data.BasePage.getHeaderAtSlot(Unknown
> Source)
> at
> org.apache.derby.impl.store.raw.data.StoredPage.restorePortionLongColumn(Unknown
> Source)
> at
> org.apache.derby.impl.store.raw.data.OverflowInputStream.fillByteHolder(Unknown
> Source)
> at
> org.apache.derby.impl.store.raw.data.BufferedByteHolderInputStream.read(Unknown
> Source)
> at java.io.DataInputStream.read(DataInputStream.java:132)
> at org.apache.derby.impl.store.raw.data.MemByteHolder.write(Unknown Source)
> at
> org.apache.derby.impl.store.raw.data.RememberBytesInputStream.fillBuf(Unknown
> Source)
> at org.apache.derby.impl.store.raw.data.StoredPage.logColumn(Unknown
> Source)
> at org.apache.derby.impl.store.raw.data.StoredPage.logLongColumn(Unknown
> Source)
> at
> org.apache.derby.impl.store.raw.data.InsertOperation.writeOptionalDataToBuffer(Unknown
> Source)
> at org.apache.derby.impl.store.raw.data.InsertOperation.<init>(Unknown
> Source)
> at
> org.apache.derby.impl.store.raw.data.LoggableActions.actionInsert(Unknown
> Source)
> at org.apache.derby.impl.store.raw.data.BasePage.insertLongColumn(Unknown
> Source)
> at
> org.apache.derby.impl.store.raw.data.BasePage.insertAllowOverflow(Unknown
> Source)
> at org.apache.derby.impl.store.raw.data.BasePage.insert(Unknown Source)
> at org.apache.derby.impl.store.access.heap.HeapController.doInsert(Unknown
> Source)
> at
> org.apache.derby.impl.store.access.heap.HeapController.insertAndFetchLocation(Unknown
> Source)
> at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown
> Source)
> at
> org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown
> Source)
> at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)
> at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown
> Source)
> ... 34 more
>
> May 7, 2010 3:50:47 PM java.sql.SQLTransientConnectionException: No current
> connection.
> at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown
> Source)
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
> at org.apache.derby.impl.jdbc.Util.noCurrentConnection(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.checkIfClosed(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.setupContextStack(Unknown
> Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown
> Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown
> Source)
> at
> com.netsation.configurator.server.DerbyStorage.saveObjectVersionTree(Unknown
> Source)
> at com.netsation.configurator.server.DerbyStorage.saveObjectVersion(Unknown
> Source)
> at com.netsation.configurator.server.Transaction.perform(Unknown Source)
> at com.netsation.configurator.server.Transaction.transact(Unknown Source)
> at com.netsation.configurator.server.Transaction.checkPointInternal(Unknown
> Source)
> at com.netsation.configurator.server.Transaction.checkPoint(Unknown Source)
> at
> com.netsation.configurator.common.StorageMechanism.checkPointTransaction(Unknown
> Source)
> at com.netsation.configurator.server.HardLimitCache.cleanObject(Unknown
> Source)
> at com.netsation.configurator.server.HardLimitCache.removeObject(Unknown
> Source)
> at com.netsation.configurator.server.HardLimitCache.removeTail(Unknown
> Source)
> at com.netsation.configurator.server.HardLimitCache.punt(Unknown Source)
> at com.netsation.configurator.server.HardLimitCache.write(Unknown Source)
> at com.netsation.configurator.common.StorageMechanism.writeToCache(Unknown
> Source)
> at com.netsation.configurator.common.StorageMechanism.loadObject(Unknown
> Source)
> at com.netsation.configurator.common.StorageMechanism.loadObject(Unknown
> Source)
> at com.netsation.configurator.server.LowLevelServices.loadObject(Unknown
> Source)
> at com.netsation.configurator.server.AccessService.loadAccess(Unknown
> Source)
> at com.netsation.configurator.server.AccessService.getAccess(Unknown
> Source)
> at com.netsation.configurator.server.CConfigurable.getAccess(Unknown
> Source)
> at com.netsation.configurator.server.CConfigurable.checkAccess(Unknown
> Source)
> at com.netsation.configurator.server.CConfigurable.representation(Unknown
> Source)
> at com.netsation.configurator.server.CConfigurable.representation(Unknown
> Source)
> at
> com.netsation.configurator.server.NsConfigurationServer.propagateEventsToClients(Unknown
> Source)
> at
> com.netsation.configurator.server.LowLevelServices.commitTransaction(Unknown
> Source)
> at
> com.baynetworks.optivity.configurator.NetworkImportThread.postprocess(Unknown
> Source)
> at
> com.baynetworks.optivity.configurator.NetworkImportThread.execute(Unknown
> Source)
> at com.netsation.util.ThreadedOperation.run(Unknown Source)
> Caused by: java.sql.SQLException: No current connection.
> at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
> Source)
> at
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
> Source)
> ... 35 more
>