免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4046 | 回复: 1
打印 上一主题 下一主题

寻求帮助:JDBC连接400并监听DATAQUEUE [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-17 12:09 |只看该作者 |倒序浏览
最近公司做了一个数据接口,在linux上开发Java程序实时监听并接收AS400上的DataQueue的消息,关键代码如下:

      /** sysConn 定义系统连接,dqPath 定义DataQueue路径 */
      DataQueue dq = new DataQueue(sysConn, dqPath);

      String request = null;
      
      while (true){
         request = dq.read(-1).getString();
        /**
         * 对request进行处理
      * 不再对dq进行操作
      *
         */

        }

现在出现的问题是,在接收一次数据之后,程序继续循环使用dq.read(-1)监听,大概空闲一个小时多一点时间后,AS400上JOBLOG中出现连接错误信息,dq.read(-1)不报错但是监听不到DataQueue的数据。
AS400上JOBLOG日志如下,各位大侠给看看是什么原因,非常感谢!

5722SS1 V5R3M0 040528 Display Job Log MACHAO 11/16/09 16:44:22 Page 3
Job name . . . . . . . . . . : QZHQSSRV User . . . . . . : QUSER Number . . . . . . . . . . . : 236266
Job description . . . . . . : QZBSJOBD Library . . . . . : QSYS
MSGID TYPE SEV DATE TIME FROM PGM LIBRARY INST TO PGM LIBRARY INST
From user . . . . . . . . . : SUSER
From module . . . . . . . . : QZBSSECR
From procedure . . . . . . : QzbsCheckSwapResults__FiP17QzbsStrSrvRequestP1
2QzbsStdReplyP14QzbsReplyHdr_tPA10_cPcPiPsP8sockaddrN27
Statement . . . . . . . . . : 295
To module . . . . . . . . . : QZBSSECR
To procedure . . . . . . . : QzbsCheckSwapResults__FiP17QzbsStrSrvRequestP1
2QzbsStdReplyP14QzbsReplyHdr_tPA10_cPcPiPsP8sockaddrN27
Statement . . . . . . . . . : 295
Message . . . . : User SUSER from client 172.24.32.200 connected to server.
Cause . . . . . : User profile SUSER from client 172.24.32.200 is currently
connected to this server job. The client name is either a TCP/IP remote
system name, a dotted decimal IP address, or the local host name.
CPE3426 Diagnostic 10 11/16/09 16:26:00.213016 QZBSCOMM QSYS *STMT QZBSCOMM QSYS *STMT
From user . . . . . . . . . : SUSER
From module . . . . . . . . : QZBSCOMM
From procedure . . . . . . : SndErrnoMsg__FPc
Statement . . . . . . . . . : 18
To module . . . . . . . . . : QZBSCOMM
To procedure . . . . . . . : SndErrnoMsg__FPc
Statement . . . . . . . . . : 18
Message . . . . : A connection with a remote socket was reset by that
socket.
CPIAD08 Diagnostic 40 11/16/09 16:26:00.213040 QZBSCOMM QSYS *STMT QZBSCOMM QSYS *STMT
From user . . . . . . . . . : SUSER
From module . . . . . . . . : QZBSCOMM
From procedure . . . . . . : SndCPIAD08__FiN21
Statement . . . . . . . . . : 47
To module . . . . . . . . . : QZBSCOMM
To procedure . . . . . . . : SndCPIAD08__FiN21
Statement . . . . . . . . . : 47
Message . . . . : Host server communications error occurred on SSL_Read() -
Length.
Cause . . . . . : Error code 3426 was received while processing the
SSL_Read() - Length function for the host server communications. Recovery .
. . : See any previously listed message(s) to determine the cause of the
error; if necessary, correct the error and issue the request again.
CPF1301 Information 30 11/16/09 16:26:00.218376 QWTCHGJB QSYS 100D QZBSSECR QSYS *STMT
To module . . . . . . . . . : QZBSSECR
To procedure . . . . . . . : QzbsChangeJob__Fi
Statement . . . . . . . . . : 41
Message . . . . : ACGDTA for 236266/QUSER/QZHQSSRV not journaled; reason 2.
Cause . . . . . : Job resource accounting data for job 236266/QUSER/QZHQSSRV
was not journaled to the system accounting journal QSYS/QACGJRN. -- Reason
codes and their meanings follow: -- 1-The accounting level system value
(QACGLVL) indicated that this level of resource accounting was not to be
done when the job entered the system. -- 2-The accounting journal
QSYS/QACGJRN is unable to receive the data. The accounting data was sent to
the history log (QHST) as the text of a CPF1303 message. See CPF1302 in the
history log (QHST) for recovery action. -- 3-The accounting journal
QSYS/QACGJRN was allocated to another job. The accounting data was sent to
the history log (QHST) as the text of a CPF1303 message.
CPF1301 Information 30 11/16/09 16:26:00.283056 QWTCHGJB QSYS 100D QWCSVRST QSYS *STMT
To module . . . . . . . . . : QWCSVRST
To procedure . . . . . . . : restoreAllAttributes__FP12save_space_TPPvPv
Statement . . . . . . . . . : 17
Message . . . . : ACGDTA for 236266/QUSER/QZHQSSRV not journaled; reason 2.
Cause . . . . . : Job resource accounting data for job 236266/QUSER/QZHQSSRV
was not journaled to the system accounting journal QSYS/QACGJRN. -- Reason
codes and their meanings follow: -- 1-The accounting level system value
(QACGLVL) indicated that this level of resource accounting was not to be
done when the job entered the system. -- 2-The accounting journal
QSYS/QACGJRN is unable to receive the data. The accounting data was sent to
the history log (QHST) as the text of a CPF1303 message. See CPF1302 in the
history log (QHST) for recovery action. -- 3-The accounting journal
QSYS/QACGJRN was allocated to another job. The accounting data was sent to
the history log (QHST) as the text of a CPF1303 message.
CPF1301 Information 30 11/16/09 16:26:39.070872 QWTCHGJB QSYS 100D QZBSSECR QSYS *STMT
From user . . . . . . . . . : SUSER
To module . . . . . . . . . : QZBSSECR
To procedure . . . . . . . : QzbsChangeJob__Fi
Statement . . . . . . . . . : 41
Message . . . . : ACGDTA for 236266/QUSER/QZHQSSRV not journaled; reason 2.
Cause . . . . . : Job resource accounting data for job 236266/QUSER/QZHQSSRV
was not journaled to the system accounting journal QSYS/QACGJRN. -- Reason
codes and their meanings follow: -- 1-The accounting level system value
(QACGLVL) indicated that this level of resource accounting was not to be
done when the job entered the system. -- 2-The accounting journal
QSYS/QACGJRN is unable to receive the data. The accounting data was sent to
the history log (QHST) as the text of a CPF1303 message. See CPF1302 in the
history log (QHST) for recovery action. -- 3-The accounting journal
QSYS/QACGJRN was allocated to another job. The accounting data was sent to
the history log (QHST) as the text of a CPF1303 message.
CPIAD02 Information 00 11/16/09 16:26:39.071120 QZBSSECR QSYS *STMT QZBSSECR QSYS *STMT
From user . . . . . . . . . : SUSER
From module . . . . . . . . : QZBSSECR
From procedure . . . . . . : QzbsCheckSwapResults__FiP17QzbsStrSrvRequestP1
2QzbsStdReplyP14QzbsReplyHdr_tPA10_cPcPiPsP8sockaddrN27
Statement . . . . . . . . . : 295
To module . . . . . . . . . : QZBSSECR
To procedure . . . . . . . : QzbsCheckSwapResults__FiP17QzbsStrSrvRequestP1
2QzbsStdReplyP14QzbsReplyHdr_tPA10_cPcPiPsP8sockaddrN27
Statement . . . . . . . . . : 295
Message . . . . : User SUSER from client 172.24.32.200 connected to server.
Cause . . . . . : User profile SUSER from client 172.24.32.200 is currently
connected to this server job. The client name is either a TCP/IP remote
system name, a dotted decimal IP address, or the local host name.

[ 本帖最后由 leanrabbit 于 2009-11-17 12:43 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-11-17 13:55 |只看该作者
找ADMIN 把你的电脑加到400的DEV里.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP