Product: MapMarker J Server
Version: 2.0
Platform: All Platforms
Category: Installation
Summary:
InvalidClassException when geocoding.
Question:
A Java applet that extends the Panel object and uses MapMaker Java Server. Type the address and hit "Find" and the applet fills a list box with the candidates. If a candidate is chosen, the applet re-centers the map on that location.
It works fine on the development machine, and on another test machine, but when used on a third machine the following exception is produced:
java.io.InvalidClassException: com.mapinfo.geocode.MatchResult; Local class not compatible: stream classdesc serialVersionUID=7729647629628067883 local class serialVersionUID=-2403319650292309749
at java.io.ObjectStreamClass.validateLocalClass(Unknown Source)
at java.io.ObjectStreamClass.setClass(Unknown Source)
at java.io.ObjectInputStream.inputClassDescriptor(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.inputObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at com.mapinfo.geocode.InformationGeocodeRequest.getResult(InformationGeocodeRequest.java, Compiled Code)
at com.mapinfo.geocode.TcpCommunicator._priv_processRequest(TcpCommunicator.java, Compiled Code)
at com.mapinfo.geocode.ServerCommunicator._priv_singleRequest(ServerCommunicator.java)
at com.mapinfo.geocode.ServerCommunicator.geocodeAddress(ServerCommunicator.java)
at com.mapinfo.geocode.MapMarkerClient.geocodeAddress(MapMarkerClient.java)
at com.mapinfo.samples.FindPanel.btnFind_actionPerformed(FindPanel.java, Compiled Code)
at com.mapinfo.samples.FindPanel$2.actionPerformed(FindPanel.java:88)
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
The MapMarker Java console shows that the geocode process is successful, but the list box was not filled.
Answer:
It looks like an old version of the Java Server is installed. The original "MapMarker for MapXTreme Java Edition" is not compatible with the new classes. Make sure that the most up-to-date Java Server is in the path and make sure it's before any MMfMXTJE versions.
Last Modified: 12/13/1999 03:32:33 PM
|