Answered step by step
Verified Expert Solution
Question
1 Approved Answer
X RUNRun docker run - - network se - methods - - name semcontainer se _ methods Feb 2 5 , 2 0 2 4
X RUNRun docker run network semethods name semcontainer semethods
Feb :: AM com.mongodb.diagnostics.loggingJULLogger log
INFO: Cluster created with settings hostsmongodbserver: modeSINGLE, requiredClusterTypeUNKNOWN, serverSelectionTimeout ms maxWaitQueueSize
Feb :: AM com.mongodb.diagnostics.loggingJULLogger log
INFO: Exception in monitor thread while connecting to server mongodbserver:
com.mongodb.MongoSocketOpenException: Exception opening socket
at com.mongodb.connection.SocketStream.openSocketStreamjava:
at com.mongodb.connection.InternalStreamConnection.openInternalStreamConnectionjava:
at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.runDefaultServerMonitorjava:
at java.basejavalang.Thread.runThreadjava:
Caused by: java.net.ConnectException: Connection refused
at java.basesunnio.chNet.pollConnectNative Method
at java.basesunnio.chNet.pollConnectNowNetjava:
at java.basesunnio.chNioSocketImpl.timedFinishConnectNioSocketImpljava:
at java.basesunnio.chNioSocketImpl.connectNioSocketImpljava:
at java.basejavanet.SocksSocketImpl.connectSocksSocketImpljava:
at java.basejavanet.Socket.connectSocketjava:
at com.mongodb.connection.SocketStreamHelper.initializeSocketStreamHelperjava:
at com.mongodb.connection.SocketStream.openSocketStreamjava:
more
Feb :: AM com.mongodb.diagnostics.loggingJULLogger log
INFO: Cluster description not yet available. Waiting for ms before timing out
Error: Exception in thread "main" com.mongodb.MongoTimeoutException: Timed out after ms while waiting to connect. Client view of cluster state is typeUNKNOWN, serversaddressmongodbserver: typeUNKNOWN, stateCONNECTING, exceptioncommongodb.MongoSocketOpenException: Exception opening socket caused by javanet.ConnectException: Connection refused
at com.mongodb.connection.BaseCluster.getDescriptionBaseClusterjava:
at com.mongodb.Mongo.getConnectedClusterDescriptionMongojava:
at com.mongodb.Mongo.createClientSessionMongojava:
at com.mongodb.Mongo$getClientSessionMongojava:
at com.mongodb.Mongo$executeMongojava:
at com.mongodb.MongoCollectionImpl.executeSingleWriteRequestMongoCollectionImpljava:
at com.mongodb.MongoCollectionImpl.executeInsertOneMongoCollectionImpljava:
at com.mongodb.MongoCollectionImpl.insertOneMongoCollectionImpljava:
at com.mongodb.MongoCollectionImpl.insertOneMongoCollectionImpljava:
at com.napier.sem.App.mainAppjava:
Error: Process completed with exit code
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started