Uploaded image for project: 'JBoss Modules'
  1. JBoss Modules
  2. MODULES-347

ModuleClassLoader throw exception InvalidPathException "Illegal char <?>

XMLWordPrintable

      On windows trying to load a file with ? in the name fails with the following stack trace:

      Caused by: java.nio.file.InvalidPathException: Illegal char <?> at index 0: ?.class
          at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
          at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
          at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
          at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
          at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
          at sun.nio.fs.AbstractPath.resolve(AbstractPath.java:53)
          at org.jboss.modules.PathResourceLoader.getClassSpec(PathResourceLoader.java:115)
          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:265)
          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:77)
          at org.jboss.modules.Module.loadModuleClass(Module.java:713)
          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)
          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)
          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:264)
      

              dlloyd@redhat.com David Lloyd
              rhn-support-tmiyargi Teresa Miyar Gil (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: