M2 build exception parsing POM

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

M2 build exception parsing POM

cary51
Using 1.115, this m2 project builds successfully manually (cd into the
hudson workspace and run maven)

I get this message trying to build a project:
========================================
Parsing POMs
ERROR: Processing failed due to a bug in the code. Please report thus to
[hidden email]
java.lang.NullPointerException
at
hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
at hudson.model.Run.run(Run.java:562)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
at hudson.model.Executor.run(Executor.java:59)
FATAL: null
java.lang.NullPointerException
at
hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
at hudson.model.Run.run(Run.java:562)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
at hudson.model.Executor.run(Executor.java:59)

_________________________________________________________________
Local listings, incredible imagery, and driving directions - all in one
place! http://maps.live.com/?wip=69&FORM=MGAC01

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: M2 build exception parsing POM

Kohsuke Kawaguchi
Administrator

Thanks. I'm checking the code, but it's not obvious to me why this
happens. I added a few more probes, so if you can try the latest
snapshot build and tell us what that produces, that would be great.

Also, can you send me the "config.xml" file of the project, and "ls
modules" in the job directory? (so that I know what modules you got?)

Cary Coulter wrote:

> Using 1.115, this m2 project builds successfully manually (cd into the
> hudson workspace and run maven)
>
> I get this message trying to build a project:
> ========================================
> Parsing POMs
> ERROR: Processing failed due to a bug in the code. Please report thus to
> [hidden email]
> java.lang.NullPointerException
> at
> hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
> at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
> at hudson.model.Run.run(Run.java:562)
> at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
> at hudson.model.Executor.run(Executor.java:59)
> FATAL: null
> java.lang.NullPointerException
> at
> hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
> at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
> at hudson.model.Run.run(Run.java:562)
> at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
> at hudson.model.Executor.run(Executor.java:59)
>
> _________________________________________________________________
> Local listings, incredible imagery, and driving directions - all in one
> place! http://maps.live.com/?wip=69&FORM=MGAC01
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: M2 build exception parsing POM

cary51
The offending system is at work, but we don't use modules in maven2 if that
helps.

FWIIW, the user interface is obviously built around m2 modules, but when you
don't use them, you have to drill down to see the build state rather seeing
it on the dashboard (which seems to show CVS polling status, not the m2
build status).

I'll forward the xml early in the week.


>From: Kohsuke Kawaguchi <[hidden email]>
>Reply-To: [hidden email]
>To: [hidden email]
>Subject: Re: M2 build exception parsing POM
>Date: Sat, 07 Jul 2007 10:25:23 +0900
>
>
>Thanks. I'm checking the code, but it's not obvious to me why this happens.
>I added a few more probes, so if you can try the latest snapshot build and
>tell us what that produces, that would be great.
>
>Also, can you send me the "config.xml" file of the project, and "ls
>modules" in the job directory? (so that I know what modules you got?)
>
>Cary Coulter wrote:
>>Using 1.115, this m2 project builds successfully manually (cd into the
>>hudson workspace and run maven)
>>
>>I get this message trying to build a project:
>>========================================
>>Parsing POMs
>>ERROR: Processing failed due to a bug in the code. Please report thus to
>>[hidden email]
>>java.lang.NullPointerException
>>at
>>hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
>>at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
>>at hudson.model.Run.run(Run.java:562)
>>at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
>>at hudson.model.Executor.run(Executor.java:59)
>>FATAL: null
>>java.lang.NullPointerException
>>at
>>hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
>>at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
>>at hudson.model.Run.run(Run.java:562)
>>at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
>>at hudson.model.Executor.run(Executor.java:59)
>>
>>_________________________________________________________________
>>Local listings, incredible imagery, and driving directions - all in one
>>place! http://maps.live.com/?wip=69&FORM=MGAC01
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [hidden email]
>>For additional commands, e-mail: [hidden email]
>>
>>
>
>
>--
>Kohsuke Kawaguchi
>Sun Microsystems                   [hidden email]


><< smime.p7s >>

_________________________________________________________________
http://liveearth.msn.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: M2 build exception parsing POM

