Details
Description
I'm getting this error when use the Database.load(...) when my table has only columns wich are part of the primary key:
java.lang.IllegalStateException: Transaction org.castor.persist.LocalTransactionContext@147c1db does not hold the read lock
...
java.lang.ArrayIndexOutOfBoundsException: 0
at org.exolab.castor.jdo.engine.SQLStatementLoad.executeStatement(SQLStatementLoad.java:332)
at org.exolab.castor.jdo.engine.SQLEngine.load(SQLEngine.java:349)
...
The table the unitTest:
create table FSIM17(
NUMCIA decimal(3,0) NOT NULL,
NUMALM decimal(3,0) NOT NULL,
IPWAS CHAR(15) NOT NULL,
primary key (NUMCIA,NUMALM,IPWAS)
)
Issue Links
- is duplicated by
-
CASTOR-2133
ArayIndexOutOfBoundException at SQLStatementLoad at line 344
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Werner Guttmann [ wguttmn ] |
| Original Estimate | 1 hour, 30 minutes [ 5400 ] | |
| Remaining Estimate | 1 hour, 30 minutes [ 5400 ] | |
| Fix Version/s | 1.2.1 [ 14004 ] |
| Attachment | patch.c2326.20080411.txt [ 33799 ] |
-
- Time Spent:
- 20 minutes
- Patch creation & integration testing.
| Remaining Estimate | 1 hour, 30 minutes [ 5400 ] | 1 hour, 10 minutes [ 4200 ] |
| Time Spent | 20 minutes [ 1200 ] |
| Remaining Estimate | 1 hour, 10 minutes [ 4200 ] | 50 minutes [ 3000 ] |
| Time Spent | 20 minutes [ 1200 ] | 40 minutes [ 2400 ] |
-
- Time Spent:
- 45 minutes
- Added new test case to CPA CTF.
| Remaining Estimate | 50 minutes [ 3000 ] | 5 minutes [ 300 ] |
| Time Spent | 40 minutes [ 2400 ] | 1 hour, 25 minutes [ 5100 ] |
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Link |
This issue is duplicated by |
| Fix Version/s | 1.3 [ 14004 ] | |
| Fix Version/s | 1.3 rc1 [ 14613 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Initial patch for review.