org.codehaus.plexus.util.xml.pull.XmlPullParserException

Mar 4, 2010 at 7:49 AM

 

 

 

 

[INFO] ------------------------------------------------------------------------

[INFO] Building NPanday :: .NET Model :: POM
[INFO]    task-segment: [test]
[INFO] ------------------------------------------------------------------------
[INFO] [compile:initialize {execution: default-initialize}]
Mar 4, 2010 12:28:41 AM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
Mar 4, 2010 12:28:41 AM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-004: Connection Start Up: Time = 60
Mar 4, 2010 12:28:41 AM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.serql.SeRQLParserFactory
Mar 4, 2010 12:28:41 AM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.sparql.SPARQLParserFactory
Mar 4, 2010 12:28:41 AM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies
INFO: Detected jar dependency - skipping: Artifact Dependency ID = junit
Mar 4, 2010 12:28:41 AM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies
INFO: Detected jar dependency - skipping: Artifact Dependency ID = easymock
[INFO] Mojo Execution Time = 255
org.codehaus.plexus.util.xml.pull.XmlPullParserException: only whitespace content allowed before start tag and not D (position: START_DOCUMENT seen D... @1:1)
        at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1516)
        at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1392)
        at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1090)
        at npanday.model.settings.io.xpp3.NPandaySettingsXpp3Reader.read(NPandaySettingsXpp3Reader.java:873)
        at npanday.model.settings.io.xpp3.NPandaySettingsXpp3Reader.read(NPandaySettingsXpp3Reader.java:887)
        at npanday.vendor.impl.SettingsRepository.load(SettingsRepository.java:84)
        at npanday.registry.impl.StandardRepositoryLoader.loadRepository(StandardRepositoryLoader.java:101)
        at npanday.registry.impl.StandardRegistryLoader.loadIntoRegistry(StandardRegistryLoader.java:171)
        at npanday.registry.impl.StandardRegistryLoader.loadRegistry(StandardRegistryLoader.java:95)
        at npanday.registry.impl.RepositoryRegistryImpl.loadFromInputStream(RepositoryRegistryImpl.java:149)
        at npanday.registry.impl.RepositoryRegistryImpl.loadFromResource(RepositoryRegistryImpl.java:174)
        at npanday.registry.impl.RepositoryRegistryImpl.initialize(RepositoryRegistryImpl.java:60)
        at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16)
        at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
        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)
        at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
        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)
        at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
        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)
        at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
        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)
        at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
        at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 'npanday.plugin:maven-resolver-plugin:1.2-SNAPSHOT:resolve': Unable to find the mojo 'resolve' (or on
e of its required components) in the plugin 'npanday.plugin:maven-resolver-plugin'
NPANDAY-084-004: java.io.IOException: NPANDAY-104-000: Could not read npanday-settings.xml : File Name = ., Repository Class = npanday.vendor.impl.SettingsRepos
itory, Properties = {optional=true}
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42 seconds
[INFO] Finished at: Thu Mar 04 00:28:42 MST 2010
[INFO] Final Memory: 46M/63M
[INFO] ------------------------------------------------------------------------

