Hi,
We are using dspace3.0 with sword v1 and recently have a server migration with
JVM upgraded from jdk1.7.0_21 to jdk1.7.0_45. The problem is that after the
upgrade, the sword will throw exception unless we configure sword-server.cfg
with specific port (e.g., server1.library.university.edu:8080/sword/deposit)
instead of proxy (e.g., server1.library.university.edu/sword/deposit). We kind
of nailed it down to SWORDUrlManager:
java.lang.StringIndexOutOfBounds
Exception: String index out of range: -6
java.lang.String.substring(String.java:1875)
org.dspace.sword.SWORDUrlManager.getDSpaceObject(SWORDUrlManager.java:172)
org.dspace.sword.DepositManager.getDepositTarget(DepositManager.java:63)
org.dspace.sword.DepositManager.deposit(DepositManager.java:100)
org.dspace.sword.DSpaceSWORDServer.doDeposit(DSpaceSWORDServer.java:120)
org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:299)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
public DSpaceObject getDSpaceObject(Context context, String
location)
throws DSpaceSWORDException, SWORDErrorException
{
try
{
String baseUrl = this.getBaseDepositUrl();
if (baseUrl.length() == location.length())
{
throw new
SWORDErrorException(DSpaceSWORDErrorCodes.BAD_URL, "The deposit URL is
incomplete");
}
String handle =
location.substring(baseUrl.length());
if (handle.startsWith("/"))
{
handle = handle.substring(1);
}
I want to know anyone has similar problem with sword getDspaceObject as well
and suggestion on solution?
Thanks
—
Hui
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette