More on the reply problem
| Newsgroups | gmane.network.beep.beepcore.java.general |
|---|---|
| Message-ID | <[email protected]> |
Kevin,
I have run the program on two other machines, a Pentium 4 1.8 Ghz running Windows XP and a Pentium 4 800 Mhz running Linux. All the machines that I have tested on have J2SDK 1.4.1 installed. I have looked further into the problem and am more confused now than ever. I have narrowed it down to one line of code, the recieveFrame method recieves a frame (of MSG type) and then processes it. It then calls the listener.recieveMSG(m) method. Just before this line is executed I output the message number and it is correct, but after in the message listener (TestBombProfile) the message recieved by recieveMSG has an incorrect number.
The error occurs at about line 500 in the Channel.java file (receiveFrame method). I added three debug outputs two in the receiveFrame method - one at the begining of the MSG type part (it outputs the message number) and the other just before the listener.recieveMSG(m) method is called (about line 500). I also put an output at the begining of the recieveMSG method (Also outputs the message number). Here follows what output should be recieved (for message number 4):
recieveFrame: recieved frame no 4
Channel: removed message 4
TestBombProfile: recieved message no. 4
I will attatch the results that I got as well as the example files. You will notice that I got very strange results, the first few messages don't seem to call the listener but the after a few they call the listener but with the wrong object (they call it the number of times that it was missed with the latest message object). To me it looks like a standard method call passing a parameter, it does not make sence to me that it does what it does. The error I revieved on the client side is:
SEVERE: Incorrect message number: was 3; expected 1
and then the client aborted the session.
Before you think that it has something to to do with the listener not being registered in time, I have seen it happen where the first few messages are correct but then the problem occurs later on.
What pc are you running, what operating system, and what version of JDK is installed? I connot understand how I get the same problem everytime but you don't.
Please try the test again and let me know how it goes.
Thanks,
Sean
Attached files:
bombServer.java => the server for the test
bombCient.java => the client for the test
TestBombProfile.java => the profile for the test
out_server.txt => the output I recieved on the server side
out_client.txt => the output I recieved on the client side
out_client.txt
(text/plain, 1.5 KB)
D:\Sean\XMLRPC~1\src>java -cp D:\j2sdk1.4.1\jre\lib\rt.jar;d:\j2sdk1.4.1\jre\lib\charsets.jar;d:\j2sdk1.4.1\jre\lib\jaws.jar;d:\j2sdk1.4.1\jre\lib\jce.jar;d:\j2sdk1.4.1\jre\lib\jsse.jar;d:\j2sdk1.4.1\jre\lib\sunrsasign.jar;d:\j2sdk1.4.1\jre\lib\ext\sunjce_provider.jar;.;d:\Sean\xmlrpc-beep\lib\commons-logging.jar;d:\Sean\xmlrpc-beep\lib\concurrent.jar;d:\Sean\xmlrpc-beep\lib\cryptix32.jar;d:\Sean\xmlrpc-beep\lib\cryptix-asn1.jar;log4j-1.2.6.jar;d:\Sean\xmlrpc-beep\lib\puretls.jar;d:\Sean\xmlrpc-beep\lib\xerces.jar;d:\Sean\xmlrpc-beep\src\tls\.;d:\Sean\xmlrpc-beep\src\example\. org.beepcore.beep.example.bombClient message no 1 message no 2 message no 3 message no 4 message no 5 message no 6 message no 7 message no 8 message no 9 message no 10 message no 11 message no 12 message no 13 message no 14 message no 15 message no 16 message no 17 message no 18 message no 19 message no 20 message no 21 message no 22 message no 23 message no 24 message no 25 message no 26 message no 27 message no 28 message no 29 message no 30 message no 31 message no 32 message no 33 message no 34 message no 35 message no 36 message no 37 message no 38 message no 39 message no 40 message no 41 message no 42 message no 43 message no 44 message no 45 message no 46 message no 47 message no 48 message no 49 message no 50 message no 51 message no 52 message no 53 message no 54 message no 55 message no 56 message no 57 message no 58 message no 59 message no 60
out_server.txt
(text/plain, 3.4 KB)
D:\Sean\xmlrpc-beep\src>java -cp D:\j2sdk1.4.1\jre\lib\rt.jar;d:\j2sdk1.4.1\jre\lib\charsets.jar;d:\j2sdk1.4.1\jre\lib\jaws.jar;d:\j2sdk1.4.1\jre\lib\jce.jar;d:\j2sdk1.4.1\jre\lib\jsse.jar;d:\j2sdk1.4.1\jre\lib\sunrsasign.jar;d:\j2sdk1.4.1\jre\lib\ext\sunjce_provider.jar;.;d:\Sean\xmlrpc-beep\lib\commons-logging.jar;d:\Sean\xmlrpc-beep\lib\concurrent.jar;d:\Sean\xmlrpc-beep\lib\cryptix32.jar;d:\Sean\xmlrpc-beep\lib\cryptix-asn1.jar;log4j-1.2.6.jar;d:\Sean\xmlrpc-beep\lib\puretls.jar;d:\Sean\xmlrpc-beep\lib\xerces.jar;d:\Sean\xmlrpc-beep\src\tls\.;d:\Sean\xmlrpc-beep\src\example\. org.beepcore.beep.example.bombServer recieveFrame: recieved frame no 1 Channel: removed message 1 recieveFrame: recieved frame no 1 Channel: removed message 1 recieveFrame: recieved frame no 2 Channel: removed message 2 recieveFrame: recieved frame no 3 Channel: removed message 3 TestBombProfile: recieved message no. 3 TestBombProfile: recieved message no. 3 TestBombProfile: recieved message no. 3 recieveFrame: recieved frame no 4 Channel: removed message 4 TestBombProfile: recieved message no. 4 recieveFrame: recieved frame no 5 Channel: removed message 5 TestBombProfile: recieved message no. 5 recieveFrame: recieved frame no 6 Channel: removed message 6 TestBombProfile: recieved message no. 6 recieveFrame: recieved frame no 7 Channel: removed message 7 TestBombProfile: recieved message no. 7 recieveFrame: recieved frame no 8 Channel: removed message 8 TestBombProfile: recieved message no. 8 recieveFrame: recieved frame no 9 Channel: removed message 9 TestBombProfile: recieved message no. 9 recieveFrame: recieved frame no 10 Channel: removed message 10 TestBombProfile: recieved message no. 10 recieveFrame: recieved frame no 11 Channel: removed message 11 TestBombProfile: recieved message no. 11 recieveFrame: recieved frame no 12 Channel: removed message 12 TestBombProfile: recieved message no. 12 recieveFrame: recieved frame no 13 Channel: removed message 13 TestBombProfile: recieved message no. 13 recieveFrame: recieved frame no 14 Channel: removed message 14 recieveFrame: recieved frame no 15 Channel: removed message 15 TestBombProfile: recieved message no. 15 recieveFrame: recieved frame no 16 Channel: removed message 16 TestBombProfile: recieved message no. 16 recieveFrame: recieved frame no 17 Channel: removed message 17 TestBombProfile: recieved message no. 17 recieveFrame: recieved frame no 18 Channel: removed message 18 TestBombProfile: recieved message no. 18 recieveFrame: recieved frame no 19 Channel: removed message 19 TestBombProfile: recieved message no. 19 recieveFrame: recieved frame no 20 Channel: removed message 20 TestBombProfile: recieved message no. 20 TestBombProfile: recieved message no. 20 recieveFrame: recieved frame no 21 Channel: removed message 21 TestBombProfile: recieved message no. 21 recieveFrame: recieved frame no 22 Channel: removed message 22 TestBombProfile: recieved message no. 22 recieveFrame: recieved frame no 23 Channel: removed message 23 TestBombProfile: recieved message no. 23 recieveFrame: recieved frame no 24 Channel: removed message 24 recieveFrame: recieved frame no 25 Channel: removed message 25 TestBombProfile: recieved message no. 25 recieveFrame: recieved frame no 26 Channel: removed message 26 TestBombProfile: recieved message no. 26 TestBombProfile: recieved message no. 26
bombClient.java
(application/octet-stream, 3.7 KB) - not displayed
bombServer.java
(application/octet-stream, 2.5 KB) - not displayed
TestBombProfile.java
(application/octet-stream, 4.4 KB) - not displayed