On the npanday/trunk@40693 I get the following error when I run mvn test.
I had gotten this before when I first build the project and then it stopped wasn't sure why... well its back and I figured out what I'm doing differently.
It looks like an invalid pom.xml parse error or encoding issue or something like that, odd thing is the error does not occur when I run mvn install -DskipTests=true only when running mvn compile
the -DskipTests=true doesn't even matter I removed the ProjectImporter test folder that was failing and mvn install completes successfully but mvn compile still fails.
Any ideas?
...
[INFO] ------------------------------------------------------------------------
[INFO] Building NPanday :: .NET Model :: POM
[INFO]    task-segment: [test]
[INFO] ------------------------------------------------------------------------
[INFO] [compile:initialize {execution: default-initialize}]
Mar 4, 2010 12:28:41 AM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
Mar 4, 2010 12:28:41 AM npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-004: Connection Start Up: Time = 60
Mar 4, 2010 12:28:41 AM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.serql.SeRQLParserFactory
Mar 4, 2010 12:28:41 AM info.aduna.lang.service.ServiceRegistry <init>
INFO: Registered service class org.openrdf.query.parser.sparql.SPARQLParserFactory
Mar 4, 2010 12:28:41 AM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies
INFO: Detected jar dependency - skipping: Artifact Dependency ID = junit
Mar 4, 2010 12:28:41 AM npanday.dao.impl.ProjectDaoImpl storeProjectAndResolveDependencies
INFO: Detected jar dependency - skipping: Artifact Dependency ID = easymock
[INFO] Mojo Execution Time = 255
org.codehaus.plexus.util.xml.pull.XmlPullParserException: only whitespace content allowed before start tag and not D (position: START_DOCUMENT seen D... @1:1)
        at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1516)
        at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1392)
        at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1090)
        at npanday.model.settings.io.xpp3.NPandaySettingsXpp3Reader.read(NPandaySettingsXpp3Reader.java:873)
        at npanday.model.settings.io.xpp3.NPandaySettingsXpp3Reader.read(NPandaySettingsXpp3Reader.java:887)
        at npanday.vendor.impl.SettingsRepository.load(SettingsRepository.java:84)
        at npanday.registry.impl.StandardRepositoryLoader.loadRepository(StandardRepositoryLoader.java:101)
        at npanday.registry.impl.StandardRegistryLoader.loadIntoRegistry(StandardRegistryLoader.java:171)
        at npanday.registry.impl.StandardRegistryLoader.loadRegistry(StandardRegistryLoader.java:95)
        at npanday.registry.impl.RepositoryRegistryImpl.loadFromInputStream(RepositoryRegistryImpl.java:149)
        at npanday.registry.impl.RepositoryRegistryImpl.loadFromResource(RepositoryRegistryImpl.java:174)
        at npanday.registry.impl.RepositoryRegistryImpl.initialize(RepositoryRegistryImpl.java:60)
        at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16)
        at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
        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)
        at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
        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)
        at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
        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)
        at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
        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)
        at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
        at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 'npanday.plugin:maven-resolver-plugin:1.2-SNAPSHOT:resolve': Unable to find the mojo 'resolve' (or on
e of its required components) in the plugin 'npanday.plugin:maven-resolver-plugin'
NPANDAY-084-004: java.io.IOException: NPANDAY-104-000: Could not read npanday-settings.xml : File Name = ., Repository Class = npanday.vendor.impl.SettingsRepos
itory, Properties = {optional=true}
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42 seconds
[INFO] Finished at: Thu Mar 04 00:28:42 MST 2010
[INFO] Final Memory: 46M/63M
[INFO] ------------------------------------------------------------------------

 

Coordinator
Mar 4, 2010 at 12:19 PM

What content does ~/.m2/npanday-settings.xml have that might cause it? Maybe it's an UTF BOM? does removing ~/.m2/npanday-settings.xml correct the problem, or does it get regenerated with the same issue?

Mar 4, 2010 at 5:27 PM

I deleted ~/.m2/npanday-settings.xml and same error.  It does however be an issue reading this file I reran mvn compile -X and I get an reading npandy-settings.xml.

mvn install works fine without npanday-settings.xml and the npanday-settings.xml file was not recreated by running mvn install.  It appears only the addin creates this file or something, if I build a project in visual studio the npandy-settings.xml file was recreated but rerunning mvn compile still fails here is the stack trace it seems to be same error regardless if npandy-settings.xml exists or not so I'm thinking its not finding it.  Not sure why install works though.

 

 

