Uploaded image for project: 'JBoss Server Migration Tool'
  1. JBoss Server Migration Tool
  2. CMTOOL-276

Symbolic links in the path to configuration files, such as is in the RPM installation, cause the migration tool to fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.9.0.Final
    • 1.8.0.Final
    • Core
    • None

    Description

      Migrating from JBoss EAP 6.4 to 7.2.8 fails with an exception

      Caused by: java.nio.file.FileAlreadyExistsException: /opt/rh/eap7/root/usr/share/wildfly/domain/configuration
      	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88) [rt.jar:1.8.0_252]
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) [rt.jar:1.8.0_252]
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) [rt.jar:1.8.0_252]
      	at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) [rt.jar:1.8.0_252]
      	at java.nio.file.Files.createDirectory(Files.java:674) [rt.jar:1.8.0_252]
      	at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) [rt.jar:1.8.0_252]
      	at java.nio.file.Files.createDirectories(Files.java:727) [rt.jar:1.8.0_252]
      	at org.jboss.migration.core.MigrationFiles.copy(MigrationFiles.java:67) [jboss-server-migration-core.jar:1.3.1.Final-redhat-00009]
      	... 32 more
      

      Due to the fact that java.nio.file.Files.createDirectories sees the symbolic link "/opt/rh/eap7/root/usr/share/wildfly/domain/configuration", even though it points to a directory, as problem for it creating the path.

      See https://bugs.openjdk.java.net/browse/JDK-8130464

      Attachments

        Issue Links

          Activity

            People

              rhn-support-rmartinc Ricardo Martin Camarero
              rhn-support-rmartinc Ricardo Martin Camarero
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: