Your method can not return List<Object[]> because Object doesn't
implement Serializable. Any methods in the server must return any
types that implements Serializable. You can find an example from
http://www.gwtorm.com/mail/Mail.html.

Jim
http://www.gwtorm.com
http://code.google.com/p/dreamsource-orm/downloads/list



On May 1, 11:11 am, Midou <[email protected]> wrote:
> Hi
> I have realized an application with GWT and EJB3 and MYSQL data base.
> All this parts communicate successfully with a method which returned
> String or int. My problem is when i used a returned type as
> List<Users> (Users is an entity which corresponds to the table Users
> in the data base), an error occurred in GWT hosted mode application).
> Please you resolve this problem.Or have you an example how to
> implement a method which returned a List of object in GWT in all
> classes (  Myservice, MyserviceAsynch, and MyserviceImpl and in
> OnModuleLoad() ).
>
> This is the imlpmentation of verifuser method
> ________________________________________________________________
> public List<Object[]> verifuser(String login,String pwd){
>         try
>                 {
>         String texteRequête = "SELECT u.useId,u.useLoginName FROM Users AS u
> WHERE u.useLoginName=:p and u.usePassword=:p2";
>          Query requête = em.createQuery(texteRequête);
>          return requête.setParameter("p",login).setParameter
> ("p2",pwd).getResultList();
>                 }
>                 catch (Exception e) {
>                 return null ;
>                 }
> _________________________________________________________________
>
> Thank you.
--~--~---------~--~----~------------~-------~--~----~
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