求大神这个问题怎么解决resolving timed out after 15000 milliseconds

安卓curl切换其他WIFI时报这个错误,哪位大神有思路,谢谢,着急 着急

1个回答

网络连接原因,没有连上。在15秒钟以后,连不上就会超时。连不上的原因包括dns解析失败、网络中断、信号不好等。

dnahz_mzqz
dnahz_mzqz 连接失败后,我等了一会,再继续发送请求还会失败,除非是杀掉应用,有什么好的解决方案吗,谢谢
3 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
解决selenium DIE Timed out after 30000ms问题
用selenium DIE脚本录制好之后回放,报错:rnrn[error] Timed out after 30000ms 或者报错找不到某元素rnrn该问题可能是速度控制条播放速度过快导致,调整播放速度至slow rnrn[img=https://img-bbs.csdn.net/upload/201405/27/1401185042_451869.jpg][/img]
一个关于 Connection timed out: connect 的问题,求大神指点
我用jdom解析php接口返回的xml,偶尔会报出一下错误,过会自己就好了,这个时间段不确定。错误如下:rn[code=java]ava.net.ConnectException: Connection timed out: connectrn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(Unknown Source)rn at java.net.PlainSocketImpl.connectToAddress(Unknown Source)rn at java.net.PlainSocketImpl.connect(Unknown Source)rn at java.net.Socket.connect(Unknown Source)rn at java.net.Socket.connect(Unknown Source)rn at sun.net.NetworkClient.doConnect(Unknown Source)rn at sun.net.www.http.HttpClient.openServer(Unknown Source)rn at sun.net.www.http.HttpClient.openServer(Unknown Source)rn at sun.net.www.http.HttpClient.(Unknown Source)rn at sun.net.www.http.HttpClient.New(Unknown Source)rn at sun.net.www.http.HttpClient.New(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)rn at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)rn at org.jdom.input.SAXBuilder.build(SAXBuilder.java:891)rn at com.mxx.service.MapXML.(MapXML.java:54)rn at com.mxx.web.GetjsonAction.getMapJson(GetjsonAction.java:81)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.interceptor.MessageStoreInterceptor.intercept(MessageStoreInterceptor.java:204)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:102)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)rn at java.lang.Thread.run(Unknown Source)[/code]
Selenium IDE报错问题[error] Timed out after 30000ms
我在运行Selenium IDE 的case时经常遇到[error] Timed out after 30000ms rn但是我在Options中将Default timeout value of recorded command 改为800000rn运行时也就差不多两分钟的样子,可是总是报错[error] Timed out after 30000msrn请各位帮我解决下呀!
解决SSH登录无响应timed out问题
输入  ssh username@xx.xx.xx.xx 光标一直闪烁,直到提示连接超时timed out。 这是因为服务器端的防火墙禁用了ssh服务的端口,默认为22. 有两种解决方法: 1)直接禁用防火墙 2)只开启22号端口 以Ubuntu为例: 1)直接禁用防火墙 sudo ufw disable   2)只开启22号端口 sudo ufw allow 22/...
如何解决java.net.SocketTimeoutException: Read timed out这个问题?
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletExceptionrn ByteArrayOutputStream out = null;rn String result = null;rn tryrn InputStream in = request.getInputStream();rn out = new ByteArrayOutputStream();rnrn byte[] buffer = new byte[4096];rn int len;rn while ((len=in.read(buffer, 0, buffer.length))>-1) [color=#FF0000]这句报错!!![/color]rn try rn out.write(buffer, 0, len);rn catch (Exception e) rn rn rn out.flush();rn rn result = new String(out.toByteArray(),"utf-8");rn catch(Exception Ex)rn //logger.error("",e);rn finallyrn if (out!=null) out.close();rn if (in!=null) in.close();rn rnrn执行到上面那行代码时,报以下错误:rnjava.net.SocketTimeoutException: Read timed outrnrn而我在本机测试了N次都没出现,放到生产环境后就偶尔会出现。并且我在生产环境上测试时也没出现,咋搞?
求大神告诉我怎么解决这个问题
[img=https://img-bbs.csdn.net/upload/201401/03/1388731665_320739.jpg][/img]rnrn如图所示,关键字的大小仿佛固定住了似得,在如何解决这个问题 ?
这个问题怎么解决,求大神!
开发了个winform应用程序,里面用到了Sql Server Compact3.5数据库,打包完成后(数据库跟可执行文件在同一个目录的),到win7-64bit下安装,出现异常 “不允许访问数据库”。rn请问这是什么问题啊,是系统权限问题还是其他?请大家帮帮忙,都搞了一天了。。。。
求大神解决下这个问题
[img=https://img-bbs.csdn.net/upload/201804/12/1523547660_532045.png][/img][img=https://img-bbs.csdn.net/upload/201804/12/1523547666_627945.png][/img]这个要怎么改啊,学的很基础的东西。。
关于Connection timed out的问题
[align=left]我写了个小程序,就是模拟多次(大概有8000多次)访问不同的百度贴吧,从返回中的内容中提取出某些信息,用HttpURLConnection这个类实现, 但是每次访问了七八百次以后,就会出现rnjava.net.ConnectException: Connection timed out: connect这个异常。rn请问这是什么原因呢?有没有什么解决的办法?rn[/align]
socket的Read timed out问题
[code=Java]rnprivate static String sendSynMsg(String ipAddr, byte[] datas) throws Exception rn //解析服务器地址和端口号 rn int dotPos = ipAddr.indexOf(':'); rn String ip = ipAddr.substring(0, dotPos).trim(); rn int port = Integer.parseInt(ipAddr.substring(dotPos+1).trim()); rn InetSocketAddress endpoint = new InetSocketAddress(ip , port); rn System.out.println("ip:"+ip+"port:"+port);rn Socket socket = null; rn OutputStream out = null; rn InputStream in = null; rn try rn socket = new Socket(); rn //设置发送逗留时间2秒 rn socket.setSoLinger(true, 2); rn //设置InputStream上调用 read()阻塞超时时间2秒 rn socket.setSoTimeout(2000); rn //设置socket发包缓冲为32k; rn socket.setSendBufferSize(32*1024); rn //设置socket底层接收缓冲为32k rn socket.setReceiveBufferSize(32*1024); rn //关闭Nagle算法.立即发包 rn socket.setTcpNoDelay(true); rn //连接服务器 rn socket.connect(endpoint); rn //获取输出输入流 rn out = socket.getOutputStream(); rn in = socket.getInputStream(); rn //输出请求 rn out.write(datas); rn out.flush(); rn //接收应答 rn BufferedReader br = new BufferedReader( new InputStreamReader(in) , 4096); rn StringWriter received = new StringWriter(4096); rn char[] charBuf = new char[4096]; rn int size = 0; rn char lastChar = 0; rn do rn size = br.read(charBuf , 0 , 4096); rn lastChar = charBuf[size-1]; rn if(lastChar == 0) rn received.write(charBuf, 0, size - 1); rn rn //System.out.println(received.toString()); rn while(lastChar != 0); rn rn return received.toString(); rn rn finally rn if (out != null) rn try rn out.close(); rn catch(Exception ex) rn ex.printStackTrace(); rn rn rn if (in != null) rn try rn in.close(); rn catch(Exception ex) rn ex.printStackTrace(); rn rn rn if (socket != null) rn try rn socket.close(); rn catch(Exception ex) rn ex.printStackTrace(); rn rn rn rn rnrnpublic static void main(String[] args) rn byte[] charBuf = new byte[4096]; rnrn try rn sendSynMsg("132.97.101.22:7001",charBuf);rn catch (Exception e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rnrnrn rn[/code]rn请问下,传参数 sendSynMsg("132.97.10.55:7001",charBuf);第二个参数该怎么传呢??rn
Socket Connection Timed Out 的问题
想写一个简单的聊天程序,于是写了一个服务器程序,和两个客户端程序,两个客户端程序代码差不多,就是相互的连接端口号不同,客户端程序打开时先向服务器端通报自己的IP地址,之后两个客户端聊天时,先向服务器取得对方的IP地址,之后再向对方发送数据,我的客户端程序中,都开了个线程,在这个线程中也写ServerSocket的代码,用来接收消息,但是测试时,在两台电脑上,分别运行两个客户端程序,只有一方能发送成功,另一方发送时总是失败,提示java.net.ConnectException: Connection timed out: connect,把Socket关闭了也没用啊,求解,以下是代码,Test作获取客户端的IP地址的服务器,Client和Client1分别是客户端。客户端程序运行到点击发送按钮的事件处理的代码时,提示异常的那个就无法运行新建Socket的代码rnrnimport java.net.*;rnimport java.io.*;rnrnpublic class Testrnrn public static void main(String argv[])rn rn int port=7;rn String userip[]=new String[2];rnrn tryrn rn ServerSocket srv=new ServerSocket(port);rn System.err.println("Echo server start at port:"+port);rnrn while(true)rn rn Socket clnt=srv.accept();rn DataInputStream dataIn=new DataInputStream(new BufferedInputStream(clnt.getInputStream()));rn DataOutputStream dataOut=new DataOutputStream(new BufferedOutputStream(clnt.getOutputStream()));rn rn String cc=String.valueOf(clnt.getInetAddress());rnrn String ip=cc.substring(1,cc.length()); rn rn String req=dataIn.readUTF();rn System.out.println(req);rnrn if(req.equals("Client"))rn rn userip[0]=ip;rn System.out.println("Client初始化成功!");rn rn else if(req.equals("Client1"))rn rn userip[1]=ip;rn System.out.println("Client1初始化成功!");rn rn else if(req.equals("needClient1"))rn rn dataOut.writeUTF(userip[1]);rn dataOut.flush();rn System.out.println(userip[1]);rn rn else if(req.equals("needClient"))rn rn dataOut.writeUTF(userip[0]);rn dataOut.flush();rn System.out.println(userip[0]);rn rnrn dataIn.close();rn dataOut.close();rn rn rn catch(IOException ioe)rn rn System.err.println(ioe);rn rn rnrnrnrnrnrnrnimport java.awt.*;rnimport java.awt.event.*;rnimport java.net.*;rnimport java.io.*;rnrnpublic class Client implements Runnablernrn private Socket sock;rn private DataInputStream dataIn;rn private DataOutputStream dataOut;rnrn Label la,la1;rn TextField tf,tf1;rn Button bu;rn String ip;rnrn public static void main(String argv[])rn rn new Client();rn rnrn public Client()rn rn Frame f=new Frame("Client");rn la=new Label("请输入要发送的字符串:");rn tf=new TextField();rn la1=new Label("接收到的信息");rn tf1=new TextField();rn tf1.setEditable(false);rn Panel pa=new Panel(new GridLayout(2,2));rn pa.add(la);rn pa.add(tf);rn pa.add(la1);rn pa.add(tf1);rnrn makeConnection();rn tryrn rn dataOut.writeUTF("Client");rn dataOut.flush();rn rn catch(IOException io)rn rn System.err.println("Error"+io);rn rn rn bu=new Button("发送");rn bu.addActionListener(new ActionListener()rn rn public void actionPerformed(ActionEvent ae)rn rn makeConnection();rnrn tryrn rn dataOut.writeUTF("needClient1");rn dataOut.flush();rn ip=dataIn.readUTF();rn System.out.println("1");rn InetAddress srvAddr=InetAddress.getByName(ip);rn System.out.println("2");rn Socket so=new Socket(srvAddr,1);rn System.out.println("3");rn dataOut=new DataOutputStream(new BufferedOutputStream(so.getOutputStream()));rn send();rn so.close();rn rn catch(IOException io)rn rn System.err.println("Error"+io);rn rn rn );rnrn f.add(pa,BorderLayout.NORTH);rn f.add(bu,BorderLayout.CENTER);rnrn f.pack();rn f.setVisible(true);rnrn Thread th=new Thread(this);rn th.start();rn rnrn private void makeConnection()rn rn tryrn rn InetAddress srvAddr=InetAddress.getByName("221.205.48.54");rn rn sock=new Socket(srvAddr,7);rn dataOut=new DataOutputStream(new BufferedOutputStream(sock.getOutputStream()));rn dataIn=new DataInputStream(new BufferedInputStream(sock.getInputStream()));rn System.out.println("Connection to server ok");rn rn catch(IOException io)rn rn System.err.println("Error:"+io);rn rn rnrn private void send()rn rn tryrn rn dataOut.writeUTF(tf.getText());rn dataOut.flush();rn rn catch(IOException IOE)rn rn System.out.println(IOE);rn rn rnrn public void run()rn rn int port=3800;rnrn tryrn rn ServerSocket srv=new ServerSocket(port);rn System.err.println("Echo server start at port:"+port);rnrn while(true)rn rn Socket clnt=srv.accept();rn DataInputStream dataIn=new DataInputStream(new BufferedInputStream(clnt.getInputStream()));rn rn System.out.println("Clinet connected from:"+clnt.getInetAddress());rn String req=dataIn.readUTF();rnrn tf1.setText(req);rn dataIn.close();rn clnt.close();rn rn rn catch(IOException ioe)rn rn System.err.println(ioe);rn rn rnrnrnrnrnrnrnrnimport java.awt.*;rnimport java.awt.event.*;rnimport java.net.*;rnimport java.io.*;rnrnpublic class Client1 implements Runnablernrn private Socket sock;rn private DataInputStream dataIn;rn private DataOutputStream dataOut;rnrn Label la,la1;rn TextField tf,tf1;rn Button bu;rn String ip;rnrn public static void main(String argv[])rn rn new Client1();rn rnrn public Client1()rn rn Frame f=new Frame("Client1");rn la=new Label("请输入要发送的字符串:");rn tf=new TextField();rn la1=new Label("接收到的信息");rn tf1=new TextField();rn tf1.setEditable(false);rn Panel pa=new Panel(new GridLayout(2,2));rn pa.add(la);rn pa.add(tf);rn pa.add(la1);rn pa.add(tf1);rnrn makeConnection();rn tryrn rn dataOut.writeUTF("Client1");rn dataOut.flush();rn rn catch(IOException io)rn rn System.err.println("Error"+io);rn rnrn bu=new Button("发送");rn bu.addActionListener(new ActionListener()rn rn public void actionPerformed(ActionEvent ae)rn rn makeConnection();rn tryrn rn dataOut.writeUTF("needClient");rn dataOut.flush();rn ip=dataIn.readUTF();rn System.out.println("4");rn InetAddress srvAddr=InetAddress.getByName(ip);rn System.out.println("5");rn Socket so=new Socket(srvAddr,3800);rn System.out.println("6");rn dataOut=new DataOutputStream(new BufferedOutputStream(so.getOutputStream()));rn send();rn so.close();rn rn catch(IOException io)rn rn System.err.println("Error"+io);rn rn rn );rnrn f.add(pa,BorderLayout.NORTH);rn f.add(bu,BorderLayout.CENTER);rnrn f.pack();rn f.setVisible(true);rnrn Thread th=new Thread(this);rn th.start();rn rnrn private void makeConnection()rn rn tryrn rn InetAddress srvAddr=InetAddress.getByName("221.205.48.54");rn rn sock=new Socket(srvAddr,7);rn dataOut=new DataOutputStream(new BufferedOutputStream(sock.getOutputStream()));rn dataIn=new DataInputStream(new BufferedInputStream(sock.getInputStream()));rn System.out.println("Connection to server ok");rn rn catch(IOException io)rn rn System.err.println("Error:"+io);rn rn rnrn private void send()rn rn tryrn rn dataOut.writeUTF(tf.getText());rn dataOut.flush();rn rn catch(IOException IOE)rn rn System.out.println(IOE);rn rn rnrn public void run()rn rn int port=1;rnrn tryrn rn ServerSocket srv=new ServerSocket(port);rn System.err.println("Echo server start at port:"+port);rnrn while(true)rn rn Socket clnt=srv.accept();rn DataInputStream dataIn=new DataInputStream(new BufferedInputStream(clnt.getInputStream()));rn rn System.out.println("Clinet connected from:"+clnt.getInetAddress());rn String req=dataIn.readUTF();rnrn tf1.setText(req);rn dataIn.close();rn clnt.close();rn rn rn catch(IOException ioe)rn rn System.err.println(ioe);rn rn rn
springboot报错Connection is not available, request timed out after 30001ms.
这个报错我看网上没有明确的答案啊rn 环境springboot2.0 jdk1.8 数据库连接spring.datasource
java.net.SocketTimeoutException: Read timed out
java.net.SocketTimeoutException: Read timed outrn at java.net.SocketInputStream.socketRead0(Native Method)rn at java.net.SocketInputStream.read(Unknown Source)rn at java.io.BufferedInputStream.fill(Unknown Source)rn at java.io.BufferedInputStream.read(Unknown Source)rn at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)rn at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)rn at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)rn at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)rn at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)rn at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)rn at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)rn at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)rn at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)rn at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)rn at com.dianjing.api.sem.v1.DianjingApiUtils.getResponseByApi(DianjingApiUtils.java:47)rn at com.dianjing.api.sem.v1.DianjingApiUtils.getResponseByApi(DianjingApiUtils.java:73)rn at com.dianjing.api.sem.v2.creative.Creativeconnector.getInfoByIdList(Creativeconnector.java:46)rn at com.dianjing.api.sem.v1.ConnectorOperation.getcreativeinfo(ConnectorOperation.java:493)rn at cn.info.platform.quartz.QuartzCreativeallJob.execute(QuartzCreativeallJob.java:52)rn at org.quartz.core.JobRunShell.run(JobRunShell.java:202)rn at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)rn2013-12-02 11:21:38,574 ERROR (org.quartz.core.JobRunShell:211) - Job EXTJWEB_JOBGROUP_NAME.92 threw an unhandled Exception: rnjava.lang.NullPointerExceptionrn at org.dom4j.DocumentHelper.getEncoding(DocumentHelper.java:292)rn at org.dom4j.DocumentHelper.parseText(DocumentHelper.java:273)rn at com.dianjing.api.sem.v1.XmlUtils.Dom2Map(XmlUtils.java:26)rn at com.dianjing.api.sem.v1.ConnectorOperation.getcreativeinfo(ConnectorOperation.java:492)rn at cn.info.platform.quartz.QuartzCreativeallJob.execute(QuartzCreativeallJob.java:52)rn at org.quartz.core.JobRunShell.run(JobRunShell.java:202)rn at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)rn2013-12-02 11:21:38,574 ERROR (org.quartz.core.ErrorLogger:2185) - Job (EXTJWEB_JOBGROUP_NAME.92 threw an exception.rnorg.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException]rn at org.quartz.core.JobRunShell.run(JobRunShell.java:213)rn at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)rnCaused by: java.lang.NullPointerExceptionrn at org.dom4j.DocumentHelper.getEncoding(DocumentHelper.java:292)rn at org.dom4j.DocumentHelper.parseText(DocumentHelper.java:273)rn at com.dianjing.api.sem.v1.XmlUtils.Dom2Map(XmlUtils.java:26)rn at com.dianjing.api.sem.v1.ConnectorOperation.getcreativeinfo(ConnectorOperation.java:492)rn at cn.info.platform.quartz.QuartzCreativeallJob.execute(QuartzCreativeallJob.java:52)rn at org.quartz.core.JobRunShell.run(JobRunShell.java:202)rn ... 1 morern现在在做一个项目,调用360给的接口获取数据,由于有的数据过多,其实也就几千条,可是获取的时候要先进行获取相关的信息才能获取最后想要的,一层一层获取,在main函数里测试用了20多W毫秒,可是当我在web程序调用我那方法的时候就报错,最后用quartz做成任务也报这错java.net.SocketTimeoutException: Read timed out。求大神解决
connetion timed out
个人写了个聊天的服务器程序,客户端模拟多人同时进行群收发(多人群发消息,每个人也都接收)消息的时候客户端过一段时间就会开始出现connection timed out错误提示。。。。求解答,求包养。。。。
The wait operation timed out
Inner exception:The wait operation timed out.rnrnMessage:Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=1835; handshake=8717; [Login] initialization=0; authentication=0; [Post-Login] complete=3999; rnrnStack trace: at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)rn at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)rn at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)rn at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()rn at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()rn at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()rn at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)rn at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)rn at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)rn at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)rn at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)rn at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)rn at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)rn at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions)rn at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)rn at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)rn at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)rn at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)rn at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)rn at System.Data.SqlClient.SqlConnection.Open()rn at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)rn一个程序跑着跑着就老是出现这个异常了,请高手指教。谢谢。
Java.net.SocketTimeoutException: connect timed out
在用NUTCH抓取网页时出现了这种问题,rn请大家救救我~~rn谢谢...rn错误提示如下: 070517 140633 fetch of http://www.21cn.com/ failed with: java.lang.Exception: java.net.SocketTimeoutException: connect timed out
the server request timed out
[code=C#]rn//我的页面是扫描在线设备,大约二分钟左右,便会弹出"the server request timed out!"rn//请问,有解决方法没有??rn[/code]
Msxml2.ServerXMLHTTP 经常Timed Out
奇怪的问题,Msxml2.ServerXMLHTTP 经常出现rnrnmsxml3.dll 错误 '80072ee2' rnrnThe operation timed out rnrn但有时又正常,不知道是什么问题,IIS没设置好吗?rnrn没分了,全部分送上吧,麻烦帮帮忙
org.apache.commons.fileupload.FileUploadException: Read timed out
求助,程序用的框架为struts2+hibernate+spring,运行环境为weblogic,用excel把数据导入数据库,如果excel中行数比较多(40000行左右),程序异常,后台报rnorg.apache.commons.fileupload.FileUploadException: Read timed outrn at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:381)rn at org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.parse(JakartaMultiPartRequest.java:93)rn at org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper.(MultiPartRequestWrapper.java:75)rn at org.apache.struts2.dispatcher.Dispatcher.wrapRequest(Dispatcher.java:663)rn at org.apache.struts2.dispatcher.FilterDispatcher.prepareDispatcherAndWrapRequest(FilterDispatcher.java:327)rn at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:367)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(Unknown Source)rn at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)rn at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)rn at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)rnCaused by: java.net.SocketTimeoutException: Read timed outrn。。。。。。。rnrn错误,但是行数少的时候没有问题,(20000行以下没问题,40000行有时有问题,有时没有问题)。我看了后台,数据已经导入到数据库中了,action的最后一条语句是插入日志,日志也插入了。就是报异常,不知道怎么回事。哪位大哥大姐遇到过这样的问题,怎么解决的,望不吝告知,先谢过了。
java.net.socketTimeoutException: Accept timed out
用applet +ftp 实现下载文件一半时 出现java.net.socketTimeoutException: Accept timed out异常,请教各位到底怎么回事?
org.apache.axis2.AxisFault: Read timed out
1、wsdl2java -s -Etypesystemname qqOnlineWebService -uri http://www.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl -Etypesystemname -trn生成一个MobileCodeWSStub.java文件,还有MobileCodeWSTest.java.rn结果MobileCodeWSTest运行的时候报错如下,该怎么解决。rn部分代码如下:rnpublic void testgetMobileCodeInfo() throws java.lang.Exceptionrnrn cn.com.webxml.MobileCodeWSStub stub =rn new cn.com.webxml.MobileCodeWSStub();//the default implementation should point to the right endpointrnrn cn.com.webxml.MobileCodeWSStub.GetMobileCodeInfo getMobileCodeInfo6=rn (cn.com.webxml.MobileCodeWSStub.GetMobileCodeInfo)getTestObject(cn.com.webxml.MobileCodeWSStub.GetMobileCodeInfo.class);rn // TODO : Fill in the getMobileCodeInfo6 herern getMobileCodeInfo6.setMobileCode("13621778722");rn getMobileCodeInfo6.setUserID("");rn assertNotNull(stub.getMobileCodeInfo(rn getMobileCodeInfo6));rn rn这个问题如何解决rnorg.apache.axis2.AxisFault: Read timed outrn at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)rn at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)rn at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)rn at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)rn at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)rn at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)rn at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)rn at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)rn at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)rn at cn.com.webxml.MobileCodeWSStub.getMobileCodeInfo(MobileCodeWSStub.java:319)rn at cn.com.webxml.MobileCodeWSTest.testgetMobileCodeInfo(MobileCodeWSTest.java:52)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at junit.framework.TestCase.runTest(TestCase.java:168)rn at junit.framework.TestCase.runBare(TestCase.java:134)rn at junit.framework.TestResult$1.protect(TestResult.java:110)rn at junit.framework.TestResult.runProtected(TestResult.java:128)rn at junit.framework.TestResult.run(TestResult.java:113)rn at junit.framework.TestCase.run(TestCase.java:124)rn at junit.framework.TestSuite.runTest(TestSuite.java:232)rn at junit.framework.TestSuite.run(TestSuite.java:227)rn at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)rnCaused by: java.net.SocketTimeoutException: Read timed outrn at java.net.SocketInputStream.socketRead0(Native Method)rn at java.net.SocketInputStream.read(Unknown Source)rn at java.io.BufferedInputStream.fill(Unknown Source)rn at java.io.BufferedInputStream.read(Unknown Source)rn at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)rn at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)rn at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)rn at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)rn at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)rn at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)rn at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)rn at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)rn at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)rn at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)rn at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)rn at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)rn at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:189)rn ... 28 more
webservice The operation timed out
同一个客户端在不同的电脑有些会出现The operation timed out,有些不会,会出现这种问题一个是Ghost 的XP系统,另外一个是Win7 都是30秒就超时,其他的2分钟也不会超时,请问是怎么回事
Read timed out
直接贴代码: rn客户端: rn[code=Java]rnrnpublic class Communicator rnrn private static final Log log = LogFactory.getLog(Communicator.class);rnrn private static String ADDRESS = "";rnrn private static int PORT = 0;rnrn /* 通讯对象 */rn private static Socket socket = null;rnrn private static BufferedReader in = null;rn private static PrintWriter out = null;rnrn rn public String sendMessage(String message) throws EbillsException rnrn String returnStr = "";rnrn try rnrn ADDRESS = "127.0.0.1";rn PORT = 8877;rn socket = new Socket(ADDRESS, PORT);rn socket.setSoTimeout(10000);rn in = new BufferedReader(new InputStreamReader(socketrn .getInputStream()));rn out = new PrintWriter(socket.getOutputStream());rn out.print(message);rn out.flush();rn returnStr = in.readLine();rnrn return returnStr;rn catch (Exception e) rn e.printStackTrace();rnrn finally rn releaseAll(out,in,socket);rn rnrn rn rn rn rn public static void main(String[] args) throws EbillsException rn Communicator communicator = new Communicator();rn communicator.sendMessage(new String("0000000000000000000"));rn rnrnrnrn[/code]rn服务端rn[code=Java]rnpublic class SoketServerTmp rn rn rn // 临时server rn rn public SoketServerTmp() throws Exception rn Socket client =null; rn try rn ServerSocket server=new ServerSocket(8877); rn client = server.accept(); rn BufferedReader in=new BufferedReader(new InputStreamReader(client.getInputStream())); rn PrintWriter out=new PrintWriter(client.getOutputStream()); rn rn while(true) rn String str=in.readLine(); rn //System.out.println(str); rn out.println("服务端has received...." + str); rn out.flush(); rn rn rn catch (Exception e) rn // TODO: handle exception rn finally rn client.close(); rn rn rn rn public static void main(String[] args) throws Exception rn new SoketServerTmp(); rn rn rnrnrnpublic class SoketServerTmp rnrn rn // 临时serverrnrn public SoketServerTmp() throws Exception rn Socket client =null;rn tryrn ServerSocket server=new ServerSocket(8877); rn client = server.accept(); rn BufferedReader in=new BufferedRead[code=Java][/code]er(new InputStreamReader(client.getInputStream())); rn PrintWriter out=new PrintWriter(client.getOutputStream()); rn rn while(true) rn String str=in.readLine(); rn //System.out.println(str); rn out.println("服务端has received...." + str); rn out.flush(); rn rn rn catch (Exception e) rn // TODO: handle exceptionrn finallyrn client.close();rn rn rn rn public static void main(String[] args) throws Exceptionrn new SoketServerTmp();rn rnrnrn[/code]rnrn问题,先启动服务端,然后启动客户端,怎么服务端一直都接收不了客户端的信息,然后还抛出 rnjava.net.SocketTimeoutException: Read timed out rnat java.net.SocketInputStream.socketRead0(Native Method) rnat java.net.SocketInputStream.read(SocketInputStream.java:129) rnat java.net.SocketInputStream.read(SocketInputStream.java:90) rnat sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:285) rnat sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182) rnat java.io.InputStreamReader.read(InputStreamReader.java:167) rnat java.io.BufferedReader.fill(BufferedReader.java:136) rnat java.io.BufferedReader.readLine(BufferedReader.java:299) rnat java.io.BufferedReader.readLine(BufferedReader.java:362) rnat com.amerisia.ebills.loanbycredit.ejb.Communicator.sendMessage(Communicator.java:61) rnat com.amerisia.ebills.loanbycredit.ejb.Communicator.main(Communicator.java:116) rn希望各位能够给解答一下 rnrn
mount.nfs: Connection timed out
mount.nfs: Connection timed out
java.net.SocketException: Connection timed out
java.net.SocketException: Connection timed outrnat java.net.SocketOutputStream.socketWrite0(Native Method)rn at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)rn at java.net.SocketOutputStream.write(SocketOutputStream.java:136)rn at java.io.DataOutputStream.write(DataOutputStream.java:90)rn at java.io.FilterOutputStream.write(FilterOutputStream.java:80)rn at suncfs.etransserver.SocketTransService.bSendData(SocketTransService.java:321)rn at suncfs.etransserver.SocketTransService.bSendLargeData(SocketTransService.java:286)rn at suncfs.etransserver.SocketTransService.SendMessage(SocketTransService.java:500)rn at suncfs.etransserver.SocketTransService.SendString(SocketTransService.java:477)rn at suncfs.etransserver.SocketProcessService.SendReturnValue(SocketProcessService.java:776)rn at suncfs.etransserver.SocketProcessService.UpLoadFolderProcess(SocketProcessService.java:1252)rn at suncfs.etransserver.SocketProcessService.HandleConnection(SocketProcessService.java:585)rn at suncfs.etransserver.SocketProcessService.run(SocketProcessService.java:354)rnrn日志经常报以上错误,求高手解答。rn
stateful was removed or timed out
没关闭浏览器,但是不到10分钟后再去访问该Stateful bean,就发现该bean已经不存在了,rn日志如下:rnCaused by: javax.ejb.NoSuchEJBException: Stateful bean BeanId(spms-ear#spms-ejb.jar#MesysRoleActionBean, AB28C028-0125-4000-E000-0364805A011F) was removed or timed out.rn at com.ibm.ejs.container.activator.StatefulSessionActivationStrategy.atActivate(StatefulSessionActivationStrategy.java:241)rn at com.ibm.ejs.container.activator.Activator.activateBean(Activator.java:599)rn at com.ibm.ejs.container.EJSContainer.preInvokeActivate(EJSContainer.java:3919)rn at com.ibm.ejs.container.EJSContainer.EjbPreInvoke(EJSContainer.java:3304)rn at com.spms.mesys.action.EJSLocal0SFMesysRoleActionBean_14738250.getCodes(EJSLocal0SFMesysRoleActionBean_14738250.java)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)rn at java.lang.reflect.Method.invoke(Method.java:599)rn at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)rn at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)rn at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)rn at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)rn at org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:163)rn at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)rn at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:43)rn at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)rn at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)rn at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)rn at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)rn at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)rn at org.javassist.tmp.java.lang.Object_$$_javassist_seam_21.getCodes(Object_$$_javassist_seam_21.java)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)rn at java.lang.reflect.Method.invoke(Method.java:599)rn at javax.el.BeanELResolver.getValue(BeanELResolver.java:273)rn at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)rn at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:73)rn at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)rn at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)rn at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)rn at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)rn ... 62 morernrn 如何在stateful was removed 的情况下,让它自动在创建呢或者配置会话时间?
request timed out!
局域网通过路由(华硕)上网.老出现断一下又马上连接上的情况.PING DNS偶尔出现"rnrequest timed out!",是什么原因?
commons-email-1.0 -> Connection timed out
用commons-email-1.0开源代码发送邮件的时候,rnSimpleEmail email = new SimpleEmail();rnemail.setHostName("smtp.163.com");rnemail.addTo("tonyformu@sina.com", "John Doe");rnemail.setFrom("tonyformu@163.com", "Me");rnemail.setSubject("Test message");rnemail.setMsg("This is a simple test of commons-email");rnemail.send();rn以上就是文档里面的示例代码,如果把发送邮箱换成公司的邮箱,邮箱服务器在局域网内,发送成功,如果换成外网的邮箱,比如163的,发送出错.rn具体情况是是:rn用代理上网时,报Connection reset.怀疑是代理的原因,换用了外网ip,错误变成了Connection timed out.rn请问,这是外网邮箱服务器添加了验证的原因,还是"smtp.163.com"搞错了,或者是别的原因?谢谢,重分相谢!rn
如何解决connect():connection timed out
客户端并发200个线程请求连接,后面50个左右会connection timed out,服务端用的是select。请教大侠!
如何解决ORA-12535: TNS:operation timed out
在进行database link配置后,我进行select * from table@时,出现了此问题。而且ping 和tnsping 都是通的,请各位高手帮忙指教一下,非常急用的!
请问:出现“Script timed out”如何解决?
出错信息如下:rnrnActive Server Pages error 'ASP 0113' rnScript timed out rnrn/abc/abc.asp rnrnThe maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools. rnrn如何修改相关的参数设置?rn
javax.naming.CommunicationException: Receive timed out
eclipse下rn第一个ejb3例子测试问题,是否有曾经碰到过类似的问题?
 java.net.SocketTimeoutException: Read timed out  ???
![图片说明](https://img-ask.csdn.net/upload/201812/08/1544262988_779051.png)rnrnrnrn在搞阿里大于发送短信验证码时候。程序一直出现这种错误。有人知道吗?
java.net.SocketException: The operation timed out
W/System.err( 8456): java.net.SocketException: The operation timed outrnW/System.err( 8456): at org.apache.harmony.luni.platform.OSNetworkSystem.connrnectStreamWithTimeoutSocketImpl(Native Method)rnW/System.err( 8456): at org.apache.harmony.luni.platform.OSNetworkSystem.connrnect(OSNetworkSystem.java:115)rnW/System.err( 8456): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PrnlainSocketImpl.java:244)rnW/System.err( 8456): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PrnlainSocketImpl.java:533)rnW/System.err( 8456): at java.net.Socket.connect(Socket.java:1055)rnW/System.err( 8456): at org.apache.http.conn.scheme.PlainSocketFactory.connecrntSocket(PlainSocketFactory.java:119)rnW/System.err( 8456): at org.apache.http.impl.conn.DefaultClientConnectionOperrnator.openConnection(DefaultClientConnectionOperator.java:143)rnW/System.err( 8456): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstrnractPoolEntry.java:164)rnW/System.err( 8456): at org.apache.http.impl.conn.AbstractPooledConnAdapter.ornpen(AbstractPooledConnAdapter.java:119)rnW/System.err( 8456): at org.apache.http.impl.client.DefaultRequestDirector.exrnecute(DefaultRequestDirector.java:348)rnW/System.err( 8456): at org.apache.http.impl.client.AbstractHttpClient.executrne(AbstractHttpClient.java:555)rnW/System.err( 8456): at org.apache.http.impl.client.AbstractHttpClient.executrne(AbstractHttpClient.java:653)rnW/System.err( 8456): at org.apache.http.impl.client.AbstractHttpClient.executrne(AbstractHttpClient.java:627)rnW/System.err( 8456): at org.apache.http.impl.client.AbstractHttpClient.executrne(AbstractHttpClient.java:616)rnW/System.err( 8456): at com.example.android.apis.ApiDemos$2.run(ApiDemos.javarn:260)rnD/dalvikvm( 2157): GC_EXPLICIT freed 1082 objects / 54648 bytes in 144msrnI/System.out( 8507): [INFO:21472]: c: Response [http=200,length=139]rnI/System.out( 8507): [INFO:21476]: c: Read id 1, status code 200rnD/dalvikvm( 7979): GC_EXPLICIT freed 42 objects / 1832 bytes in 70msrnrnrn private void processThread() rnrn // 构建一个下载进度条rnrn pd = ProgressDialog.show(ApiDemos.this, "Load", "Loading…");rnrn new Thread() rnrn public void run() rnrn HttpClient httpclient = new DefaultHttpClient(); rn HttpGet request = new HttpGet(rn "http://webservice.webxml.com.cn/WebServices/ForexRmbRateWebService.asmx/getForexRmbRate"); rn // //rn // httpclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT,rn // 5000);rn // httpclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT,rn // 5000);rn String response;rnrn try rn [color=#FF0000]response = httpclient.execute(request,rn new BasicResponseHandler());[/color]rn StringReader read = new StringReader(response);rn InputSource in = new InputSource(read);rn SAXParserFactory spf = SAXParserFactory.newInstance();rn SAXParser sp;rn sp = spf.newSAXParser();rn XMLReader xr = sp.getXMLReader();rn RateHandler rh = new RateHandler();rn xr.setContentHandler(rh);rn xr.parse(in);rn List rates = rh.getRates();rnrn Message msg = handler.obtainMessage(1, rates);rn pd.dismiss();rnrn handler.sendMessage(msg);rn catch (ClientProtocolException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn catch (IOException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn catch (ParserConfigurationException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn catch (SAXException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rnrn rn .start();rnrn rnrnrn这个异常是什么原因??我模拟器 和手机的wifi下调试都没问题 但是用GPRS调试就不行 接入点默认就是cmnet的 何解??
System.Web.HttpException: Request timed out
在执行ASP时, 出现System.Web.HttpException: Request timed out的错误, 页面停止执行, 然后, SESSION就丢失了. rn请问, 是什么原因呢? 怎么解决呢?
java.net.SocketTimeoutException: Receive timed out
NULL 博文链接:https://mymobile.iteye.com/blog/1853228
connection timed out: connection
请教一个问题:rn我做了个探测局域网用户的程序,对方能收到我的udp广播数据报,但用tcp连接总是会超时是什么原因呢·?rnrnclass detector extends Thread //主动探测主机信息发送端rn rn String userIp;rn public detector(String userIp)rn rn this.userIp=userIp;rn rn public void run()rn rn tryrn rn System.out.println("start to connect "+userIp+" ......"); //可以运行到这里rn Socket s = new Socket(InetAddress.getByName(userIp),5001);rn InputStream is = s.getInputStream();rn OutputStream os = s.getOutputStream();rn os.write(InetAddress.getLocalHost().getHostName().getBytes());//写入用户名rn os.write(System.getProperty("user.name").getBytes()); //写入登录名rn os.write(InetAddress.getLocalHost().toString().getBytes()); //写入ip地址rnrn String userName,loginName,userIp;rn byte[] buf=new byte[100];rn int len=is.read(buf);rn if(len!=-1)rn rn userName=new String(buf,0,len);rn len=is.read(buf);rn if(len!=-1)rn rn loginName=new String(buf,0,len);rn len=is.read(buf);rn if(len!=-1)rn rn userIp=new String(buf,0,len);rn al.add(new user(userName,loginName,userIp));rn tableInit();rn rn rn rn is.close();rn os.close();rn s.close();rn rn catch (Exception ex)rn rn ex.printStackTrace();rn rn rn
Connection timed out!
最近学习那个AT91ARM9200,遇到一个问题。就是在通过IIC总线读取IC数据的时候有问题!我们裁剪的系统里面有那个IIC总线的驱动,和一个DS1307的驱动。还有一个温度的芯片是LM75的,可以直接通过以设备文件的方式以read和write函数对其温度进行读写,DS1307的的操作也是这样的!rn 我开了两个线程。一个是得到实时的温度,一个是得到DS1307实时的时间.也不知道为什么当这两个线程运行了一个晚上之后就死啦!打印信息是这样的:1 read error!rn : Connection timed outrn 这是我程序的打印这信息的地方:rn ret = read(file, buf, 2); rn if (ret<0)rn rn perror("1 read error!\n");rn exit(1);rn rn 这是我LM75里的读取温度的位置!rn 另外那个DS1307驱动的那个read函数也是一样的错误!rn 都是read那里打印的错误!rn 而且当我想再次运行程序的时候要重启板子上的系统!否则还是那样的打印错误信息!这到底是怎么回事啊????rn 在线等。。。。。。。。。。
iis:Connection Timed Out
Connection Timed Outrnrn--------------------------------------------------------------------------------rnDescription: Connection Timed Out rnrnrnrn一直都可以用,今天晚上一用就行这样了。我重装IIS都不行呀。同样显示。。rnrnrnHELP...SOMEBOBY HELP......
Session timed out
用asp.net做的网站,有一个客户端不能登录,提示说session timed out.但是其他客户端可以登录。这是不是跟客户端机器的IE设置有关。
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件