Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Demo启动即报错 java.lang.NoSuchMethodError #7

Open
Jucyfer opened this issue Nov 8, 2021 · 2 comments
Open

Demo启动即报错 java.lang.NoSuchMethodError #7

Jucyfer opened this issue Nov 8, 2021 · 2 comments

Comments

@Jucyfer
Copy link

Jucyfer commented Nov 8, 2021

Exception in thread "main" java.lang.NoSuchMethodError: SwigDirector_CThostFtdcMdSpi_OnRspQryMulticastInstrument
at ctp.thostapi.thosttraderapiJNI.swig_module_init(Native Method)
at ctp.thostapi.thosttraderapiJNI.(thosttraderapiJNI.java:10453)
at ctp.thostapi.CThostFtdcTraderApi.CreateFtdcTraderApi(CThostFtdcTraderApi.java:35)
at ctpapi.ctpdemo.main(ctpdemo.java:214)

@xzyterry
Copy link

俺也一样

@mfkvfn
Copy link

mfkvfn commented Aug 17, 2023

应该是 dll版本与它这个不兼容导致的。
如果用不上这个方法,可以从反反编译一份java代码,然后从java源代码中删除这个方法,然后重新编译到jar。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants