Git Product home page Git Product logo

Comments (13)

vikasguptascs avatar vikasguptascs commented on June 18, 2024 1

Thanks alot!! . I appreciate your support.

There are two main resolution for this.

  1. Use Npcap llibrary
  2. During installation of Npcap, select checkbox "Install with WinPcap API-compatible mode"

Again thanks for your time.

from iextrading4j-hist.

WojciechZankowski avatar WojciechZankowski commented on June 18, 2024

Hey,

I checked out the sample on my env and it is working without any issues. It seems like the problem is in the WinPcap library that you are using, it does not support this kind of timestamps. But even tho I tried with different timestamp settings and generally I cannot open it using WinPcap & pcap4j.

I am using Npcap on my env and if it is possible you should try to use it too. Npcap can be downloaded directly from their website:

https://nmap.org/npcap/

I am using version 0.93, but it will also work with the newest one. I will remove WinPcap from README, thanks for pointing this out!

Let me know if it is acceptable solution for you?

Have a nice day,

Wojtek

from iextrading4j-hist.

vikasguptascs avatar vikasguptascs commented on June 18, 2024

Hi,

Thank you so much for quick response.

I will go with your suggestion and let you know if there is any issue i observe.

thanks again.
Have a nice day..

Regards,
Vikas

from iextrading4j-hist.

vikasguptascs avatar vikasguptascs commented on June 18, 2024

Hi,

I tried Solution but it failed with same exception.

I used Npcap library with version 0.97(latest).
I am getting same error.

Exception

org.pcap4j.core.PcapNativeException: pcap_open_offline_with_tstamp_precision is not supported by the pcap library installed in this environment.
at org.pcap4j.core.Pcaps.openOffline(Pcaps.java:234)
at RunPcap.readDEEPsample(RunPcap.java:30)
at RunPcap.main(RunPcap.java:19)

My Configuration:
:: Java 1.8
:: Window 7 OS
:: Created Standalone app in java to verify the features
:: List of supporting jars(Please find attachment)
:: Used same pcap file mentioned in previous conversation

Please do let me know if I can show you or if you need any details.

May I request you please to help me on this.

thanks.
pcap project libs

from iextrading4j-hist.

WojciechZankowski avatar WojciechZankowski commented on June 18, 2024

Pcap4j should show some logs, in my case it is like that, could you provide what you receive?

17:05:10.609 [main] INFO org.pcap4j.core.NativeMappings - Pcap4J successfully loaded a native pcap library: Npcap version 0.97, based on libpcap version 1.8.1
17:05:10.681 [main] INFO org.pcap4j.core.PcapHandle - Starting loop.

Thanks!

from iextrading4j-hist.

vikasguptascs avatar vikasguptascs commented on June 18, 2024

Hi ,

Thanks for response.

It failed immediately with below exception

org.pcap4j.core.PcapNativeException: pcap_open_offline_with_tstamp_precision is not supported by the pcap library installed in this environment.
at org.pcap4j.core.Pcaps.openOffline(Pcaps.java:234)
at RunPcap.readDEEPsample(RunPcap.java:30)
at RunPcap.main(RunPcap.java:19)

I am attaching zip file (contain java file
## RunPcap.java.zip
)which i am using to run

Could you please help me on this.
I can share my screen with you or we can talk in case of more details.

from iextrading4j-hist.

vikasguptascs avatar vikasguptascs commented on June 18, 2024

I have created standalone application.

in my case, it did not generate output like
17:05:10.609 [main] INFO org.pcap4j.core.NativeMappings - Pcap4J successfully loaded a native pcap library: Npcap version 0.97, based on libpcap version 1.8.1

from iextrading4j-hist.

vikasguptascs avatar vikasguptascs commented on June 18, 2024

`May I know what value you are passing in Pcaps.openOffline() method ?

from iextrading4j-hist.

WojciechZankowski avatar WojciechZankowski commented on June 18, 2024

I think it still cannot find pcap library, did you install Npcap with WinPcap API-compatible mode? Please do following:

  1. Uninstall Npcap (by default it is installed in C:/Program Files/Npcap)
  2. During Npcap installation select checkbox "Install with WinPcap API-compatible mode" or sth like that, it should be the last checkbox.

I am passing path to pcap file ;)

from iextrading4j-hist.

vikasguptascs avatar vikasguptascs commented on June 18, 2024

Thanks for your support . I am trying now.

from iextrading4j-hist.

WojciechZankowski avatar WojciechZankowski commented on June 18, 2024

So it is working, right?

from iextrading4j-hist.

vikasguptascs avatar vikasguptascs commented on June 18, 2024

yes , its working now.. thanks again..

One last confirmation i need,
What if i want to run same program in linux, Do i need to do any kind of checkbox selection while installing npcap lib?
Do i need to do some more steps ?

from iextrading4j-hist.

WojciechZankowski avatar WojciechZankowski commented on June 18, 2024

I have not tried to run it on Linux, probably checkbox is not needed.

Good to hear your problem is solved.

from iextrading4j-hist.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.