[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
|