問題:
在搞QuickFIXJ 的時候,遇到:
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.xmlasia.fox.fix.server.GatewayConnector]: Constructor threw exception; nested exception is java.lang.VerifyError
class: org/quickfixj/jmx/mbean/session/SessionAdmin, method: resetSequence signature: (I)V) Incompatible argument to function
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:111)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:237)
... 49 more
Caused by: java.lang.VerifyError: (class: org/quickfixj/jmx/mbean/session/SessionAdmin, method: resetSequence signature: (I)V) Incompatible argument to function
at org.quickfixj.jmx.mbean.session.SessionJmxExporter.export(SessionJmxExporter.java:28)
at org.quickfixj.jmx.mbean.connector.ConnectorJmxExporter.export(ConnectorJmxExporter.java:66)
at org.quickfixj.jmx.mbean.connector.ConnectorJmxExporter.export(ConnectorJmxExporter.java:46)
at org.quickfixj.jmx.JmxExporter.export(JmxExporter.java:60)
原因: 版本沖突,用maven 管理classpath,但classpath里至少有兩個jar里有一樣的class,一個是用1.5build(QuickFIXJ),一個是用1.6build(自己的jar),在JMX Export的時候,拿了1.6的class放到1.5中。
辦法: 可通過maven dependency的priority, 因為dependency在pom.xml的先后是會造成其在classpath的優先順序。
分享到:
相关推荐
java.lang.VerifyError 验证错误。当验证器检测到某个类文件中存在内部不兼容或者安全问题时抛出该错误。 java.lang.VirtualMachineError 虚拟机错误。用于指示虚拟机被破坏或者继续执行操作所需的资源不足的情况。 ...
39.java.lang.VerifyError 验证错误。当验证器检测到某个类文件中存在内部不兼容或者安全问题时抛出该错误。 40.java.lang.VirtualMachineError 虚拟机错误。用于指示虚拟机被破坏或者继续执行操作所需的资源不足的...
IKAnalyzer是一款中文分析器,应用于Solr搜索服务当中。
解决Exception in thread "main" java.lang.VerifyError: class org.wltea.analyzer.lucene.IKAnalyzer overrides final method tokenStream.(Ljava/lang/String;Ljava/io/Reader;)Lorg/apache/lucene/analysis/...
org.bouncycastle.openssl.PEMException: problem parsing ENCRYPTED PRIVATE KEY: java.lang.SecurityException: JCE cannot authenticate the provider BC at org.bouncycastle.openssl.PEMReader$...
public boolean verify(String hostname, javax.net.ssl.SSLSession session) { return true; } }; // Install the all-trusting host verifier HttpsURLConnection.setDefaultHostnameVerifier...
stm32 下载器的设置资料,可以帮助轻松的设置好 仿真器 文中步骤详细,清楚,有益于新手下载器上手,
密码验证,密码在人类的日常生活中是及其重要的,它可以保护人类的隐私,私人财产不受侵害
The main goal of this project is to design and simulate a wireless communication system base on ...numerical result such as bit error rate plots and verify the functionality of each block in the design.
(java.lang.Exception e) { System.out.println("生成密钥对失败"); e.printStackTrace(); } } public byte[] getPriKey() { return priKey; } public byte[] getPubKey() { return pubKey; } } ...
You are new to our forum or modify your registration Email address to use this We need to verify the validity of your email address to avoid spam or other abuse actions.To activate your email account ...
OPT一次性动态口令验证算法。根据动态支持TOTP和HOTP验证。
A "Hello world" program is a computer program that outputs "Hello, world" on a display device. Because it is typically one ... It is also used to verify that a language or system is operating correctly.
verify_diskette - to verify that the floppy in the drive is the right one for suninstall. All error messages and prompts go to stderr.
Example: A Function to Calculate the Scalar Product of Two Vectors . . . . . . . . . . . . . . . . . . . . . . . Reference Variables . . . . . . . . . . . . . . . . . . . . . . . Default Values for ...
Oracle 11gR2创建PASSWORD_VERIFY_FUNCTION对应密码复杂度验证函数步骤
· Ping from PC-A to PC-B. · Ping from PC-A to PC-C. · Ping from PC-B to PC-C. Step 2. Configure a local username on R1. Configure a username of Admin1 and secret password of admin1pa55. Step 3...
consequently it is a sensible idea to verify that your java layer is behaving as expected before you try starting up the utility as TFMADMIN, try this exec pack_trace_file_manager.pc_generate_file_...
Original error: Cannot verify the signature of 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.21.1.apk'....
verify公共函数(陈攀).js。verify公共函数(陈攀).js。verify公共函数(陈攀).js。verify公共函数(陈攀).js。