1 Reply Latest reply on Nov 15, 2006 6:24 PM by shane.bryzak

    Possible bug in remoting with POJO backing bean w/ interface

    andrew.rw.robinson

      Seam 1.0.1 GA

      My remoting just stopped working on my POJO:

      java.lang.RuntimeException: No compatible method found.
       at org.jboss.seam.remoting.Call.execute(Call.java:118)
       at org.jboss.seam.remoting.ExecutionHandler.handle(ExecutionHandler.java:92)


      After looking at the code, the problem is with:
      if (component.getBusinessInterfaces().size() > 0)
       {
       // Get the local interface for the component - this is the type that we're
       // going to assume we're invoking against.
       type = component.getBusinessInterfaces().iterator().next();
       }


      If my bean is a POJO with an interface, the "type" will be that interface. Since this is not a session bean, and this is not a local or remote interface, it should not be looking for an interface right?

      Before I had the interface on the class everything worked fine. My method signature:

      @WebRemote
       public double getEditValue(int gridX, int gridY) {...}


      Class signature:
      @Name("liveReportBean")
      @LoggedIn
      @Scope(ScopeType.CONVERSATION)
      public class LiveReportBean
       implements UserContextChangeListener {...}


      "UserContextChangeListener" is what Call.java finds instead of "LiveReportBean".

      I will make a workaround by making an inner class that implements my interface so that it will work, but wanted to bring this up in case it is a bug.

      Is this intentional or a bug?