Re: [OpenMap Users] NullPointerException when using jar archive

From: Don Dietrick <dietrick@bbn.com>
Date: Wed Dec 17 2003 - 21:18:09 EST

Hi Erik,

Can you try the beta out and see if you have the same results? There
have been some changes in the io classes that may help with this
problem.

- Don

On Dec 17, 2003, at 9:15 AM, Erik Sanders wrote:

> 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(Unkno
> w
> 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.j
> a
> 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"]
>

--
[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 21:19:05 2003

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