Hi all,
I'm getting some strange hangs with glassfish and gwt rpc services.
I'll describe my problem:
my dev tools are: netbeans 6.5 with latest updates, glassfish 2.1,
gwt-1.5.3, linux ubuntu 8.04.
situation:
on the entry point create a SimplePanel with a button. Associate to
this button a listener with the following code to be executed:
for (int i = 0; i < 10; i++) {
_query_service.doQuery(query, new AsyncCallback()
{
public void onFailure(Throwable caught)
{
}
public void onSuccess(Object result)
{
Window.alert("wh0a");
}
});
}
The doQuery () is a GWT-RPC service.
The service implementation is something like this:
public class QueryServiceImpl extends RemoteServiceServlet implements
QueryService
{
@WebServiceRef(wsdlLocation = "WEB-INF/wsdl/client/StoreService/
localhost_8139/Store/StoreService.wsdl")
private StoreService service;
public synchronized doQuery (MyObject query) {
try
{ // Call Web Service Operation
com.my.company.Store port = service.getStorePort();
// TODO initialize WS operation arguments here
java.lang.String programName = "par1";
java.lang.String programVersion = "par2";
// TODO process result here
java.lang.String result = port.getCfgText(programName,
programVersion);
out.println("Result = "+result);
}
catch (Exception ex)
{
// TODO handle custom exceptions here
}
}
}
as you see the webservice is called with the automatic 'call
webservice operation...' by Netbeans.
The webservice in hosted in the local server, the same in which the
gwt-rpc service is deployed.
But in the above configuration I've a *global* freeze of glassfish. I
must restart it to have it responding again. No exception is thrown
nor result received.
The method is thread-safe, using synchronized keyword.
The hang does not happen if the webservice is hosted on another
server.
The hang does not happen if I call once the doQuery (), and then I the
for loop.
Am I missing or doing something wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---