-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Reactive Streams
-
None
FAILURE: java.lang.NullPointerException (java.lang.NullPointerException) java.lang.NullPointerException at com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup$RegisteredSocket.close(AsynchronousTlsChannelGroup.java:124) at com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannel.close(AsynchronousTlsChannel.java:414) at com.mongodb.internal.connection.AsynchronousChannelStream.closeChannel(AsynchronousChannelStream.java:173) at com.mongodb.internal.connection.AsynchronousChannelStream.close(AsynchronousChannelStream.java:164) at com.mongodb.internal.connection.InternalStreamConnection.close(InternalStreamConnection.java:247) at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.close(DefaultServerMonitor.java:134) at com.mongodb.internal.connection.DefaultServerMonitor.close(DefaultServerMonitor.java:116) at com.mongodb.internal.connection.DefaultServer.close(DefaultServer.java:202) at com.mongodb.internal.connection.AbstractMultiServerCluster.close(AbstractMultiServerCluster.java:119) at com.mongodb.internal.async.client.AsyncMongoClientImpl.close(AsyncMongoClientImpl.java:120) at com.mongodb.reactivestreams.client.internal.MongoClientImpl.close(MongoClientImpl.java:65) at com.mongodb.reactivestreams.client.SmokeTestSpecification.should accept custom MongoDriverInformation(SmokeTestSpecification.groovy:205) system-out: 12:45:00.499 [Test worker] INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27017, localhost:27018, localhost:27019], mode=MULTIPLE, requiredClusterType=REPLICA_SET, serverSelectionTimeout='30000 ms', requiredReplicaSetName='repl0'} 12:45:00.499 [Test worker] INFO org.mongodb.driver.cluster - Adding discovered server localhost:27017 to client view of cluster 12:45:00.504 [Test worker] INFO org.mongodb.driver.cluster - Adding discovered server localhost:27018 to client view of cluster 12:45:00.506 [Test worker] INFO org.mongodb.driver.cluster - Adding discovered server localhost:27019 to client view of cluster 12:45:00.512 [async-channel-group-956-selector] ERROR org.mongodb.driver.connection.tls - error in selector loop java.nio.channels.ClosedChannelException: null at java.nio.channels.spi.AbstractSelectableChannel.register(AbstractSelectableChannel.java:197) ~[na:1.8.0_162] at com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup.registerPendingSockets(AsynchronousTlsChannelGroup.java:642) [mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup.loop(AsynchronousTlsChannelGroup.java:417) [mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup.access$300(AsynchronousTlsChannelGroup.java:67) [mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup$2.run(AsynchronousTlsChannelGroup.java:188) [mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_162] 12:45:00.621 [Test worker] INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27017, localhost:27018, localhost:27019], mode=MULTIPLE, requiredClusterType=REPLICA_SET, serverSelectionTimeout='30000 ms', requiredReplicaSetName='repl0'} 12:45:00.621 [Test worker] INFO org.mongodb.driver.cluster - Adding discovered server localhost:27017 to client view of cluster 12:45:00.621 [Test worker] INFO org.mongodb.driver.cluster - Adding discovered server localhost:27018 to client view of cluster 12:45:00.622 [Test worker] INFO org.mongodb.driver.cluster - Adding discovered server localhost:27019 to client view of cluster 12:45:00.625 [async-channel-group-957-selector] ERROR org.mongodb.driver.connection.tls - error in selector loop java.nio.channels.ClosedChannelException: null at java.nio.channels.spi.AbstractSelectableChannel.register(AbstractSelectableChannel.java:197) ~[na:1.8.0_162] at com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup.registerPendingSockets(AsynchronousTlsChannelGroup.java:642) [mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup.loop(AsynchronousTlsChannelGroup.java:417) [mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup.access$300(AsynchronousTlsChannelGroup.java:67) [mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup$2.run(AsynchronousTlsChannelGroup.java:188) [mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_162] 12:45:00.634 [cluster-ClusterId{value='5ebfe04c3a0b5d0a5a911627', description='null'}-localhost:27019] INFO org.mongodb.driver.cluster - Exception in monitor thread while connecting to server localhost:27019 com.mongodb.MongoException: java.lang.NullPointerException at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:156) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.lookupServerDescription(DefaultServerMonitor.java:181) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:143) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_162] Caused by: java.lang.NullPointerException: null at com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannelGroup$RegisteredSocket.close(AsynchronousTlsChannelGroup.java:124) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.tlschannel.async.AsynchronousTlsChannel.close(AsynchronousTlsChannel.java:414) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.AsynchronousChannelStream.closeChannel(AsynchronousChannelStream.java:173) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.AsynchronousChannelStream.close(AsynchronousChannelStream.java:164) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.InternalStreamConnection.close(InternalStreamConnection.java:247) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.InternalStreamConnection.sendMessage(InternalStreamConnection.java:500) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.InternalStreamConnection.sendCommandMessage(InternalStreamConnection.java:332) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:277) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.CommandHelper.sendAndReceive(CommandHelper.java:83) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.CommandHelper.executeCommand(CommandHelper.java:33) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.InternalStreamConnectionInitializer.initializeConnectionDescription(InternalStreamConnectionInitializer.java:107) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.InternalStreamConnectionInitializer.initialize(InternalStreamConnectionInitializer.java:62) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:145) ~[mongodb-driver-core-4.1.0-SNAPSHOT.jar:na] ... 3 common frames omitted
- duplicates
-
JAVA-3714 AsynchronousTlsChannelGroup.RegisteredSocket can cause an NPE
- Closed