mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Fix for DS-930 - Several DSpace Crosswalks create a new Context and never close it
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6441 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -119,6 +119,7 @@ public class METSDisseminationCrosswalk
|
||||
// Disseminate METS to temp file
|
||||
Context context = new Context();
|
||||
dip.disseminate(context, item, pparams, tempFile);
|
||||
context.complete();
|
||||
|
||||
try
|
||||
{
|
||||
|
@@ -200,7 +200,8 @@ public class RoleCrosswalk
|
||||
//actually disseminate to our temp file.
|
||||
Context context = new Context();
|
||||
dip.disseminate(context, dso, pparams, tempFile);
|
||||
|
||||
context.complete();
|
||||
|
||||
// if we ended up with a Zero-length output file,
|
||||
// this means dissemination was successful but had no results
|
||||
if(tempFile.exists() && tempFile.length()==0)
|
||||
|
@@ -332,7 +332,7 @@ public class XSLTIngestionCrosswalk
|
||||
{
|
||||
System.err.println("DIM Error, Cannot find metadata schema for: schema=\""+schema+
|
||||
"\" (... element=\""+element+"\", qualifier=\""+qualifier+"\")");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (qualifier != null && qualifier.equals(""))
|
||||
@@ -356,6 +356,8 @@ public class XSLTIngestionCrosswalk
|
||||
throw new MetadataValidationException("Got unexpected element in DIM list: "+elt.toString());
|
||||
}
|
||||
}
|
||||
//complete & close Context
|
||||
context.complete();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user