[INFO] Internal error in the plugin manager executing goal 'npanday.plugin:maven-resolver-plugin:1.2-SNAPSHOT:resolve': Unable to find the mojo 'resolve' (or on
e of its required components) in the plugin 'npanday.plugin:maven-resolver-plugin'
NPANDAY-084-004: java.io.IOException: NPANDAY-104-000: Could not read npanday-settings.xml : File Name = ., Repository Class = npanday.vendor.impl.SettingsRepos
itory, Properties = {optional=true}
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'npanday.plugin:maven-resolver-plugin:1.2-SNAPSHOT:r
esolve': Unable to find the mojo 'resolve' (or one of its required components) in the plugin 'npanday.plugin:maven-resolver-plugin'
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find the mojo 'resolve' (or one of its required components) in the plugin 'npanday.plugin:m
aven-resolver-plugin'
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:674)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        ... 17 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.apache.maven.plugin.Mojonpanday.plugin:m
aven-resolver-plugin:1.2-SNAPSHOT:resolve', it could not be started
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)
        ... 19 more
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.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
        ... 21 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)
        ... 24 more
Caused by: org.codehaus.plexus.component.composition.CompositionException: Composition failed of field npandayRegistry in object of type npanday.plugin.resolver
.NetDependencyResolverMojo because the requirement ComponentRequirement{role='npanday.NPandayRepositoryRegistry', roleHint='null', fieldName='npandayRegistry'}
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)
        ... 26 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'npanday.NPandayRepositoryRegistry', it could
 not be started
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339)
        at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
        ... 30 more
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)
        ... 31 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)
        ... 34 more
Caused by: org.codehaus.plexus.component.composition.CompositionException: Composition failed of field repositoryRegistry in object of type npanday.impl.NPanday
RepositoryRegistryImpl because the requirement ComponentRequirement{role='npanday.registry.RepositoryRegistry', 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)
        ... 36 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'npanday.registry.RepositoryRegistry', it cou
ld not be started
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339)
        at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
        ... 40 more
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)
        ... 41 more
Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException: Error initialising component
        at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:20)
        at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
        ... 44 more
Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException: NPANDAY-082-000: Message =
        at npanday.registry.impl.RepositoryRegistryImpl.initialize(RepositoryRegistryImpl.java:64)
        at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16)
        ... 46 more
Caused by: java.io.IOException: NPANDAY-084-004: java.io.IOException: NPANDAY-104-000: Could not read npanday-settings.xml : File Name = ., Repository Class = n
panday.vendor.impl.SettingsRepository, Properties = {optional=true}
        at npanday.registry.impl.StandardRepositoryLoader.loadRepository(StandardRepositoryLoader.java:106)
        at npanday.registry.impl.StandardRegistryLoader.loadIntoRegistry(StandardRegistryLoader.java:171)
        at npanday.registry.impl.StandardRegistryLoader.loadRegistry(StandardRegistryLoader.java:95)
        at npanday.registry.impl.RepositoryRegistryImpl.loadFromInputStream(RepositoryRegistryImpl.java:149)
        at npanday.registry.impl.RepositoryRegistryImpl.loadFromResource(RepositoryRegistryImpl.java:174)
        at npanday.registry.impl.RepositoryRegistryImpl.initialize(RepositoryRegistryImpl.java:60)
        ... 47 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21 seconds

[INFO] Internal error in the plugin manager executing goal 'npanday.plugin:maven-resolver-plugin:1.2-SNAPSHOT:resolve': Unable to find the mojo 'resolve' (or on

e of its required components) in the plugin 'npanday.plugin:maven-resolver-plugin'

NPANDAY-084-004: java.io.IOException: NPANDAY-104-000: Could not read npanday-settings.xml : File Name = ., Repository Class = npanday.vendor.impl.SettingsRepos

itory, Properties = {optional=true}

[INFO] ------------------------------------------------------------------------

[DEBUG] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'npanday.plugin:maven-resolver-plugin:1.2-SNAPSHOT:r

