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:
Scott Yeadon
2005-10-18 22:55:45 +00:00
parent df5035d72f
commit a16ede117b

View File

@@ -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 **//