Hi Don,
Tried the beta today (both snapshot and download from cvs).
Same error occurs however.
Found another strange thing though (nullpointer could be related to
this):
When leaving the applet-page, the stop() and destroy() method are
called. I assumed that memory would be cleared, but strangely this does
not happen at all! When entering the page for the second time, the
memory-usage of the plugin doubles.
Maybe the plugin runs out of memory the third time I open the
applet-page and this results in a NullPointerException.
I've looked into my code but cannot find anything that could be causing
this memory-leak. Has anybody seen this behaviour in any way?
I'm using the BufferedMapBean. Should this be removed from memory on
exit in any way?
Erik
-----Oorspronkelijk bericht-----
Van: Don Dietrick [mailto:dietrick@bbn.com]
Verzonden: donderdag 18 december 2003 3:18
Aan: Erik Sanders
CC: openmap-users@bbn.com
Onderwerp: Re: [OpenMap Users] NullPointerException when using jar
archive
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(Unkn
> o
> 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 Thu Dec 18 09:37:20 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:37 EDT