[Dspace-tech] Index-Init failed

13 views
Skip to first unread message

Jeffrey Trimble

unread,
Aug 25, 2015, 12:37:26 PM8/25/15
to DSpace Tech
I've started to convert my production server to 1.5.1 and have received 
this error when issuing index-init:

$ ./index-init
Creating browse index
Creating search index
Exception in thread "main" java.lang.ExceptionInInitializerError
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:222)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1
        at org.dspace.search.DSIndexer.<clinit>(DSIndexer.java:200)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)


My software/hardware:

AIX 5.3
Java 1.6.0.100

Is there something that needs to be changed?

TIA,

jeff



Jeffrey Trimble
System LIbrarian
William F.  Maag Library
Youngstown State University
330.941.2483 (Office)



Stuart Lewis

unread,
Aug 25, 2015, 12:37:29 PM8/25/15
to Jeffrey Trimble, DSpace Tech
Hi Jeff,

This is a bit of a shot in the dark, but what settings do you have in dspace.cfg for the search indexes? They should look similar (but not necessarily identical) to:

search.index.1 = author:dc.contributor.*
search.index.2 = author:dc.creator.*
search.index.3 = title:dc.title.*
search.index.4 = keyword:dc.subject.*
search.index.5 = abstract:dc.description.abstract
search.index.6 = author:dc.description.statementofresponsibility
search.index.7 = series:dc.relation.ispartofseries
search.index.8 = abstract:dc.description.tableofcontents
search.index.9 = mime:dc.format.mimetype
search.index.10 = sponsor:dc.description.sponsorship
search.index.11 = identifier:dc.identifier.*
search.index.12 = language:dc.language.iso

This guess is based on the error message "Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1 at org.dspace.search.DSIndexer.<clinit>(DSIndexer.java:200)" because line 200 of DSIndexer is where those search indexes are stripped into their constituent parts for processing.

Thanks,


Stuart Lewis
Digital Services Programmer
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: 64 9 373-7599 x81928
http://www.library.auckland.ac.nz/

Jeffrey Trimble

unread,
Aug 25, 2015, 12:37:45 PM8/25/15
to Stuart Lewis, DSpace Tech
Stuart, et al....

Yes, there was a typo on my part.  After fixing that, we were able to run a little, but the index-init failed on "creating search index"
with the following long set of errors.  (I am thinking it may have something to do with the jdbc compatability issue. We are running
Postgresql 8.2 and Java 6).  For what it is worth Filter-media is runs just fine.  Here is the output of the error:

Any one have  a guess at this one?

==================================================
$ ./index-init
Creating browse index
Creating search index
org.postgresql.util.PSQLException: An I/O error occured while sending to the backend.
        at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:214)
        at org.postgresql.jdbc2.AbstractJdbc2Connection.executeTransactionCommand(AbstractJdbc2Connection.java:621)
        at org.postgresql.jdbc2.AbstractJdbc2Connection.rollback(AbstractJdbc2Connection.java:658)
        at org.apache.commons.dbcp.DelegatingConnection.rollback(DelegatingConnection.java:328)
        at org.apache.commons.dbcp.DelegatingConnection.rollback(DelegatingConnection.java:328)
        at org.apache.commons.dbcp.PoolingDriver$PoolGuardConnectionWrapper.rollback(PoolingDriver.java:377)
        at org.dspace.core.Context.abort(Context.java:356)
        at org.dspace.core.Context.finalize(Context.java:499)
        at java.lang.J9VMInternals.runFinalize(J9VMInternals.java:412)
Caused by: java.net.SocketException: Socket closed
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:147)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:76)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:134)
        at org.postgresql.core.PGStream.flush(PGStream.java:530)
        at org.postgresql.core.v3.QueryExecutorImpl.sendSync(QueryExecutorImpl.java:672)
        at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:187)
        ... 8 more
java.sql.SQLException: Already closed.
        at org.apache.commons.dbcp.PoolableConnection.close(PoolableConnection.java:84)
        at org.apache.commons.dbcp.PoolingDriver$PoolGuardConnectionWrapper.close(PoolingDriver.java:269)
        at org.dspace.storage.rdbms.DatabaseManager.freeConnection(DatabaseManager.java:566)
        at org.dspace.core.Context.abort(Context.java:365)
        at org.dspace.core.Context.finalize(Context.java:499)
        at java.lang.J9VMInternals.runFinalize(J9VMInternals.java:412)
=============================================



Jeffrey Trimble
System LIbrarian
William F.  Maag Library
Youngstown State University
330.941.2483 (Office)



Reply all
Reply to author
Forward
0 new messages