Hi Jim,
Problem 2 seems a bug. Change the following line
https://github.com/DSpace/DSpace/blob/dspace-4.1/dspace-api/src/main/java/org/dspace/search/DSIndexer.java#L604
From:
if (!liveDocs.get(i))
To:
if (liveDocs != null && !liveDocs.get(i))
Problem 1 seems a config setting. From version 4, discovery search
provider is used as a default, so you have to comment out the discovery
setting and comment in the lucene setting in "Additional configuration
for Recent Submissions code" section.
Regards,
Keiji Suzuki
2014-07-25 3:46 GMT+09:00 Halliday, James Leonard <[email protected]>:
> Hi everyone,
>
>
>
> I am upgrading an instance of DSpace from 1.5.2 to 4.1, and I’m running
> into 2 problems after the upgrade. They may be related, so I’m posting them
> both here together. First off, note that I’m using legacy lucene indexing
> and XMLUI, and I’m using code that has worked for 2 other DSpace upgrades.
>
>
>
> Problem #1: The collection pages are blank after the upgrade. In other
> words, the collection pages don’t show the usual content in the main part
> of the page (the “search within this document type”, “browse by”, and
> “recent submissions” are all missing). The sidebar is there, and I can
> search or browse the collection just fine by using the sidebar, but the
> main part of the page doesn’t show. Strangely, I can switch to any other
> theme, including Classic and Kubrick, and the same problem occurs. If I
> view the DRI and XML versions of those pages I can see that the “recent
> submissions” node is not present at all. If I create new collections, they
> exhibit the same problem. I do not have this problem in the older 1.5.2
> instance.
>
>
>
> Problem #2: When running an index-lucene-init it works just fine, but
> running index-lucene-update crashes every time with:
>
> java.lang.NullPointerException
>
> at org.dspace.search.DSIndexer.cleanIndex(DSIndexer.java:604)
>
> at org.dspace.search.DSIndexer.main(DSIndexer.java:507)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:606)
>
> at
> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225)
>
> at
> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)
>
>
>
> Can anyone help me with this? I’m more concerned about #1 than #2, because
> I won’t be able to put this repository into production until I resolve this
> issue.
>
>
>
> Thanks!
>
>
>
> - Jim Halliday
>
> - Indiana University
>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
鈴木敬二@江別市
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette