Re: [Jnetstream-users] ClassCastException
Brought to you by:
voytechs
From: Frédéric D. <fre...@dr...> - 2008-08-01 13:10:36
|
Hi Mark, It could be that I took the wrong download. Actually I found a workaround so it does not block me anymore. I will try soon to compile everything from SVN so I will get the up-to-date version of the library. Thank you very much, Frederic Mark Bednarczyk a écrit : > Hmm, I thought I had fixed that in the latest build ?#? > > I'm getting ready to head back to the US from Europe right now so I > won't be able to take a look at this until monday. This looks like a > bug and I will release a fixed daily build next week. > > Cheers, > mark... > ----- Original Message ----- From: "Frédéric Dreier" <fre...@dr...> > To: <Jne...@li...> > Sent: Thursday, July 31, 2008 10:14 PM > Subject: [Jnetstream-users] ClassCastException > > >> Hi, >> >> I use Jnetstream since some days and find it great. Now, I have a >> question about this code snippet : >> >> LiveCaptureDevice[] devs = Captures.listCaptureDevices(); >> for (LiveCaptureDevice dev : devs) { >> LiveCapture capture = Captures.openLive(dev); >> ... >> } >> >> By me, it produces the following exception : >> >> Exception in thread "main" java.lang.ClassCastException: >> [Lorg.jnetstream.capture.CaptureDevice; cannot be cast to >> [Lorg.jnetstream.capture.LiveCaptureDevice; >> at >> com.slytechs.jnetstream.livecapture.DefaultLiveCaptureFactory.openLive(Unknown >> >> Source) >> at com.slytechs.capture.LiveFactory.openLive(LiveFactory.java:77) >> at org.jnetstream.capture.Captures.openLive(Captures.java:1427) >> at covered.PacketCollector.openReceivers(PacketCollector.java:50) >> >> Any advice? >> >> Regards, >> Frederic >> >> ------------------------------------------------------------------------- >> >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Jnetstream-users mailing list >> Jne...@li... >> https://lists.sourceforge.net/lists/listinfo/jnetstream-users > |