GithubHelp home page GithubHelp logo

JDK 9 Compatibility about bt HOT 13 OPEN

atomashpolskiy avatar atomashpolskiy commented on May 22, 2024
JDK 9 Compatibility

from bt.

Comments (13)

atomashpolskiy avatar atomashpolskiy commented on May 22, 2024

OS X El Capitan 10.11.2 x64

java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

Building with mvn install (source/target: 1.8)

SUCCESS

Building with mvn install (source/target: 1.9)

FAILURE on 08/08
SUCCESS on 08/09

Still don't know why it was failing...

Errors

  1. Reproduced 3 times in a row on 08/08; can't reproduce on 08/09
testReader_timedRead_ExcessiveDataRead(bt.net.ByteChannelReader_TimedReadTest)  Time elapsed: 0.031 sec  <<< ERROR!
java.lang.RuntimeException: Expected string containing text: 'More than 30 bytes received: 40', but actual was: 'Less than 30 bytes received: 10'
	at bt.net.ByteChannelReader.read(ByteChannelReader.java:152)
	at bt.net.ByteChannelReader_TimedReadTest.lambda$testReader_timedRead_ExcessiveDataRead$1(ByteChannelReader_TimedReadTest.java:89)
  1. One-off error in DHT
testStartup(lbms.plugins.mldht.kad.DHTLifeCycleTest)  Time elapsed: 0.541 sec  <<< ERROR!
java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999)
	at lbms.plugins.mldht.kad.DHTLifeCycleTest.testStartup(DHTLifeCycleTest.java:186)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: java.util.concurrent.TimeoutException
	at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1886)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2021)
	at lbms.plugins.mldht.kad.DHTLifeCycleTest.lambda$testStartup$0(DHTLifeCycleTest.java:154)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:299)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.base/java.lang.Thread.run(Thread.java:844)

Other problems

  1. maven-bundle-plugin error (does not affect the build)
[INFO] --- maven-bundle-plugin:3.2.0:manifest (bundle-manifest) @ bt-core ---
java.lang.NullPointerException
	at aQute.bnd.header.OSGiHeader.quote(OSGiHeader.java:153)
	at aQute.bnd.header.Attrs.append(Attrs.java:424)
	at aQute.bnd.header.Attrs.append(Attrs.java:404)
	at aQute.bnd.header.Parameters.append(Parameters.java:175)
	at aQute.bnd.header.Parameters.toString(Parameters.java:164)
	at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:789)
	at org.apache.felix.bundleplugin.ManifestPlugin.getAnalyzer(ManifestPlugin.java:261)
	at org.apache.felix.bundleplugin.ManifestPlugin.execute(ManifestPlugin.java:89)
	at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:368)
	at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:359)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
	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.buildProject(LifecycleModuleBuilder.java:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Downloading with CLI

SUCCESS

from bt.

atomashpolskiy avatar atomashpolskiy commented on May 22, 2024

Both under jdk9 and more recent versions of jdk8 (e.g. 1.8.0_144) I'm getting a warning in build logs for bt-tests:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.mockito.cglib.core.ReflectUtils$2 (file:/Users/sadpotato/.m2/repository/org/mockito/mockito-all/1.10.19/mockito-all-1.10.19.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.mockito.cglib.core.ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

from bt.

atomashpolskiy avatar atomashpolskiy commented on May 22, 2024

(Travis) Ubuntu 14.04.5 LTS

java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

Building with mvn install (source/target: 1.9)

SUCCESS

Errors (programming; fixed)

  1. Reproduced 2 times in a row
Running bt.net.PeerConnectionTest
Exception in thread "Thread-0" java.lang.RuntimeException: Unexpected I/O error
	at bt.net.PeerConnectionTest$Server.run(PeerConnectionTest.java:118)
	at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.nio.channels.ClosedChannelException
	at java.base/sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:237)
	at bt.net.PeerConnectionTest$Server.run(PeerConnectionTest.java:115)
	... 1 more
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.042 sec <<< FAILURE! - in bt.net.PeerConnectionTest
testConnection(bt.net.PeerConnectionTest)  Time elapsed: 0.024 sec  <<< ERROR!
java.lang.NullPointerException: null
	at bt.net.PeerConnectionTest$Server.writeMessage(PeerConnectionTest.java:127)
	at bt.net.PeerConnectionTest.testConnection(PeerConnectionTest.java:66)

UPDATE 08/09: There was a race condition in this test.

Other problems

  1. maven-bundle-plugin error (does not affect the build)
[INFO] --- maven-bundle-plugin:3.2.0:manifest (bundle-manifest) @ bt-core ---
java.lang.NullPointerException
	at aQute.bnd.header.OSGiHeader.quote(OSGiHeader.java:150)
	at aQute.bnd.header.Attrs.append(Attrs.java:416)
	at aQute.bnd.header.Attrs.append(Attrs.java:397)
	at aQute.bnd.header.Parameters.append(Parameters.java:175)
	at aQute.bnd.header.Parameters.toString(Parameters.java:164)
	at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:788)
	at org.apache.felix.bundleplugin.ManifestPlugin.getAnalyzer(ManifestPlugin.java:298)
	at org.apache.felix.bundleplugin.ManifestPlugin.execute(ManifestPlugin.java:100)
	at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:387)
	at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:378)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

