mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 21:13:19 +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.util.Date;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.lang.*;
|
import java.lang.*;
|
||||||
|
import java.sql.SQLException;
|
||||||
import ORG.oclc.oai.server.crosswalk.Crosswalk;
|
import ORG.oclc.oai.server.crosswalk.Crosswalk;
|
||||||
import ORG.oclc.oai.server.verb.CannotDisseminateFormatException;
|
import ORG.oclc.oai.server.verb.CannotDisseminateFormatException;
|
||||||
import org.dspace.content.DCDate;
|
import org.dspace.content.DCDate;
|
||||||
@@ -187,6 +188,9 @@ public class DIDLCrosswalk extends Crosswalk
|
|||||||
|
|
||||||
|
|
||||||
//**CYCLE HERE!!!!**//
|
//**CYCLE HERE!!!!**//
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
Bundle[] bundles= item.getBundles("ORIGINAL");
|
Bundle[] bundles= item.getBundles("ORIGINAL");
|
||||||
|
|
||||||
if (bundles.length == 0)
|
if (bundles.length == 0)
|
||||||
@@ -196,7 +200,7 @@ public class DIDLCrosswalk extends Crosswalk
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
/**cycle bundles**/
|
/**cycle bundles**/
|
||||||
for (int i = 0; i < bundles.length; i++)
|
for (int i = 0; i < bundles.length; i++)
|
||||||
{
|
{
|
||||||
int flag=0;
|
int flag=0;
|
||||||
@@ -255,9 +259,16 @@ public class DIDLCrosswalk extends Crosswalk
|
|||||||
/*end bitstream cycle*/
|
/*end bitstream cycle*/
|
||||||
}
|
}
|
||||||
/*end bundle cycle*/
|
/*end bundle cycle*/
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (SQLException sqle)
|
||||||
|
{
|
||||||
|
System.err.println("Caught exception:"+sqle.getCause());
|
||||||
|
sqle.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//**END CYCLE HERE **//
|
//**END CYCLE HERE **//
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user