Instantiation of bean failed: nested exception is java.lang.VerifyError: StackMapTable error: bad offset

Instantiation of bean failed: nested exception is java.lang.VerifyError: StackMapTable error: bad offset

虽然我 运行 我的应用程序在 Java7 的新服务器上,但我面对的是 errors/warns。相同的代码 运行 在另一台服务器上运行正常。

    WARN : 11/Feb/2016 10:54:47,685 [P=86614:O=0:CT] ctory.support.DefaultListableBeanFactory - [SYSTEM_ID=null] [MESSAGE_ID=null] Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: 
    Error creating bean with name 'transactionProxyFactoryBean' defined in class path resource [datasource-oracle-config.xml]: 
    Cannot resolve reference to bean 'databaseCounterPartyManager' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: 
    Error creating bean with name 'databaseCounterPartyManager' defined in class path resource [components-core.xml]: Instantiation of bean failed; nested exception is java.lang.VerifyError: 
    StackMapTable error: bad offset
    Exception Details:
    Location:
com/xxx/counterparty/impl/DatabaseCounterPartyManagerImpl.getCounterParties()Ljava/util/List; @0: ldc_w
    Reason:
    Invalid stackmap specification.
    Current Frame:
bci: @72
flags: { }
locals: { 'com/xxx/counterparty/impl/DatabaseCounterPartyManagerImpl', 'java/util/List' }
stack: { 'java/lang/Exception' }
ytecode:
0000000: 1301 2013 011b 1301 1d13 011f 2a13 0122
0000010: b801 133a 0400 0000 b200 0112 03b6 0004
0000020: bb00 0559 b700 064c 2ab4 0007 1208 bb00
0000030: 0959 01b7 000a b600 0b4c b200 01bb 000c
0000040: 59b7 000d 120e b600 0f2b b900 1001 00b6
0000050: 0011 1212 b600 0fb6 0013 b600 04a7 0052

如有任何帮助,我们将不胜感激。谢谢

我正在将我的应用程序从 Java6 迁移到 Java7,但我遇到了上述错误。我们添加了 "-XX:-UseSplitVerifier" JVM 参数,而 运行 应用程序,它的工作就像一个魅力。

查看此 link How safe is it to use -XX:-UseSplitVerifier? 了解更多详情