mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 22:13:08 +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
|
// Disseminate METS to temp file
|
||||||
Context context = new Context();
|
Context context = new Context();
|
||||||
dip.disseminate(context, item, pparams, tempFile);
|
dip.disseminate(context, item, pparams, tempFile);
|
||||||
|
context.complete();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@@ -200,6 +200,7 @@ public class RoleCrosswalk
|
|||||||
//actually disseminate to our temp file.
|
//actually disseminate to our temp file.
|
||||||
Context context = new Context();
|
Context context = new Context();
|
||||||
dip.disseminate(context, dso, pparams, tempFile);
|
dip.disseminate(context, dso, pparams, tempFile);
|
||||||
|
context.complete();
|
||||||
|
|
||||||
// if we ended up with a Zero-length output file,
|
// if we ended up with a Zero-length output file,
|
||||||
// this means dissemination was successful but had no results
|
// this means dissemination was successful but had no results
|
||||||
|
@@ -332,7 +332,7 @@ public class XSLTIngestionCrosswalk
|
|||||||
{
|
{
|
||||||
System.err.println("DIM Error, Cannot find metadata schema for: schema=\""+schema+
|
System.err.println("DIM Error, Cannot find metadata schema for: schema=\""+schema+
|
||||||
"\" (... element=\""+element+"\", qualifier=\""+qualifier+"\")");
|
"\" (... element=\""+element+"\", qualifier=\""+qualifier+"\")");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (qualifier != null && qualifier.equals(""))
|
if (qualifier != null && qualifier.equals(""))
|
||||||
@@ -356,6 +356,8 @@ public class XSLTIngestionCrosswalk
|
|||||||
throw new MetadataValidationException("Got unexpected element in DIM list: "+elt.toString());
|
throw new MetadataValidationException("Got unexpected element in DIM list: "+elt.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//complete & close Context
|
||||||
|
context.complete();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user