cary51
$ ls modules
com.xxxx.enterprise.tablereplication$enterprise.tablereplication.test


config.xml for offending project
---------------------------------------------------------------------------------
<?xml version='1.0' encoding='UTF-8'?>
<hudson.maven.MavenModuleSet>
  <rootModule>
    <groupId>com.xxxx.enterprise.tablereplication</groupId>
    <artifactId>enterprise.tablereplication.pom</artifactId>
  </rootModule>
  <goals>clean install</goals>
  <mavenName>Maven-2.0.6</mavenName>
  <reporters>
    <hudson.maven.reporters.MavenMailer>
      <recipients></recipients>
      <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
      <sendToIndividuals>false</sendToIndividuals>
    </hudson.maven.reporters.MavenMailer>
  </reporters>
  <scm class="hudson.scm.CVSSCM">
   
<cvsroot>:pserver:[hidden email]:/cvs/xxxx/tablereplication</cvsroot>
    <module>enterprise.tablereplication.test</module>
    <canUseUpdate>false</canUseUpdate>
    <flatten>true</flatten>
  </scm>
  <quietPeriod>2</quietPeriod>
  <canRoam>true</canRoam>
  <disabled>false</disabled>
  <jdk>JDK 1.5</jdk>
  <triggers class="vector">
    <hudson.triggers.SCMTrigger>
      <spec>*/15 * * * *</spec>
    </hudson.triggers.SCMTrigger>
  </triggers>
  <keepDependencies>false</keepDependencies>
  <properties/>
  <description></description>
  <actions class="vector"/>
</hudson.maven.MavenModuleSet>
---------------------------------------------------------------------------------


>From: "Cary Coulter" <[hidden email]>
>Reply-To: [hidden email]
>To: [hidden email]
>Subject: Re: M2 build exception parsing POM
>Date: Fri, 06 Jul 2007 20:32:48 -0500
>
>The offending system is at work, but we don't use modules in maven2 if that
>helps.
>
>FWIIW, the user interface is obviously built around m2 modules, but when
>you don't use them, you have to drill down to see the build state rather
>seeing it on the dashboard (which seems to show CVS polling status, not the
>m2 build status).
>
>I'll forward the xml early in the week.
>
>
>>From: Kohsuke Kawaguchi <[hidden email]>
>>Reply-To: [hidden email]
>>To: [hidden email]
>>Subject: Re: M2 build exception parsing POM
>>Date: Sat, 07 Jul 2007 10:25:23 +0900
>>
>>
>>Thanks. I'm checking the code, but it's not obvious to me why this
>>happens. I added a few more probes, so if you can try the latest snapshot
>>build and tell us what that produces, that would be great.
>>
>>Also, can you send me the "config.xml" file of the project, and "ls
>>modules" in the job directory? (so that I know what modules you got?)
>>
>>Cary Coulter wrote:
>>>Using 1.115, this m2 project builds successfully manually (cd into the
>>>hudson workspace and run maven)
>>>
>>>I get this message trying to build a project:
>>>========================================
>>>Parsing POMs
>>>ERROR: Processing failed due to a bug in the code. Please report thus to
>>>[hidden email]
>>>java.lang.NullPointerException
>>>at
>>>hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
>>>at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
>>>at hudson.model.Run.run(Run.java:562)
>>>at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
>>>at hudson.model.Executor.run(Executor.java:59)
>>>FATAL: null
>>>java.lang.NullPointerException
>>>at
>>>hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
>>>at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
>>>at hudson.model.Run.run(Run.java:562)
>>>at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
>>>at hudson.model.Executor.run(Executor.java:59)
>>>
>>>_________________________________________________________________
>>>Local listings, incredible imagery, and driving directions - all in one
>>>place! http://maps.live.com/?wip=69&FORM=MGAC01
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: [hidden email]
>>>For additional commands, e-mail: [hidden email]
>>>
>>>
>>
>>
>>--
>>Kohsuke Kawaguchi
>>Sun Microsystems                   [hidden email]
>
>
>><< smime.p7s >>
>
>_________________________________________________________________
>http://liveearth.msn.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [hidden email]
>For additional commands, e-mail: [hidden email]
>

