G
greatwall
Develop envioronment: jbuilder 2006
recently I did a producor and cosumer program, the producor produce
msgItem and the consumer consume the msgItem. But when I run the
program, I found the following error, can somebody help me?
code segments:
public void run() {
Timer timer = new Timer();
timer.schedule(new TimerTask() {
public void run() {
if (getReadyFlag()) {
//can read data
StreamQueue.AppendMessage(new
ByteQueueItem(getStreamBytes()));
setReadyFlag();
}
}
}, 10, 1);
// throw new java.lang.UnsupportedOperationException(
// "Method run() not yet implemented.");
}
error when running:
queue overflow, no 281 lenth = 2b8c
queue overflow, no 284 lenth = 26fc
queue overflow, no 291 lenth = 2e24
queue overflow, no 294 lenth = 2d48
queue overflow, no 297 lenth = 2b38
queue overflow, no 300 lenth = 2690
queue overflow, no 303 lenth = 26a4
queue overflow, no 306 lenth = 28a4
queue overflow, no 316 lenth = 2570
queue overflow, no 319 lenth = 147c
queue overflow, no 325 lenth = 2544
queue overflow, no 328 lenth = 27a4
queue overflow, no 331 lenth = 1548
Do somebody know how this error happen???
recently I did a producor and cosumer program, the producor produce
msgItem and the consumer consume the msgItem. But when I run the
program, I found the following error, can somebody help me?
code segments:
public void run() {
Timer timer = new Timer();
timer.schedule(new TimerTask() {
public void run() {
if (getReadyFlag()) {
//can read data
StreamQueue.AppendMessage(new
ByteQueueItem(getStreamBytes()));
setReadyFlag();
}
}
}, 10, 1);
// throw new java.lang.UnsupportedOperationException(
// "Method run() not yet implemented.");
}
error when running:
queue overflow, no 281 lenth = 2b8c
queue overflow, no 284 lenth = 26fc
queue overflow, no 291 lenth = 2e24
queue overflow, no 294 lenth = 2d48
queue overflow, no 297 lenth = 2b38
queue overflow, no 300 lenth = 2690
queue overflow, no 303 lenth = 26a4
queue overflow, no 306 lenth = 28a4
queue overflow, no 316 lenth = 2570
queue overflow, no 319 lenth = 147c
queue overflow, no 325 lenth = 2544
queue overflow, no 328 lenth = 27a4
queue overflow, no 331 lenth = 1548
Do somebody know how this error happen???