from bt.

atomashpolskiy avatar atomashpolskiy commented on May 22, 2024

Windows 8.1 x64

java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

Building with mvn install (source/target: 1.9)

SUCCESS

Downloading with CLI

SUCCESS

Problems

  1. Warnings in stdout
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$Ref
lectUtils$1 (file:/C:/Users/sadpotato/git-workspace/bt/bt-cli/target/bt-launcher
.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,in
t,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.
internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflect
ive access operations
WARNING: All illegal access operations will be denied in a future release
  1. Errors on shutdown (probably unrelated to JDK 9, but rather Windows-specific)

Core:

bt.BtException: Failed to execute shutdown hook: : Closing data descriptor for t
orrent ID: e628d1dbd749ab89e6891285d76a56a051332488
        at bt.runtime.BtRuntime.lambda$runHooks$4(BtRuntime.java:241)
        at java.base/java.util.HashMap.forEach(HashMap.java:1340)
        at bt.runtime.BtRuntime.runHooks(BtRuntime.java:236)
        at bt.runtime.BtRuntime.shutdown(BtRuntime.java:203)
        at bt.cli.CliClient.lambda$resume$2(CliClient.java:188)
        at bt.DefaultClient.lambda$startAsync$0(DefaultClient.java:69)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executo
rs.java:514)
        at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java
:305)
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledF
utureTask.run(ScheduledThreadPoolExecutor.java:300)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo
lExecutor.java:1167)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo
olExecutor.java:641)
        at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.InterruptedException
        at java.base/java.util.concurrent.CompletableFuture.reportGet(Completabl
eFuture.java:385)
        at java.base/java.util.concurrent.CompletableFuture.get(CompletableFutur
e.java:2022)
        at bt.runtime.BtRuntime.lambda$runHooks$4(BtRuntime.java:239)
        ... 11 more
java.nio.file.AccessDeniedException: C:\Users\SADPOT~1\AppData\Local\Temp\unlink
-test8136975361916033620.tmp
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsE
xception.java:89)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsExc
eption.java:103)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsExc
eption.java:108)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFile
SystemProvider.java:270)
        at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSy
stemProvider.java:105)
        at java.base/java.nio.file.Files.delete(Files.java:1134)
        at the8472.utils.AnonAllocator.<clinit>(AnonAllocator.java:30)
        at lbms.plugins.mldht.kad.Node.saveTable(Node.java:885)
        at lbms.plugins.mldht.kad.DHT.stop(DHT.java:869)
        at bt.dht.MldhtService.shutdown(MldhtService.java:141)
        at bt.runtime.BtRuntime.lambda$toRunnable$6(BtRuntime.java:283)
        at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(Complet
ableFuture.java:1736)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo
lExecutor.java:1167)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo
olExecutor.java:641)
        at java.base/java.lang.Thread.run(Thread.java:844)
java.nio.file.AccessDeniedException: C:\Users\SADPOT~1\AppData\Local\Temp\unlink
-test8136975361916033620.tmp
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsE
xception.java:89)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsExc
eption.java:103)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsExc
eption.java:108)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFile
SystemProvider.java:270)
        at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Abstra
ctFileSystemProvider.java:110)
        at java.base/java.nio.file.Files.deleteIfExists(Files.java:1173)
        at the8472.utils.AnonAllocator.lambda$static$0(AnonAllocator.java:38)
        at java.base/java.lang.Thread.run(Thread.java:844)

DHT:

java.nio.file.AccessDeniedException: C:\Users\SADPOT~1\AppData\Local\Temp\unlink
-test9580353327874407651.tmp
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsE
xception.java:89)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsExc
eption.java:103)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsExc
eption.java:108)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFile
SystemProvider.java:270)
        at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSy
stemProvider.java:105)
        at java.base/java.nio.file.Files.delete(Files.java:1134)
        at the8472.utils.AnonAllocator.<clinit>(AnonAllocator.java:30)
        at lbms.plugins.mldht.kad.Node.saveTable(Node.java:885)
        at lbms.plugins.mldht.kad.DHT.stop(DHT.java:869)
        at bt.dht.MldhtService.shutdown(MldhtService.java:141)
        at bt.runtime.BtRuntime.lambda$toRunnable$6(BtRuntime.java:283)
        at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(Complet
ableFuture.java:1736)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo
lExecutor.java:1167)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo
olExecutor.java:641)
        at java.base/java.lang.Thread.run(Thread.java:844)
bt.BtException: Failed to execute shutdown hook: : Shutdown DHT facilities
        at bt.runtime.BtRuntime.lambda$runHooks$4(BtRuntime.java:241)
        at java.base/java.util.HashMap.forEach(HashMap.java:1340)
        at bt.runtime.BtRuntime.runHooks(BtRuntime.java:236)
        at bt.runtime.BtRuntime.shutdown(BtRuntime.java:203)
        at bt.runtime.BtRuntime$1.run(BtRuntime.java:82)
