• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • cobertura-plugin
    • None

      I'm getting an error when collecting the cobertura report about too many symbolic links

      21:51:57  Publishing Cobertura coverage report...
      21:52:13  ERROR: Publisher hudson.plugins.cobertura.CoberturaPublisher aborted due to exception
      21:52:13  Caught error while checking for symbolic links
      21:52:13  	at org.apache.tools.ant.DirectoryScanner.causesIllegalSymlinkLoop(DirectoryScanner.java:1859)
      21:52:13  	at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1240)
      21:52:13  	at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1259)
      21:52:13  	at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1259)
      (...)
      21:52:13  	at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1259)
      21:52:13  	at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1259)
      21:52:13  	at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1259)
      21:52:13  	at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1184)
      21:52:13  	at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1146)
      21:52:13  	at org.apache.tools.ant.DirectoryScanner.checkIncludePatterns(DirectoryScanner.java:928)
      21:52:13  	at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:882)
      21:52:13  	at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:490)
      21:52:13  	at hudson.FilePath.glob(FilePath.java:1239)
      21:52:13  	at hudson.FilePath.access$600(FilePath.java:164)
      21:52:13  	at hudson.FilePath$23.invoke(FilePath.java:1218)
      21:52:13  	at hudson.FilePath$23.invoke(FilePath.java:1216)
      21:52:13  	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1979)
      21:52:13  	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      21:52:13  	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      21:52:13  	at hudson.remoting.Request$2.run(Request.java:270)
      21:52:13  	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      21:52:13  	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      21:52:13  	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      21:52:13  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      21:52:13  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      21:52:13  	at java.lang.Thread.run(Thread.java:636)
      21:52:13  Caused by: java.io.IOException: Too many levels of symbolic links
      21:52:13  	at java.io.UnixFileSystem.canonicalize0(Native Method)
      21:52:13  	at java.io.UnixFileSystem.canonicalize(UnixFileSystem.java:172)
      21:52:13  	at java.io.File.getCanonicalPath(File.java:576)
      21:52:13  	at org.apache.tools.ant.DirectoryScanner.causesIllegalSymlinkLoop(DirectoryScanner.java:1837)
      21:52:13  	... 77 more
      

      I'm setting the ANT definitions similar to as indicated in the plugin documentation, and even tried to set the definitions of "cobertura-report" task to use 'fileset followsymlinks="false"' but it doesn't seem to change the outcome.

          [JENKINS-9859] Too many levels of symbolic links

          Jose Sa added a comment - - edited

          I had the wrong path set for the xml file using a path that was overing too many possible roots using "**/dis/coverage/*.xml", but on a ClearCase view with almos one hundred vobs it was causing problems.

          Jose Sa added a comment - - edited I had the wrong path set for the xml file using a path that was overing too many possible roots using "**/dis/coverage/*.xml", but on a ClearCase view with almos one hundred vobs it was causing problems.

            stephenconnolly Stephen Connolly
            josesa Jose Sa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: