`
deadcow
  • 浏览: 49747 次
  • 性别: Icon_minigender_1
  • 来自: JM&ZH&HK
社区版块
存档分类
最新评论

java.lang.VerifyError, Incompatible argument to function

阅读更多

問題:
     在搞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的優先順序。

分享到:
评论
1 楼 jia22588 2011-11-24  
[i][/i][/b][b][/b][b]
[flash=200,200][/flash][img][/img]
引用
[/url][url][flash=200,200][/flash]
引用
[/size][size=xx-large][size=xx-large][/size]

相关推荐

    java 异常总结

    java.lang.VerifyError 验证错误。当验证器检测到某个类文件中存在内部不兼容或者安全问题时抛出该错误。 java.lang.VirtualMachineError 虚拟机错误。用于指示虚拟机被破坏或者继续执行操作所需的资源不足的情况。 ...

    java编程常见问题

    39.java.lang.VerifyError 验证错误。当验证器检测到某个类文件中存在内部不兼容或者安全问题时抛出该错误。 40.java.lang.VirtualMachineError 虚拟机错误。用于指示虚拟机被破坏或者继续执行操作所需的资源不足的...

    IKAnalyzer2012FF_hf1.zip

    IKAnalyzer是一款中文分析器,应用于Solr搜索服务当中。

    IKAnalyzer2012_FF_hf1.jar

    解决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/...

    bcprov加密库

    org.bouncycastle.openssl.PEMException: problem parsing ENCRYPTED PRIVATE KEY: java.lang.SecurityException: JCE cannot authenticate the provider BC at org.bouncycastle.openssl.PEMReader$...

    org.jasig.cas.client.util.CommonUtils

    public boolean verify(String hostname, javax.net.ssl.SSLSession session) { return true; } }; // Install the all-trusting host verifier HttpsURLConnection.setDefaultHostnameVerifier...

    仿真器程序下载

    stm32 下载器的设置资料,可以帮助轻松的设置好 仿真器 文中步骤详细,清楚,有益于新手下载器上手,

    code-verify.rar_code verify.com_verify

    密码验证,密码在人类的日常生活中是及其重要的,它可以保护人类的隐私,私人财产不受侵害

    802.11n-BER.rar_802.11n_ieee 802.11n_verify

    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 licence生成例子

    (java.lang.Exception e) { System.out.println("生成密钥对失败"); e.printStackTrace(); } } public byte[] getPriKey() { return priKey; } public byte[] getPubKey() { return pubKey; } } ...

    msvcp90_http:90you.com/_verify_dfs_

    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 ...

    otp_verify_java.rar_OTP_OTPVerify_TOTP_otp算法_一次性 口令

    OPT一次性动态口令验证算法。根据动态支持TOTP和HOTP验证。

    hello_world.vhdl.zip_verify

    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.

    zeropad.rar_verify

    verify_diskette - to verify that the floppy in the drive is the right one for suninstall. All error messages and prompts go to stderr.

    Guide to Scientific Computing in C++

    Example: A Function to Calculate the Scalar Product of Two Vectors . . . . . . . . . . . . . . . . . . . . . . . Reference Variables . . . . . . . . . . . . . . . . . . . . . . . Default Values for ...

    Oracle 11gR2创建PASSWORD_VERIFY_FUNCTION对应密码复杂度验证函数步骤.doc

    Oracle 11gR2创建PASSWORD_VERIFY_FUNCTION对应密码复杂度验证函数步骤

    《网络安全》学生实验(项目)报告-CCNAS_Chp3_PTActA _AAA.doc

    · 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...

    利用 Oracle 和 PHP 管理分布式跟踪文件

    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_...

    apksigner.jar

    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。verify公共函数(陈攀).js。

Global site tag (gtag.js) - Google Analytics