[forge-issues] [JBoss JIRA] (FURNACE-127) Furnace maven manager tries to resolve relativePath even it is null

Marek Novotny (JIRA) issues at jboss.org
Wed Nov 9 09:31:00 EST 2016


     [ https://issues.jboss.org/browse/FURNACE-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marek Novotny updated FURNACE-127:
----------------------------------
              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/forge/furnace/pull/40


> Furnace maven manager tries to resolve relativePath even it is null
> -------------------------------------------------------------------
>
>                 Key: FURNACE-127
>                 URL: https://issues.jboss.org/browse/FURNACE-127
>             Project: Forge: Furnace
>          Issue Type: Bug
>          Components: Maven
>    Affects Versions: 2.24.2.Final
>            Reporter: Marek Novotny
>            Assignee: Marek Novotny
>            Priority: Minor
>
> Furnace maven manager tries to resolve relativePath even it is null aka `<relativePath />`
> The affected code is here https://github.com/forge/furnace/blob/master/manager/resolver/maven/src/main/java/org/jboss/forge/furnace/manager/maven/ClasspathWorkspaceReader.java#L421-L422
> {noformat}
> java.lang.RuntimeException: Could not parse pom.xml: /var/lib/jenkins/workspace/windup-rulesets-master/pom.xml
> 	at org.jboss.forge.furnace.manager.maven.ClasspathWorkspaceReader.createFoundModules(ClasspathWorkspaceReader.java:432)
> 	at org.jboss.forge.furnace.manager.maven.ClasspathWorkspaceReader.getFoundModules(ClasspathWorkspaceReader.java:386)
> 	at org.jboss.forge.furnace.manager.maven.ClasspathWorkspaceReader._findArtifact(ClasspathWorkspaceReader.java:197)
> 	at org.jboss.forge.furnace.manager.maven.ClasspathWorkspaceReader.findArtifact(ClasspathWorkspaceReader.java:107)
> 	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:326)
> 	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
> 	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
> 	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
> 	at org.jboss.forge.arquillian.maven.MavenModelResolver.resolveModel(MavenModelResolver.java:122)
> 	at org.jboss.forge.arquillian.maven.MavenModelResolver.resolveModel(MavenModelResolver.java:141)
> 	at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:1000)
> 	at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:800)
> 	at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:329)
> 	at org.jboss.forge.arquillian.maven.ProjectHelper.loadPomFromFile(ProjectHelper.java:74)
> 	at org.jboss.forge.arquillian.impl.FurnaceDeploymentScenarioGenerator.buildDependencyMaps(FurnaceDeploymentScenarioGenerator.java:514)
> 	at org.jboss.forge.arquillian.impl.FurnaceDeploymentScenarioGenerator.resolveVersionFromPOM(FurnaceDeploymentScenarioGenerator.java:500)
> 	at org.jboss.forge.arquillian.impl.FurnaceDeploymentScenarioGenerator.createAnnotatedDeployment(FurnaceDeploymentScenarioGenerator.java:309)
> 	at org.jboss.forge.arquillian.impl.FurnaceDeploymentScenarioGenerator.generateAnnotatedDeployments(FurnaceDeploymentScenarioGenerator.java:216)
> 	at org.jboss.forge.arquillian.impl.FurnaceDeploymentScenarioGenerator.generate(FurnaceDeploymentScenarioGenerator.java:103)
> 	at org.jboss.arquillian.container.test.impl.client.deployment.DeploymentGenerator.generateDeployment(DeploymentGenerator.java:79)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> 	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> 	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> 	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
> 	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> 	at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
> 	at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:100)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> 	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> 	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> 	at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:92)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> 	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> 	at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
> 	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> 	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
> 	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
> 	at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:87)
> 	at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:201)
> 	at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)
> 	at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
> 	at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:218)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 	at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:166)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
> Caused by: java.lang.NullPointerException
> 	at sun.nio.fs.UnixPath.normalizeAndCheck(UnixPath.java:77)
> 	at sun.nio.fs.UnixPath.<init>(UnixPath.java:71)
> 	at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281)
> 	at sun.nio.fs.AbstractPath.resolve(AbstractPath.java:53)
> 	at org.jboss.forge.furnace.manager.maven.ClasspathWorkspaceReader.createFoundModules(ClasspathWorkspaceReader.java:422)
> 	... 67 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the forge-issues mailing list