I was using IsSerializable Interface until i read an article on gwt
home page saying that i could use the java.io.Serializable interface,
since i was using a generic servlett dispatch all my incoming
resquest, the java.io.Serializable was much easier to use, so i
changed all my classes that needed serialization and after that my
services stoped working.

All my classes are complying with the gwt-rpc serialization rules, no
error is showing up on the console or on the shell, i tried to debug
an found tha my servlet returns the dto back to then client, but gwt
somehow doesn't show any error and my code never reach then
"onSuccess" or "onFailure" method on the client side.

Here's the piece of code i'm using:

//Method on the servlet
public HashMap<String, Serializable> getValue(String serviceClass,
HashMap<String, Serializable> params)
                        throws DyadException {
                try {
                        Class clazz = Class.forName(serviceClass);
                        DyadService classInstance = 
(DyadService)clazz.newInstance();

                        HashMap<String, Serializable> ret = 
classInstance.getValue(params);
                        //it gets here, but after then return call
nothing happens
                        return ret;
                } catch (Exception e) {
                        DyadException ex = new DyadException();
                        ex.setDetailedError(e.getMessage());
                        throw ex;
                }
}



//Class i'm sending to the client
//Used to implement the IsSerializable and worked fine
public class Navigator implements Serializable {

        private static final long serialVersionUID = -318059226468181729L;

        private Long id;

        private Long licenseId;

        private String className;

        private String name;

        private ArrayList<Navigator> submenu;

        private String process;

        private String cssName;

        public String getClassName() {
                return className;
        }

        public void setClassName(String className) {
                this.className = className;
        }

        public String getProcess() {
                return process;
        }

        public void setProcess(String process) {
                this.process = process;
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public ArrayList<Navigator> getSubmenu() {
                if (submenu == null){
                        setSubmenu(new ArrayList<Navigator>());
                }
                return submenu;
        }

        public void setSubmenu(ArrayList<Navigator> submenu) {
                this.submenu = submenu;
        }

        @Override
        public boolean equals(Object obj) {
                Navigator nav = (Navigator)obj;

                return nav.getClassName().equals(this.getClassName()) &&
                       nav.getName().equals(this.getName());
        }

        public String getCssName() {
                return cssName;
        }

        public void setCssName(String cssName) {
                this.cssName = cssName;
        }

        public Long getId() {
                return id;
        }

        public void setId(Long id) {
                this.id = id;
        }

        public Long getLicenseId() {
                return licenseId;
        }

        public void setLicenseId(Long licenseId) {
                this.licenseId = licenseId;
        }


}

//

At this point i'm stuck, so i would really appreciate some help.
thanks in advance.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to