You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marco Mistroni <mm...@gmail.com> on 2006/05/24 12:16:23 UTC
Re: Problems wtih TestNG / JBossSeam / surefire plugin / partially OT
hello,
sorryi accidentally pressed 'send ' before ocmpleting message
I Know this is partially OT because it ha sto do with jboss-seam but i was
wondering if someone has already seen this..
hi all,
> i am writing a jboss-seam application ...
> i have always used jboss-seamCR2 jars, and everything worked fine during
> my tests (where i ambooting the microcontainer)..
>
> then i moved to jboss-seamCR3 and i got this painful exception while
> runnig tests.
>
org.apache.maven.surefire.booter.SurefireExecutionException: null; nested
except
ion is java.lang.NullPointerException: null
java.lang.NullPointerException
at org.apache.maven.surefire.report.AbstractTextReporter.testFailed
(Abst
ractTextReporter.java:106)
at org.apache.maven.surefire.report.ReporterManager.testFailed
(ReporterM
anager.java:299)
at org.apache.maven.surefire.report.ReporterManager.testFailed
(ReporterM
anager.java:281)
at org.apache.maven.surefire.testng.TestNGReporter.onTestFailure
(TestNGR
eporter.java:97)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1138)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1123)
at org.testng.internal.Invoker.handleConfigurationFailure(
Invoker.java:1
87)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java
:166)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:216)
at org.testng.SuiteRunner.run(SuiteRunner.java:146)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:713)
at org.testng.TestNG.runSuitesLocally(TestNG.java:676)
at org.apache.maven.surefire.testng.TestNGExecutor.executeTestNG
(TestNGE
xecutor.java:64)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute
(TestNGXml
TestSuite.java:75)
at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:220)
at org.apache.maven.surefire.booter.SurefireBooter.main(
SurefireBooter.j
ava:733)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:555)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(Defau
ltLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
here' smy pom.xml
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>ExpenseControl</groupId>
<artifactId>ejbs</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<name>enterprise java beans</name>
<parent>
<groupId>ExpenseControl</groupId>
<artifactId>project</artifactId>
<version>1.0</version>
</parent>
<dependencies>
<!-- JBoss Microcontainer dependencies (for tests)-->
<dependency>
<groupId>microcontainer</groupId>
<artifactId>ehcache</artifactId>
<version>alpha6</version>
<scope>system</scope>
<systemPath>${basedir}\microcontainer\optional-lib\ehcache-
alpha6.jar</systemPath>
</dependency>
<dependency>
<groupId>microcontainer</groupId>
<artifactId>hibernate-all</artifactId>
<version>alpha6</version>
<scope>system</scope>
<systemPath>${basedir}\microcontainer\lib\hibernate-all-alpha6.jar
</systemPath>
</dependency>
<dependency>
<groupId>microcontainer</groupId>
<artifactId>jboss-ejb3-all</artifactId>
<version>alpha6</version>
<scope>system</scope>
<systemPath>${basedir}\microcontainer\lib\jboss-ejb3-all-alpha6.jar
</systemPath>
</dependency>
<dependency>
<groupId>microcontainer</groupId>
<artifactId>thirdparty-all</artifactId>
<version>alpha6</version>
<scope>system</scope>
<systemPath>${basedir}\microcontainer\lib\thirdparty-all-alpha6.jar
</systemPath>
</dependency>
<!-- end of jboss microcontainer dependencies -->
<dependency>
<groupId>geronimo-spec</groupId>
<artifactId>geronimo-spec-j2ee</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jboss-seam</groupId>
<artifactId>jboss-seam-ui</artifactId>
<version>1.0.0CR3</version>
</dependency>
<dependency>
<groupId>jboss-seam</groupId>
<artifactId>jboss-seam</artifactId>
<version>1.0.0CR3</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>4.7</version>
<scope>test</scope>
<classifier>jdk15</classifier>
</dependency>
<dependency>
<groupId>dbunit</groupId>
<artifactId>dbunit</artifactId>
<version>2.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>iso-8859-1</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.2-SNAPSHOT</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<tasks>
<echo message="--------Properties Configured
----------"/>
<echo message="------- deploy.dir=${deploy.directory}
"/>
<echo message="------- ear.name=${ear.name}"/>
<echo message="-------
project.parent.version=${project.parent.version}"/>
<echo message="------- project.version=${project.version}"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<!--<reporting>
<plugins>
<plugin>
<artifactId>maven-surefire-report-plugin</artifactId>
<configuration>
<forkMode>once</forkMode>
<childDelegation>false</childDelegation>
</configuration>
</plugin>
</plugins>
</reporting>-->
<!-- The following two sections should be unnecessary shortly.
surefire-2.2 is due for release yesterday. -->
<repositories>
<repository>
<id>apache.snapshots</id>
<url>http://cvs.apache.org/maven-snapshot-repository</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>apache.snapshots</id>
<url>http://cvs.apache.org/maven-snapshot-repository</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>
anyone could help?
thanks and regards
marco