java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When I export an AIP package via packager (successfully) and then try to reimport it with the replace flag (-r), packager fails trying to create a new handle. I'll try to bisect to find where exactly the issue was introduced, but most likely it's either DS-1637 or DS-1535, both of which were recently merged. $ /dspace/bin/dspace packager -d -t AIP -e admin@mydspace.edu -i 123456789/21608 21608.zip ... $ /dspace/bin/dspace packager -r -t AIP -e admin@mydspace.edu 21608.zip Ingesting package located at 21608.zip java.lang.RuntimeException: Error while attempting to create identifier for Item id: 27540 at org.dspace.identifier.VersionedHandleIdentifierProvider.register(VersionedHandleIdentifierProvider.java:173) at org.dspace.identifier.IdentifierServiceImpl.register(IdentifierServiceImpl.java:96) at org.dspace.content.InstallItem.restoreItem(InstallItem.java:109) at org.dspace.content.packager.PackageUtils.finishCreateItem(PackageUtils.java:511) at org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:516) at org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:234) at org.dspace.app.packager.Packager.ingest(Packager.java:565) at org.dspace.app.packager.Packager.main(Packager.java:427) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77) Caused by: java.lang.IllegalStateException: Attempted to create a handle which is already in use: 123456789/21608 at org.dspace.identifier.VersionedHandleIdentifierProvider.createNewIdentifier(VersionedHandleIdentifierProvider.java:460) at org.dspace.identifier.VersionedHandleIdentifierProvider.register(VersionedHandleIdentifierProvider.java:165) ... 13 more java.lang.RuntimeException: Error while attempting to create identifier for Item id: 27540
    via by Ivan Masár,
  • When I export an AIP package via packager (successfully) and then try to reimport it with the replace flag (-r), packager fails trying to create a new handle. I'll try to bisect to find where exactly the issue was introduced, but most likely it's either DS-1637 or DS-1535, both of which were recently merged. $ /dspace/bin/dspace packager -d -t AIP -e admin@mydspace.edu -i 123456789/21608 21608.zip ... $ /dspace/bin/dspace packager -r -t AIP -e admin@mydspace.edu 21608.zip Ingesting package located at 21608.zip java.lang.RuntimeException: Error while attempting to create identifier for Item id: 27540 at org.dspace.identifier.VersionedHandleIdentifierProvider.register(VersionedHandleIdentifierProvider.java:173) at org.dspace.identifier.IdentifierServiceImpl.register(IdentifierServiceImpl.java:96) at org.dspace.content.InstallItem.restoreItem(InstallItem.java:109) at org.dspace.content.packager.PackageUtils.finishCreateItem(PackageUtils.java:511) at org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:516) at org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:234) at org.dspace.app.packager.Packager.ingest(Packager.java:565) at org.dspace.app.packager.Packager.main(Packager.java:427) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77) Caused by: java.lang.IllegalStateException: Attempted to create a handle which is already in use: 123456789/21608 at org.dspace.identifier.VersionedHandleIdentifierProvider.createNewIdentifier(VersionedHandleIdentifierProvider.java:460) at org.dspace.identifier.VersionedHandleIdentifierProvider.register(VersionedHandleIdentifierProvider.java:165) ... 13 more java.lang.RuntimeException: Error while attempting to create identifier for Item id: 27540
    via by Ivan Masár,
    • java.lang.RuntimeException: Error while attempting to create identifier for Item id: 27540 at org.dspace.identifier.VersionedHandleIdentifierProvider.register(VersionedHandleIdentifierProvider.java:173) at org.dspace.identifier.IdentifierServiceImpl.register(IdentifierServiceImpl.java:96) at org.dspace.content.InstallItem.restoreItem(InstallItem.java:109) at org.dspace.content.packager.PackageUtils.finishCreateItem(PackageUtils.java:511) at org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:516) at org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:234) at org.dspace.app.packager.Packager.ingest(Packager.java:565) at org.dspace.app.packager.Packager.main(Packager.java:427) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77) Caused by: java.lang.IllegalStateException: Attempted to create a handle which is already in use: 123456789/21608 at org.dspace.identifier.VersionedHandleIdentifierProvider.createNewIdentifier(VersionedHandleIdentifierProvider.java:460) at org.dspace.identifier.VersionedHandleIdentifierProvider.register(VersionedHandleIdentifierProvider.java:165) ... 13 more
    No Bugmate found.