The same errors occur in the Jenkins Build: https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.junit.teleporter/3190/testReport/.
> Am 15.05.2016 um 16:42 schrieb Konrad Windszus <[email protected]>: > > I get the following errors after the fixes from > https://issues.apache.org/jira/browse/SLING-5715: > > waitForStatusWithLongTimeout(org.apache.sling.testing.teleporter.client.TeleporterHttpClientTest) > Time elapsed: 0.026 sec <<< ERROR! > java.lang.NoClassDefFoundError: Could not initialize class > java.net.ProxySelector > at > sun.net.www.protocol.http.HttpURLConnection$5.run(HttpURLConnection.java:919) > at > sun.net.www.protocol.http.HttpURLConnection$5.run(HttpURLConnection.java:917) > at java.security.AccessController.doPrivileged(Native Method) > at > sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:915) > at > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:851) > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301) > at > org.apache.sling.testing.teleporter.client.TeleporterHttpClient.cleanup(TeleporterHttpClient.java:206) > at > org.apache.sling.testing.teleporter.client.TeleporterHttpClient.getHttpGetStatus(TeleporterHttpClient.java:144) > at > org.apache.sling.testing.teleporter.client.TeleporterHttpClientTest.waitForStatusWithLongTimeout(TeleporterHttpClientTest.java:61) > > repeatedGetStatus(org.apache.sling.testing.teleporter.client.TeleporterHttpClientTest) > Time elapsed: 0.106 sec <<< ERROR! > java.lang.ExceptionInInitializerError: null > at > sun.nio.fs.DefaultFileSystemProvider.create(DefaultFileSystemProvider.java:67) > at > java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider(FileSystems.java:108) > at > java.nio.file.FileSystems$DefaultFileSystemHolder.access$000(FileSystems.java:89) > at > java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:98) > at > java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:96) > at java.security.AccessController.doPrivileged(Native Method) > at > java.nio.file.FileSystems$DefaultFileSystemHolder.defaultFileSystem(FileSystems.java:95) > at > java.nio.file.FileSystems$DefaultFileSystemHolder.<clinit>(FileSystems.java:90) > at java.nio.file.FileSystems.getDefault(FileSystems.java:176) > at sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:483) > at sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:478) > at java.security.AccessController.doPrivileged(Native Method) > at sun.util.calendar.ZoneInfoFile.<clinit>(ZoneInfoFile.java:477) > at sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:663) > at java.util.TimeZone.getTimeZone(TimeZone.java:566) > at java.util.TimeZone.getTimeZone(TimeZone.java:562) > at > com.fasterxml.jackson.databind.util.StdDateFormat.<clinit>(StdDateFormat.java:68) > at > com.fasterxml.jackson.databind.ObjectMapper.<clinit>(ObjectMapper.java:276) > at com.github.tomakehurst.wiremock.common.Json.write(Json.java:41) > at > com.github.tomakehurst.wiremock.client.HttpAdminClient.addStubMapping(HttpAdminClient.java:67) > at > com.github.tomakehurst.wiremock.client.WireMock.register(WireMock.java:138) > at > com.github.tomakehurst.wiremock.client.WireMock.register(WireMock.java:134) > at > com.github.tomakehurst.wiremock.client.WireMock.givenThat(WireMock.java:65) > at > org.apache.sling.testing.teleporter.client.TeleporterHttpClientTest.repeatedGetStatus(TeleporterHttpClientTest.java:85) > > waitForStatusWithShortTimeout(org.apache.sling.testing.teleporter.client.TeleporterHttpClientTest) > Time elapsed: 0.003 sec <<< ERROR! > java.lang.NoClassDefFoundError: Could not initialize class > java.net.ProxySelector > at > sun.net.www.protocol.http.HttpURLConnection$5.run(HttpURLConnection.java:919) > at > sun.net.www.protocol.http.HttpURLConnection$5.run(HttpURLConnection.java:917) > at java.security.AccessController.doPrivileged(Native Method) > at > sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:915) > at > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:851) > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301) > at > org.apache.sling.testing.teleporter.client.TeleporterHttpClient.cleanup(TeleporterHttpClient.java:206) > at > org.apache.sling.testing.teleporter.client.TeleporterHttpClient.getHttpGetStatus(TeleporterHttpClient.java:144) > at > org.apache.sling.testing.teleporter.client.TeleporterHttpClientTest.waitForStatusWithShortTimeout(TeleporterHttpClientTest.java:72) > > Exception in thread "Thread-0" java.lang.NoClassDefFoundError: Could not > initialize class java.util.logging.LogManager > at java.util.logging.LogManager$Cleaner.run(LogManager.java:245) > > Results : > > Tests in error: > TeleporterHttpClientTest.repeatedGetStatus:85 » ExceptionInInitializer > TeleporterHttpClientTest.waitForStatusWithLongTimeout:61 » NoClassDefFound > Cou... > TeleporterHttpClientTest.waitForStatusWithShortTimeout:72 » NoClassDefFound > Co... > > Tests run: 18, Failures: 0, Errors: 3, Skipped: 0 > > > This happens in the following environment: > > Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; > 2014-08-11T22:58:10+02:00) > Maven home: /usr/local/Cellar/maven/3.2.3/libexec > Java version: 1.7.0_75, vendor: Oracle Corporation > Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "mac os x", version: "10.11.4", arch: "x86_64", family: "mac" > > In rev. 1743378, everything works as expected. > > The 2nd error is probably due to the maximum number of open file handles > being exceeded, but even after ignoring repeatedGetStatus() I still get the > error "java.lang.NoClassDefFoundError: Could not initialize class > java.net.ProxySelector". > > If the same unit test is being executed from my IDE everything works as > expected. > So probably this is a classloading issue and Exception in thread "Thread-0" > java.lang.NoClassDefFoundError: Could not initialize class > java.util.logging.LogManager > at java.util.logging.LogManager$Cleaner.run(LogManager.java:245) > may be related. Not sure though who is actually using > java.util.logging.LogManager... > > Does someone else have this problem? > Thanks, > Konrad
