0 Replies Latest reply on Apr 19, 2016 6:20 PM by hr.stoyanov

    [Errai 4] Runtime exception

    hr.stoyanov

      Got a little service and a runtime exception. Similar issues have been reported when the ErraiApp.properties maker was missing . This is not the case here - I put it in every module, just in case. Still the same run-time error.

      The app war has two modules: web-shared and web-server. The web service classes are no missing, each of the module has a ErraiApp.properties. Any idea?

       

      web-server module:

      ===================

      @WebService//could be @Stateless too

      public class PingService implements Ping{

          @Override public String ping() {  return "Ping OK!";}

      }

       

       

      web-shared module:

      ==================

      @Path("/ping") @Produces(MediaType.APPLICATION_JSON)

      public interface Ping {   

          @GET  @Path("/hello")    String ping();

      }

       

      web-app:

      ==================

      ...

      @Inject private Caller<Ping> pingCaller;

      @AfterInitialization   private void afterInitialization() {

              pingCaller.call((String response) -> {  Console.log(response);  }).ping();

      }

       

      ... And I am getting:

      ========================================================

      Exception: java.lang.RuntimeException: No proxy provider found for type: com.xxxxx.web.shared.Ping

      ConsoleLogger.java:32 Error: java.lang.RuntimeException: No proxy provider found for type: com.xxxxx.web.shared.Ping

          at ID_g$ [as createError_0_g$] (Throwable.java:122)

          at RD_g$ [as initializeBackingError_0_g$] (Throwable.java:114)

          at BD_g$ (Throwable.java:68)

          at dE_g$ (Exception.java:29)

          at lE_g$ (RuntimeException.java:29)

          at bZg_g$ [as getRemoteProxy_0_g$] (RemoteServiceProxyFactory.java:43)

          at Jki_g$ [as call_5_g$] (CallerProvider.java:53)

          at Zvf_g$ [as afterInitialization_0_g$] (Main.java:83)

          at LKh_g$ (Type_factory__c_t_w_c_Main__quals__j_e_i_Any_j_e_i_Default.java:120)

          at ZKh_g$ [as run_1_g$] (Type_factory__c_t_w_c_Main__quals__j_e_i_Any_j_e_i_Default.java:52)

          at dXg_g$ [as run_1_g$] (InitVotes.java:427)

          at xWg_g$ (InitVotes.java:399)

          at wWg_g$ (InitVotes.java:384)

          at AWg_g$ (InitVotes.java:361)

          at XWg_g$ [as run_1_g$] (InitVotes.java:204)

          at CXg_g$ [as run_1_g$] (ClientTaskManager.java:90)

          at PXg_g$ [as run_1_g$] (ClientTaskManager.java:192)

          at ZKb_g$ [as fire_0_g$] (Timer.java:135)

          at Timer.java:139

          at Gec_g$ (Impl.java:239)

          at Jec_g$ (Impl.java:291)

          at Impl.java:77