Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#658 closed defect (fixed)

OAI harvesting fails with a 500

Reported by: Menzo Windhouwer Owned by:
Priority: major Milestone: VirtualCollectionRegistry-1.0
Component: VCRegistry Version:
Keywords: Cc:

Description

Trying to harvest the VCR results in a 500:

757 [Thread-0] INFO nl.mpi.oai.harvester.Provider - Contacted http://clarin.ids-mannheim.de/vcr/oai to get its name, received: "CLARIN Virtual Collection Registry"
759 [Thread-0] INFO nl.mpi.oai.harvester.Worker - Processing provider CLARIN Virtual Collection Registry @ http://clarin.ids-mannheim.de/vcr/oai
759 [Thread-0] DEBUG nl.mpi.oai.harvester.Provider - Checking format namespace=http://www.clarin.eu/cmd/
814 [Thread-0] DEBUG nl.mpi.oai.harvester.Provider - Found suitable prefix: cmdi
950 [Thread-0] ERROR nl.mpi.oai.harvester.Provider - java.io.IOException: Server returned HTTP response code: 500 for URL: http://clarin.ids-mannheim.de/vcr/oai?verb=GetRecord&identifier=oai:virtualcollectionregistry.cmdi.clarin.eu:1000&metadataPrefix=cmdi
999 [Thread-0] ERROR nl.mpi.oai.harvester.Provider - java.io.IOException: Server returned HTTP response code: 500 for URL: http://clarin.ids-mannheim.de/vcr/oai?verb=GetRecord&identifier=oai:virtualcollectionregistry.cmdi.clarin.eu:1000&metadataPrefix=cmdi
999 [Thread-0] INFO nl.mpi.oai.harvester.Worker - Processing finished for CLARIN Virtual Collection Registry @ http://clarin.ids-mannheim.de/vcr/oai

Change History (4)

comment:1 Changed 10 years ago by Oliver Schonefeld

    @Override
    public Record getRecord(Object localId, boolean headerOnly)
            throws OAIException {
        try {
            long id = (Long) localId;
// it fails in the next line with a NullPointerException. Probably "registry" is
// not initialized correctly
            VirtualCollection vc = registry.retrieveVirtualCollection(id);
            return createRecord(vc, headerOnly);
        } catch (VirtualCollectionNotFoundException e) {
            return null;
        } catch (VirtualCollectionRegistryException e) {
            throw new OAIException("error", e);
        }
    }

comment:2 Changed 10 years ago by Oliver Schonefeld

Hopefully r5708 and r5709 fix that problem. Please run the harvester again an close ticket of the problem is solved.

comment:3 Changed 10 years ago by Menzo Windhouwer

Resolution: fixed
Status: newclosed

comment:4 Changed 10 years ago by Twan Goosen

Merged fixes to 1.0 branch with an added note to the Component annotation in r5730

Note: See TracTickets for help on using tickets.