- 论坛徽章:
- 0
|
最近公司做了一个数据接口,在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 编辑 ] |
|