起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1019|回复: 4

[结贴] 程序运行1-2天就报错不知道是什么原因?请高手指点!!...

[复制链接]

31

主题

96

帖子

397

积分

中级会员

Rank: 3Rank: 3

积分
397
QQ
发表于 2016-3-2 13:43:27 | 显示全部楼层 |阅读模式
报错如下:
select '0' as id , gsmc as gs,'1.png' as tupian, ssjrbf,ssbylj,ssbytb,ssbnlj,sstbzzl,sswcjh from rbjk_cb_hz where riqi=today-1 and dm='1'order by ssbnlj desc
java.sql.SQLException: System or internal error java.net.SocketException: Connection reset by peer: socket write error
        at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:430)
        at com.informix.jdbc.IfxSqli.sendPrepare(IfxSqli.java:1165)
        at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java:1081)
        at com.informix.jdbc.IfxResultSet.executePrepare(IfxResultSet.java:182)
        at com.informix.jdbc.IfxPreparedStatement.setupExecutePrepare(IfxPreparedStatement.java:197)
        at com.informix.jdbc.IfxPreparedStatement.<init>(IfxPreparedStatement.java:175)
        at com.informix.jdbc.IfxSqliConnect.prepareStatement(IfxSqliConnect.java:1907)
        at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:281)
        at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:313)
        at com.justep.baas.data.Util.queryData(Util.java:60)
        at com.picc.baas.baofei.BaofeiServlet.queryssbfbaofei(BaofeiServlet.java:317)
        at com.picc.baas.baofei.BaofeiServlet.service(BaofeiServlet.java:54)
        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:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
三月 02, 2016 1:29:49 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet X5 Baas baofei Servlet threw exception
java.sql.SQLException: System or internal error java.net.SocketException: Connection reset by peer: socket write error
        at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:430)
        at com.informix.jdbc.IfxSqli.sendPrepare(IfxSqli.java:1165)
        at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java:1081)
        at com.informix.jdbc.IfxResultSet.executePrepare(IfxResultSet.java:182)
        at com.informix.jdbc.IfxPreparedStatement.setupExecutePrepare(IfxPreparedStatement.java:197)
        at com.informix.jdbc.IfxPreparedStatement.<init>(IfxPreparedStatement.java:175)
        at com.informix.jdbc.IfxSqliConnect.prepareStatement(IfxSqliConnect.java:1907)
        at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:281)
        at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:313)
        at com.justep.baas.data.Util.queryData(Util.java:60)
        at com.picc.baas.baofei.BaofeiServlet.queryssbfbaofei(BaofeiServlet.java:317)
        at com.picc.baas.baofei.BaofeiServlet.service(BaofeiServlet.java:54)
        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:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)

2016-03-02 13:33:15 开始-WINDOW生成中间文件: /UI2/carbforder/index.w
2016-03-02 13:33:15 结束-WINDOW生成中间文件: /UI2/carbforder/index.w
2016-03-02 13:33:15 开始-中间文件生成缓存文件: /UI2/carbforder/index.w
2016-03-02 13:33:16 结束-中间文件生成缓存文件: /UI2/carbforder/index.w
2016-03-02 13:34:26 开始-WINDOW生成中间文件: /UI2/carbforder/index.w
2016-03-02 13:34:26 结束-WINDOW生成中间文件: /UI2/carbforder/index.w
2016-03-02 13:34:26 开始-中间文件生成缓存文件: /UI2/carbforder/index.w
2016-03-02 13:34:27 结束-中间文件生成缓存文件: /UI2/carbforder/index.w
select '0'as id,case when comcode[1,6]='230921' then '勃利支公司' when comcode[1,6]='230998' then '车商业务部' when comcode[1,6]='230902' then '新兴支公司' when comcode[1,6]='230995' then '次新车团队' when comcode[1,6]='230994' then '财产险团队' when comcode[1,6]='230992' then '营销服务部' when comcode[1,6]='230904' then '茄子河公司' when comcode[1,6]='230997' then '市直销团队' when comcode[1,6] in ('230903','230993')then '桃山支公司'end as gs,case when comcode[1,6] in ('230903','230993') then '230903.jpg' else comcode[1,6]||'.jpg' end as tupian, sum(sumpremium) as baofei from prpcmain where operatedate=today and underwriteflag in ('1','3') and comcode[1,4]='2309' group by 1,2,3 order by baofei desc
java.sql.SQLException: System or internal error java.net.SocketException: Connection reset by peer: socket write error
        at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:430)
        at com.informix.jdbc.IfxSqli.sendPrepare(IfxSqli.java:1165)
        at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java:1081)
        at com.informix.jdbc.IfxResultSet.executePrepare(IfxResultSet.java:182)
        at com.informix.jdbc.IfxPreparedStatement.setupExecutePrepare(IfxPreparedStatement.java:197)
        at com.informix.jdbc.IfxPreparedStatement.<init>(IfxPreparedStatement.java:175)
        at com.informix.jdbc.IfxSqliConnect.prepareStatement(IfxSqliConnect.java:1907)
        at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:281)
        at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:313)
        at com.justep.baas.data.Util.queryData(Util.java:60)
        at com.picc.baas.baofei.BaofeiServlet.querytodaybaofei(BaofeiServlet.java:220)
        at com.picc.baas.baofei.BaofeiServlet.service(BaofeiServlet.java:48)
        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:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)







0

主题

235

帖子

300

积分

中级会员

Rank: 3Rank: 3

积分
300
QQ
发表于 2016-3-2 13:51:15 | 显示全部楼层
报错信息显示数据库连接错误

回复 支持 反对

使用道具 举报

31

主题

96

帖子

397

积分

中级会员

Rank: 3Rank: 3

积分
397
QQ
 楼主| 发表于 2016-3-3 08:31:11 | 显示全部楼层
huaidanzhilei 发表于 2016-3-2 13:51
报错信息显示数据库连接错误

是数据库连接错误,是什么原因不清楚,还不是一直不好使,说不上什么时候就报这个错误!!!!
回复 支持 反对

使用道具 举报

0

主题

235

帖子

300

积分

中级会员

Rank: 3Rank: 3

积分
300
QQ
发表于 2016-3-3 09:37:31 | 显示全部楼层
回复 支持 反对

使用道具 举报

31

主题

96

帖子

397

积分

中级会员

Rank: 3Rank: 3

积分
397
QQ
 楼主| 发表于 2016-6-17 15:14:46 | 显示全部楼层
谢谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-22 11:00 , Processed in 0.052607 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表