java.io.IOException: Could not replace preferences.old

GitHub | mxmlnkn | 4 months ago
  1. 0

    GitHub comment 4614#240658438

    GitHub | 4 months ago | mxmlnkn
    java.io.IOException: Could not replace preferences.old
  2. 0

    We are getting the mentioned problem in this plan: https://bamboo.extranet.atlassian.com/browse/CONFXHTML-ONDEMAND-JOB1-53/log We use it for automating our release process. So far we tried in OpenVZ agents and in EC2 ones. Some logs: agent 69 011-01-17 21:09:47,364 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Running post build plugin 'Artifact Copier' 2011-01-17 21:09:47,364 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [BuildArtifactPostProcessor] Copying the build artifacts for build: CONFXHTML-ONDEMAND-JOB1-52 2011-01-17 21:09:51,293 ERROR [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [HttpMessageSender] Failed to send message. java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:97) at com.atlassian.bamboo.v2.build.agent.remote.RemoteArtifactManager.publishFileSet(RemoteArtifactManager.java:37) at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publish(AbstractArtifactManager.java:55) at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:54) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:163) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:619) 2011-01-17 21:09:51,294 WARN [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Failed to execute plugin with class com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor : CONFXHTML-ONDEMAND-JOB1-52 java.lang.RuntimeException: java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:103) at com.atlassian.bamboo.v2.build.agent.remote.RemoteArtifactManager.publishFileSet(RemoteArtifactManager.java:37) at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publish(AbstractArtifactManager.java:55) at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:54) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:163) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:97) ... 10 more 2011-01-17 21:09:51,294 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Running post build plugin 'Sandbox Environment cleanup' 2011-01-17 21:09:51,295 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Running post build plugin 'Clover Results Collector' regarding: 5937209960934079336 @agent 69 2011-01-11 18:21:56,298 INFO [Thread-1] [AgentMessageListenerContainer] Configuring message selector: allowableAgents LIKE '%[152176113]%' AND fingerprint = '5937209960934079336' --------------- MASTER 2011-01-17 21:09:42,490 INFO [TP-Processor1512] [AccessLogFilter] adeccico GET https://bamboo.extranet.atlassian.com/chart?filename=jfreechart-onetime-2526863368045882221.png 259222kb 2011-01-17 21:09:43,911 WARN [bambooHeartBeatMessageListenerConnector-6] [RemoteAgentManagerImpl] Request to update remote agent status, but no remote agent with id: 160596422 found. 2011-01-17 21:09:51,288 WARN [http-j2ee_bamboo.extranet.atlassian.com.mgmt%2F172.16.3.139-8080-12] [BambooFileUtils] Could not replace temporary file with a directory 2011-01-17 21:09:51,288 ERROR [http-j2ee_bamboo.extranet.atlassian.com.mgmt%2F172.16.3.139-8080-12] [DeliverMessageServlet] Failed to deserialise message from URI /agentServer/message&fingerprint=5937209960934079336 java.io.IOException: Could not replace temporary file with a directory. at com.atlassian.bamboo.util.BambooFileUtils.createTempDirectory(BambooFileUtils.java:93) at com.atlassian.bamboo.v2.build.agent.messages.ArtifactTransferPayload.prepareDeserialisationPath(ArtifactTransferPayload.java:145) at com.atlassian.bamboo.v2.build.agent.messages.ArtifactTransferPayload.readObject(ArtifactTransferPayload.java:94) at sun.reflect.GeneratedMethodAccessor5106.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at com.atlassian.bamboo.agent.messaging.DeliverMessageServlet.deserializeObject(DeliverMessageServlet.java:115) at com.atlassian.bamboo.agent.messaging.DeliverMessageServlet.doPost(DeliverMessageServlet.java:49) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.bamboo.filter.AccessLogFilter.doFilter(AccessLogFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.bamboo.filter.LicenseFilter.doFilter(LicenseFilter.java:73) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:71)

    Atlassian JIRA | 6 years ago | Adrian Deccico [Atlassian]
    java.io.IOException: Could not replace temporary file with a directory.
  3. 0

    We are getting the mentioned problem in this plan: https://bamboo.extranet.atlassian.com/browse/CONFXHTML-ONDEMAND-JOB1-53/log We use it for automating our release process. So far we tried in OpenVZ agents and in EC2 ones. Some logs: agent 69 011-01-17 21:09:47,364 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Running post build plugin 'Artifact Copier' 2011-01-17 21:09:47,364 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [BuildArtifactPostProcessor] Copying the build artifacts for build: CONFXHTML-ONDEMAND-JOB1-52 2011-01-17 21:09:51,293 ERROR [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [HttpMessageSender] Failed to send message. java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:97) at com.atlassian.bamboo.v2.build.agent.remote.RemoteArtifactManager.publishFileSet(RemoteArtifactManager.java:37) at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publish(AbstractArtifactManager.java:55) at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:54) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:163) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:619) 2011-01-17 21:09:51,294 WARN [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Failed to execute plugin with class com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor : CONFXHTML-ONDEMAND-JOB1-52 java.lang.RuntimeException: java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:103) at com.atlassian.bamboo.v2.build.agent.remote.RemoteArtifactManager.publishFileSet(RemoteArtifactManager.java:37) at com.atlassian.bamboo.build.artifact.AbstractArtifactManager.publish(AbstractArtifactManager.java:55) at com.atlassian.bamboo.build.artifact.BuildArtifactPostProcessor.call(BuildArtifactPostProcessor.java:54) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.performCustomBuildProcess(ExecuteBuildTask.java:163) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:90) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:102) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: Unexpected HTTP status code: 500 Internal Server Error at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:97) ... 10 more 2011-01-17 21:09:51,294 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Running post build plugin 'Sandbox Environment cleanup' 2011-01-17 21:09:51,295 INFO [1-BAM::bamboo-agent-69.private.atlassian.com (2)::Agent:pool-3-thread-1] [ExecuteBuildTask] Running post build plugin 'Clover Results Collector' regarding: 5937209960934079336 @agent 69 2011-01-11 18:21:56,298 INFO [Thread-1] [AgentMessageListenerContainer] Configuring message selector: allowableAgents LIKE '%[152176113]%' AND fingerprint = '5937209960934079336' --------------- MASTER 2011-01-17 21:09:42,490 INFO [TP-Processor1512] [AccessLogFilter] adeccico GET https://bamboo.extranet.atlassian.com/chart?filename=jfreechart-onetime-2526863368045882221.png 259222kb 2011-01-17 21:09:43,911 WARN [bambooHeartBeatMessageListenerConnector-6] [RemoteAgentManagerImpl] Request to update remote agent status, but no remote agent with id: 160596422 found. 2011-01-17 21:09:51,288 WARN [http-j2ee_bamboo.extranet.atlassian.com.mgmt%2F172.16.3.139-8080-12] [BambooFileUtils] Could not replace temporary file with a directory 2011-01-17 21:09:51,288 ERROR [http-j2ee_bamboo.extranet.atlassian.com.mgmt%2F172.16.3.139-8080-12] [DeliverMessageServlet] Failed to deserialise message from URI /agentServer/message&fingerprint=5937209960934079336 java.io.IOException: Could not replace temporary file with a directory. at com.atlassian.bamboo.util.BambooFileUtils.createTempDirectory(BambooFileUtils.java:93) at com.atlassian.bamboo.v2.build.agent.messages.ArtifactTransferPayload.prepareDeserialisationPath(ArtifactTransferPayload.java:145) at com.atlassian.bamboo.v2.build.agent.messages.ArtifactTransferPayload.readObject(ArtifactTransferPayload.java:94) at sun.reflect.GeneratedMethodAccessor5106.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at com.atlassian.bamboo.agent.messaging.DeliverMessageServlet.deserializeObject(DeliverMessageServlet.java:115) at com.atlassian.bamboo.agent.messaging.DeliverMessageServlet.doPost(DeliverMessageServlet.java:49) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77) at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.bamboo.filter.AccessLogFilter.doFilter(AccessLogFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.bamboo.filter.LicenseFilter.doFilter(LicenseFilter.java:73) at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:71)

    Atlassian JIRA | 6 years ago | Adrian Deccico [Atlassian]
    java.io.IOException: Could not replace temporary file with a directory.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    FYI Could not replace file...1.5.8 Nov 3 on XP

    GitHub | 2 years ago | VaclavSal
    java.io.IOException: Could not replace C:\DOCUME~1\Vaclav\LOCALS~1\Temp\build4216374743901224023.tmp\C_Image.h

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Could not replace preferences.old

      at processing.app.Preferences.save()
    2. processing.app
      Base$1.run
      1. processing.app.Preferences.save(Preferences.java:237)
      2. processing.app.Preferences.init(Preferences.java:106)
      3. processing.app.Base.createAndShowGUI(Base.java:154)
      4. processing.app.Base.access$0(Base.java:125)
      5. processing.app.Base$1.run(Base.java:114)
      5 frames
    3. Java RT
      EventDispatchThread.run
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      3. java.awt.EventQueue.access$500(EventQueue.java:97)
      4. java.awt.EventQueue$3.run(EventQueue.java:709)
      5. java.awt.EventQueue$3.run(EventQueue.java:703)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      9. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      10. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      11. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      12. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      13. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      14. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      14 frames