If you're trying to find Context.java, in 1.5.1 it's at:
/dspace-1.5.1-src-release/dspace-api/src/main/java/org/dspace/core/Context.java
From: bryce ray [mailto:[email protected]]
Sent: Friday, June 04, 2010 1:59 PM
To: Mark Diggory; [email protected]; Thornton, Susan M. (LARC-B702)[RAYTHEON
TECHNICAL SERVICES COMPANY]
Cc: [email protected]
Subject: Re: [Dspace-tech] Dspace Items Missing / index-update error
I tried running both index-init and index-update and both give the same error..
I've used both of these command line tools before and it has always worked
fine.
I'm using version dspace-1.5.2-release, I tried the fix Peter suggested.
However, I can't find the file he specified. It does not appear to be in that
folder, so I'm stuck for the time being.
On Fri, Jun 4, 2010 at 12:03 PM, Mark Diggory
<[email protected]<mailto:[email protected]>> wrote:
Did you try rebuilding the search/browse indexes from scratch with the
commandline tool?
[dspace]/bin/index-init
Mark
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;
}
On Jun 3, 2010, at 9:41 AM, bryce ray 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
Mark R. Diggory
Head of U.S. Operations - @mire
http://www.atmire.com - Institutional Repository Solutions
http://www.togather.eu - Before getting together, get t...@ther
------------------------------------------------------------------------------
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