Thread: [Jnetstream-users] ClassCastException
Brought to you by:
voytechs
From: Frédéric D. <fre...@dr...> - 2008-07-31 20:14:28
|
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 |
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 |
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 > |
From: Mark B. <voy...@ya...> - 2008-08-02 04:13:08
|
Here is a link to the latest build. I haven't modified anything since it was released. Follow the "visit link" to get at the download page: http://jnetstream.sourceforge.net/node/214 Cheers, mark... ----- Original Message ----- From: "Frédéric Dreier" <fre...@dr...> To: "Mark Bednarczyk" <voy...@ya...> Cc: <Jne...@li...> Sent: Friday, August 01, 2008 3:10 PM Subject: Re: [Jnetstream-users] ClassCastException 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 > ------------------------------------------------------------------------- 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 |