• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Jpcap setFilter help  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello i got problem with the setFilter().
I has write this code:


The get filter returns a String but always i get the Eroor-- message, if i remove captor i do not, does anyone know why?
 
Sheriff
Posts: 21450
95
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the output if you add ex.printStackTrace() in the exception handler? Because right now all you know is that you get some exception - not its message, not its class / type, not where it came from, just the fact that you got an exception. You might as well do nothing. Even a simple System.out.println("Eroor-- " + e) would be better as that will at least contain the class / type and message.
 
george kapou
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply but i solved the problem. The problem was that the setFilter method is case sensitive. The solution found here h**p://www.winpcap.org/docs/docs_41b5/html/group__language.html
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!