Caused by: java.util.concurrent.ExecutionException: java.lang.ExceptionInInitial
izerError
        at java.base/java.util.concurrent.CompletableFuture.reportGet(Completabl
eFuture.java:395)
        at java.base/java.util.concurrent.CompletableFuture.get(CompletableFutur
e.java:2022)
        at bt.runtime.BtRuntime.lambda$runHooks$4(BtRuntime.java:239)
        ... 4 more
Caused by: java.lang.ExceptionInInitializerError
        at lbms.plugins.mldht.kad.Node.saveTable(Node.java:885)
        at lbms.plugins.mldht.kad.DHT.stop(DHT.java:869)
        at bt.dht.MldhtService.shutdown(MldhtService.java:141)
        at bt.runtime.BtRuntime.lambda$toRunnable$6(BtRuntime.java:283)
        at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(Complet
ableFuture.java:1736)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoo
lExecutor.java:1167)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPo
olExecutor.java:641)
        at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.IllegalStateException: Shutdown in progress
        at java.base/java.lang.ApplicationShutdownHooks.add(ApplicationShutdownH
ooks.java:66)
        at java.base/java.lang.Runtime.addShutdownHook(Runtime.java:219)
        at the8472.utils.AnonAllocator.<clinit>(AnonAllocator.java:36)
        ... 8 more

from bt.

atomashpolskiy avatar atomashpolskiy commented on May 22, 2024

Just noticed that Java 9 build on Travis stopped working after introducing LSD. More specifically, the problem is with the bt.it.Swarm_LocalServiceDiscoveryIT test:

222144 [lsd-announcer] ERROR bt.peer.lan.LocalServiceDiscoveryService - Failed to announce to group: /239.192.152.143:6771
java.net.SocketException: Operation not permitted
	at java.base/sun.nio.ch.DatagramChannelImpl.send0(Native Method)
	at java.base/sun.nio.ch.DatagramChannelImpl.sendFromNativeBuffer(DatagramChannelImpl.java:522)
	at java.base/sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:484)
	at java.base/sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:463)
	at bt.peer.lan.AnnounceGroupChannel.send(AnnounceGroupChannel.java:88)
	at bt.peer.lan.LocalServiceDiscoveryAnnouncer.announce(LocalServiceDiscoveryAnnouncer.java:65)
	at bt.peer.lan.LocalServiceDiscoveryService.lambda$announce$3(LocalServiceDiscoveryService.java:183)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1380)
	at bt.peer.lan.LocalServiceDiscoveryService.announce(LocalServiceDiscoveryService.java:181)
	at bt.peer.lan.LocalServiceDiscoveryService.announce(LocalServiceDiscoveryService.java:113)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:300)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.base/java.lang.Thread.run(Thread.java:844)

This makes it impossible for leechers in the test swarm from discovering seeders and completing the torrent, so the test continues to work for several minutes without any output, until Travis decides to kill the build process.

from bt.

OlegAndreych avatar OlegAndreych commented on May 22, 2024

Should we check for JDK10 compatibility now?

from bt.

atomashpolskiy avatar atomashpolskiy commented on May 22, 2024

It won't hurt to do so, but it's not super urgent

from bt.

OlegAndreych avatar OlegAndreych commented on May 22, 2024

I've switched compiler.target and compiler.target to 10 and tried to build and run CLI application.
Everything seems good so far.
Java version:

openjdk version "10" 2018-03-20
OpenJDK Runtime Environment Zulu10.1+11 (build 10+46)
OpenJDK 64-Bit Server VM Zulu10.1+11 (build 10+46, mixed mode)

The only minor issue is a warnings about reflection in guice:

WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1                                                                                                
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Are any additional checks necessary/desirable?

from bt.

OlegAndreych avatar OlegAndreych commented on May 22, 2024

Oh, and OS is:

Description:    Manjaro Linux
Release:        17.1.10

from bt.

atomashpolskiy avatar atomashpolskiy commented on May 22, 2024

Thanks for taking the time to check it out! I've reported your results to Oracle QA guys. As for the additional checks, we'll also need to setup a JDK10 build in Travis whenever this option becomes available. If you have JDK11 (build 12) installed, you're welcome to try it out as well (seems like QA recently included it in the program plan).

from bt.

OlegAndreych avatar OlegAndreych commented on May 22, 2024

I've downloaded JDK 11:

OpenJDK version "11-ea" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11-ea+14)
OpenJDK 64-Bit Server VM 18.9 (build 11-ea+14, mixed mode)

Maven build with source and target = 11 is successful.
I was able to run the CLI app and download torrent using a JDK 11.
Tried to run the CLI app by a JDK 10 just to be sure, that class file version is 55.
Everything went as expected:

Error: LinkageError occurred while loading main class bt.cli.CliClient
        java.lang.UnsupportedClassVersionError: bt/cli/CliClient has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 54.0

I've used the same OS as at the last time.

from bt.

atomashpolskiy avatar atomashpolskiy commented on May 22, 2024

from bt.

atomashpolskiy avatar atomashpolskiy commented on May 22, 2024

Seems like LSD test stopped working in Travis JDK9 build

from bt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.