_________________________________________________________________
Don't get caught with egg on your face. Play Chicktionary! 
http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: M2 build exception parsing POM

cary51
ran offending project again  (did "build now" to refresh from CVS) using
latest snapshot version -  Hudson ver. 1.116-SNAPSHOT (private-07/03/2007
03:57-hudson)

same results.


>From: "Cary Coulter" <[hidden email]>
>Reply-To: [hidden email]
>To: [hidden email]
>Subject: Re: M2 build exception parsing POM
>Date: Mon, 09 Jul 2007 10:57:24 -0500
>
>$ ls modules
>com.xxxx.enterprise.tablereplication$enterprise.tablereplication.test
>
>
>config.xml for offending project
>---------------------------------------------------------------------------------
><?xml version='1.0' encoding='UTF-8'?>
><hudson.maven.MavenModuleSet>
>  <rootModule>
>    <groupId>com.xxxx.enterprise.tablereplication</groupId>
>    <artifactId>enterprise.tablereplication.pom</artifactId>
>  </rootModule>
>  <goals>clean install</goals>
>  <mavenName>Maven-2.0.6</mavenName>
>  <reporters>
>    <hudson.maven.reporters.MavenMailer>
>      <recipients></recipients>
>      <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
>      <sendToIndividuals>false</sendToIndividuals>
>    </hudson.maven.reporters.MavenMailer>
>  </reporters>
>  <scm class="hudson.scm.CVSSCM">
>    
><cvsroot>:pserver:[hidden email]:/cvs/xxxx/tablereplication</cvsroot>
>    <module>enterprise.tablereplication.test</module>
>    <canUseUpdate>false</canUseUpdate>
>    <flatten>true</flatten>
>  </scm>
>  <quietPeriod>2</quietPeriod>
>  <canRoam>true</canRoam>
>  <disabled>false</disabled>
>  <jdk>JDK 1.5</jdk>
>  <triggers class="vector">
>    <hudson.triggers.SCMTrigger>
>      <spec>*/15 * * * *</spec>
>    </hudson.triggers.SCMTrigger>
>  </triggers>
>  <keepDependencies>false</keepDependencies>
>  <properties/>
>  <description></description>
>  <actions class="vector"/>
></hudson.maven.MavenModuleSet>
>---------------------------------------------------------------------------------
>
>
>>From: "Cary Coulter" <[hidden email]>
>>Reply-To: [hidden email]
>>To: [hidden email]
>>Subject: Re: M2 build exception parsing POM
>>Date: Fri, 06 Jul 2007 20:32:48 -0500
>>
>>The offending system is at work, but we don't use modules in maven2 if
>>that helps.
>>
>>FWIIW, the user interface is obviously built around m2 modules, but when
>>you don't use them, you have to drill down to see the build state rather
>>seeing it on the dashboard (which seems to show CVS polling status, not
>>the m2 build status).
>>
>>I'll forward the xml early in the week.
>>
>>
>>>From: Kohsuke Kawaguchi <[hidden email]>
>>>Reply-To: [hidden email]
>>>To: [hidden email]
>>>Subject: Re: M2 build exception parsing POM
>>>Date: Sat, 07 Jul 2007 10:25:23 +0900
>>>
>>>
>>>Thanks. I'm checking the code, but it's not obvious to me why this
>>>happens. I added a few more probes, so if you can try the latest snapshot
>>>build and tell us what that produces, that would be great.
>>>
>>>Also, can you send me the "config.xml" file of the project, and "ls
>>>modules" in the job directory? (so that I know what modules you got?)
>>>
>>>Cary Coulter wrote:
>>>>Using 1.115, this m2 project builds successfully manually (cd into the
>>>>hudson workspace and run maven)
>>>>
>>>>I get this message trying to build a project:
>>>>========================================
>>>>Parsing POMs
>>>>ERROR: Processing failed due to a bug in the code. Please report thus to
>>>>[hidden email]
>>>>java.lang.NullPointerException
>>>>at
>>>>hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
>>>>at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
>>>>at hudson.model.Run.run(Run.java:562)
>>>>at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
>>>>at hudson.model.Executor.run(Executor.java:59)
>>>>FATAL: null
>>>>java.lang.NullPointerException
>>>>at
>>>>hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
>>>>at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
>>>>at hudson.model.Run.run(Run.java:562)
>>>>at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
>>>>at hudson.model.Executor.run(Executor.java:59)
>>>>
>>>>_________________________________________________________________
>>>>Local listings, incredible imagery, and driving directions - all in one
>>>>place! http://maps.live.com/?wip=69&FORM=MGAC01
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: [hidden email]
>>>>For additional commands, e-mail: [hidden email]
>>>>
>>>>
>>>
>>>
>>>--
>>>Kohsuke Kawaguchi
>>>Sun Microsystems                   [hidden email]
>>
>>
>>><< smime.p7s >>
>>
>>_________________________________________________________________
>>http://liveearth.msn.com
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [hidden email]
>>For additional commands, e-mail: [hidden email]
>>
>
>_________________________________________________________________
>Don't get caught with egg on your face. Play Chicktionary! 
>http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [hidden email]
>For additional commands, e-mail: [hidden email]
>

