I am running the latest version of jnetPcap (jnetpcap-1.4.b0004-1.win32) downloaded today on Windows Vista 32-bit
I am trying to run the example file CommonUsageExamples.java and I am getting the following exception:
superFlowMap::Exception in thread "main" java.lang.NullPointerException
at org.jnetpcap.packet.JFlow.toString(JFlow.java:129)
at org.jnetpcap.packet.JFlowMap.toString(JFlowMap.java:93)
at java.util.Formatter$FormatSpecifier.printString(Unknown Source)
at java.util.Formatter$FormatSpecifier.print(Unknown Source)
at java.util.Formatter.format(Unknown Source)
at java.io.PrintStream.format(Unknown Source)
at java.io.PrintStream.printf(Unknown Source)
at CommonUsageExamples.main(CommonUsageExamples.java:343)
Corresponding to this line:
System.out.printf("superFlowMap::%s%n", superFlowMap); [line 303 in the current source version]
Note: I added some print statements in the earlier parts of the file and so my line numbers are probably a bit off of the original. I have attached the pcap file I was using, but I also get the same error when using the originally suggested test file: tests/test-http-jpeg.pcap
Thanks for any help you could provide.