[OpenMap Users] NullPointerException when using jar archive

From: Erik Sanders <E.Sanders@weer.nl>
Date: Wed Dec 17 2003 - 09:15:14 EST

Hi all,

I'm using the Openmap API in an applet on the Windows platform.
Applet and shapefiles are in jar-archives, which are cached by Sun's
java-plugin.

When opening the page containing the applet, jar-files are downloaded
into cache and applet loads using data from the jars.
When closing the browser and reopening the page, files are read from
cache and everything works fine.
However, a problem occurs when browsing to the applet-page several times
in the same browser-session. (So opening the applet-page, browsing to
another page, returning to the applet page and so on)
When opening my applet for the third time this error occurs and the
applet freezes:

java.lang.NullPointerException

 at java.util.zip.Inflater.reset(Unknown Source)
 at java.util.zip.ZipFile.getInflater(Unknown Source)
 at java.util.zip.ZipFile.getInputStream(Unknown Source)
 at java.util.zip.ZipFile.getInputStream(Unknown Source)
 at java.util.jar.JarFile.getInputStream(Unknown Source)
 at
sun.plugin.net.protocol.jar.CachedJarURLConnection.getInputStream(Unknow
n Source)
 at com.bbn.openmap.io.URLInputReader.reopen(Unknown Source)
 at com.bbn.openmap.io.URLInputReader.<init>(Unknown Source)
 at gisapplet.openmap.myBinaryFile.<init>(myBinaryFile.java:136)
 at
gisapplet.openmap.myBinaryBufferedFile.<init>(myBinaryBufferedFile.java:
84)
 at
gisapplet.openmap.myBinaryBufferedFile.<init>(myBinaryBufferedFile.java:
96)
 at gisapplet.openmap.mySpatialIndex.<init>(mySpatialIndex.java:156)
 at
gisapplet.openmap.mySpatialIndex.locateAndSetShapeData(mySpatialIndex.ja
va:687)
 at gisapplet.openmap.myShapeLayer.setProperties(myShapeLayer.java:131)
 at gisapplet.GISApplet.init(GISApplet.java:204)
 at sun.applet.AppletPanel.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)

Any suggestions?
Thanks in advance!

Erik Sanders

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Dec 17 09:48:17 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:37 EDT