Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-3151

DeploymentUtil.recursiveDelete(File,Collection) is returning a collection of File objects, whereas most builders are expecting Strings

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-M6
    • Fix Version/s: 2.0-M6
    • Component/s: deployment
    • Security Level: public (Regular issues)
    • Labels:
      None
    • Environment:

      Java5 on Linux

      Description

      Was seeing the following in the server log -

      22:11:43,058 ERROR [Deployer] Deployment failed due to -
      java.lang.ClassCastException: java.io.File incompatible with java.lang.String
      at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.cleanupConfigurationDir(EARConfigBuilder.java:682)
      at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.cleanupContext(EARConfigBuilder.java:669)

      Which can be fixed by having DeploymentUtil.recursiveDelete() return a collection of string by using file.getAbsolutePath().

      This also helps with repeated deploy/undeploy operations over several hours, which eventual start to fail -

      22:12:00,355 ERROR [LocalAttributeManager] IOException occurred while saving attributes
      java.io.IOException: Too many open files
      at java.io.File.createNewFile(File.java:876)
      at org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:374)
      at org.apache.geronimo.system.configuration.LocalAttributeManager$2.run(LocalAttributeManager.java:600)
      at java.util.TimerThread.mainLoop(Timer.java:527)
      at java.util.TimerThread.run(Timer.java:477)
      22:12:00,985 ERROR [TransportConnector] Could not accept connection : java.net.SocketException: Too many open files
      java.net.SocketException: Too many open files

        Attachments

          Activity

            People

            • Assignee:
              drwoods Donald Woods
              Reporter:
              drwoods Donald Woods
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: