Hi

it looks as a bug in DSpace-CRIS. It should be enough to add this line

c.turnOffItemWrapper();

here

https://github.com/4Science/DSpace/blob/dspace-5_x_x-cris/dspace-api/src/main/java/org/dspace/harvest/OAIHarvester.java#L126

Unfortunately I have no time today to verify, can you run a fast test and 
report if it solves so to include the fix in the next release?

Thanks,
Andrea

Il 22/11/2016 04:35, 陳彥棠 ha scritto:
Dear all

I run Dspace-CRIS 5.5.0  OAI-pmh error ....

I see Dspace-CRIS Edit Collection Last Harvest Result=> Error occurred while 
processing an OAI record
So I checking dspace.log  message

dspace.log   message

 INFO  org.dspace.content.Item @ anonymous::update_item:item_id=4179
 INFO  org.dspace.content.WorkspaceItem @ 
anonymous::create_workspace_item:workspace_item_id=-1item_id=4179collection_id=1
 ERROR org.dspace.harvest.OAIHarvester @ Harvesting error occurred while 
processing an OAI record: The 'item' schema has not been defined in this DSpace 
instance.
 INFO  org.dspace.content.Collection @ 
anonymous::update_collection:collection_id=1
 INFO  org.dspace.harvest.OAIHarvester @ Thread for collection 1 completes.
 INFO  org.dspace.harvest.OAIHarvester @ Done with iteration 5
 INFO  org.dspace.harvest.OAIHarvester @ Collections ready for immediate 
harvest: [1]
 INFO  org.dspace.harvest.OAIHarvester @ Thread queued up: 
Thread[Thread-228,5,main]
 INFO  org.dspace.harvest.OAIHarvester @ Thread started: 
Thread[Thread-229,5,main]
 INFO  org.dspace.harvest.OAIHarvester @ Thread for collection 1 starts.
 INFO  org.dspace.harvest.OAIHarvester @ HTTP Request: 
http://ntur.lib.ntu.edu.tw/ir-oai/request?verb=ListRecords&until=2016-11-22T02:45:42Z&set=hdl_246246_43199&metadataPrefix=oai_dc
 INFO  org.dspace.harvest.OAIHarvester @ Found 100 records to process
 INFO  org.dspace.content.Item @ anonymous::update_item:item_id=4180
 INFO  org.dspace.content.Item @ anonymous::create_item:item_id=4180
 INFO  org.dspace.content.Item @ anonymous::update_item:item_id=4180
 INFO  org.dspace.content.WorkspaceItem @ 
anonymous::create_workspace_item:workspace_item_id=-1item_id=4180collection_id=1
 ERROR org.dspace.harvest.OAIHarvester @ Harvesting error occurred while 
processing an OAI record: The 'item' schema has not been defined in this DSpace 
instance.
 INFO  org.dspace.content.Collection @ 
anonymous::update_collection:collection_id=1
 INFO  org.dspace.harvest.OAIHarvester @ Thread for collection 1 completes.
 WARN  org.dspace.storage.rdbms.DatabaseManager @ Already closed.
java.sql.SQLException: Already closed.
    at 
org.apache.commons.dbcp.PoolableConnection.close(PoolableConnection.java:114)
    at 
org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:191)
    at 
org.dspace.storage.rdbms.DatabaseManager.freeConnection(DatabaseManager.java:676)
    at org.dspace.core.Context.abort(Context.java:567)
    at org.dspace.core.Context.finalize(Context.java:733)
    at java.lang.System$2.invokeFinalize(Unknown Source)
    at java.lang.ref.Finalizer.runFinalizer(Unknown Source)
    at java.lang.ref.Finalizer.access$100(Unknown Source)
    at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)





It is my database  schemas tables  item => item_id=4179 (ps:item_id=4179)
but database have obviously data .....

I also tried using dspace 5.5 OAI-pmh on  same condition
It is a successful execution(ps:dspace-5.5 jspui, dspace-5.5.log)

Why use dspace-cris oai in question?


I'm sorry that my English is not good ...
Description of the expression may not be clear.......



Regards


Sincerly yours, Yen-Tang Chen


--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com<mailto:dspace-tech+unsubscr...@googlegroups.com>.
To post to this group, send email to 
dspace-tech@googlegroups.com<mailto:dspace-tech@googlegroups.com>.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


--
Andrea Bollini
Chief Technology and Innovation Officer

4Science,  www.4science.it<http://www.4science.it>
office: Via Edoardo D'Onofrio 304, 00155 Roma, Italy
mobile: +39 333 934 1808
skype: a.bollini
linkedin: andreabollini
orcid: 0000-0002-9029-1854

an Itway Group Company
Italy, France, Spain, Portugal, Greece, Turkey, Lebanon, Qatar, U.A.Emirates

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to