Have you run index-init?? We have run across this “No entries in Index”
message when we forgot to build the indexes when we first implemented a DSpace
instance. I’m not sure what would happen if you ran “index-update” before
running “index-init” though, so to be safe I’d run “index-init” first and see
if that takes care of your problem.
Best,
Sue
Sue Walker-Thornton
NASA Langley Research Center
Integrated Library Systems
Developer, Application & Database Administrator
ConITS Contract ~ NCI Information Systems, Inc.
130 Research Drive
Hampton, VA 23666
Office: (757) 224-4074 ~ Mobile: (757) 506-9903 ~ Fax: (757) 224-4001
email: [email protected]<mailto:[email protected]>
From: Peter Dietz [mailto:[email protected]]
Sent: Thursday, June 03, 2010 2:21 PM
To: bryce ray
Cc: [email protected]
Subject: Re: [Dspace-tech] Dspace Items Missing / index-update error
Hi Bryce,
It looks like your running 1.5.2, this code is changed in 1.6.+
In 1.5.2 it does: String caller = stackTrace[3].getClassName(); -- thats
likely where this error comes from. You can't guarantee you can access position
three.
In 1.6.+ it does: String caller = stackTrace[stackTrace.length -
1].getClassName(); -- which will avoid ArrayIndexOOB errors
dspace-api/src/main/java/org/dspace/core/Context.java line 220
/**
* Turn Off the Authorisation System for this context and store this change
* in a history for future use.
*/
public void turnOffAuthorisationSystem()
{
authStateChangeHistory.push(ignoreAuth);
if (log.isDebugEnabled())
{
Thread currThread = Thread.currentThread();
StackTraceElement[] stackTrace = currThread.getStackTrace();
String caller = stackTrace[3].getClassName();
authStateClassCallHistory.push(caller);
}
ignoreAuth = true;
}
I don't know if this solves everything, but this should solve the
ArrayIndexOutOfBounds issue.
Peter Dietz
Systems Developer/Engineer
Ohio State University Libraries
On Thu, Jun 3, 2010 at 12:41 PM, bryce ray
<[email protected]<mailto:[email protected]>> wrote:
>
> All of a sudden it seems the documents stored in my dspace installation are
> gone. However, they only seem to be partially gone:
>
> When I view the list of communities it still displays the correct number of
> articles (i.e. 4 items)
> When I click on a community to view the collections it displays the correct
> number of articles
> When I view the collection detail page it still says the correct number of
> articles at the top of the page.
>
> But when I click to view a list of the items in the collection I get the
> message:
>
> "No Entries in Index
>
> There are no entries in the index for Collection "My Collection". "
>
> I've browsed through the asset store and everything appears to be there.
> I've tried logging in as an admin and the items are still not viewable. Why
> all of a sudden can I not view the items in my collections?
>
> Reading through the error displayed above I tried recreating the index but I
> ran into this error message:
>
> # ./index-update
> Creating browse index
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
> at
> org.dspace.core.Context.turnOffAuthorisationSystem(Context.java:220)
> at org.dspace.browse.IndexBrowse.main(IndexBrowse.java:617)
> Creating search index
>
> Could this be the cause of the problem? if so, what exactly is wrong and how
> do I fix it?
>
> Thanks for your help.
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> DSpace-tech mailing list
> [email protected]<mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech