DO NOT REPLY [Bug 35920] - AOBE when IPAddress of nodes differ in length

2005-07-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35920.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35920





--- Additional Comments From [EMAIL PROTECTED]  2005-07-29 19:09 ---
This problem does not exhibit itself with Sun-jdk-1.5.0.04.
It's more likely a bug in the JRockit jvm.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 35920] - AOBE when IPAddress of nodes differ in length

2005-07-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35920.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35920





--- Additional Comments From [EMAIL PROTECTED]  2005-07-28 22:12 ---
It looks like the Datagram always has buffer for 1000 Bytes.
The IP itself has constant length (4 Bytes), the name (containing the IP as a
string) has variable length, but the length is passed as part of the datagram.
So no bug to be seen here.

I tried with two different length IPs - no problem.

If the third line of this:
   int dlen = XByteBuffer.toInt(dlend, 0);
   byte[] domaind = new byte[dlen];
   System.arraycopy(data, nlen + 24, domaind, 0, domaind.length);
is where it happens, can you debug by a print statement giving:

data.getLength()
XByteBuffer.toLong(alived, 0))
XByteBuffer.toInt(portd, 0),
addressToString(addr),
nlen,
new String(named),
dlen,

and for i=0...dlen-1
data[nlen + 24 + i]

That way you can see, if you received the data which is expected, or where there
might be something wrong.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 35920] - AOBE when IPAddress of nodes differ in length

2005-07-28 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35920.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35920





--- Additional Comments From [EMAIL PROTECTED]  2005-07-28 22:21 ---
Well, I forgot to mention something important.  I'm using the BEA JRockit jvm
and I'm betting they've done some kind of internal optimization at the java.net
class level.  I'll try again with the sun jvm and see if that solves the issue.

I had done some print statements to see what the byte[] contained.  It always
said it was 49 bytes long but there were 50 bytes worth of data sent (and 
received).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]