Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » JmDNS ClassCastException and more
JmDNS ClassCastException and more [message #624028] Wed, 27 August 2008 21:22 Go to next message
Bill Joy is currently offline Bill JoyFriend
Messages: 60
Registered: July 2009
Member
I am seeing the following exception occasionally on Eclipse 3.4. Since the
version shipped with ECF 2.0 does not match what is available on
SourceForge, I decided to post it here. The debugger said it was a line 70
in SocketListener though the line number does not appear in the stack trace.

Exception in thread "JmDNS.SocketListener" java.lang.ClassCastException:
javax.jmdns.impl.DNSRecord$Service
at javax.jmdns.impl.JmDNSImpl.updateRecord(JmDNSImpl.java:928)
at javax.jmdns.impl.JmDNSImpl.handleResponse(JmDNSImpl.java:102 5)
at javax.jmdns.impl.SocketListener.run(SocketListener.java:68)
at java.lang.Thread.run(Thread.java:595)

I am also seeing "No service type for event" errors with lots of associated
ECF dumps as reported by bug 202774.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=202774

Perhaps related to having Macs on the network? They seem to come
pre-configured with IPv6 enabled.

And also the following (but JmDNS does seem to usually recover successfully)
which may be related to the bug 202774 problem.

java.io.IOException: buffer full
at javax.jmdns.impl.DNSOutgoing.writeByte(DNSOutgoing.java:144)
at javax.jmdns.impl.DNSOutgoing.writeShort(DNSOutgoing.java:175 )
at javax.jmdns.impl.DNSOutgoing.writeInt(DNSOutgoing.java:181)
at javax.jmdns.impl.DNSOutgoing.writeRecord(DNSOutgoing.java:29 5)
at javax.jmdns.impl.DNSOutgoing.addAnswer(DNSOutgoing.java:115)
at javax.jmdns.impl.tasks.TypeResolver.run(TypeResolver.java:68 )
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Aug 27, 2008 1:14:54 PM javax.jmdns.impl.tasks.TypeResolver run
WARNING: run() exception
java.io.IOException: buffer full
at javax.jmdns.impl.DNSOutgoing.writeByte(DNSOutgoing.java:144)
at javax.jmdns.impl.DNSOutgoing.writeShort(DNSOutgoing.java:175 )
at javax.jmdns.impl.DNSOutgoing.writeInt(DNSOutgoing.java:181)
at javax.jmdns.impl.DNSOutgoing.writeRecord(DNSOutgoing.java:29 5)
at javax.jmdns.impl.DNSOutgoing.addAnswer(DNSOutgoing.java:115)
at javax.jmdns.impl.tasks.TypeResolver.run(TypeResolver.java:68 )
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Aug 27, 2008 1:14:54 PM javax.jmdns.impl.JmDNSImpl recover
WARNING: recover() Start services exception
java.lang.IllegalThreadStateException
at java.lang.Thread.start(Thread.java:571)
at javax.jmdns.impl.JmDNSImpl.start(JmDNSImpl.java:269)
at javax.jmdns.impl.JmDNSImpl.recover(JmDNSImpl.java:1200)
at javax.jmdns.impl.tasks.TypeResolver.run(TypeResolver.java:89 )
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Aug 27, 2008 1:14:54 PM javax.jmdns.impl.JmDNSImpl recover
WARNING: recover() We are back!
Re: JmDNS ClassCastException and more [message #624029 is a reply to message #624028] Thu, 28 August 2008 17:12 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Bill,

Bill Joy wrote:
> I am seeing the following exception occasionally on Eclipse 3.4. Since the
> version shipped with ECF 2.0 does not match what is available on
> SourceForge, I decided to post it here. The debugger said it was a line 70
> in SocketListener though the line number does not appear in the stack trace.
>
> Exception in thread "JmDNS.SocketListener" java.lang.ClassCastException:
> javax.jmdns.impl.DNSRecord$Service
> at javax.jmdns.impl.JmDNSImpl.updateRecord(JmDNSImpl.java:928)
> at javax.jmdns.impl.JmDNSImpl.handleResponse(JmDNSImpl.java:102 5)
> at javax.jmdns.impl.SocketListener.run(SocketListener.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> I am also seeing "No service type for event" errors with lots of associated
> ECF dumps as reported by bug 202774.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=202774
>
> Perhaps related to having Macs on the network? They seem to come
> pre-configured with IPv6 enabled.


Yes, I believe so. I think most of these problems result from a
limitation of the current JmDNS implementation...little/no support for IPv6.

I'm not sure what to do about this, as although I'm now a committer on
JmDNS I don't really have the time to take on working on IPv6 support.

Bill could/would you please create an ECF bug report with these stack
traces so we can have it recorded/use:

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=ECF

Thanks,

Scott



>
> And also the following (but JmDNS does seem to usually recover successfully)
> which may be related to the bug 202774 problem.
>
> java.io.IOException: buffer full
> at javax.jmdns.impl.DNSOutgoing.writeByte(DNSOutgoing.java:144)
> at javax.jmdns.impl.DNSOutgoing.writeShort(DNSOutgoing.java:175 )
> at javax.jmdns.impl.DNSOutgoing.writeInt(DNSOutgoing.java:181)
> at javax.jmdns.impl.DNSOutgoing.writeRecord(DNSOutgoing.java:29 5)
> at javax.jmdns.impl.DNSOutgoing.addAnswer(DNSOutgoing.java:115)
> at javax.jmdns.impl.tasks.TypeResolver.run(TypeResolver.java:68 )
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> Aug 27, 2008 1:14:54 PM javax.jmdns.impl.tasks.TypeResolver run
> WARNING: run() exception
> java.io.IOException: buffer full
> at javax.jmdns.impl.DNSOutgoing.writeByte(DNSOutgoing.java:144)
> at javax.jmdns.impl.DNSOutgoing.writeShort(DNSOutgoing.java:175 )
> at javax.jmdns.impl.DNSOutgoing.writeInt(DNSOutgoing.java:181)
> at javax.jmdns.impl.DNSOutgoing.writeRecord(DNSOutgoing.java:29 5)
> at javax.jmdns.impl.DNSOutgoing.addAnswer(DNSOutgoing.java:115)
> at javax.jmdns.impl.tasks.TypeResolver.run(TypeResolver.java:68 )
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> Aug 27, 2008 1:14:54 PM javax.jmdns.impl.JmDNSImpl recover
> WARNING: recover() Start services exception
> java.lang.IllegalThreadStateException
> at java.lang.Thread.start(Thread.java:571)
> at javax.jmdns.impl.JmDNSImpl.start(JmDNSImpl.java:269)
> at javax.jmdns.impl.JmDNSImpl.recover(JmDNSImpl.java:1200)
> at javax.jmdns.impl.tasks.TypeResolver.run(TypeResolver.java:89 )
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> Aug 27, 2008 1:14:54 PM javax.jmdns.impl.JmDNSImpl recover
> WARNING: recover() We are back!
>
>
Previous Topic:syndicated feeds
Next Topic:Reminder: ECF conference call in ~45min
Goto Forum:
  


Current Time: Thu Apr 25 12:17:51 GMT 2024

Powered by FUDForum. Page generated in 0.03257 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top