jersey icon indicating copy to clipboard operation
jersey copied to clipboard

jersey-core-server tests failing on Ubuntu 16.04

Open seth-priya opened this issue 7 years ago • 2 comments

Hi,

I am getting the following error while running mvn install on Ubuntu 16.04/x86_64

Failed tests: AggregatingTrimmerTest.simpleCheck:71->AbstractNanosReservoirTest.checkInNanos:65->AbstractNanosReservoirTest.checkInNanos:88 Total count does not match! expected:<2> but was:<1> AggregatingTrimmerTest.testAggregatingTrimmer:91->AbstractNanosReservoirTest.checkInNanos:65->AbstractNanosReservoirTest.checkInNanos:88 Total count does not match! expected:<2> but was:<1> AggregatingTrimmerTest.testAggregatingTrimmerDoubleValues:105->AbstractNanosReservoirTest.checkInNanos:65->AbstractNanosReservoirTest.checkInNanos:92 Expected interval does not match! expected:<12> but was:<16> AggregatingTrimmerTest.testAggregatingTrimmerMultipleDoubleValuesInOneChunk:127->AbstractNanosReservoirTest.checkInNanos:65->AbstractNanosReservoirTest.checkInNanos:92 Expected interval does not match! expected:<16> but was:<20> AggregatingTrimmerTest.trimSlidingWindowBeforeAggregatedWindow:81->AbstractNanosReservoirTest.checkInNanos:65->AbstractNanosReservoirTest.checkInNanos:88 Total count does not match! expected:<2> but was:<1> Tests in error: ResourceConfigTest.initializationError ? Method testInvalidateResourceFinders... org.glassfish.jersey.server.internal.scanning.PackageNamesScannerTest.initializationError(org.glassfish.jersey.server.internal.scanning.PackageNamesScannerTest) Run 1: PackageNamesScannerTest.initializationError ? Method testInputStreamClosedAft... Run 2: PackageNamesScannerTest.initializationError ? Method testInputStreamClosedAft... Run 3: PackageNamesScannerTest.initializationError ? Method testInputStreamClosedAft...

Tests run: 898, Failures: 5, Errors: 2, Skipped: 12

System and environment details

uname -a

Linux 2e964c1cb33a 4.4.0-22-generic #39-Ubuntu SMP Thu May 5 16:53:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

java -version

openjdk version "1.8.0_151" OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12) OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)

mvn -version Apache Maven 3.3.9 Maven home: /usr/share/maven

Steps used: git clone https://github.com/jersey/jersey cd jersey mvn install

Any help would be greatly appreciated, thanks!

Regards, Priya

seth-priya avatar Jan 29 '18 10:01 seth-priya

Has anyone else run into a similar issue before?

seth-priya avatar Feb 02 '18 03:02 seth-priya

I found I was able to fix this by changing jmockit.version to 1.24 in the parent pom.xml

Cousjava avatar Feb 22 '18 14:02 Cousjava