怎样解决Read timed out

在本电脑上 我一上传图片就会报此错误 不上传图片是正常的。
但是我的 代码提交上去 别人的用电脑是可以上传图片的 不报任何错误

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
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。求大神解决
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的最后一条语句是插入日志,日志也插入了。就是报异常,不知道怎么回事。哪位大哥大姐遇到过这样的问题,怎么解决的,望不吝告知,先谢过了。
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
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
 java.net.SocketTimeoutException: Read timed out  ???
![图片说明](https://img-ask.csdn.net/upload/201812/08/1544262988_779051.png)rnrnrnrn在搞阿里大于发送短信验证码时候。程序一直出现这种错误。有人知道吗?
java.net.socketTimeoutException:read timed out?
在socket编程时,在服务器端得日志文件log中出现java.net.socketTimeoutException:read timed out错误,这是服务器端得问题还是客户端的问题,我觉得应该是服务器端程序的问题,敬请指正!回答我的问题,谢谢!
Read timed out 求教,急
请教各位达人,急rn一个项目在内网里访问没问题。。rn但是在外网访问会出现几率性错误(如过滤条件无效;初始化失常;脚本js失常等等)怎么回事,有时有有时没有。rn页面具体表现的错误:本来应该只显示某些特定的数据但是它都全部显示出来了;有时报 request is invaild;有时页面弹出 当前页面脚本发生错误 的对话框。 rn后台报 Read timed out 错误。rn请问要怎么解决啊。。。。急rnweb容器是 jboss; 页面是用的是 dbnetgrid
请教 java.net.SocketTimeoutException: Read timed out
上传文件代码beanrn/**rn * @author lichuxiongrn */rnpackage arch.upload;rnrnimport java.io.*;rnimport java.util.Date;rnimport javax.servlet.http.*;rnimport javax.servlet.ServletException;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpServletResponse;rnimport javax.servlet.http.HttpSession;rnimport javax.servlet.ServletInputStream;rnrnrn public class UpFileThread implements Runnablern rn HttpServletRequest request;rn HttpServletResponse response;rn private boolean state;//线程是否已经启动rn private boolean running;//是否正在运行rn private boolean complete;//是否已经完成rn private int percent; rn rn public UpFileThread() rn super();rn state=false;rn running=false;rn complete=false;rn percent=0;rn rn rn /**rn * 初始化时把页面的request和response传递进来rn * @param requestrn * @param responsern */rn public UpFileThread(HttpServletRequest request,HttpServletResponse response) rn super();rn this.request=request;rn this.response=response;rn state=false;rn running=false;rn complete=false;rn percent=0;rn rn rn public void setRequest(HttpServletRequest request) rn this.request = request;rn rn public void setResponse(HttpServletResponse response) rn this.response = response;rn rn public synchronized boolean isComplete() rn return complete;rn rn public synchronized void setComplete(boolean complete) rn this.complete = complete;rn rn public synchronized int getPercent() rn return percent;rn rn public synchronized void setPercent(int percent) rn this.percent = percent;rn rn public synchronized boolean isRunning() rn return running;rn rn public synchronized void setRunning(boolean running) rn this.running = running;rn this.setState(running);rn rn public synchronized boolean isState() rn return state;rn rn public synchronized void setState(boolean state) rn this.state = state;rn rn /**rn * 判断能不能上传 后缀名,文件大小rn * @param suffixrn * @param sizern * @returnrn */rn public boolean canUpload(String suffix,int size)rn //System.out.println(suffix.toLowerCase());rn //System.out.println(size);rn Suffix suf=new SearchSuffix().getSuffixMember(suffix.toLowerCase());rn if(suf!=null&&suf.getSize().intValue()>=size)rn return true;rn rn return false;rn rn /**rn * 文件上传主要方法rn * @throws ServletExceptionrn * @throws IOExceptionrn */rn public synchronized void up() throws ServletException, IOExceptionrn String readLine;rn byte buf[]=new byte[512];rn rn ServletInputStream sis=request.getInputStream();rn rn int upFileSize=request.getContentLength();rn //开始读取rn int readLength=sis.readLine(buf,0,512);//去掉分隔行rn String boundary=new String(buf,0,readLength);rnrn int boundaryLength=boundary.length();//因为下面字节读取时会把回车换行符也读入rn rn readLength=sis.readLine(buf,0,512);rn readLine=new String(buf,0,readLength);rnrn int index=readLine.indexOf("filename=");//查找文件名rn String name=readLine.substring(index+10);rn name=name.substring(0, name.length()-3);//去掉末尾的分号,获得完整的文件名(注意中文名的显示)rn System.out.println(name);rn //查找文件后缀rn String suffix=name.substring(name.lastIndexOf(File.separator));rn suffix=suffix.substring(suffix.indexOf("."));rn rn //判断相应文件能不能传(后缀,大小)rn if(!canUpload(suffix, upFileSize))rn return ;rn rn //保存文件大小到session,供页面调用rn //request.getSession().setAttribute("upFileSize", new Integer(upFileSize));rn //设定新文件名rn String newName=Long.toString((new Date()).getTime());rn newName=newName+suffix;rn rn //设定文件 输出流rn String path=request.getRealPath("/")+"upfiles/";rn FileOutputStream out=new FileOutputStream(path+newName);rn int upedSize=0;rn //request.getSession().setAttribute("upedSize", new Integer(upedSize));rn tryrn //寻找文件起点rn while ( (readLength = sis.readLine(buf, 0, buf.length)) != -1) rn String s = new String(buf, 0, readLength);rn if ( (index = s.indexOf("Content-Type:")) != -1) rn break;rn rn //whilern sis.readLine(buf, 0, buf.length);//去掉一空行rn //读文件数据rn while((readLength = sis.readLine(buf, 0, buf.length)) != -1)rn upedSize+=readLength;rn this.setPercent((int)((upedSize/upFileSize)*100));//设置完成的百分数rn if ( (buf[0] == 45) && (buf[1] == 45) && (buf[2] == 45) && (buf[3] == 45) && (buf[4] == 45)) //若读结束rn break;rn rn out.write(buf,0,readLength);rn //out.flush();rn rn this.setPercent(100); //设置完成100rn this.setComplete(true); //设置完成标志rn catch(Exception e)rn e.printStackTrace();rn File tmp=new File(path+newName);rn tmp.delete();rn finallyrn out.close();rn sis.close();rn this.setRunning(false); //设置线程已经停止rn rn rn public void run()rn tryrn setRunning(true); //启动线程rn setComplete(false); //还没完成rn setPercent(0); //完成的了0%rn up(); //进入工作状态,上传rn catch(Exception e)rn e.printStackTrace();rn rn rnrnrnrnrn网页调用处代码rn<%@ page contentType="text/html; charset=gb2312" language="java" errorPage=""%>rnrnrn rn 文件上传rnrnrn<%session.removeAttribute("upFileBean"); %>rnrn<%rnupFileBean.setRequest(request);rnupFileBean.setResponse(response);rnnew Thread(upFileBean).start(); rn%>rnrnrnrnrn重启tomcat后第一次不管传什么文件都能正确上传rn但接下来传就出现如题的问题rn请高手指点一二。谢谢
redis SocketTimeoutException: Read timed out
具体报错信息如下:rn[code=java]redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed outrn at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:201) ~[jedis-2.6.2.jar:na]rn at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) ~[jedis-2.6.2.jar:na]rn at redis.clients.jedis.Protocol.process(Protocol.java:128) ~[jedis-2.6.2.jar:na]rn at redis.clients.jedis.Protocol.read(Protocol.java:192) ~[jedis-2.6.2.jar:na]rn at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:282) ~[jedis-2.6.2.jar:na]rn at redis.clients.jedis.Connection.getOne(Connection.java:264) ~[jedis-2.6.2.jar:na]rn at redis.clients.jedis.ShardedJedisPipeline.syncAndReturnAll(ShardedJedisPipeline.java:57) ~[jedis-2.6.2.jar:na]rn at com.tuniu.nfw.search.base.redis.acc.impl.RedisPipelinedImpl.batchSetExpirePipelined(RedisPipelinedImpl.java:147) ~[RedisPipelinedImpl.class:na]rn at com.tuniu.nfw.search.base.redis.acc.impl.RedisProxyImpl.mSetExpire(RedisProxyImpl.java:264) ~[RedisProxyImpl.class:na]rn at com.tuniu.nfw.search.business.dao.impl.TripRedisDaoImpl.saveTrip(TripRedisDaoImpl.java:81) ~[TripRedisDaoImpl.class:na]rn at com.tuniu.nfw.search.business.service.impl.DataStructureServiceImpl$1.run(DataStructureServiceImpl.java:87) [DataStructureServiceImpl$1.class:na]rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_30]rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_30]rn at java.lang.Thread.run(Thread.java:662) [na:1.6.0_30]rnCaused by: java.net.SocketTimeoutException: Read timed outrn at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.6.0_30]rn at java.net.SocketInputStream.read(SocketInputStream.java:129) ~[na:1.6.0_30]rn at java.net.SocketInputStream.read(SocketInputStream.java:90) ~[na:1.6.0_30]rn at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:195) ~[jedis-2.6.2.jar:na]rn ... 13 common frames omitted[/code]rnrn并发比较多的时候和数据量比较多的时候会 触发这个错误,网上看了些,有的说是 redis使用tcp协议,网卡带宽可能不够,有的说redis的超时时间设置的比较短的问题,那么如果把redis的超时时间设置稍微长一点(默认2s,我设置的是0.2s),比如3s,会出现一些性能方面的问题么?rn这个问题根源是什么?怎么解决?
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
求助!java.net.SocketTimeoutException: Read timed out
本地项目调用webservice服务时遭遇异常,控制台输出:rn信息: Interceptor has thrown exception, unwinding nowrnorg.apache.cxf.interceptor.Fault: Could not send Message.rn at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253)rnrn at java.lang.Thread.run(Thread.java:619)rnCaused by: java.net.SocketTimeoutException: Read timed outrn at java.net.SocketInputStream.socketRead0(Native Method)rn at java.net.SocketInputStream.read(SocketInputStream.java:129)rn at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)rn at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)rn at java.io.BufferedInputStream.read(BufferedInputStream.java:317)rnrnjavax.xml.ws.soap.SOAPFaultException: Could not send Message.rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:141)rn at $Proxy73.appb(Unknown Source)rn at com.xxxxx.impl.sdaf.sssdd(fds.java:570)rn at com.xxxxx.impl.appla.appb(appa.java:76)rn at com.xxxxx.impl.appa$$FastClassByCGLIB$$d209058b.invoke()rn at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)rn at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)rn at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)rn at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)rnrnCaused by: java.net.SocketTimeoutException: Read timed outrn at java.net.SocketInputStream.socketRead0(Native Method)rn at java.net.SocketInputStream.read(SocketInputStream.java:129)rn at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)rn at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)rn rn ... 107 more。rn恳请大家帮忙分析解决下,谢谢!
超时了,java.net.SocketTimeoutException: Read timed out
通过webservices访问数据库,查询数据时由于数据量比较大,基本90秒左右返回数据,但weblogic在执行后一分钟左右就报超时了:rn exception, unwinding nowrnorg.apache.cxf.interceptor.Fault: Could not send Message.rn at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSendernrInterceptor.java:64)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)rn at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)rnrn at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)rnCaused by: java.net.SocketTimeoutException: SocketTimeoutException invoking http://localhost:8081/Service: Read timed outrn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:2058)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:2043)rn at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)rn at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:639)rn at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSendernrInterceptor.java:62)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)rn at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)rn ... 34 morernCaused by: java.net.SocketTimeoutException: Read timed outrn at java.net.SocketInputStream.socketRead0(Native Method)rn at java.net.SocketInputStream.read(SocketInputStream.java:129)rn at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)rn at java.io.BufferedInputStream.read(BufferedInputStream.java:237)rn at weblogic.net.http.MessageHeader.isHTTP(MessageHeader.java:220)rn at weblogic.net.http.MessageHeader.parseHeader(MessageHeader.java:143)rn at weblogic.net.http.HttpClient.parseHTTP(HttpClient.java:462)rn at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:364)rn at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:37)rn at weblogic.net.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:952)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2165)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2134)rn at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1988)rn ... 43 morern查了很多资料依然没有解决,是需要在weblogic控制台设置呢,还是改如何处理?
憋了很久的问题-java.net.SocketTimeoutException: Read timed out
憋了很久的问题-java.net.SocketTimeoutException: Read timed outrnrnrn【问题描述】请求一个webservice偶尔会返回异常,如下:rnjava.net.SocketTimeoutException: Read timed outrn at java.net.SocketInputStream.socketRead0(Native Method)rn at java.net.SocketInputStream.read(SocketInputStream.java:129)rn at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)rn at java.io.BufferedInputStream.read(BufferedInputStream.java:235)rn at weblogic.net.http.MessageHeader.isHTTP(MessageHeader.java:220)rn at weblogic.net.http.MessageHeader.parseHeader(MessageHeader.java:143)rn at weblogic.net.http.HttpClient.parseHTTP(HttpClient.java:420)rn at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:345)rn at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:31)rn at com.lingtu.lbs.util.WebUtil.requestLBMP(WebUtil.java:735)rn at com.lingtu.lbs.gis.webgis.doPost(webgis.java:99)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rn at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)rn at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3211)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)rn at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)rn at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)rn at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)rnrn这个异常并不是每次都抛出,而是当对方的webservice响应时间超过约2秒的时候才会抛出,我的程序并没有设置超时,而在家中的调试环境去访问这个webservice这种异常无法重现,已经排除了网络问题以及编码上的问题。所以我考虑是操作系统或weblogic设置不当(我方程序的weblogic容器,因为我们weblogic处理的http请求也很多)所引起,请大家帮我看看是什么原因?不胜感激!!!rnrn就是我在我们的weblogic中部署了一个war,这个war里面有一个类去请求另一个webservice,但是发现当对方返回响应的时候,有时我这边会抛出timeout异常,已经对网络进行抓包,发现我们产生异常的时候,对方的响应还没有发送完毕,我方主机就发送了断开连接的包。这个包我的程序肯定没有发,我怀疑是操作系统或者weblogic的原因。rnrn我用的是weblogic server9.2 有时请求和响应正常,有时请求响应不正常;请求不正常的时候抓包表现为:大约两秒左右,对方的响应还没有发送完毕,我方主机就发送了断开连接的包。rn
pip安装超时( Read timed out)解决办法
一、起因 之前用的是virtualenv 创建虚拟环境,后来发现pipenv比virtualenv强大多了,一直想用这个试试,每次下载都报 pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read ti...
axis2 客户端访问报Read timed out
通过services.xml 的方式暴露的webservice 服务端方法, 并模拟一个客户端代码的方式访问该方法(通过org.apache.axis2.rpc.client.RPCServiceClient 和 org.apache.axis2.addressing.EndpointReference),但是在服务端方法处理时间超过30s,客户端就会报:rnjava.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.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1373)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.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:621)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:404)rn at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)rn at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)rn at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)rn at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)rn at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)rn at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)rn at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)rn at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:102)rn at test.cq.hmq.ws.WebService.main(WebService.java:34)rnException in thread "main" org.apache.axis2.AxisFault: Read timed outrnrn若在客户端加上 options.setTimeOutInMilliSeconds()方法控制超时是有一定效果, 但毕竟目的是为了写服务端,是否有其它好的方法??rnrn
Socket笔记之Read timed out深入分析
ReadTimedOut深入分析 PlainSocketImpl.c Java_java_net_PlainSocketImpl_socketSetOption read()时 Java_java_net_SocketInputStream_socketRead0 solaris/native/java/net/bsd_close.c 总结 ReadTimedOut...
I/O Error: Read timed out
请帮忙看下出现I/O Error: Read timed out这种错误的原因是什么?rn有几个任务同时在运行,其它的可以正常运行的。rnrn04:01:03,561 TL8thMGT.node1@TL-8thMGT-APP pool-1-thread-6 WARN SessionUtil: - Null request found.rn04:01:03,779 TL8thMGT.node1@TL-8thMGT-APP pool-1-thread-6 WARN SessionUtil: - Null request found.rn04:01:24,904 TL8thMGT.node1@TL-8thMGT-APP pool-1-thread-6 WARN SessionUtil: - Null request found.rn04:21:25,293 TL8thMGT.node1@TL-8thMGT-APP pool-1-thread-6 WARN JDBCExceptionReporter: - SQL Error: 0, SQLState: 08S01rn04:21:25,293 TL8thMGT.node1@TL-8thMGT-APP pool-1-thread-6 ERROR JDBCExceptionReporter: - I/O Error: Read timed outrn04:21:25,340 TL8thMGT.node1@TL-8thMGT-APP pool-1-thread-6 ERROR ProjectStatusTaskImpl: - Exception :rncom.gearteks.framework.common.exception.GTSystemExceptionrn at com.gearteks.framework.common.exception.a.a(GTExceptionGenerator.java:52)rn at com.gearteks.framework.process.i.if(BaseProcess.java:589)rn at com.gearteks.framework.process.i.byte(BaseProcess.java:560)rn at com.gearteks.imanage.process.sysadmin.bq.if(ProjAttentionProcess.java:127)rn at com.gearteks.imanage.process.ProjectProcess.for(ProjectProcess.java:5764)rn at com.gearteks.imanage.process.ProjectProcess.projectExecutiveAttention(ProjectProcess.java:5758)rn at com.gearteks.imanage.process.ProjectProcess.projectExecutiveAttention(ProjectProcess.java:5556)rn at com.gearteks.imanage.process.a5.pc(JobProcess.java:6084)rn at com.gearteks.imanage.schedule.impl.ProjectStatusTaskImpl.execute(ProjectStatusTaskImpl.java:105)rn at com.gearteks.framework.common.schedule.c.runTask(AbstractTask.java:319)rn at com.gearteks.framework.common.schedule.l.run(HibernateSessionRunnable.java:83)rn at com.gearteks.framework.common.schedule.d.execute(SchedulerChainTask.java:120)rn at com.gearteks.framework.common.schedule.c.runTask(AbstractTask.java:319)rn at com.gearteks.framework.common.schedule.l.run(HibernateSessionRunnable.java:121)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)rn at java.lang.Thread.run(Thread.java:595)rnCaused by: org.hibernate.exception.JDBCConnectionException: could not execute queryrn at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:72)rn at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)rn at org.hibernate.loader.Loader.doList(Loader.java:2153)rn at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)rn at org.hibernate.loader.Loader.list(Loader.java:2024)rn at org.hibernate.hql.classic.QueryTranslatorImpl.list(QueryTranslatorImpl.java:874)rn at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:146)rn at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1093)rn at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)rn at com.gearteks.framework.process.i.if(BaseProcess.java:587)rn ... 15 morernCaused by: java.sql.SQLException: I/O Error: Read timed outrn at net.sourceforge.jtds.jdbc.TdsCore.executeSQL(TdsCore.java:1049)rn at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:406)rn at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatement.java:693)rn at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)rn at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:139)rn at org.hibernate.loader.Loader.getResultSet(Loader.java:1669)rn at org.hibernate.loader.Loader.doQuery(Loader.java:662)rn at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)rn at org.hibernate.loader.Loader.doList(Loader.java:2150)rn ... 22 morernCaused by: java.net.SocketTimeoutException: Read timed outrn at java.net.SocketInputStream.socketRead0(Native Method)rn at java.net.SocketInputStream.read(SocketInputStream.java:129)rn at java.io.DataInputStream.readFully(DataInputStream.java:176)rn at java.io.DataInputStream.readFully(DataInputStream.java:152)rn at net.sourceforge.jtds.jdbc.SharedSocket.readPacket(SharedSocket.java:826)rn at net.sourceforge.jtds.jdbc.SharedSocket.getNetPacket(SharedSocket.java:707)rn at net.sourceforge.jtds.jdbc.ResponseStream.getPacket(ResponseStream.java:466)rn at net.sourceforge.jtds.jdbc.ResponseStream.read(ResponseStream.java:103)rn at net.sourceforge.jtds.jdbc.ResponseStream.peek(ResponseStream.java:88)rn at net.sourceforge.jtds.jdbc.TdsCore.wait(TdsCore.java:3870)rn at net.sourceforge.jtds.jdbc.TdsCore.executeSQL(TdsCore.java:1042)rn ... 30 morern04:21:50,606 TL8thMGT.node1@TL-8thMGT-APP pool-10-thread-1 WARN JDBCExceptionReporter: - SQL Error: 0, SQLState: 08S01rn04:21:50,606 TL8thMGT.node1@TL-8thMGT-APP pool-10-thread-1 ERROR JDBCExceptionReporter: - Network error IOException: Connection timed out: connectrn04:21:50,606 TL8thMGT.node1@TL-8thMGT-APP pool-10-thread-1 ERROR a: - SystemEvent Handler:rnorg.hibernate.exception.JDBCConnectionException: Cannot open connectionrn at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:72)rn at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)rn at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)rn at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:318)rn at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:109)rn at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:137)rn at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)rn at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1262)rn at com.gearteks.framework.common.e.a$a.run(SystemEventScheduler.java:71)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)rn at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)rn at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:146)rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:170)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)rn at java.lang.Thread.run(Thread.java:595)rnCaused by: java.sql.SQLException: Network error IOException: Connection timed out: connectrn at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:372)rn at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50)rn at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)rn at org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)rn at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)rn at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:771)rn at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:95)rn at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)rn at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)rn at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:315)rn ... 14 morernCaused by: java.net.ConnectException: Connection timed out: connectrn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)rn at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)rn at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:367)rn at java.net.Socket.connect(Socket.java:524)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:592)rn at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:289)rn at net.sourceforge.jtds.jdbc.SharedSocket.(SharedSocket.java:250)rn at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:297)rn ... 23 morernrn
Axis中Read Timed out 问题,急!
在webservice执行一个长时间过程时,就会出现这个错误,具体的错误如下,感谢高手指点,先谢了!
SocketTimeoutException: Read timed out请各位帮帮忙!!!
[code=java]rnimport java.io.BufferedInputStream;rnimport java.io.DataInputStream;rnimport java.io.IOException;rnimport java.io.OutputStream;rnimport java.net.Socket;rnrn//客户端rnpublic class SocketClient rnrn public static void main(String[] args)rn try rn Socket socket=new Socket("127.0.0.1",21112);rn socket.setSoTimeout(10*1000);rn DataInputStream in=new DataInputStream(new BufferedInputStream(socket.getInputStream()));rn OutputStream out =socket.getOutputStream();rn out.write("client".getBytes());rn out.flush();rn int r=0;rn //数据不能读完,但是已经没有数据了rn while((r=in.read())!=-1)rn System.out.print((char)r);rn rn System.out.println("end");rn catch (Exception e) rn e.printStackTrace();rn rn rnrnrn[/code]rn[code=java]rnimport java.io.BufferedOutputStream;rnimport java.io.DataOutputStream;rnimport java.io.IOException;rnimport java.io.InputStream;rnimport java.net.ServerSocket;rnimport java.net.Socket;rn//服务端rnpublic class SocketServer rnrn public static void main(String[] args) rn try rn ServerSocket server=new ServerSocket(21112);rn Socket socket=null;rn socket=server.accept();rn System.out.println("有客户端连接了");rn DataOutputStream out=new DataOutputStream(new BufferedOutputStream(socket.getOutputStream()));rn InputStream in=socket.getInputStream();rn out.write("server".getBytes());rn out.flush();rn int r=0;rn while((r=in.read())!=-1)rn System.out.print((char)r);rn rn catch (IOException e) rn e.printStackTrace();rn rn rnrnrn[/code]rnrn先运行服务端,然后运行客户端,rn服务端输出:有客户端连接了 clientrn客户端输出:serverrn[color=#FF0000]超时后[/color]服务端错误为:java.net.SocketException: Connection resetrn客户端错误为:java.net.SocketTimeoutException: Read timed outrn按照网上方法试过还是不行,不知道问题在哪里?
java项目运行报Read timed out错误
如果使用Socket通信,但是运行后报了个Read timed out,但是数据缺返回了,这样会影响数据的返回结果吗?
struts上传文件抛Read timed out异常
文件不大,内网没问题,外网访问会有问题,下面是错误信息:rn rnERROR (StandardWrapperValve.java:253) - Servlet.service() for servlet action threw exceptionrnorg.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Read timed outrn at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:384)rn at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:268)rn at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:193)rn at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:443)rn at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:805)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at com.sssoft.posp.auth.PospFilter.doFilter(PospFilter.java:77)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at com.sssoft.common.util.TestFilter.doFilter(TestFilter.java:118)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at com.sssoft.framework.web.util.CharacterEncodingFilter.doFilter(Unknown Source)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)rn at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:276)rn at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:81)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:548)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)rn at java.lang.Thread.run(Thread.java:662)
python安装第三方模块出现Read timed out
安装第三方模块一直出现错误 最简单的解决方法是设置超时等待 例如:在flask项目中需要安装requeremnts.txt文件中的模块 pip --default-timeout=100 install -r requerements.txt
tomcat5+commons-fileupload上传异常Read timed out
最近在做一个上传Excel然后导库的东西,Excel文件小一点,比如几百K时,没有任何问题。rn但是当Excel文件达到10M以上时,就出现问题了,文件上传异常,代码如下:rnrnjava.net.SocketTimeoutException: Read timed outrn at java.net.SocketInputStream.socketRead0(Native Method)rn at java.net.SocketInputStream.read(SocketInputStream.java:129)rn at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:747)rn at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777)rn at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:115)rn at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:712)rn at org.apache.coyote.Request.doRead(Request.java:429)rn at org.apache.coyote.tomcat5.InputBuffer.realReadBytes(InputBuffer.java:290)rn at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:374)rn at org.apache.coyote.tomcat5.InputBuffer.read(InputBuffer.java:305)rn at org.apache.coyote.tomcat5.CoyoteInputStream.read(CoyoteInputStream.java:179)rn at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:959)rn at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:887)rn at java.io.InputStream.read(InputStream.java:89)rn at org.apache.commons.fileupload.util.Streams.copy(Streams.java:94)rn at org.apache.commons.fileupload.util.Streams.copy(Streams.java:64)rn at org.apache.commons.fileupload.MultipartStream.readBodyData(MultipartStream.java:593)rn at org.apache.commons.fileupload.MultipartStream.discardBodyData(MultipartStream.java:619)rn at org.apache.commons.fileupload.MultipartStream.skipPreamble(MultipartStream.java:638)rn at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.findNextItem(FileUploadBase.java:844)rn at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.(FileUploadBase.java:825)rn at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:323)rn at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:341)rn at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)rnrn从服务器上看,上传时产生的临时文件大小与实际相同,但就是在最后结尾时发生异常。rn判断与连接超时有关,得知Tomcat6之后的版本有类似keep-alive参数对连接时间进行设置的,不知道Tomcat5.0.28中是否有类似属性设置。rnrn注:增大了connectionTimeout的值也无效。
如何解决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次都没出现,放到生产环境后就偶尔会出现。并且我在生产环境上测试时也没出现,咋搞?
一个没解决的问题.java.net.SocketTimeoutException: Read timed out
用xfire架构了一个webservice服务器,老是出现这个问题,rn Servlet.service() for servlet XFireServlet threw exceptionrnjava.net.SocketTimeoutException: Read timed outrn听说是服务器设置断开时间太短了,请问怎么解决.rn
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没分了,全部分送上吧,麻烦帮帮忙
java.net.socketTimeoutException: Accept timed out
用applet +ftp 实现下载文件一半时 出现java.net.socketTimeoutException: Accept timed out异常,请教各位到底怎么回事?
webservice The operation timed out
同一个客户端在不同的电脑有些会出现The operation timed out,有些不会,会出现这种问题一个是Ghost 的XP系统,另外一个是Win7 都是30秒就超时,其他的2分钟也不会超时,请问是怎么回事
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
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数