_________________________________________________________________
http://im.live.com/messenger/im/home/?source=hmtextlinkjuly07

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: M2 build exception parsing POM

Kohsuke Kawaguchi
Administrator
In reply to this post by cary51
Hmm. What's interesting is that Hudson apparently only found your
'enterprise.tablereplication.test' module, yet it's also listing the
'enterprise.tablereplication.pom' module. Thus it failed to find the POM
module and that causes an error.

What is the directory layout of your workspace? How many Maven modules
do you have, and where are they?

It would be the easiest if I can build the project by myself, but it's
not something you can share with me, right?

I guess I need to add more probes so that it can display how it found
various modules.


Cary Coulter wrote:

> $ ls modules
> com.xxxx.enterprise.tablereplication$enterprise.tablereplication.test
>
>
> config.xml for offending project
> ---------------------------------------------------------------------------------
> <?xml version='1.0' encoding='UTF-8'?>
> <hudson.maven.MavenModuleSet>
>   <rootModule>
>     <groupId>com.xxxx.enterprise.tablereplication</groupId>
>     <artifactId>enterprise.tablereplication.pom</artifactId>
>   </rootModule>
>   <goals>clean install</goals>
>   <mavenName>Maven-2.0.6</mavenName>
>   <reporters>
>     <hudson.maven.reporters.MavenMailer>
>       <recipients></recipients>
>       <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
>       <sendToIndividuals>false</sendToIndividuals>
>     </hudson.maven.reporters.MavenMailer>
>   </reporters>
>   <scm class="hudson.scm.CVSSCM">
>    
> <cvsroot>:pserver:[hidden email]:/cvs/xxxx/tablereplication</cvsroot>
>     <module>enterprise.tablereplication.test</module>
>     <canUseUpdate>false</canUseUpdate>
>     <flatten>true</flatten>
>   </scm>
>   <quietPeriod>2</quietPeriod>
>   <canRoam>true</canRoam>
>   <disabled>false</disabled>
>   <jdk>JDK 1.5</jdk>
>   <triggers class="vector">
>     <hudson.triggers.SCMTrigger>
>       <spec>*/15 * * * *</spec>
>     </hudson.triggers.SCMTrigger>
>   </triggers>
>   <keepDependencies>false</keepDependencies>
>   <properties/>
>   <description></description>
>   <actions class="vector"/>
> </hudson.maven.MavenModuleSet>
> ---------------------------------------------------------------------------------
>
>
>>From: "Cary Coulter" <[hidden email]>
>>Reply-To: [hidden email]
>>To: [hidden email]
>>Subject: Re: M2 build exception parsing POM
>>Date: Fri, 06 Jul 2007 20:32:48 -0500
>>
>>The offending system is at work, but we don't use modules in maven2 if that
>>helps.
>>
>>FWIIW, the user interface is obviously built around m2 modules, but when
>>you don't use them, you have to drill down to see the build state rather
>>seeing it on the dashboard (which seems to show CVS polling status, not the
>>m2 build status).
>>
>>I'll forward the xml early in the week.
>>
>>
>>>From: Kohsuke Kawaguchi <[hidden email]>
>>>Reply-To: [hidden email]
>>>To: [hidden email]
>>>Subject: Re: M2 build exception parsing POM
>>>Date: Sat, 07 Jul 2007 10:25:23 +0900
>>>
>>>
>>>Thanks. I'm checking the code, but it's not obvious to me why this
>>>happens. I added a few more probes, so if you can try the latest snapshot
>>>build and tell us what that produces, that would be great.
>>>
>>>Also, can you send me the "config.xml" file of the project, and "ls
>>>modules" in the job directory? (so that I know what modules you got?)
>>>
>>>Cary Coulter wrote:
>>>>Using 1.115, this m2 project builds successfully manually (cd into the
>>>>hudson workspace and run maven)
>>>>
>>>>I get this message trying to build a project:
>>>>========================================
>>>>Parsing POMs
>>>>ERROR: Processing failed due to a bug in the code. Please report thus to
>>>>[hidden email]
>>>>java.lang.NullPointerException
>>>>at
>>>>hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
>>>>at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
>>>>at hudson.model.Run.run(Run.java:562)
>>>>at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
>>>>at hudson.model.Executor.run(Executor.java:59)
>>>>FATAL: null
>>>>java.lang.NullPointerException
>>>>at
>>>>hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
>>>>at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
>>>>at hudson.model.Run.run(Run.java:562)
>>>>at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
>>>>at hudson.model.Executor.run(Executor.java:59)
>>>>
>>>>_________________________________________________________________
>>>>Local listings, incredible imagery, and driving directions - all in one
>>>>place! http://maps.live.com/?wip=69&FORM=MGAC01
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: [hidden email]
>>>>For additional commands, e-mail: [hidden email]
>>>>
>>>>
>>>
>>>
>>>--
>>>Kohsuke Kawaguchi
>>>Sun Microsystems                   [hidden email]
>>
>>
>>><< smime.p7s >>
>>
>>_________________________________________________________________
>>http://liveearth.msn.com
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [hidden email]
>>For additional commands, e-mail: [hidden email]
>>
>
> _________________________________________________________________
> Don't get caught with egg on your face. Play Chicktionary!?
> http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: M2 build exception parsing POM

