maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Lundberg (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (SUREFIRE-347) regression: plexus is not properly isolated
Date Mon, 27 Aug 2007 15:19:11 GMT

    [ http://jira.codehaus.org/browse/SUREFIRE-347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_105788
] 

Dennis Lundberg commented on SUREFIRE-347:
------------------------------------------

Another example of this is maven-project-info-reports-plugin. The current trunk version has
surefire locked to version=2.3 to get around this. If forkMode=true is added or if the version
is changed to 2.3.1-SNAPSHOT the following error occurs (just showing 1 of 11).

{code}
Running org.apache.maven.report.projectinfo.CimReportTest
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] artifact org.apache.maven.skins:maven-default-skin: checking for updates from central
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
-----------------------------------------------------
this realm = plexus.core
Number of imports: 0
-----------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.703 sec <<< FAILURE!
{code}

And in the surefire report:

{code}
-------------------------------------------------------------------------------
Test set: org.apache.maven.report.projectinfo.CimReportTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.703 sec <<< FAILURE!
testReport(org.apache.maven.report.projectinfo.CimReportTest)  Time elapsed: 0.703 sec  <<<
ERROR!
org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup
component
  'org.apache.maven.project.MavenProjectBuilder', it could not be started
	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339)
	at org.codehaus.plexus.PlexusTestCase.lookup(PlexusTestCase.java:216)
	at org.apache.maven.report.projectinfo.AbstractProjectInfoTestCase.generateReport(AbstractProjectInfoTestCase.java:173)
	at org.apache.maven.report.projectinfo.CimReportTest.testReport(CimReportTest.java:51)
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLifecycleException:
Error starting component
	at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109)
	at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
	at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
	... 48 more
Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException:
Error composing component
	at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33)
	at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
	at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
	... 51 more
Caused by: org.codehaus.plexus.component.composition.CompositionException: Composition failed
of field modelInterpolator in object of type
  org.apache.maven.project.DefaultMavenProjectBuilder because the requirement
  ComponentRequirement{role='org.apache.maven.project.interpolation.ModelInterpolator', roleHint='null',
fieldName='null'} was missing
	at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154)
	at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
	at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
	at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
	at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
	... 53 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable
to lookup component
  'org.apache.maven.project.interpolation.ModelInterpolator', it could not be created
	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
	at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
	... 57 more
Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException: Could not
instanciate component:
  role: 'org.apache.maven.project.interpolation.ModelInterpolator',
  implementation: 'org.apache.maven.project.interpolation.RegexBasedModelInterpolator'
	at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
	at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
	at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
	at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
	at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
	... 58 more
Caused by: java.lang.NoSuchMethodError: org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars()Ljava/util/Properties;
	at org.apache.maven.project.interpolation.RegexBasedModelInterpolator.<init>(RegexBasedModelInterpolator.java:60)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
	at java.lang.Class.newInstance0(Class.java:308)
	at java.lang.Class.newInstance(Class.java:261)
	at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
	... 62 more
{code}

> regression: plexus is not properly isolated
> -------------------------------------------
>
>                 Key: SUREFIRE-347
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-347
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.3.1
>            Reporter: Brett Porter
>             Fix For: 2.3.1
>
>
> Currently, if you use 2.3.1-SNAPSHOT on doxia-site-renderer, you get a test error due
to a class incompatibility in Plexus. 
> The same issue occurs if you use forkMode=never under 2.3 or earlier.
> this could be related to, or caused by SUREFIRE-334. Fix that first and see if this is
still an issue. However, note that it works under 2.3 with forkMode=once and useSystemClassLoader=true.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message