2 Replies Latest reply on Jul 30, 2008 9:04 AM by Sascha Janz

    java.lang.ClassCastException: $Proxy67 cannot be cast to or

    Sascha Janz Master

      i am trying to execute a command.

      source code is

       Object returnValue;
       try {
       GetProcessDefinitionsCommand cmd = new GetProcessDefinitionsCommand();
       InitialContext initialContext = new InitialContext();
       Object obj = initialContext
       System.out.println("Class:" + obj.getClass().getName());
       LocalCommandServiceHome localCommandServiceHome = (LocalCommandServiceHome) initialContext
       LocalCommandService localCommandService = localCommandServiceHome.create();
       returnValue = localCommandService.execute(cmd);
       } catch (Exception e) {
       throw new RuntimeException("couldn't execute command", e);

      but i got an

      java.lang.ClassCastException: $Proxy67 cannot be cast to org.jbpm.ejb.LocalCommandServiceHome

      error when executing.

      i searched everywhere for a duplciate commandservicebean class but can't find it.

      jbpm and my application runs under the same jvm.

      please help