2011-07-29 44 views
3

當我在運行我們的應用程序時,出現以下錯誤,任何人都可以幫助我擺脫它。後端I/O錯誤

我使用JDK 1.6,Tomcat的6.0,Windows XP中

org.postgresql.util.PSQLException: An I/O error occured while sending to the backend. 
     at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:283) 
     at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479) 
     at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:353) 
     at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:252) 
     at com.i10n.db.dao.TripDetailsDaoImpl.getActiveTripDetailsWithLiveStatusForTheUser(TripDetailsDaoImpl.java:52) 
     at com.i10n.db.dao.TripDetailsDaoImpl.getActiveTripDetailsWithLiveStatusForTheUser(TripDetailsDaoImpl.java:37) 
     at com.i10n.fleet.providers.mock.managers.DriverManager.parseDataset(DriverManager.java:56) 
     at com.i10n.fleet.providers.mock.managers.DriverManager.getData(DriverManager.java:39) 
     at com.i10n.fleet.providers.mock.ReportsDataProvider.getDataset(ReportsDataProvider.java:61) 
     at com.i10n.fleet.web.controllers.ViewController.handleRequest(ViewController.java:58) 
     at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) 
     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:859) 
     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:793) 
     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476) 
     at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431) 
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) 
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) 
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) 
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) 
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) 
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) 
     at java.lang.Thread.run(Thread.java:619) 
Caused by: java.net.SocketException: Connection reset by peer: socket write error 
     at java.net.SocketOutputStream.socketWrite0(Native Method) 
     at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) 
     at java.net.SocketOutputStream.write(SocketOutputStream.java:136) 
     at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) 
     at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) 
     at org.postgresql.core.PGStream.flush(PGStream.java:508) 
     at org.postgresql.core.v3.QueryExecutorImpl.sendSync(QueryExecutorImpl.java:1107) 
     at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:256) 
     ... 28 more 

回答

2

無論你的Postgres進程崩潰,或者說你的網絡中被打破並殺死連接。檢查postgres日誌。