org.roda.core.data.exceptions.AlreadyExistsException

Cannot copy because target path already exists: /apps/KEEPS/roda/data/trash/e0ff1a9f-3e20-4e3f-a5c6-33da32aec71e/storage/aip/8faeaf8c-9a1f-49cc-a239-f34 10d8bc13b

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • Cannot copy because target path already exists: /apps/KEEPS/roda/data/trash/e0ff1a9f-3e20-4e3f-a5c6-33da32aec71e/storage/aip/8faeaf8c-9a1f-49cc-a239-f34 10d8bc13b
  • Cannot copy because target path already exists: /home/lfaria/.roda/data/storage/aip/8e55024e-d6bb-4ed3-aa07-60ec109a7f5d/representations/uuid-821A0669-35CE-419E-8961-EB0BB35D9AD7/metadata/preservation/urn:roda:premis:file:CE2010054NL.toc.xml.xml
  • Stack trace

    • org.roda.core.data.exceptions.AlreadyExistsException: Cannot copy because target path already exists: /apps/KEEPS/roda/data/trash/e0ff1a9f-3e20-4e3f-a5c6-33da32aec71e/storage/aip/8faeaf8c-9a1f-49cc-a239-f34 10d8bc13b at org.roda.core.storage.fs.FSUtils.move(FSUtils.java:119) at org.roda.core.storage.fs.FileStorageService.trash(FileStorageService.java:186) at org.roda.core.storage.fs.FileStorageService.deleteResource(FileStorageService.java:418) at org.roda.core.model.ModelService.deleteAIP(ModelService.java:431) at org.roda.wui.api.controllers.BrowserHelper.deleteAIP(BrowserHelper.java:1034) at org.roda.wui.api.controllers.Browser.deleteAIP(Browser.java:670) at org.roda.wui.server.browse.BrowserServiceImpl.deleteAIP(BrowserServiceImpl.java:295) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:587) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:333) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:303) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:373) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:868) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.nio.file.DirectoryNotEmptyException: /apps/KEEPS/roda/data/storage/aip/8faeaf8c-9a1f-49cc-a239-f3410d8bc13b at sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:498) at sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:262) at java.nio.file.Files.move(Files.java:1395) at org.roda.core.storage.fs.FSUtils.move(FSUtils.java:117) ... 38 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.