Re: [Jnetstream-users] ClassCastException
Brought to you by:
voytechs
|
From: Mark B. <voy...@ya...> - 2008-08-01 09:18:48
|
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
|