esolve': Unable to find the mojo 'resolve' (or one of its required components) in the plugin 'npanday.plugin:maven-resolver-plugin'

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find the mojo 'resolve' (or one of its required components) in the plugin 'npanday.plugin:m

aven-resolver-plugin'

        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:674)

        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

        ... 17 more

Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.apache.maven.plugin.Mojonpanday.plugin:m

aven-resolver-plugin:1.2-SNAPSHOT:resolve', it could not be started

        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339)

        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)

        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)

        ... 19 more

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.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)

        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)

        ... 21 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)

        ... 24 more

Caused by: org.codehaus.plexus.component.composition.CompositionException: Composition failed of field npandayRegistry in object of type npanday.plugin.resolver

.NetDependencyResolverMojo because the requirement ComponentRequirement{role='npanday.NPandayRepositoryRegistry', roleHint='null', fieldName='npandayRegistry'}

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)

        ... 26 more

Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'npanday.NPandayRepositoryRegistry', it could

 not be started

        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339)

        at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)

        ... 30 more

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)

        ... 31 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)

        ... 34 more

Caused by: org.codehaus.plexus.component.composition.CompositionException: Composition failed of field repositoryRegistry in object of type npanday.impl.NPanday

RepositoryRegistryImpl because the requirement ComponentRequirement{role='npanday.registry.RepositoryRegistry', 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)

        ... 36 more

Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'npanday.registry.RepositoryRegistry', it cou

ld not be started

        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339)

        at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)

        ... 40 more

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)

        ... 41 more

Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException: Error initialising component

        at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:20)

        at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)

        at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)

        ... 44 more

Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException: NPANDAY-082-000: Message =

        at npanday.registry.impl.RepositoryRegistryImpl.initialize(RepositoryRegistryImpl.java:64)

        at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16)

        ... 46 more

Caused by: java.io.IOException: NPANDAY-084-004: java.io.IOException: NPANDAY-104-000: Could not read npanday-settings.xml : File Name = ., Repository Class = n

panday.vendor.impl.SettingsRepository, Properties = {optional=true}

        at npanday.registry.impl.StandardRepositoryLoader.loadRepository(StandardRepositoryLoader.java:106)

        at npanday.registry.impl.StandardRegistryLoader.loadIntoRegistry(StandardRegistryLoader.java:171)

        at npanday.registry.impl.StandardRegistryLoader.loadRegistry(StandardRegistryLoader.java:95)

        at npanday.registry.impl.RepositoryRegistryImpl.loadFromInputStream(RepositoryRegistryImpl.java:149)

        at npanday.registry.impl.RepositoryRegistryImpl.loadFromResource(RepositoryRegistryImpl.java:174)

        at npanday.registry.impl.RepositoryRegistryImpl.initialize(RepositoryRegistryImpl.java:60)

        ... 47 more

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 21 seconds

 

Coordinator
Mar 5, 2010 at 3:31 AM

what does the npanday-settings.xml look like once it is created?

Mar 5, 2010 at 4:30 PM

The npandy-settings.xml looks fine, but it doesn't appear it even get far enough to load npanday-settings file.  

If you look at the source for npanday.registry.impl.RepositoryRegistryImpl.initialize(RepositoryRegistryImpl.java:60) it attempts to load an non-existent resource  /META-INF/npanday/registry-config.xml.

Install seems to have a different initialization sequence and I get a different but non-critical error during install:

 

[DEBUG] NPANDAY-102-001: Unable to initialize rule factory.

npanday.InitializationException: NPANDAY-103-001: Settings Repository is null. Aborting initialization of VendorInfoTranstionRuleFactory

at npanday.vendor.impl.VendorInfoTransitionRuleFactory.init(VendorInfoTransitionRuleFactory.java:99)

at npanday.vendor.impl.StateMachineProcessorImpl.initialize(StateMachineProcessorImpl.java:86)

at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16)

at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)

at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)

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)

at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)

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)

at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)

at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)

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)

at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)

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)

at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)

