而我正在使用spring-boot-starter-data-mongodb。我总是得到一个超时异常。日志详情如下:
有人能告诉我为什么我总是超时吗?非常感谢。
2019-04-01 19:08:50.255 INFO 8336 --- [168.0.101:27017] org.mongodb.driver.cluster : Exception in monitor thread while connecting to server 192.168.0.101:27017
com.mongodb.MongoSocketReadTimeoutException
我无法使用MongoDb客户端连接到azure上的DocumentDb主机,我使用了的链接
然后来自mongochef客户端的错误消息:
Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}.
Client view of cluster state is
{type=UNKNOWN, servers=[
{address=tatico-nosql.documents.azure.com:10250
在我的日志中,我可以找到两个SocketTimeoutException。
1. SocketTimeoutException:连接超时
Caused by: java.net.SocketTimeoutException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at java.net.AbstractPl
在我的空手道框架中,我需要打开浏览器并点击url。对于我来说,我只能看到空白窗口,在日志中,我得到了以下错误。
14:17:05.481 [ForkJoinPool-1-worker-3] DEBUG com.intuit.karate.shell.Command - found / verified free local port: 54724
14:17:05.483 [ForkJoinPool-1-worker-3] WARN c.intuit.karate.driver.DriverOptions - preferred port 9515 not available, will us
我在集成测试中使用wiremock来模拟外部操作员响应:
@ClassRule
public static WireMockClassRule zainWireMockStatic = new WireMockClassRule(9900);
并获得此异常
requesting to java.net.SocketTimeoutException: connect timed out timed out
这是我的wiremock
private static void wireMockZainUnSubscriptionRequest() {
zainWireMockStat
我需要使用Java获取Zoho邮件。我在Zoho邮件设置中启用了imaps,但是在下面的代码中我得到了"javax.mail.MessagingException: Connect“错误。
public class Mail {
public static void main(String[] args) {
try {
final Properties props = new Properties();
MailSSLSocketFactory sf = new MailSSLSocketFactory();
我正在运行多个工作线程(大约10个)来访问redis Q中的数据。
对于I是对Jedis客户端使用无限超时。
Jedis jedis = pool.getResource();
jedis.getClient().setTimeoutInfinite();
尽管如此,我仍然得到错误“无法从池中获取资源”。堆栈跟踪如下所示。
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(
我正在使用带有mysql的hive-0.9.0作为转储。我得到一个例外,因为:
hive> show tables;
FAILED: Error in metadata: org.apache.thrift.transport.TTransportException:java.net.SocketTimeoutException:Read timed out
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
Error in metadata: MetaExceptio
我有一个EMR无服务器应用程序,不能连接到另一个地区的S3桶。有解决办法吗?可能是在提交新作业时在“作业参数”或“星火参数”中设置的参数。错误是:
ExitCode: 1. Last few exceptions: Caused by: java.net.SocketTimeoutException: connect timed out Caused by: com.amazon.ws.emr.hadoop.fs.shaded.org.apache.http.conn.ConnectTimeoutException
我有一个java程序,它使用google矩阵距离API计算两个位置之间的距离和旅行时间。当我运行我的程序时,一切都很好,但是过了一段时间,我得到了这个错误:
java.net.SocketTimeoutException: connect timed out
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.Abstra
当我调用rest端点(Rest模板http客户端)“myservice.com/rest/api/”时,我得到了以下错误,有时.What可能是导致此错误的原因?这是客户端还是服务器错误?
org.springframework.web.client.ResourceAccessException: I/O error on POST request for "myservice..com/rest/api/": read timed out;
exception is java.net.SocketTimeoutException: read timed out
我正在安装Android
Windows 7来自Appcelerator Studio -> -> Window -> Studio -> Platform -> Android ->安装SDK.(按钮)。
下载SDK和Android系统映像数小时后,出现此错误。
Error encountered during update
java.net.SocketTimeoutException: Read timed out
java.net.SocketTimeoutException: Read timed out
Read timed out
我把mongodb.properties传递给
connector.name=mongodb mongodb.seeds=127.0.0.1:27017 mongodb.credentials=username:password@database
但是,在传递查询后运行目录时,它将错误地显示为
Query 20210312_110147_00003_zxyd4 failed: com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches com.mongod
我正在尝试从我的本地运行一个星火流应用程序,以连接到一个S3桶,并遇到一个SocketTimeoutException。这是从桶中读取的代码:
val sc: SparkContext = createSparkContext(scName)
val hadoopConf=sc.hadoopConfiguration
hadoopConf.set("fs.s3a.impl", "org.apache.hadoop.fs.s3a.S3AFileSystem")
val ssc = new StreamingContext(sc, Seconds(time))
va
我正在尝试通过typesafe激活器ui创建示例Play Framework项目。根据https://typesafe.com/activator/docs的说法,我做了以下工作:
使用以下命令创建了c:\users\myuser\.activator\activatorconfig.txt:
# Proxy settings
-Dhttp.proxyHost=proxyname
-Dhttp.proxyPort=80
-Dhttps.proxyHost=proxyname
-Dhttps.proxyPort=80
# Here we configure the hosts which sho