Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » Package WAR gives NullPointer Exception
Package WAR gives NullPointer Exception [message #518699] Thu, 04 March 2010 14:11 Go to next message
Tom Talbott is currently offline Tom Talbott
Messages: 11
Registered: July 2009
Junior Member
I am trying to use the WAR Overlay functionality in the latest IAM. If Packaging is set to 'war' in the pom.xml file, I get the following exception:

eclipse.buildId=M20090917-0800
java.version=1.5.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/tomtalbott/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.jee.product -keyring /Users/tomtalbott/.eclipse_keyring -showlocation


Error
Thu Mar 04 10:50:13 PST 2010
Unexpected error on project P/sersol-cas: java.lang.NullPointerException

java.lang.NullPointerException
at org.codehaus.plexus.util.xml.Xpp3Dom.<init>(Xpp3Dom.java:73)
at org.apache.maven.lifecycle.LifecycleUtils.mergeBindings(Life cycleUtils.java:304)
at org.apache.maven.lifecycle.plan.BuildPlan.<init>(BuildPlan.java:47)
at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.construc tBuildPlan_aroundBody0(DefaultBuildPlanner.java:103)
at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.construc tBuildPlan(DefaultBuildPlanner.java:1)
at org.eclipse.iam.core.embedder.internal.EclipseMavenBuildPlan ner.constructBuildPlan(EclipseMavenBuildPlanner.java:43)
at org.apache.maven.embedder.MavenEmbedder.getBuildPlan(MavenEm bedder.java:571)
at org.apache.maven.embedder.MavenEmbedder.getBuildPlan(MavenEm bedder.java:537)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.getGoals ForPhase(EclipseMaven.java:937)
at org.eclipse.iam.core.embedder.internal.EclipseMavenRequest.g etExecutionMojos(EclipseMavenRequest.java:436)
at org.eclipse.iam.core.embedder.internal.EclipseMavenRequest.r un(EclipseMavenRequest.java:106)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.executeG oals(EclipseMaven.java:175)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.executeG oals(EclipseMaven.java:160)
at org.eclipse.iam.wtp.core.internal.war.WarBuilderDelegate.run WarExploded(WarBuilderDelegate.java:378)
at org.eclipse.iam.wtp.core.internal.war.WarBuilderDelegate.pro cessOverlayWar(WarBuilderDelegate.java:220)
at org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListe ner.addOverlayWarFolders(MavenWarClasspathListener.java:123)
at org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListe ner.resolved(MavenWarClasspathListener.java:57)
at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC ontainer.resolveArtifacts(MavenClasspathContainer.java:272)
at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC ontainer.refreshClasspath(MavenClasspathContainer.java:141)
at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC ontainer.newClasspath(MavenClasspathContainer.java:181)
at org.eclipse.iam.jdt.core.classpath.container.UpdateClasspath Job.runInWorkspace(UpdateClasspathJob.java:80)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

The pom.xml is as follows:

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sersol</groupId>
<artifactId>sersol-cas</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>sersol-cas</warName>
<packagingExcludes>**/*.ORIG</packagingExcludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-webapp</artifactId>
<version>${cas.version}</version>
<type>war</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-core</artifactId>
<version>${cas.version}</version>
</dependency>
<dependency>
<groupId>edu.ucmerced.cas</groupId>
<artifactId>cas-server-support-shib</artifactId>
<version>3.3.5a</version>
</dependency>

</dependencies>


<properties>
<cas.version>3.3.5</cas.version>
</properties>

<repositories>
<repository>
<id>ja-sig</id>
<url>http://developer.ja-sig.org/maven2/</url>
</repository>
</repositories>
</project>

Any ideas?

Thanks,
-Tom
Re: Package WAR gives NullPointer Exception [message #518718 is a reply to message #518699] Thu, 04 March 2010 14:45 Go to previous messageGo to next message
Tom Talbott is currently offline Tom Talbott
Messages: 11
Registered: July 2009
Junior Member
Followup: I've gone to a clean JEE Eclipse install with IAM and subversive. I still get nullpointers with the above pom.xml, but the stack trace is different:

eclipse.buildId=unknown
java.version=1.5.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/tomtalbott/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.jee.product -keyring /Users/tomtalbott/.eclipse_keyring -showlocation


Error
Thu Mar 04 11:41:22 PST 2010
An internal error occurred during: "Updating classpath container: sersol-cas".

java.lang.NullPointerException
at org.eclipse.wst.common.componentcore.internal.resources.Virt ualResource.removeLink(VirtualResource.java:300)
at org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListe ner.addOverlayWarFolders(MavenWarClasspathListener.java:89)
at org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListe ner.resolved(MavenWarClasspathListener.java:57)
at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC ontainer.resolveArtifacts(MavenClasspathContainer.java:272)
at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC ontainer.refreshClasspath(MavenClasspathContainer.java:141)
at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC ontainer.newClasspath(MavenClasspathContainer.java:181)
at org.eclipse.iam.jdt.core.classpath.container.UpdateClasspath Job.runInWorkspace(UpdateClasspathJob.java:80)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Re: Package WAR gives NullPointer Exception [message #518798 is a reply to message #518718] Thu, 04 March 2010 18:18 Go to previous messageGo to next message
Carlos Sanchez is currently offline Carlos Sanchez
Messages: 114
Registered: July 2009
Senior Member
try deleting the
..project
..classpath
..settings

and reimporting the project again from Import -> Maven 2 project


On 3/4/10 11:45 AM, Tom Talbott wrote:
> Followup: I've gone to a clean JEE Eclipse install with IAM and
> subversive. I still get nullpointers with the above pom.xml, but the
> stack trace is different:
>
> eclipse.buildId=unknown
> java.version=1.5.0_22
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
> Framework arguments: -product org.eclipse.epp.package.jee.product
> -keyring /Users/tomtalbott/.eclipse_keyring -showlocation
> Command-line arguments: -os macosx -ws cocoa -arch x86 -product
> org.eclipse.epp.package.jee.product -keyring
> /Users/tomtalbott/.eclipse_keyring -showlocation
>
>
> Error
> Thu Mar 04 11:41:22 PST 2010
> An internal error occurred during: "Updating classpath container:
> sersol-cas".
>
> java.lang.NullPointerException
> at org.eclipse.wst.common.componentcore.internal.resources.Virt
> ualResource.removeLink(VirtualResource.java:300)
> at org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListe
> ner.addOverlayWarFolders(MavenWarClasspathListener.java:89)
> at org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListe
> ner.resolved(MavenWarClasspathListener.java:57)
> at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC
> ontainer.resolveArtifacts(MavenClasspathContainer.java:272)
> at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC
> ontainer.refreshClasspath(MavenClasspathContainer.java:141)
> at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC
> ontainer.newClasspath(MavenClasspathContainer.java:181)
> at org.eclipse.iam.jdt.core.classpath.container.UpdateClasspath
> Job.runInWorkspace(UpdateClasspathJob.java:80)
> at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
> (InternalWorkspaceJob.java:38)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
Re: Package WAR gives NullPointer Exception [message #519431 is a reply to message #518798] Mon, 08 March 2010 14:08 Go to previous messageGo to next message
Tom Talbott is currently offline Tom Talbott
Messages: 11
Registered: July 2009
Junior Member
Thanks for the reply Carlos,

I tried your suggestion on my "clean" copy of Eclipse and now I'm getting the same errors as my first message:

eclipse.buildId=unknown
java.version=1.5.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/tomtalbott/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.jee.product -keyring /Users/tomtalbott/.eclipse_keyring -showlocation


Error
Mon Mar 08 10:54:57 PST 2010
Unexpected error on project P/sersol-cas: java.lang.NullPointerException

java.lang.NullPointerException
at org.codehaus.plexus.util.xml.Xpp3Dom.<init>(Xpp3Dom.java:73)
at org.apache.maven.lifecycle.LifecycleUtils.mergeBindings(Life cycleUtils.java:304)
at org.apache.maven.lifecycle.plan.BuildPlan.<init>(BuildPlan.java:47)
at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.construc tBuildPlan_aroundBody0(DefaultBuildPlanner.java:103)
at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.construc tBuildPlan(DefaultBuildPlanner.java:1)
at org.eclipse.iam.core.embedder.internal.EclipseMavenBuildPlan ner.constructBuildPlan(EclipseMavenBuildPlanner.java:43)
at org.apache.maven.embedder.MavenEmbedder.getBuildPlan(MavenEm bedder.java:571)
at org.apache.maven.embedder.MavenEmbedder.getBuildPlan(MavenEm bedder.java:537)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.getGoals ForPhase(EclipseMaven.java:937)
at org.eclipse.iam.core.embedder.internal.EclipseMavenRequest.g etExecutionMojos(EclipseMavenRequest.java:436)
at org.eclipse.iam.core.embedder.internal.EclipseMavenRequest.r un(EclipseMavenRequest.java:106)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.executeG oals(EclipseMaven.java:175)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.executeG oals(EclipseMaven.java:160)
at org.eclipse.iam.wtp.core.internal.war.WarBuilderDelegate.run WarExploded(WarBuilderDelegate.java:378)
at org.eclipse.iam.wtp.core.internal.war.WarBuilderDelegate.pro cessOverlayWar(WarBuilderDelegate.java:220)
at org.eclipse.iam.wtp.core.internal.war.WarBuilderDelegate.onF ullBuild(WarBuilderDelegate.java:87)
at org.eclipse.iam.builder.internal.builder.MavenIncrementalBui lder.doFullBuild(MavenIncrementalBuilder.java:213)
at org.eclipse.iam.builder.internal.builder.MavenIncrementalBui lder.build(MavenIncrementalBuilder.java:119)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildMan ager.java:627)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:170)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:201)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildMan ager.java:253)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:256)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop (BuildManager.java:309)
at org.eclipse.core.internal.events.BuildManager.build(BuildMan ager.java:341)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBu ildJob.java:140)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJ ob.java:238)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I deleted the project from eclipse, removed the dot files an ".settings" and imported the project back into eclipse.

Would really love to get this working. We are trying to work with a 3rd party WAR (CAS) that uses WAR Overlay as a way to customize the framework.

Thanks,
-Tom
Re: Package WAR gives NullPointer Exception [message #520967 is a reply to message #519431] Mon, 15 March 2010 20:48 Go to previous messageGo to next message
Tom Talbott is currently offline Tom Talbott
Messages: 11
Registered: July 2009
Junior Member
Hoping someone can try to repro this problem. Would love to switch to IAM.

Thanks,
-Tom
Continued NullPointer Exceptions trying to use IAM [message #521485 is a reply to message #518699] Wed, 17 March 2010 14:14 Go to previous messageGo to next message
Tom Talbott is currently offline Tom Talbott
Messages: 11
Registered: July 2009
Junior Member
I've tried to pursue this further, by starting with a standard Maven webapp generated from maven-archetype-webapp. If I start adding just about anything to the pom, I can start getting nullpointers of the form:

Caused by: java.lang.NullPointerException
at org.codehaus.plexus.util.xml.Xpp3Dom.<init>(Xpp3Dom.java:73)
at org.apache.maven.lifecycle.LifecycleUtils.mergeBindings(Life cycleUtils.java:304)
at org.apache.maven.lifecycle.plan.BuildPlan.<init>(BuildPlan.java:47)
at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.construc tBuildPlan_aroundBody0(DefaultBuildPlanner.java:103)
at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.construc tBuildPlan(DefaultBuildPlanner.java:1)
at org.eclipse.iam.core.embedder.internal.EclipseMavenBuildPlan ner.constructBuildPlan(EclipseMavenBuildPlanner.java:43)
at org.apache.maven.embedder.MavenEmbedder.getBuildPlan(MavenEm bedder.java:571)
at org.apache.maven.embedder.MavenEmbedder.getBuildPlan(MavenEm bedder.java:537)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.getGoals ForPhase(EclipseMaven.java:937)
at org.eclipse.iam.core.embedder.internal.EclipseMavenRequest.g etExecutionMojos(EclipseMavenRequest.java:436)
at org.eclipse.iam.core.embedder.internal.EclipseMavenRequest.r un(EclipseMavenRequest.java:106)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.executeG oals(EclipseMaven.java:175)

Sometimes it goes away for a bit if I turn off Maven Dependency Management and back on again. But, that doesn't always work.

Below is a reference to another project that had this exception:

http://issues.ops4j.org/browse/PAXCONSTRUCT-77

All of this is on a clean updated Eclipse 3.5.2 with only IAM & Subversive as added plugins. Running on updated Mac OS X 10.5.8.

I need to come up with a solution for my team soon. At this point, I will probably not be looking into IAM any further unless someone gets back soon. I will be evaluating Netbeans next since it supposedly has good Maven integration.
Re: Package WAR gives NullPointer Exception [message #572575 is a reply to message #518699] Thu, 04 March 2010 14:45 Go to previous messageGo to next message
Tom Talbott is currently offline Tom Talbott
Messages: 11
Registered: July 2009
Junior Member
Followup: I've gone to a clean JEE Eclipse install with IAM and subversive. I still get nullpointers with the above pom.xml, but the stack trace is different:

eclipse.buildId=unknown
java.version=1.5.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/tomtalbott/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.jee.product -keyring /Users/tomtalbott/.eclipse_keyring -showlocation


Error
Thu Mar 04 11:41:22 PST 2010
An internal error occurred during: "Updating classpath container: sersol-cas".

java.lang.NullPointerException
at org.eclipse.wst.common.componentcore.internal.resources.Virt ualResource.removeLink(VirtualResource.java:300)
at org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListe ner.addOverlayWarFolders(MavenWarClasspathListener.java:89)
at org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListe ner.resolved(MavenWarClasspathListener.java:57)
at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC ontainer.resolveArtifacts(MavenClasspathContainer.java:272)
at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC ontainer.refreshClasspath(MavenClasspathContainer.java:141)
at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC ontainer.newClasspath(MavenClasspathContainer.java:181)
at org.eclipse.iam.jdt.core.classpath.container.UpdateClasspath Job.runInWorkspace(UpdateClasspathJob.java:80)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: Package WAR gives NullPointer Exception [message #572624 is a reply to message #518718] Thu, 04 March 2010 23:08 Go to previous messageGo to next message
Carlos Sanchez is currently offline Carlos Sanchez
Messages: 114
Registered: July 2009
Senior Member
try deleting the
..project
..classpath
..settings

and reimporting the project again from Import -> Maven 2 project


On 3/4/10 11:45 AM, Tom Talbott wrote:
> Followup: I've gone to a clean JEE Eclipse install with IAM and
> subversive. I still get nullpointers with the above pom.xml, but the
> stack trace is different:
>
> eclipse.buildId=unknown
> java.version=1.5.0_22
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
> Framework arguments: -product org.eclipse.epp.package.jee.product
> -keyring /Users/tomtalbott/.eclipse_keyring -showlocation
> Command-line arguments: -os macosx -ws cocoa -arch x86 -product
> org.eclipse.epp.package.jee.product -keyring
> /Users/tomtalbott/.eclipse_keyring -showlocation
>
>
> Error
> Thu Mar 04 11:41:22 PST 2010
> An internal error occurred during: "Updating classpath container:
> sersol-cas".
>
> java.lang.NullPointerException
> at org.eclipse.wst.common.componentcore.internal.resources.Virt
> ualResource.removeLink(VirtualResource.java:300)
> at org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListe
> ner.addOverlayWarFolders(MavenWarClasspathListener.java:89)
> at org.eclipse.iam.wtp.core.internal.war.MavenWarClasspathListe
> ner.resolved(MavenWarClasspathListener.java:57)
> at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC
> ontainer.resolveArtifacts(MavenClasspathContainer.java:272)
> at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC
> ontainer.refreshClasspath(MavenClasspathContainer.java:141)
> at org.eclipse.iam.jdt.core.classpath.container.MavenClasspathC
> ontainer.newClasspath(MavenClasspathContainer.java:181)
> at org.eclipse.iam.jdt.core.classpath.container.UpdateClasspath
> Job.runInWorkspace(UpdateClasspathJob.java:80)
> at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
> (InternalWorkspaceJob.java:38)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
Re: Package WAR gives NullPointer Exception [message #572681 is a reply to message #572624] Mon, 08 March 2010 14:08 Go to previous messageGo to next message
Tom Talbott is currently offline Tom Talbott
Messages: 11
Registered: July 2009
Junior Member
Thanks for the reply Carlos,

I tried your suggestion on my "clean" copy of Eclipse and now I'm getting the same errors as my first message:

eclipse.buildId=unknown
java.version=1.5.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/tomtalbott/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.jee.product -keyring /Users/tomtalbott/.eclipse_keyring -showlocation


Error
Mon Mar 08 10:54:57 PST 2010
Unexpected error on project P/sersol-cas: java.lang.NullPointerException

java.lang.NullPointerException
at org.codehaus.plexus.util.xml.Xpp3Dom.<init>(Xpp3Dom.java:73)
at org.apache.maven.lifecycle.LifecycleUtils.mergeBindings(Life cycleUtils.java:304)
at org.apache.maven.lifecycle.plan.BuildPlan.<init>(BuildPlan.java:47)
at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.construc tBuildPlan_aroundBody0(DefaultBuildPlanner.java:103)
at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.construc tBuildPlan(DefaultBuildPlanner.java:1)
at org.eclipse.iam.core.embedder.internal.EclipseMavenBuildPlan ner.constructBuildPlan(EclipseMavenBuildPlanner.java:43)
at org.apache.maven.embedder.MavenEmbedder.getBuildPlan(MavenEm bedder.java:571)
at org.apache.maven.embedder.MavenEmbedder.getBuildPlan(MavenEm bedder.java:537)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.getGoals ForPhase(EclipseMaven.java:937)
at org.eclipse.iam.core.embedder.internal.EclipseMavenRequest.g etExecutionMojos(EclipseMavenRequest.java:436)
at org.eclipse.iam.core.embedder.internal.EclipseMavenRequest.r un(EclipseMavenRequest.java:106)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.executeG oals(EclipseMaven.java:175)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.executeG oals(EclipseMaven.java:160)
at org.eclipse.iam.wtp.core.internal.war.WarBuilderDelegate.run WarExploded(WarBuilderDelegate.java:378)
at org.eclipse.iam.wtp.core.internal.war.WarBuilderDelegate.pro cessOverlayWar(WarBuilderDelegate.java:220)
at org.eclipse.iam.wtp.core.internal.war.WarBuilderDelegate.onF ullBuild(WarBuilderDelegate.java:87)
at org.eclipse.iam.builder.internal.builder.MavenIncrementalBui lder.doFullBuild(MavenIncrementalBuilder.java:213)
at org.eclipse.iam.builder.internal.builder.MavenIncrementalBui lder.build(MavenIncrementalBuilder.java:119)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildMan ager.java:627)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:170)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:201)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildMan ager.java:253)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:256)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop (BuildManager.java:309)
at org.eclipse.core.internal.events.BuildManager.build(BuildMan ager.java:341)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBu ildJob.java:140)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJ ob.java:238)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I deleted the project from eclipse, removed the dot files an ".settings" and imported the project back into eclipse.

Would really love to get this working. We are trying to work with a 3rd party WAR (CAS) that uses WAR Overlay as a way to customize the framework.

Thanks,
-Tom
Re: Package WAR gives NullPointer Exception [message #572729 is a reply to message #519431] Mon, 15 March 2010 20:48 Go to previous messageGo to next message
Tom Talbott is currently offline Tom Talbott
Messages: 11
Registered: July 2009
Junior Member
Hoping someone can try to repro this problem. Would love to switch to IAM.

Thanks,
-Tom
Continued NullPointer Exceptions trying to use IAM [message #572746 is a reply to message #518699] Wed, 17 March 2010 14:14 Go to previous message
Tom Talbott is currently offline Tom Talbott
Messages: 11
Registered: July 2009
Junior Member
I've tried to pursue this further, by starting with a standard Maven webapp generated from maven-archetype-webapp. If I start adding just about anything to the pom, I can start getting nullpointers of the form:

Caused by: java.lang.NullPointerException
at org.codehaus.plexus.util.xml.Xpp3Dom.<init>(Xpp3Dom.java:73)
at org.apache.maven.lifecycle.LifecycleUtils.mergeBindings(Life cycleUtils.java:304)
at org.apache.maven.lifecycle.plan.BuildPlan.<init>(BuildPlan.java:47)
at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.construc tBuildPlan_aroundBody0(DefaultBuildPlanner.java:103)
at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.construc tBuildPlan(DefaultBuildPlanner.java:1)
at org.eclipse.iam.core.embedder.internal.EclipseMavenBuildPlan ner.constructBuildPlan(EclipseMavenBuildPlanner.java:43)
at org.apache.maven.embedder.MavenEmbedder.getBuildPlan(MavenEm bedder.java:571)
at org.apache.maven.embedder.MavenEmbedder.getBuildPlan(MavenEm bedder.java:537)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.getGoals ForPhase(EclipseMaven.java:937)
at org.eclipse.iam.core.embedder.internal.EclipseMavenRequest.g etExecutionMojos(EclipseMavenRequest.java:436)
at org.eclipse.iam.core.embedder.internal.EclipseMavenRequest.r un(EclipseMavenRequest.java:106)
at org.eclipse.iam.core.embedder.internal.EclipseMaven.executeG oals(EclipseMaven.java:175)

Sometimes it goes away for a bit if I turn off Maven Dependency Management and back on again. But, that doesn't always work.

Below is a reference to another project that had this exception:

http://issues.ops4j.org/browse/PAXCONSTRUCT-77

All of this is on a clean updated Eclipse 3.5.2 with only IAM & Subversive as added plugins. Running on updated Mac OS X 10.5.8.

I need to come up with a solution for my team soon. At this point, I will probably not be looking into IAM any further unless someone gets back soon. I will be evaluating Netbeans next since it supposedly has good Maven integration.
Previous Topic:Disable Dependecy Path Update
Next Topic:Dependency on test classes in another project
Goto Forum:
  


Current Time: Fri Aug 22 06:01:14 EDT 2014

Powered by FUDForum. Page generated in 0.15852 seconds