users@glassfish.java.net

java.io.IOException: DNSIncoming corrupted message

From: <thomas_at_randspringer.de>
Date: Wed, 9 Mar 2011 13:18:24 +0100 (CET)

Hi,
 
I observed the following exception (WARNING) in 3.1 server.log:
 
>snip
 
[#|2011-03-09T12:48:03.339+0100|WARNING|glassfish3.1|javax.jmdns.impl.DNSIncoming|_ThreadID=77;_ThreadName=Thread-1;|DNSIncoming() dump dns[response,10.79.10.168:5353, length=199, id=0x0, flags=0x8400:r:aa]
   0: 0000840000000003 00000000035f766d 095f6a766d616765 6e74045f74637006     ........ ....._vm ._jvmage nt._tcp.
  20: 5f6c6f63616c0000 0c000100000e1000 29264a564d3a3078 3639373237396234     _local.. ........ )&JVM:0x 697279b4
  40: 3a30783132653731 3735646263613a30 7861346630616138 c00cc03100210001     :0x12e71 75dbca:0 xa4f0aa8 ...1.!..
  60: 00000e1000160000 00002e7308626c61 6465323630056c6f 63616c00c0310010     ........ ...s.bla de260.lo cal..1..
  80: 000100000e10003f 0e5374617475733d 656e61626c656407 4e616d653d766d17     .......? .Status= enabled. Name=vm.
  a0: 537461727454696d 653d313239383938 333637323737380f 4167656e7449443d     StartTim e=129898 3672778. AgentID=
  c0: 627579696e6731                                                          buying1

 exception
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1937)
        at javax.jmdns.impl.ServiceInfoImpl.decodeQualifiedNameMapForType(ServiceInfoImpl.java:291)
        at javax.jmdns.impl.DNSEntry.<init>(DNSEntry.java:47)
        at javax.jmdns.impl.DNSRecord.<init>(DNSRecord.java:46)
        at javax.jmdns.impl.DNSRecord$Pointer.<init>(DNSRecord.java:414)
        at javax.jmdns.impl.DNSIncoming.readAnswer(DNSIncoming.java:285)
        at javax.jmdns.impl.DNSIncoming.<init>(DNSIncoming.java:209)
        at javax.jmdns.impl.SocketListener.run(SocketListener.java:50)
|#]

[#|2011-03-09T12:48:03.353+0100|WARNING|glassfish3.1|javax.jmdns.impl.SocketListener|_ThreadID=77;_ThreadName=Thread-1;|SocketListener(cobdev-ov-otto-de.local.).run() exception
java.io.IOException: DNSIncoming corrupted message
        at javax.jmdns.impl.DNSIncoming.<init>(DNSIncoming.java:239)
        at javax.jmdns.impl.SocketListener.run(SocketListener.java:50)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1937)
        at javax.jmdns.impl.ServiceInfoImpl.decodeQualifiedNameMapForType(ServiceInfoImpl.java:291)
        at javax.jmdns.impl.DNSEntry.<init>(DNSEntry.java:47)
        at javax.jmdns.impl.DNSRecord.<init>(DNSRecord.java:46)
        at javax.jmdns.impl.DNSRecord$Pointer.<init>(DNSRecord.java:414)
        at javax.jmdns.impl.DNSIncoming.readAnswer(DNSIncoming.java:285)
        at javax.jmdns.impl.DNSIncoming.<init>(DNSIncoming.java:209)
        ... 1 more
|#]


 
>snip 
 
Any idea how to solve it?
 
 
Thomas