Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

Nice article, requires modification to work with new GWT release.



Back to:
www.javaworld.com/javaworld/jw-12-2006/jw-1213-gwt.html
.

[ERROR] Unable to instantiate 'com.example.booksearch.server.SearchServiceImpl'
java.lang.ClassNotFoundException: com.example.booksearch.server.SearchServiceImpl

From Log you will see the following:

com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
   Serialization status
      Instantiable
   Path
      'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' is reachable as a subtype of type 'class com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
      Started from 'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'

also has some issues with the following code snippet which I infact replaced:

private Document getBookListXMLDocument(String searchTerm)
throws IOException, ParserConfigurationException, SAXException {
String url = SEARCH_SITE_URL_BASE + searchTerm;

HttpClient client = new HttpClient();
GetMethod get = new GetMethod(url);

-------------------------------

The program encounters exception as soon as GetMethod is invoked. Instead I used:

HttpURLConnection urlConnection = (HttpURLConnection) (new URL(url)
.openConnection());
InputStream in = urlConnection.getInputStream();
DocumentBuilder builder = builderFactory.newDocumentBuilder();
return builder.parse(in);

Your rating: None Average: 1 (2 votes)