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

A NullPointerException is thrown when an artifact fails to be resolved

XMLWordPrintable

      If a Maven artifact fails to be resolved an NPE will be thrown when the file.getPath() is invoked.

      Exception in thread "main" java.lang.NullPointerException
      	at org.jboss.modules.xml.ModuleXmlParser.parseArtifact(ModuleXmlParser.java:1022)
      	at org.jboss.modules.xml.ModuleXmlParser.parseResources(ModuleXmlParser.java:910)
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:679)
      	at org.jboss.modules.xml.ModuleXmlParser.parseDocument(ModuleXmlParser.java:440)
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:311)
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:269)
      	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:230)
      	at org.jboss.modules.LocalModuleFinder.parseModuleXmlFile(LocalModuleFinder.java:250)
      	at org.jboss.modules.LocalModuleFinder.lambda$findModule$1(LocalModuleFinder.java:195)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:195)
      	at org.jboss.modules.ModuleLoader.findModule0(ModuleLoader.java:693)
      	at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:686)
      	at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:496)
      	at org.jboss.modules.DelegatingModuleLoader.preloadModule(DelegatingModuleLoader.java:57)
      	at org.jboss.modules.Module.addPaths(Module.java:1252)
      	at org.jboss.modules.Module.link(Module.java:1622)
      	at org.jboss.modules.Module.relinkIfNecessary(Module.java:1650)
      	at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:296)
      	at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:92)
      	at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:86)
      	at __redirected.__DocumentBuilderFactory.changeDefaultFactory(__DocumentBuilderFactory.java:53)
      	at __redirected.__JAXPRedirected.changeAll(__JAXPRedirected.java:53)
      	at org.jboss.modules.Main.main(Main.java:428)
      

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: