0 Replies Latest reply on Jul 30, 2007 9:43 AM by prakash.dumbre

    JBOss Mogration : Incompatible object argument for function

    prakash.dumbre


      I am migrating my application from weblogic 7.2 to Jboss 4..0.5. 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 methods are executed

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

      This System.out.println("<<Cedera 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/xxxxx/server/workflow/OrderStateMachine, method: signature: ()V) Incompatible object argument for function call
      at com.xxxxx.server.startup.ServerStartup.startup(ServerStartup.java:85)
      at com.xxxxx.server.startup.StartCaching.(StartCaching.java:29)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)


      Regards
      prakash