ERROR
When clicking on any layer in the TOC, or Table of Contents, of a custom Java Viewer, the following error occurs in the java message console:"java.lang.NullPointerException."
This error occurs if any of the tools in the Zoom and Pan ToolBar are unselected while designing the custom Java Viewer site using ArcIMS Designer.
When creating the Web site using Designer, at one point the tools to include in the Web site can be selected. By default, all the tools in the Zoom and Pan ToolBar are selected. If any of the tools are unchecked, the 'All' check box becomes unchecked itself. If 'All' is unchecked, the error occurs.
Note:
See descriptions for IMSMap.enableFunction in 'Customizing ArcIMS : Java Viewer' document available in <ArcIMS Installation Directory>/Documentation folder for more descriptions about this function.
Code:
applet.enableFunction(20, true);
Note:
ID value of 20 corresponds to All Zoom and Pan Functions.
You can find more information on different ID values in Customizing Java Viewer.pdf file that ships with ArcIMS.
Article ID:000006528
Get help from ArcGIS experts
Download the Esri Support App