at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)

at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)

at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)

at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)

at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)

at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652)

at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

 

Mar 6, 2010 at 3:52 AM

Actually, the/META-INF/npanday/registry-config.xml does exist in the dotnet-core module.  

I created a unit test to call initialize and it does find  the resource file, but the loaded settings path contains / rather than \ for file separator, so I added some code here to fix up the path separator.  After fixing this my unit test still failed though cause it couldn't find the classes referenced in the config files, since they were in modules not yet built so I ended up needing to add a new module for the test that could reference the other modules.  I then found one more issue where ${npanday.settings} defaults to "." when not defined for which getResourceAsStream does return a value, but since it isn't an xml document it doesn't parse so I just added a check for this scenario.  I'll upload the patch.  

Coordinator
Mar 12, 2010 at 5:05 AM
Edited Mar 12, 2010 at 7:59 AM

Just so I understand, does the patch resolve your issue or is there still problems?

I didn't understand the patch.

- the test module doesn't fail without the fix, so I'm not sure it is definitive.

- file is the stream set to null if the uri is '.'?

Mar 12, 2010 at 4:08 PM

Yeah,

You probably have a environment variable defined for npanday.settings and the test really should clear this variable prior to execution.

But here is the issue:

In registry-config.xml there is the following:

 

<repository>
      <repository-name>npanday-settings</repository-name>
      <repository-class>npanday.vendor.impl.SettingsRepository</repository-class>
      <repository-config>${npanday.settings}</repository-config>
      <init-param>
        <param-name>optional</param-name>
        <param-value>true</param-value>
      </init-param>
    </repository>

<repository>

      <repository-name>npanday-settings</repository-name>

      <repository-class>npanday.vendor.impl.SettingsRepository</repository-class>

      <repository-config>${npanday.settings}</repository-config>

      <init-param>

        <param-name>optional</param-name>

        <param-value>true</param-value>

      </init-param>

    </repository>

Which is replaced from environment in toPath method of StandardRegistryLoader defaulting to ".":

 

String pathEnv = System.getProperty( env.toString().trim(), "." );

When getResourceStream(".") is called the result is not null resulting in exception during parsing.  

The fix would proabably have been more clear if StandardRegistryLoader checked for "." after toPath rather than StandardRepositoryLoader.

I can revise the patch later and resubmit. 

Coordinator
Mar 15, 2010 at 12:40 AM
kurtharriger wrote:

Yeah,

You probably have a environment variable defined for npanday.settings and the test really should clear this variable prior to execution.

Hmm, nope, nothing in the environment for that here... these are very clean VMs, brand new XP SP3 install, VS2008 SP1 installed, JDK 6 installed, and Maven/NPanday installed per installation instructions.

kurtharriger wrote:

But here is the issue:

In registry-config.xml there is the following:

 

<repository>
      <repository-name>npanday-settings</repository-name>
      <repository-class>npanday.vendor.impl.SettingsRepository</repository-class>
      <repository-config>${npanday.settings}</repository-config>
      <init-param>
        <param-name>optional</param-name>
        <param-value>true</param-value>
      </init-param>
    </repository>

 

<repository>

      <repository-name>npanday-settings</repository-name>

      <repository-class>npanday.vendor.impl.SettingsRepository</repository-class>

      <repository-config>${npanday.settings}</repository-config>

      <init-param>

        <param-name>optional</param-name>

        <param-value>true</param-value>

      </init-param>

    </repository>

Which is replaced from environment in toPath method of StandardRegistryLoader defaulting to ".":

 

 

String pathEnv = System.getProperty( env.toString().trim(), "." );

When getResourceStream(".") is called the result is not null resulting in exception during parsing.  

The fix would proabably have been more clear if StandardRegistryLoader checked for "." after toPath rather than StandardRepositoryLoader.

I can revise the patch later and resubmit. 

That does seem clearer, I'll keep an eye out for the revision - thanks!