• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.lang.VerifyError:method: exception

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all

i am migrating my application from weblogic 7.2 to Jboss 4.0.5GA. we have written startup class which initializes caching at serverstartup. We have written one servlet to initialize startup class and that servlet will be loaded at server startup. In the startup class we have startup method and in the startup method following code is executed




In the log file of jboss upto "System.out.println("<<server Startup>> Configuration Service and Logging initialized here")"; everything is printed , but after this statement when we are calling
OrderStateMachine.getInstance();

System.out.println("<<server Startup>> Workflow initialized"); is not printed in the log which indicates that error is there in the getInstace() method.

But can anybody will tell me the exact cause of the exception and suggest me the solution.

Exception

Jul 30 15:42:06.588 INFO [localhost].[/] () - Marking servlet StartCaching as unavailable
Jul 30 15:42:06.588 ERROR [localhost].[/] () - Servlet threw load() exception
java.lang.VerifyError: (class: com/xxx/xxxx/workflow/OrderStateMachine, method: <init> signature: ()V) Incompatible object argument for function call
at com.xxx.xxxx.startup.ServerStartup.startup(ServerStartup.java:85)
at com.xxx.xxxx.startup.StartCaching.<init>(StartCaching.java:29)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)


Regards
pond
 
Ranch Hand
Posts: 293
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your getInstance() method invoking some code in a different Jar file that is possibly incompatible with one that ships with JBoss?
reply
    Bookmark Topic Watch Topic
  • New Topic