0

While I'm running my application on a new server with Java7 and I'm facing below errors/warns. The same code ran on another server and that is working fine.

    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

Any help would be appreciated. Thanks.

Ulhas N
  • 316
  • 4
  • 17

1 Answers1

0

I was migrating my appication from Java6 to Java7 and I faced above errors. We have added "-XX:-UseSplitVerifier" JVM argument while running the application and that worked like a charm.

See this link How safe is it to use -XX:-UseSplitVerifier? for more details

Community
  • 1
  • 1
Ulhas N
  • 316
  • 4
  • 17