Issue #1613: com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null

Type: Bug ReoprtVersion: 2.6.1Priority: LowStatus: ActiveReplies: 1
#1

Exception in thread "main" [ObjectDB 2.6.1] Unexpected exception (Error 990)
  Generated by Java HotSpot(TM) 64-Bit Server VM 1.7.0_51 (on Windows 7 6.1).
Please report this error on http://www.objectdb.com/database/issue/new
com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at com.objectdb.o.SEM.c(SEM.java:77)
at com.objectdb.o.SEC.g(SEC.java:196)
at com.objectdb.o.SEC.c(SEC.java:84)
at com.objectdb.o.RTT.F(RTT.java:227)
at com.objectdb.o.RRT.C(RRT.java:288)
at com.objectdb.o.RTT.l(RTT.java:134)
at com.objectdb.o.RRT.l(RRT.java:32)
at com.objectdb.o.RTT.D(RTT.java:179)
at com.objectdb.o.RRT.B(RRT.java:125)
at com.objectdb.o.RTT.l(RTT.java:132)
at com.objectdb.o.RRT.l(RRT.java:32)
at com.objectdb.o.RTT.D(RTT.java:179)
at com.objectdb.o.RRT.B(RRT.java:125)
at com.objectdb.o.RTT.l(RTT.java:132)
at com.objectdb.o.RRT.l(RRT.java:32)
at com.objectdb.o.TSK.i(TSK.java:145)
at com.objectdb.o.TSK.f(TSK.java:95)
at com.objectdb.o.TSM.e(TSM.java:86)
at com.objectdb.o.RTT.D(RTT.java:177)
at com.objectdb.o.RRT.B(RRT.java:125)
at com.objectdb.o.RTT.l(RTT.java:132)
at com.objectdb.o.RRT.l(RRT.java:32)
at com.objectdb.o.TSK.i(TSK.java:145)
at com.objectdb.o.TSK.f(TSK.java:95)
at com.objectdb.o.MST.aZ(MST.java:688)
at com.objectdb.o.MST.aW(MST.java:469)
at com.objectdb.o.MST.U8(MST.java:435)
at com.objectdb.o.WRA.U8(WRA.java:266)
at com.objectdb.o.LDR.F(LDR.java:536)
at com.objectdb.o.LDR.E(LDR.java:470)
at com.objectdb.o.LDR.z(LDR.java:269)
at com.objectdb.o.OBC.aP(OBC.java:1058)
at com.objectdb.o.OBC.aN(OBC.java:976)
at com.objectdb.jpa.EMImpl.find(EMImpl.java:625)
at com.objectdb.jpa.EMImpl.find(EMImpl.java:545)
at ego.Database.findByID(Database.java:79)

Database:

Number of WebReference objects: 863722
Size: 0.98GB
only object with id = 89772 forces the error.

Example Code:

  WebReference w = em.find(WebReference.class, 89772)

Example Class:

public @Entity
class WebReference implements Serializable {


    private @Id
    @GeneratedValue
    long id;

    public WebReference() {
    }

    public long getId() {
        return id;
    }

    private @Index
    @Unique
    String url = "";

    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    private Date createdTime;

    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    private Date modifiedTime;

    private @Index
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    Date postTime;

   
    @OneToOne
    public NewsDetails details; //not used


    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    private Date refreshedTime;

    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    private Date createdDetailsTime;

    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    private Date refreshedDetailsTime;

    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    private Date modifiedDetailsTime;

   ...

}

Fixed problem by database repair with doctor!

Thanks!

#2

Thank you for reporting this issue. We cannot see the cause. If it happens again please update this thread with more information.

ObjectDB Support

Reply