Kohsuke Kawaguchi
Administrator
In reply to this post by Kohsuke Kawaguchi
Kohsuke Kawaguchi wrote:
> Thanks. I'm checking the code, but it's not obvious to me why this
> happens.

Sigh. Sometimes I think I'm blind. Just committed a fix, but it missed
1.116. This fix will be in 1.117 (or grab snapshot build #3418 or later)

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: M2 build exception parsing POM

cary51
In reply to this post by Kohsuke Kawaguchi
I edited the config.xml to fix the rootModule.artifactId (set to
"enterprise.tablereplication.test") and the project now builds.

I may have stumbled onto the issue however.  I created a "New Job" by
copying an existing m2 job and then changing the CVS module name.  This new
one had the same error -- the rootModule.artifactId was still set to the
value in the job I copied from.

Cary

>From: Kohsuke Kawaguchi <[hidden email]>
>Reply-To: [hidden email]
>To: [hidden email]
>Subject: Re: M2 build exception parsing POM
>Date: Tue, 10 Jul 2007 05:51:32 -0700
>
>Hmm. What's interesting is that Hudson apparently only found your
>'enterprise.tablereplication.test' module, yet it's also listing the
>'enterprise.tablereplication.pom' module. Thus it failed to find the POM
>module and that causes an error.
>
>What is the directory layout of your workspace? How many Maven modules do
>you have, and where are they?
>
>It would be the easiest if I can build the project by myself, but it's not
>something you can share with me, right?
>
>I guess I need to add more probes so that it can display how it found
>various modules.
>
>
>Cary Coulter wrote:
>>$ ls modules
>>com.xxxx.enterprise.tablereplication$enterprise.tablereplication.test
>>
>>
>>config.xml for offending project
>>---------------------------------------------------------------------------------
>><?xml version='1.0' encoding='UTF-8'?>
>><hudson.maven.MavenModuleSet>
>>   <rootModule>
>>     <groupId>com.xxxx.enterprise.tablereplication</groupId>
>>     <artifactId>enterprise.tablereplication.pom</artifactId>
>>   </rootModule>
>>   <goals>clean install</goals>
>>   <mavenName>Maven-2.0.6</mavenName>
>>   <reporters>
>>     <hudson.maven.reporters.MavenMailer>
>>       <recipients></recipients>
>>       <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
>>       <sendToIndividuals>false</sendToIndividuals>
>>     </hudson.maven.reporters.MavenMailer>
>>   </reporters>
>>   <scm class="hudson.scm.CVSSCM">
>>    
>><cvsroot>:pserver:[hidden email]:/cvs/xxxx/tablereplication</cvsroot>
>>     <module>enterprise.tablereplication.test</module>
>>     <canUseUpdate>false</canUseUpdate>
>>     <flatten>true</flatten>
>>   </scm>
>>   <quietPeriod>2</quietPeriod>
>>   <canRoam>true</canRoam>
>>   <disabled>false</disabled>
>>   <jdk>JDK 1.5</jdk>
>>   <triggers class="vector">
>>     <hudson.triggers.SCMTrigger>
>>       <spec>*/15 * * * *</spec>
>>     </hudson.triggers.SCMTrigger>
>>   </triggers>
>>   <keepDependencies>false</keepDependencies>
>>   <properties/>
>>   <description></description>
>>   <actions class="vector"/>
>></hudson.maven.MavenModuleSet>
>>---------------------------------------------------------------------------------
>>
>>
>>>From: "Cary Coulter" <[hidden email]>
>>>Reply-To: [hidden email]
>>>To: [hidden email]
>>>Subject: Re: M2 build exception parsing POM
>>>Date: Fri, 06 Jul 2007 20:32:48 -0500
>>>
>>>The offending system is at work, but we don't use modules in maven2 if
>>>that helps.
>>>
>>>FWIIW, the user interface is obviously built around m2 modules, but when
>>>you don't use them, you have to drill down to see the build state rather
>>>seeing it on the dashboard (which seems to show CVS polling status, not
>>>the m2 build status).
>>>
>>>I'll forward the xml early in the week.
>>>
>>>
>>>>From: Kohsuke Kawaguchi <[hidden email]>
>>>>Reply-To: [hidden email]
>>>>To: [hidden email]
>>>>Subject: Re: M2 build exception parsing POM
>>>>Date: Sat, 07 Jul 2007 10:25:23 +0900
>>>>
>>>>
>>>>Thanks. I'm checking the code, but it's not obvious to me why this
>>>>happens. I added a few more probes, so if you can try the latest
>>>>snapshot build and tell us what that produces, that would be great.
>>>>
>>>>Also, can you send me the "config.xml" file of the project, and "ls
>>>>modules" in the job directory? (so that I know what modules you got?)
>>>>
>>>>Cary Coulter wrote:
>>>>>Using 1.115, this m2 project builds successfully manually (cd into the
>>>>>hudson workspace and run maven)
>>>>>
>>>>>I get this message trying to build a project:
>>>>>========================================
>>>>>Parsing POMs
>>>>>ERROR: Processing failed due to a bug in the code. Please report thus
>>>>>to [hidden email]
>>>>>java.lang.NullPointerException
>>>>>at
>>>>>hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
>>>>>at
>>>>>hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
>>>>>at hudson.model.Run.run(Run.java:562)
>>>>>at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
>>>>>at hudson.model.Executor.run(Executor.java:59)
>>>>>FATAL: null
>>>>>java.lang.NullPointerException
>>>>>at
>>>>>hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
>>>>>at
>>>>>hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
>>>>>at hudson.model.Run.run(Run.java:562)
>>>>>at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
>>>>>at hudson.model.Executor.run(Executor.java:59)
>>>>>
>>>>>_________________________________________________________________
>>>>>Local listings, incredible imagery, and driving directions - all in one
>>>>>place! http://maps.live.com/?wip=69&FORM=MGAC01
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: [hidden email]
>>>>>For additional commands, e-mail: [hidden email]
>>>>>
>>>>>
>>>>
>>>>
>>>>--
>>>>Kohsuke Kawaguchi
>>>>Sun Microsystems                   [hidden email]
>>>
>>>
>>>><< smime.p7s >>
>>>
>>>_________________________________________________________________
>>>http://liveearth.msn.com
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: [hidden email]
>>>For additional commands, e-mail: [hidden email]
>>>
>>
>>_________________________________________________________________
>>Don't get caught with egg on your face. Play Chicktionary!?
>>http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [hidden email]
>>For additional commands, e-mail: [hidden email]
>>
>>
>
>
>--
>Kohsuke Kawaguchi
>Sun Microsystems                   [hidden email]


><< smime.p7s >>

_________________________________________________________________
http://im.live.com/messenger/im/home/?source=hmtextlinkjuly07

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: M2 build exception parsing POM

Kohsuke Kawaguchi
Administrator

As I wrote earlier, I believe this issue is fixed in 1.117. I plan to
release it tonight.

Cary Coulter wrote:

> I edited the config.xml to fix the rootModule.artifactId (set to
> "enterprise.tablereplication.test") and the project now builds.
>
> I may have stumbled onto the issue however.  I created a "New Job" by
> copying an existing m2 job and then changing the CVS module name.  This new
> one had the same error -- the rootModule.artifactId was still set to the
> value in the job I copied from.
>
> Cary
>
>>From: Kohsuke Kawaguchi <[hidden email]>
>>Reply-To: [hidden email]
>>To: [hidden email]
>>Subject: Re: M2 build exception parsing POM
>>Date: Tue, 10 Jul 2007 05:51:32 -0700
>>
>>Hmm. What's interesting is that Hudson apparently only found your
>>'enterprise.tablereplication.test' module, yet it's also listing the
>>'enterprise.tablereplication.pom' module. Thus it failed to find the POM
>>module and that causes an error.
>>
>>What is the directory layout of your workspace? How many Maven modules do
>>you have, and where are they?
>>
>>It would be the easiest if I can build the project by myself, but it's not
>>something you can share with me, right?
>>
>>I guess I need to add more probes so that it can display how it found
>>various modules.
>>
>>
>>Cary Coulter wrote:
>>>$ ls modules
>>>com.xxxx.enterprise.tablereplication$enterprise.tablereplication.test
>>>
>>>
>>>config.xml for offending project
>>>---------------------------------------------------------------------------------
>>><?xml version='1.0' encoding='UTF-8'?>
>>><hudson.maven.MavenModuleSet>
>>>   <rootModule>
>>>     <groupId>com.xxxx.enterprise.tablereplication</groupId>
>>>     <artifactId>enterprise.tablereplication.pom</artifactId>
>>>   </rootModule>
>>>   <goals>clean install</goals>
>>>   <mavenName>Maven-2.0.6</mavenName>
>>>   <reporters>
>>>     <hudson.maven.reporters.MavenMailer>
>>>       <recipients></recipients>
>>>       <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
>>>       <sendToIndividuals>false</sendToIndividuals>
>>>     </hudson.maven.reporters.MavenMailer>
>>>   </reporters>
>>>   <scm class="hudson.scm.CVSSCM">
>>>    
>>><cvsroot>:pserver:[hidden email]:/cvs/xxxx/tablereplication</cvsroot>
>>>     <module>enterprise.tablereplication.test</module>
>>>     <canUseUpdate>false</canUseUpdate>
>>>     <flatten>true</flatten>
>>>   </scm>
>>>   <quietPeriod>2</quietPeriod>
>>>   <canRoam>true</canRoam>
>>>   <disabled>false</disabled>
>>>   <jdk>JDK 1.5</jdk>
>>>   <triggers class="vector">
>>>     <hudson.triggers.SCMTrigger>
>>>       <spec>*/15 * * * *</spec>
>>>     </hudson.triggers.SCMTrigger>
>>>   </triggers>
>>>   <keepDependencies>false</keepDependencies>
>>>   <properties/>
>>>   <description></description>
>>>   <actions class="vector"/>
>>></hudson.maven.MavenModuleSet>
>>>---------------------------------------------------------------------------------
>>>
>>>
>>>>From: "Cary Coulter" <[hidden email]>
>>>>Reply-To: [hidden email]
>>>>To: [hidden email]
>>>>Subject: Re: M2 build exception parsing POM
>>>>Date: Fri, 06 Jul 2007 20:32:48 -0500
>>>>
>>>>The offending system is at work, but we don't use modules in maven2 if
>>>>that helps.
>>>>
>>>>FWIIW, the user interface is obviously built around m2 modules, but when
>>>>you don't use them, you have to drill down to see the build state rather
>>>>seeing it on the dashboard (which seems to show CVS polling status, not
>>>>the m2 build status).
>>>>
>>>>I'll forward the xml early in the week.
>>>>
>>>>
>>>>>From: Kohsuke Kawaguchi <[hidden email]>
>>>>>Reply-To: [hidden email]
>>>>>To: [hidden email]
>>>>>Subject: Re: M2 build exception parsing POM
>>>>>Date: Sat, 07 Jul 2007 10:25:23 +0900
>>>>>
>>>>>
>>>>>Thanks. I'm checking the code, but it's not obvious to me why this
>>>>>happens. I added a few more probes, so if you can try the latest
>>>>>snapshot build and tell us what that produces, that would be great.
>>>>>
>>>>>Also, can you send me the "config.xml" file of the project, and "ls
>>>>>modules" in the job directory? (so that I know what modules you got?)
>>>>>
>>>>>Cary Coulter wrote:
>>>>>>Using 1.115, this m2 project builds successfully manually (cd into the
>>>>>>hudson workspace and run maven)
>>>>>>
>>>>>>I get this message trying to build a project:
>>>>>>========================================
>>>>>>Parsing POMs
>>>>>>ERROR: Processing failed due to a bug in the code. Please report thus
>>>>>>to [hidden email]
>>>>>>java.lang.NullPointerException
>>>>>>at
>>>>>>hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
>>>>>>at
>>>>>>hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
>>>>>>at hudson.model.Run.run(Run.java:562)
>>>>>>at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
>>>>>>at hudson.model.Executor.run(Executor.java:59)
>>>>>>FATAL: null
>>>>>>java.lang.NullPointerException
>>>>>>at
>>>>>>hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:231)
>>>>>>at
>>>>>>hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
>>>>>>at hudson.model.Run.run(Run.java:562)
>>>>>>at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:133)
>>>>>>at hudson.model.Executor.run(Executor.java:59)
>>>>>>
>>>>>>_________________________________________________________________
>>>>>>Local listings, incredible imagery, and driving directions - all in one
>>>>>>place! http://maps.live.com/?wip=69&FORM=MGAC01
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: [hidden email]
>>>>>>For additional commands, e-mail: [hidden email]
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>Kohsuke Kawaguchi
>>>>>Sun Microsystems                   [hidden email]
>>>>
>>>>
>>>>><< smime.p7s >>
>>>>
>>>>_________________________________________________________________
>>>>http://liveearth.msn.com
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: [hidden email]
>>>>For additional commands, e-mail: [hidden email]
>>>>
>>>
>>>_________________________________________________________________
>>>Don't get caught with egg on your face. Play Chicktionary!?
>>>http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: [hidden email]
>>>For additional commands, e-mail: [hidden email]
>>>
>>>
>>
>>
>>--
>>Kohsuke Kawaguchi
>>Sun Microsystems                   [hidden email]
>
>
>><< smime.p7s >>
>
> _________________________________________________________________
> http://im.live.com/messenger/im/home/?source=hmtextlinkjuly07
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment