Results 1 to 3 of 3

Thread: RPC-call problem: it must have a zero-argument constructor or no constructors at all

  1. #1
    Ext User
    Join Date
    Feb 2010
    Posts
    19
    Vote Rating
    0
      0  

    Default RPC-call problem: it must have a zero-argument constructor or no constructors at all

    Hello,

    I have a RPC-call problem.

    I get the following error: Screenshot

    EntriesService.java

    HTML Code:
    @RemoteServiceRelativePath("entries")
    public interface EntriesService extends RemoteService {
        boolean updateAllEntries(long userid, EditorGrid<Entry> grid);
    }
    Entry.java
    Code:
    public class Entry extends BaseTreeModel implements IsSerializable {
    
        private static final long serialVersionUID = 1L;
    
        private long id;
        private String firstname;
        private String lastname;
        
        public Entry() {
            
        }
    
        public long getId() {
            return get("id");
        }
    
        public void setId(long id) {
            set("id", id);
        }
        
        public String getFirstname() {
            return get("firstname");
        }
    
        public void setFirstname(String firstname) {
            set("firstname", firstname);
        }
    
        public String getLastname() {
            return get("lastname");
        }
    
        public void setLastname(String lastname) {
            set("lastname", lastname);
        }
    
    }
    My Entry-class has implemented IsSerializable and a zero-argument constructor!!


    Simple example ( eclipse project - 300K )
    http://www.file-upload.net/download-...oject.zip.html


    Whats the reason of this problem?


    Thanks,
    Michael

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    132
      0  

    Default

    You try to send the grid widget object to the server. This cannot work.

  3. #3
    Ext User
    Join Date
    Feb 2010
    Posts
    19
    Vote Rating
    0
      0  

    Default

    Thanks again Sven

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •