You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by wendy Lee <ha...@gmail.com> on 2006/12/12 13:06:32 UTC
what wrong when I compile the jackrabbit-core
I just update the source code to newest version ,when I run mvn install
.there are some error in the test .
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.jackrabbit.init.ExportDocViewTestData
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.109 sec
<<< FA
ILURE!
Running org.apache.jackrabbit.init.PropertyTestData
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.063 sec
<<< FA
ILURE!
Running org.apache.jackrabbit.init.NodeTestData
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.046 sec
<<< FA
ILURE!
Running org.apache.jackrabbit.init.QueryTestData
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.047 sec
<<< FA
ILURE!
Results :
Tests run: 4, Failures: 0, Errors: 4, Skipped: 0
[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)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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.MojoFailureException: There are test
failures
.
at org.apache.maven.plugin.surefire.SurefirePlugin.execute
(SurefirePlugi
n.java:403)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPlugi
nManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:534)
... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 19 seconds
[INFO] Finished at: Tue Dec 12 20:00:38 CST 2006
[INFO] Final Memory: 7M/21M
[INFO]
------------------------------------------------------------------------
Re: what wrong when I compile the jackrabbit-core
Posted by wendy Lee <ha...@gmail.com>.
Thank you ,resolve it
Re: what wrong when I compile the jackrabbit-core
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On 12/16/06, wendy Lee <ha...@gmail.com> wrote:
> [ERROR] BUILD FAILURE
> [...]
> I use mvn clean ,but nothing changed .
> how I can skip it.....
Two options:
1) Fix the cause of the unit test failure
2) Use the -Dmaven.test.skip=true option with Maven
BR,
Jukka Zitting
Re: what wrong when I compile the jackrabbit-core
Posted by wendy Lee <ha...@gmail.com>.
T E S T S
-------------------------------------------------------
Running org.apache.jackrabbit.core.nodetype.compact.TestAll
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.453 sec
Running org.apache.jackrabbit.test.TestAll
Tests run: 1055, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 154.891sec
Running org.apache.jackrabbit.core.xml.TestAll
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.094 sec
Running org.apache.jackrabbit.core.observation.TestAll
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.562 sec
Running org.apache.jackrabbit.core.query.TestAll
Tests run: 101, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.594 sec
Running org.apache.jackrabbit.core.config.TestAll
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.5 sec
Running org.apache.jackrabbit.core.nodetype.xml.TestAll
Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.328 sec
Running org.apache.jackrabbit.core.TestAll
Tests run: 29, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.516 sec
<<< F
AILURE!
Running org.apache.jackrabbit.core.state.TestAll
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec
Running org.apache.jackrabbit.value.TestAll
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec
Results :
Tests run: 1245, Failures: 1, Errors: 0, Skipped: 0
[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)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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.MojoFailureException: There are test
failures
.
at org.apache.maven.plugin.surefire.SurefirePlugin.execute
(SurefirePlugi
n.java:403)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPlugi
nManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:534)
... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 minutes 2 seconds
[INFO] Finished at: Sat Dec 16 19:45:38 CST 2006
[INFO] Final Memory: 6M/21M
[INFO]
------------------------------------------------------------------------
I use mvn clean ,but nothing changed .
how I can skip it.....
Re: what wrong when I compile the jackrabbit-core
Posted by wendy Lee <ha...@gmail.com>.
Yes I also have this problem ...
-------------------------------------------------------------------------------
Test set: org.apache.jackrabbit.core.TestAll
-------------------------------------------------------------------------------
Tests run: 29, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.14 sec
<<< FAILURE!
testXAVersionsThoroughly(org.apache.jackrabbit.core.XATest) Time elapsed:
0.234 sec <<< FAILURE!
junit.framework.ComparisonFailure: checkin N1 uncommitted. Version Name
expected:<...1...> but was:<...0...>
at junit.framework.Assert.assertEquals(Assert.java:81)
at org.apache.jackrabbit.core.XATest.check(XATest.java:1140)
at org.apache.jackrabbit.core.XATest.testXAVersionsThoroughly(
XATest.java:1080)
Re: what wrong when I compile the jackrabbit-core
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On 12/14/06, Łukasz Sroka <Lu...@comarch.com> wrote:
> I have similar problem, I download the latest sources and I tried to build
> it using Maven but I had some errors :
> [...]
> junit.framework.ComparisonFailure: checkin N1 uncommitted. Version Name
> expected:<...1...> but was:<...0...>
This seems like a genuine unit test failure in the Jackrabbit
codebase. I assume it was caused by the JCR-529 fix committed
yesterday.
PS. You can usually tell the difference between a local build
environment problem and a real unit test failure from the fact that an
environment problem will likely cause most or all tests to fail, while
a real regression usually flags just a couple of tests as failed.
BR,
Jukka Zitting
RE: what wrong when I compile the jackrabbit-core
Posted by Łukasz Sroka <Lu...@comarch.com>.
Hi,
I have similar problem, I download the latest sources and I tried to build
it using Maven but I had some errors :
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.jackrabbit.core.nodetype.compact.TestAll
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.25 sec
Running org.apache.jackrabbit.test.TestAll
Tests run: 1055, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 180.828
sec
Running org.apache.jackrabbit.core.xml.TestAll
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.234 sec
Running org.apache.jackrabbit.core.query.TestAll
Tests run: 101, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 27.281 sec
Running org.apache.jackrabbit.core.observation.TestAll
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.235 sec
Running org.apache.jackrabbit.core.config.TestAll
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.984 sec
Running org.apache.jackrabbit.core.nodetype.xml.TestAll
Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.203 sec
Running org.apache.jackrabbit.core.TestAll
Tests run: 29, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.89 sec
<<< FA
ILURE!
Running org.apache.jackrabbit.core.state.TestAll
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.079 sec
Running org.apache.jackrabbit.value.TestAll
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec
Results :
Tests run: 1245, Failures: 1, Errors: 0, Skipped: 0
Jukka Zitting:
>
> Looks like a local issue. Check the test reports in
> target/surefire-reports/ or run "mvn clean install" to start over.
>
I used "mvn clean install" but it didn't change anything. I checked
target/surefire-reports/ and I found :
----------------------------------------------------------------------------
---
Test set: org.apache.jackrabbit.core.TestAll
----------------------------------------------------------------------------
---
Tests run: 29, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.875 sec
<<< FAILURE!
testXAVersionsThoroughly(org.apache.jackrabbit.core.XATest) Time elapsed:
0.219 sec <<< FAILURE!
junit.framework.ComparisonFailure: checkin N1 uncommitted. Version Name
expected:<...1...> but was:<...0...>
at junit.framework.Assert.assertEquals(Assert.java:81)
at org.apache.jackrabbit.core.XATest.check(XATest.java:1140)
at
org.apache.jackrabbit.core.XATest.testXAVersionsThoroughly(XATest.java:1080)
BR
Lukasz Sroka
Re: what wrong when I compile the jackrabbit-core
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On 12/12/06, wendy Lee <ha...@gmail.com> wrote:
> I just update the source code to newest version ,when I run mvn install
> .there are some error in the test .
Looks like a local issue. Check the test reports in
target/surefire-reports/ or run "mvn clean install" to start over.
One issue I've seen every now and then is that if I cancel (Ctrl-C)
mvn while it's running the unit tests, the test process remains in the
background and the .lock file in the test repository stays active.
Thus all subsequent test runs will fail until the background process
is either killed or ends normally.
BR,
Jukka Zitting