- 論壇徽章:
- 0
|
最近公司做了一個(gè)數(shù)據(jù)接口,在linux上開(kāi)發(fā)Java程序?qū)崟r(shí)監(jiān)聽(tīng)并接收AS400上的DataQueue的消息,關(guān)鍵代碼如下:
/** sysConn 定義系統(tǒng)連接,dqPath 定義DataQueue路徑 */
DataQueue dq = new DataQueue(sysConn, dqPath);
String request = null;
while (true){
request = dq.read(-1).getString();
/**
* 對(duì)request進(jìn)行處理
* 不再對(duì)dq進(jìn)行操作
*
*/
}
現(xiàn)在出現(xiàn)的問(wèn)題是,在接收一次數(shù)據(jù)之后,程序繼續(xù)循環(huán)使用dq.read(-1)監(jiān)聽(tīng),大概空閑一個(gè)小時(shí)多一點(diǎn)時(shí)間后,AS400上JOBLOG中出現(xiàn)連接錯(cuò)誤信息,dq.read(-1)不報(bào)錯(cuò)但是監(jiān)聽(tīng)不到DataQueue的數(shù)據(jù)。
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 編輯 ] |
|