mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
Fix to handle SQLException as a result of performance improvement fix
git-svn-id: http://scm.dspace.org/svn/repo/trunk@1340 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -62,6 +62,7 @@ import java.util.Properties;
|
||||
import java.util.Date;
|
||||
import java.io.*;
|
||||
import java.lang.*;
|
||||
import java.sql.SQLException;
|
||||
import ORG.oclc.oai.server.crosswalk.Crosswalk;
|
||||
import ORG.oclc.oai.server.verb.CannotDisseminateFormatException;
|
||||
import org.dspace.content.DCDate;
|
||||
@@ -187,6 +188,9 @@ public class DIDLCrosswalk extends Crosswalk
|
||||
|
||||
|
||||
//**CYCLE HERE!!!!**//
|
||||
|
||||
try
|
||||
{
|
||||
Bundle[] bundles= item.getBundles("ORIGINAL");
|
||||
|
||||
if (bundles.length == 0)
|
||||
@@ -196,7 +200,7 @@ public class DIDLCrosswalk extends Crosswalk
|
||||
else
|
||||
{
|
||||
|
||||
/**cycle bundles**/
|
||||
/**cycle bundles**/
|
||||
for (int i = 0; i < bundles.length; i++)
|
||||
{
|
||||
int flag=0;
|
||||
@@ -255,9 +259,16 @@ public class DIDLCrosswalk extends Crosswalk
|
||||
/*end bitstream cycle*/
|
||||
}
|
||||
/*end bundle cycle*/
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
catch (SQLException sqle)
|
||||
{
|
||||
System.err.println("Caught exception:"+sqle.getCause());
|
||||
sqle.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
//**END CYCLE HERE **//
|
||||
|
||||
|
Reference in New Issue
Block a user