Rosa applet question

Robert Chavez rchavez at perseus.tufts.edu
Wed Nov 29 10:05:42 EST 2000


I've been playing around with the DMSolutions Rosa applet and am having some
trouble getting it set up properly.  I've been getting some java errors that
I haven't seen before and I was wondering if anyone had some suggestions as
to what the problem is.

I'm running this on Red Hat Linux 6.2 using jdk1.2.2, but I've also tried
jdk1.1.7v3 and got the same results.  Paths and classpaths are fine, and
netscape's java40.jar is in the correct place and in the class path. The
HTML is generated from a CGI script, so I've moved the jar and class files
into the cgi-bin under the assumption that this is where they need to be.

I'm no applet guru, so I've probably just overlooked something obvious.  Any
ideas?
Thanks,
Rob Chavez
Programmer/GIS Specialist
Perseus Project

Here's my applet HTML code, I haven't appended the whole HTML file here as
it's quite long:

<APPLET NAME="RosaApplet" ARCHIVE="rosa.jar" CODE="Rosa2000.class"
WIDTH="600" HEIGHT="400" MAYSCRIPT>
<PARAM NAME="TB_POSITION" VALUE="right">
<PARAM NAME="TB_ALIGN" VALUE="top">
<PARAM NAME="IMG_URL" VALUE="". /mapimages/ . 18895975509219.gif ."">
<PARAM NAME="INP_FORM_NAME" VALUE="atlas">
<PARAM NAME="TB_BUTTONS" VALUE="zoomin|zoomout|recenter|pquery">
<PARAM NAME="INP_TYPE_NAME" VALUE="imgext">
<PARAM NAME="INP_COORD_NAME" VALUE="imgext">
<PARAM NAME="TB_SELECTED_BUTTON" VALUE="zoomin">
<PARAM NAME="TB_BUT_zoomin_IMG" VALUE="/icons/icon_zoomin.gif">
<PARAM NAME="TB_BUT_zoomin_IMG_PR" VALUE="/icons/tool_zoomin_2.gif">
<PARAM NAME="TB_BUT_zoomin_HINT" VALUE="Zoom in: Click the button|and the
map will zoom in">
<PARAM NAME="TB_BUT_zoomin_INPUT" VALUE="auto_rect">
<PARAM NAME="TB_BUT_zoomin_NAME" VALUE="zoomdir">
<PARAM NAME="TB_BUT_zoomin_VALUE" VALUE="1">
<PARAM NAME="TB_BUT_zoomout_IMG" VALUE="/icons/icon_zoomout.gif">
<PARAM NAME="TB_BUT_zoomout_IMG_PR" VALUE="/icons/tool_zoomout_2.gif">
<PARAM NAME="TB_BUT_zoomout_HINT" VALUE="Zoom out: Click the button|and the
map will zoom out">
<PARAM NAME="TB_BUT_zoomout_INPUT" VALUE="submit">
<PARAM NAME="TB_BUT_zoomout_NAME" VALUE="zoomdir">
<PARAM NAME="TB_BUT_zoomout_VALUE" VALUE="-1">
<PARAM NAME="TB_BUT_recentre_IMG" VALUE="/icons/icon_recentre.gif">
<PARAM NAME="TB_BUT_recentre_IMG_PR" VALUE="/icons/tool_recentre_2.gif">
<PARAM NAME="TB_BUT_recentre_HINT" VALUE="Recenter: Click the button|and the
map will recenter">
<PARAM NAME="TB_BUT_recentre_INPUT" VALUE="auto_point">
<PARAM NAME="TB_BUT_recentre_NAME" VALUE="zoomdir">
<PARAM NAME="TB_BUT_recentre_VALUE" VALUE="2">
<PARAM NAME="TB_BUT_pquery_IMG" VALUE="/icons/icon_info.gif">
<PARAM NAME="TB_BUT_pquery_IMG_PR" VALUE="./images/tool_info_2.gif">
<PARAM NAME="TB_BUT_pquery_HINT" VALUE="Point Query: Click a point on the
map|for information about that point">
<PARAM NAME="TB_BUT_pquery_INPUT" VALUE="auto_rect">
<PARAM NAME="TB_BUT_pquery_NAME" VALUE="zoomdir">
<PARAM NAME="TB_BUT_pquery_VALUE" VALUE="4">
</APPLET>

The error messages are the following (from the Netscape java console):

Netscape Communications Corporation -- Java 1.1.5
Type '?' for options.
Symantec Java! ByteCode Compiler Version 210.065
Copyright (C) 1996-97 Symantec Corporation
java.io.IOException: <null>
  at netscape.net.URLConnection.connect(Compiled Code)
  at netscape.net.URLConnection.getInputStream(Compiled Code)
* at netscape.applet.AppletClassLoader.grabArchiveFile(Compiled Code)
  at netscape.applet.AppletClassLoader.openArchive(Compiled Code)
  at netscape.applet.AppletClassLoader.openArchive(Compiled Code)
  at netscape.applet.AppletClassLoader.<init>(Compiled Code)
  at netscape.applet.AppletClassLoader.getClassLoader(Compiled Code)
  at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled
Code)
  at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
  at java.awt.EventDispatchThread.run(Compiled Code)
  at
netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
Code)
# Unable to load archive /cgi-bin/rosa.jar: java.io.IOException: <null>
# Applet exception: class Rosa2000 could not be loaded




More information about the mapserver-users mailing list