Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.108 sec -
in o
rg.orekit.propagation.semianalytical.dsst.utilities.NewcombOperatorTest
Running org.orekit.propagation.SpacecraftStateTest
Tests run: 8, Failures: 2, Errors: 1, Skipped: 0, Time elapsed: 3.681 sec
<<< FA
ILURE! - in org.orekit.propagation.SpacecraftStateTest
testSerialization(org.orekit.propagation.SpacecraftStateTest) Time
elapsed: 0.1
95 sec <<< FAILURE!
java.lang.AssertionError: null
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertTrue(Assert.java:52)
at
org.orekit.propagation.SpacecraftStateTest.testSerialization(Spacecra
ftStateTest.java:299)
testAdditionalStates(org.orekit.propagation.SpacecraftStateTest) Time
elapsed:
0.192 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<test-[2]> but was:<test-[1]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at
org.orekit.propagation.SpacecraftStateTest.testAdditionalStates(Space
craftStateTest.java:248)
testDateConsistencyClose(org.orekit.propagation.SpacecraftStateTest) Time
elaps
ed: 0.206 sec <<< ERROR!
org.orekit.errors.OrekitException$1: orbit date (2004-01-01T00:00:01.000)
does n
ot match attitude date (2004-01-01T00:00:01.000)
at
org.orekit.errors.OrekitException.createIllegalArgumentException(Orek
itException.java:176)
at
org.orekit.propagation.SpacecraftState.checkConsistency(SpacecraftSta
te.java:238)
at
org.orekit.propagation.SpacecraftState.<init>(SpacecraftState.java:19
0)
at
org.orekit.propagation.SpacecraftState.<init>(SpacecraftState.java:11
1)
at
org.orekit.propagation.SpacecraftStateTest.testDateConsistencyClose(S
pacecraftStateTest.java:185)
Running org.orekit.time.AbsoluteDateTest
Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.455 sec
- in
org.orekit.time.AbsoluteDateTest
Running org.orekit.time.DateComponentsTest
Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.478 sec
- in
org.orekit.time.DateComponentsTest
Running org.orekit.time.DateTimeComponentsTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec -
in o
rg.orekit.time.DateTimeComponentsTest
Running org.orekit.time.GalileoScaleTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec -
in o
rg.orekit.time.GalileoScaleTest
Running org.orekit.time.GMSTScaleTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.257 sec -
in o
rg.orekit.time.GMSTScaleTest
Running org.orekit.time.GPSScaleTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec -
in o
rg.orekit.time.GPSScaleTest
Running org.orekit.time.MonthTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in
org.
orekit.time.MonthTest
Running org.orekit.time.TAIScaleTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in
org.o
rekit.time.TAIScaleTest
Running org.orekit.time.TCBScaleTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec -
in o
rg.orekit.time.TCBScaleTest
Running org.orekit.time.TCGScaleTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec -
in o
rg.orekit.time.TCGScaleTest
Running org.orekit.time.TDBScaleTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec -
in o
rg.orekit.time.TDBScaleTest
Running org.orekit.time.TimeComponentsTest
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
- in
org.orekit.time.TimeComponentsTest
Running org.orekit.time.TTScaleTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec -
in o
rg.orekit.time.TTScaleTest
Running org.orekit.time.UT1ScaleTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.688 sec -
in o
rg.orekit.time.UT1ScaleTest
Running org.orekit.time.UTCScaleTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.37 sec -
in o
rg.orekit.time.UTCScaleTest
Running org.orekit.time.UTCTAIHistoryFilesLoaderCompressedDataTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in
org.o
rekit.time.UTCTAIHistoryFilesLoaderCompressedDataTest
Running org.orekit.time.UTCTAIHistoryFilesLoaderNoDataTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in
org.o
rekit.time.UTCTAIHistoryFilesLoaderNoDataTest
Running org.orekit.time.UTCTAIHistoryFilesLoaderRegularDataTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec -
in o
rg.orekit.time.UTCTAIHistoryFilesLoaderRegularDataTest
Running org.orekit.utils.AngularCoordinatesTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.107 sec
- in
org.orekit.utils.AngularCoordinatesTest
Running org.orekit.utils.ElevationMaskTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in
org.o
rekit.utils.ElevationMaskTest
Running org.orekit.utils.FieldAngularCoordinatesTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.728 sec
- in
org.orekit.utils.FieldAngularCoordinatesTest
Running org.orekit.utils.GenericTimeStampedCacheTest
Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.99 sec -
in o
rg.orekit.utils.GenericTimeStampedCacheTest
Running org.orekit.utils.IERSConventionsTest
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.186 sec
- in
org.orekit.utils.IERSConventionsTest
Running org.orekit.utils.ImmutableTimeStampedCacheTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec -
in o
rg.orekit.utils.ImmutableTimeStampedCacheTest
Running org.orekit.utils.OrekitConfigurationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in
org.o
rekit.utils.OrekitConfigurationTest
Running org.orekit.utils.PVCoordinatesDSTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.515 sec -
in o
rg.orekit.utils.PVCoordinatesDSTest
Running org.orekit.utils.PVCoordinatesTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.121 sec -
in o
rg.orekit.utils.PVCoordinatesTest
Results :
Failed tests:
CelestialBodyFactoryTest.multithreadTest:101->checkMultiThread:135 Not
all thr
eads finished -> possible deadlock
OceanTidesTest.testDefaultInterpolation:87 expected:<0.0> but
was:<4.941218574
8251906E-6>
SpacecraftStateTest.testSerialization:299 null
SpacecraftStateTest.testAdditionalStates:248 expected:<test-[2]> but
was:<test
-[1]>
Tests in error:
SpacecraftStateTest.testDateConsistencyClose:185 » orbit date
(2004-01-01T00:
...
Tests run: 1037, Failures: 4, Errors: 1, Skipped: 4
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 12:56.353s
[INFO] Finished at: Fri Aug 15 16:18:46 BST 2014
[INFO] Final Memory: 13M/75M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.
16:test (default-test) on project orekit: There are test failures.
[ERROR]
[ERROR] Please refer to
C:\Users\User\Documents\Orekit\target\surefire-reports f
or the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal o
rg.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on
projec
t orekit: There are test failures.
Please refer to C:\Users\User\Documents\Orekit\target\surefire-reports for
the i
ndividual test results.
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:213)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test
failures
.
Please refer to C:\Users\User\Documents\Orekit\target\surefire-reports for
the i
ndividual test results.
at
org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(Suref
ireHelper.java:82)
at
org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(Surefir
ePlugin.java:190)
at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPre
conditionsChecked(AbstractSurefireMojo.java:852)
at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(Abstrac
tSurefireMojo.java:720)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
... 19 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
Thanks you once again for your previous advice.
Regards,
Anees
On 13 August 2014 16:14, MAISONOBE Luc <luc.maisonobe@c-s.fr> wrote:
Hi Anees,
aneesahmad118@gmail.com a écrit :
Dear Sir/Madam
I am interested in using Orekit for orbit propagation, but have run into
some
issues in trying to build it with Maven. I have no previous experience
with
Maven and very little experience with Java, so have no idea how to go
about
troubleshooting this, and was hoping you could give me some advice to
help me
work out where the issue could be coming from.
I am using Java Development Kit 8 update 11 and Maven version 3.0.5. I
have
downloaded Orekit version 6.1 from the Orekit website and extracted the
files
to the directory C:Users\User\Documents\Orekit.
I initially contacted Luc Maisonobe, who suggested that the issue could be
coming from the fact I was using an older version of the Jacoco plugin.
On his
advice, I changed the relevant line in the pom.xml file from
<orekit.jacoco-
maven-plugin.version>0.6.3.201306030806</orekit.jacoco-
maven-plugin.version>
to <orekit.jacoco-maven-plugin.version>0.7.1.201405082137</orekit.jacoco-
maven-plugin.version>. After attempting to build the package again, I
encountered what seems to be a different error. The command window output
is
given below.
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
- in
o
rg.orekit.frames.LocalOrbitalFrameTest
Running org.orekit.frames.MODProviderTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125
sec -
in
org.orekit.frames.MODProviderTest
Running org.orekit.frames.OrphanFrameTest
[snip]
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.11 sec
- in
or
g.orekit.propagation.semianalytical.dsst.utilities.NewcombOperatorTest
Running org.orekit.propagation.SpacecraftStateTest
Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.166 sec
<<<
FA
ILURE! - in org.orekit.propagation.SpacecraftStateTest
testAdditionalStates(org.orekit.propagation.SpacecraftStateTest) Time
elapsed:
0.201 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<test-[2]> but was:<test-[1]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at
org.orekit.propagation.SpacecraftStateTest.testAdditionalStates(Space
craftStateTest.java:210)
[snip]
Any advice you could provide on how to resolve this issue would be much
appreciated.
This is indeed a bug in the test itself, which is not robust enough. This
bug was detected a week ago and fixed in the development version of Orekit.
The problem is that this test set up two additional states (test-1 and
test-2) which are stored in a map, and then checks that some
incompatibility is properly detected and an appropriate exception is
thrown. However, when checking the resulting exception, the test assumes
the first additional state test-1 will be checked first. This is not robust
because a map does not ensure the order of the contained elements is
preserved, so some times the second additional state test-2 is checked
first and the exception refers to it.
One nasty problem here is that the test failing for this reason depends on
the JVM you use.
You can change the
src/test/java/org/orekit/propagation/SpacecraftStateTest.java
file as show here in order to have a more robust test that will not fail
randomly.
<https://www.orekit.org/forge/projects/orekit/repository/revisions/
3796388da3ac8827473aadbd4e329630fe91722f/diff/src/test/java/
org/orekit/propagation/SpacecraftStateTest.java>
I am sorry for this, its a bug.
best regards,
Luc
Regards,
Anees Ahmad
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.