Hi,
I have been working in a Web application who acess Google Docs.
So i am trying to ask the person GoogleId and PassWord in the Client
Side,and send it to the server Side by Servlet\RPC
but it gives me this error
"[ERROR] 500 - POST /com.mycompany.project.Spreadsheet/sessoes"
And the exception message
"500 the call failed on the server"
I have my code like this
service = (SessoesAsync) GWT.create(Sessoes.class);
ServiceDefTarget endpoint = (ServiceDefTarget) service;
endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() +
"sessoes");
final AsyncCallback<ArrayList<String> > callback = new
AsyncCallback<ArrayList<String> >(){
@Override
public void onFailure(Throwable caught)
{
Window.alert("Communication
failed");
Window.alert(caught.getLocalizedMessage());
}
@Override
public void onSuccess(ArrayList<String>
result) {
if (result != null) {
for (int i = 0; i <
result.size(); i++) {
System.out.println("\t"+ i+"-" + result.get(i));
}
} else {
Window.alert("Account Empty");
}
}};
public interface SessoesAsync{
public void login(String Id,String Pass,
AsyncCallback<ArrayList<String>> callback) ;
}
@RemoteServiceRelativePath("sessoes")
public interface Sessoes extends RemoteService{
public ArrayList<String> login(String Id,String Pass) ;
}
public class SessoesImpl extends RemoteServiceServlet implements
Sessoes{
SpreadsheetService service = new SpreadsheetService("SpreadSheet
demo");
ArrayList<String> lista=null;
@Override
public ArrayList<String> login(String Id, String Pass)
{Mycode(Doesnt really matter for this)}
}
And my Web.xml is like that
<servlet>
<servlet-name>Sessoes</servlet-name>
<servlet-class>
com.mycompany.project.server.SessoesImpl
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Sessoes</servlet-name>
<url-pattern>
/com.mycompany.project.Spreadsheet/sessoes
</url-pattern>
</servlet-mapping>
Can you help me find where the error comes from?
--
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.