Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1050

[WON'T FIX] Reflection VFS related issues in jetty-console

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: core-1.8.0
    • Fix Version/s: 2.0.0-M2
    • Component/s: Core
    • Labels:
      None

      Description

      Just tried java jar .../simpleapp...-jetty-console.jar and it logs several VFS related stacktraces:

      java.io.FileNotFoundException: /tmp/simpleapp-webapp-1.8.0-SNAPSHOT-jetty-console.jar_8080/webapp/WEB-INF/classes (Is a directory)
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java:215)
      at java.util.zip.ZipFile.<init>(ZipFile.java:145)
      at java.util.jar.JarFile.<init>(JarFile.java:154)
      at java.util.jar.JarFile.<init>(JarFile.java:118)
      at org.reflections.vfs.Vfs$DefaultUrlTypes$1.createDir(Vfs.java:207)
      at org.reflections.vfs.Vfs.fromURL(Vfs.java:98)
      at org.reflections.vfs.Vfs.fromURL(Vfs.java:90)
      at org.reflections.Reflections.scan(Reflections.java:236)
      at org.reflections.Reflections.scan(Reflections.java:203)
      at org.reflections.Reflections.<init>(Reflections.java:128)
      at org.reflections.Reflections.<init>(Reflections.java:169)
      at org.apache.isis.applib.services.classdiscovery.ClassDiscoveryServiceUsingReflections.findSubTypesOfClasses(ClassDiscoveryServiceUsingReflections.java:76)
      at org.apache.isis.applib.fixturescripts.FixtureScripts.findSubTypesOfClasses(FixtureScripts.java:226)
      ....

      and

      ava.lang.NoClassDefFoundError: org/apache/commons/vfs2/VFS
      at org.reflections.vfs.Vfs$DefaultUrlTypes$7.matches(Vfs.java:281)
      at org.reflections.vfs.Vfs.fromURL(Vfs.java:97)
      at org.reflections.vfs.Vfs.fromURL(Vfs.java:90)
      at org.reflections.Reflections.scan(Reflections.java:236)
      at org.reflections.Reflections.scan(Reflections.java:203)
      at org.reflections.Reflections.<init>(Reflections.java:128)
      at org.reflections.Reflections.<init>(Reflections.java:169)
      at org.reflections.Reflections.<init>(Reflections.java:142)
      at org.apache.isis.objectstore.jdo.service.RegisterEntities.registerAllPersistenceCapables(RegisterEntities.java:67)

      It seems they are harmless. The application seems to run fine.

      The problem could be related to the recent upgrade of Reflections to 0.9.9 and/or jetty-console-maven-plugin to 1.56.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mgrigorov Martin Grigorov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: