-
Notifications
You must be signed in to change notification settings - Fork 535
Closed
Description
Where an OAI server uses url identifier (http://doi.org/...), Dataverse fail to parse globalId.
Log:
[2018-10-30T10:22:14.276+0000] [glassfish 4.1] [FINE] [] [edu.harvard.iq.dataverse.api.imports.ImportServiceBean] [tid: _ThreadID=155 _ThreadName=__ejb-thread-pool7] [timeMillis: 1540894934276] [levelValue: 500] [CLASSNAME: edu.harvard.iq.dataverse.api.imports.ImportServiceBean] [METHODNAME: doImportHarvestedDataset] [[
importing DC /tmp/meta1606584145857252274.tmp]]
[2018-10-30T10:22:14.278+0000] [glassfish 4.1] [FINE] [] [edu.harvard.iq.dataverse.api.imports.ImportGenericServiceBean] [tid: _ThreadID=155 _ThreadName=__ejb-thread-pool7] [timeMillis: 1540894934278] [levelValue: 500] [CLASSNAME: edu.harvard.iq.dataverse.api.imports.ImportGenericServiceBean] [METHODNAME: processXMLElement] [[
entering processXMLElement; (:)]]
[2018-10-30T10:22:14.286+0000] [glassfish 4.1] [FINE] [] [edu.harvard.iq.dataverse.api.imports.ImportGenericServiceBean] [tid: _ThreadID=155 _ThreadName=__ejb-thread-pool7] [timeMillis: 1540894934286] [levelValue: 500] [CLASSNAME: edu.harvard.iq.dataverse.api.imports.ImportGenericServiceBean] [METHODNAME: processOAIDCxml] [[
Imported identifier: https://doi.org/10.5072/FK2/YIX6QZ]]
[2018-10-30T10:22:14.287+0000] [glassfish 4.1] [FINE] [] [edu.harvard.iq.dataverse.api.imports.ImportGenericServiceBean] [tid: _ThreadID=155 _ThreadName=__ejb-thread-pool7] [timeMillis: 1540894934287] [levelValue: 500] [CLASSNAME: edu.harvard.iq.dataverse.api.imports.ImportGenericServiceBean] [METHODNAME: reassignIdentifierAsGlobalId] [[
Processing DOI identifier formatted as a resolver URL: https://doi.org/10.5072/FK2/YIX6QZ]]
....
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -10
at java.lang.String.substring(String.java:1967)
at edu.harvard.iq.dataverse.api.imports.ImportGenericServiceBean.reassignIdentifierAsGlobalId(ImportGenericServiceBean.java:434)
at edu.harvard.iq.dataverse.api.imports.ImportGenericServiceBean.processOAIDCxml(ImportGenericServiceBean.java:225)
at sun.reflect.GeneratedMethodAccessor1075.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4786)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:656)
PR to come...
Reactions are currently unavailable