Comments (13)
Thanks alot!! . I appreciate your support.
There are two main resolution for this.
- Use Npcap llibrary
- During installation of Npcap, select checkbox "Install with WinPcap API-compatible mode"
Again thanks for your time.
from iextrading4j-hist.
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:
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.
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.
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.
from iextrading4j-hist.
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.
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.
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.
`May I know what value you are passing in Pcaps.openOffline() method ?
from iextrading4j-hist.
I think it still cannot find pcap library, did you install Npcap with WinPcap API-compatible mode? Please do following:
- Uninstall Npcap (by default it is installed in C:/Program Files/Npcap)
- 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.
Thanks for your support . I am trying now.
from iextrading4j-hist.
So it is working, right?
from iextrading4j-hist.
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.
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)
- Issue : Some of Deeps/Tops History data is failed to read HOT 8
- IEX TOPS Message has to contain 42 bytes
- ERROR [org.pcap4j.core.PcapHandle] :: java.lang.OutOfMemoryError: GC overhead limit exceeded HOT 2
- Cannot parse IEXSaleConditionFlag HOT 1
- packet.getPayload() returns null HOT 9
- org.pcap4j.core.PcapNativeException: path_to_pcap: No such file or directory HOT 2
- Try to run tops sample
- org.pcap4j.core.PcapHandle - The executor has thrown an exception.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iextrading4j-hist.