5 Replies Latest reply on Aug 15, 2013 6:20 AM by Erik Jan de Wit

    UndefinedMethodException after updating to 2.4.0.CR1

    David Hahn Newbie

      Hi all,

       

      i've updated one of our projects to the 2.4.0.CR1 version and got the following exception while building the project:

       

      org.jboss.errai.codegen.exception.UndefinedMethodException: undefined method: subscribe(java.lang.String, com.test.hps.identity.management.frontend.server.services.BusinessPartnerService); in class: org.jboss.errai.bus.client.api.messaging.MessageBus
      

       

      the the above-mentioned service looks like this:

       


      package com.test.hps.identity.management.frontend.server.services;
      
      import java.util.Arrays;
      import java.util.List;
      
      import com.test.hps.identity.management.domain.BusinessPartner;
      import com.test.hps.identity.management.frontend.shared.search.BusinessPartnerSearchCriteria;
      import com.test.hps.identity.management.frontend.shared.services.BusinessPartnerRemoteService;
      
      import org.jboss.errai.bus.server.annotations.Service;
      
      @Service
      public class BusinessPartnerService implements BusinessPartnerRemoteService {
      
          @Override
          public List<BusinessPartner> getBusinessPartnerFor(BusinessPartnerSearchCriteria criteria) {
              BusinessPartner businessPartnerA = new BusinessPartner();
              businessPartnerA.setActive(true);
              businessPartnerA.setMatchcode("test a");
              businessPartnerA.setName("name a");
              BusinessPartner businessPartnerB = new BusinessPartner();
              businessPartnerB.setActive(true);
              businessPartnerB.setMatchcode("test b");
              businessPartnerB.setName("name b");
              return Arrays.asList(businessPartnerA, businessPartnerB);
          }
      
      }
      
      

       

      and the corresponding remote interface:

       

       

      package com.test.hps.identity.management.frontend.shared.services;
      
      import java.util.List;
      
      import com.test.hps.identity.management.domain.BusinessPartner;
      import com.test.hps.identity.management.frontend.shared.search.BusinessPartnerSearchCriteria;
      
      import org.jboss.errai.bus.server.annotations.Remote;
      
      @Remote
      public interface BusinessPartnerRemoteService {
          List<BusinessPartner> getBusinessPartnerFor(BusinessPartnerSearchCriteria criteria);
      }
      

       

      I do not quite understand why he expects this method.


      I've attached the whole build log.

       

      Regards,

      David