1. #1
    Ext User
    Join Date
    Feb 2010
    Posts
    19
    Vote Rating
    0
    stockhausen is on a distinguished road

      0  

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

    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
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      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
    stockhausen is on a distinguished road

      0  

    Default


    Thanks again Sven

Thread Participants: 1