Java MapScript issues Servlet

Miller Joseph miller_joseph at BAH.COM
Mon Feb 28 00:53:28 EST 2005


Hi,
I'm having a baffling problem with a nightly build of Java Mapscript
from about a month ago that I am running on Windows 2000 with Tomcat
5.5.4.

The symptom I see is that I can generate the default image but after the
fourth or fifth time that I pass a new envelope to change the extent of
the image I get the following error:

The relevant part of the stack trace:
java.lang.UnknownError: Failed to draw layer named 'world'.
        at edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method)
        at edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397)

Occasionally I'll get a flex scanner error or tomcat will crash with an
Exception_Access_Violation memmove error similar to the one referred to
here: 
http://forum.java.sun.com/thread.jspa?forumID=52&messageID=1124599&threa
dID=286832

All of this happens whether I instatiate new instances of the mapObj and
set everything to null or if I use the same mapObj throughout and only
after a few passes, suggesting to me that there is a memory issue
somewhere.  I can pass on some specific code, but all I am really doing
is creating new envelopes to store extents and then assigning them to
the mapObj or extracting the corner coordinates and setting the extent
with them.

I've been fighting this for a frustrating week now.  Does anyone have
any advice?

Thanks,
Joe Miller



More information about the mapserver-users mailing list