Stuart,

As usual, you were absolutely correct - this is an issue related to 
'harvest.includerestricted.oai' being set to 'false' in dspace.cfg. I set it to 
'true' and the problem went away. I'll switch it back for now but put this on 
my list for a major reason to update to 1.6 sooner rather than later.

Thanks for your help in figuring this one out!

--
Stacy Pennington
Rhodes College
[email protected]
(901) 843-3968


-----Original Message-----
From: Stuart Lewis [mailto:[email protected]] 
Sent: Wednesday, March 31, 2010 3:34 PM
To: Pennington_Stacy
Cc: Tech List
Subject: Re: [Dspace-tech] OAI-PMH ListIdentifiers Not Working

Hi Stacy,

You might be suffering from this issue:

 - http://jira.dspace.org/jira/browse/DS-212

You could test this theory by seeing if you've got 
'harvest.includerestricted.oai' set to 'false'. If so, set it to 'true' and try 
again. If this fixes the problem, you could try enabling it again, and try the 
latest version of the harvest code from DSpace 1.6. I can't promise it'll be 
backwards compatibly with 1.5.2, but it should be:

 - 
http://scm.dspace.org/trac/dspace/browser/dspace/tags/dspace-1.6.0/dspace-api/src/main/java/org/dspace/search/Harvest.java

Thanks,


Stuart Lewis
IT Innovations Analyst and Developer
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/


On 1/04/2010, at 4:11 AM, <[email protected]> <[email protected]> wrote:

> Thanks for the advice, but those steps didn't make any difference in the 
> outcome.
> 
> It is just really odd. This request fails with a 500 error:
> 
> http://dlynx.rhodes.edu/oai/request?verb=ListIdentifiers&metadataPrefix=oai_dc
> 
> But this request gives a response, which is the correct Bad Argument answer 
> (because there is not the required metadataPrefix part of the request):
> 
> http://dlynx.rhodes.edu/oai/request?verb=ListIdentifiers
> 
> And when I do a list of metadata formats, oai_dc is there, of course:
> 
> http://dlynx.rhodes.edu/oai/request?verb=ListMetadataFormats
> 
> When I get the 500 error, I get this entry in the dspace.log file:
> 
> 2010-03-31 10:03:55,111 INFO  org.dspace.app.oai.DSpaceOAICatalog @ 
> anonymous:no_context:oai_request:verb=listIdentifiers,from=0001-01-01T00\colon;00\colon;00Z,until=9999-12-31T23\colon;59\colon;59Z,set=null,metadataPrefix=oai_dc
> 
> The catalina.out log for Tomcat gives:
> 
> java.lang.NullPointerException
>        at 
> org.dspace.authorize.AuthorizeManager.getAuthorizedGroups(AuthorizeManager.java:718)
>        at org.dspace.search.Harvest.harvest(Harvest.java:273)
>        at 
> org.dspace.app.oai.DSpaceOAICatalog.listIdentifiers(DSpaceOAICatalog.java:240)
>        at 
> ORG.oclc.oai.server.verb.ListIdentifiers.construct(ListIdentifiers.java:163)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at ORG.oclc.oai.server.OAIHandler.getResult(OAIHandler.java:383)
>        at ORG.oclc.oai.server.OAIHandler.doGet(OAIHandler.java:292)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>        at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>        at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
>        at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>        at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>        at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>        at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>        at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
>        at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>        at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>        at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>        at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>        at java.lang.Thread.run(Thread.java:595)
> 
> Any more thoughts? Is anyone else seeing this issue running 1.5.2?
> 
> --
> Stacy Pennington
> Rhodes College
> [email protected]
> (901) 843-3968


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to