Java Mapscript

Frederico Lucca fredlucca at GMAIL.COM
Thu Sep 21 08:47:53 PDT 2006


Umberto,

Here are the information that I can give.

Linux porto 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686 unknown unknown
GNU/Linux

gcc (GCC) 3.3.4

MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

SWIG Version 1.3.29
Compiled with g++ [i686-pc-linux-gnu]

gdal 1.3.2

proj 4.4.9

tomcat 5.5.9

I configure --with-threads --with-ogr --with-gdal --with-proj

The code is simple like open, setExtent, draw

Best Regards,

Fred

On 9/21/06, Umberto Nicoletti <umberto.nicoletti at gmail.com> wrote:
>
> On 9/21/06, Frederico Lucca <fredlucca at gmail.com> wrote:
> > Hello list,
> >
> > I'm having trouble with mapserver and java mapscript, my tomcat broke
> with
> > this error after some requests.
> > Could someone help me?
>
> I would, but I need more details. There is a java mapscript doc on
> mapserver web site that has a section exactly about what you need to
> tell us to help us help you ;-).
>
> Umberto
>
> >
> > Best Regards,
> >
> > Fred
> >
> > #
> > # An unexpected error has been detected by HotSpot Virtual Machine:
> >
> > #
> > # SIGSEGV (0xb) at pc=0x400eb3fd, pid=17455, tid=376856
> > #
> > # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing)
> > # Problematic frame:
> > # C [libc.so.6+0x683fd] mempcpy+0x2d
> > #
> >
> >
> > --------------- T H R E A D ---------------
> >
> > Current thread (0x08204c28): JavaThread "http-8080-Processor15" daemon
> > [_thread_in_native, id=17480]
> >
> > Stack: [0xbca01000,0xbcc00000), sp=0xbcbfe21c, free space=2036k
> >
> > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
> C=native
> > code)
> > C [libc.so.6+0x683fd] mempcpy+0x2d
> > C [libc.so.6+0x5dba3]
> > C [libc.so.6+0x5ee48] _IO_sgetn+0x28
> > C [libc.so.6+0x539f4] _IO_fread+0x74
> >
> > C [libmapscript.so+0x545d5] msSHPOpen+0x425
> > C [libmapscript.so+0x562a9] msSHPOpenFile+0x59
> > C [libmapscript.so+0x57de1] msShapeFileLayerOpen+0x91
> > C [libmapscript.so+0x80d11] msLayerOpen+0x71
> > C [libmapscript.so+0x8c3f6
> > ] msDrawVectorLayer+0xe6
> > C [libmapscript.so+0x8c155] msDrawLayer+0x95
> > C [libmapscript.so+0x8b9de] msDrawMap+0x42e
> > C [libmapscript.so+0x2c59c]
> > C [libmapscript.so+0x3e825]
> > Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw+0x35
> >
> > j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0
> > j
> > edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4
> > j
> > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4
> > j TileServer.exportExact
> > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61
> > j
> > TileServer.processRequest
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248
> > j
> > TileServer.doPost
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3
> >
> > j
> > javax.servlet.http.HttpServlet.service
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139
> > j
> > javax.servlet.http.HttpServlet.service
> (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30
> >
> > j
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354
> > j
> > org.apache.catalina.core.ApplicationFilterChain.doFilter
> (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
> >
> > j
> > org.apache.catalina.core.StandardWrapperValve.invoke
> (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670
> > j
> > org.apache.catalina.core.StandardContextValve.invoke
> (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285
> >
> > j
> > org.apache.catalina.core.StandardHostValve.invoke
> (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64
> > j
> > org.apache.catalina.valves.ErrorReportValve.invoke
> (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6
> >
> > j
> > org.apache.catalina.core.StandardEngineValve.invoke
> (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42
> > j
> > org.apache.catalina.connector.CoyoteAdapter.service
> (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141
> >
> > j
> > org.apache.coyote.http11.Http11Processor.process
> (Ljava/io/InputStream;Ljava/io/OutputStream;)V+521
> > j
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> (Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113
> >
> > j
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45
> > j
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> ([Ljava/lang/Object;)V+102
> >
> > j
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167
> > j java.lang.Thread.run()V+11
> > v ~StubRoutines::call_stub
> > V [libjvm.so+0x174fec]
> > V [libjvm.so+0x2821f8]
> > V [libjvm.so+0x174845]
> >
> > V [libjvm.so+0x1748de]
> > V [libjvm.so+0x1ebee5]
> > V [libjvm.so+0x2ea563]
> > V [libjvm.so+0x282d08]
> > C [libpthread.so.0+0x654e]
> >
> > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
> >
> > j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0
> > j
> > edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4
> > j
> > br.com.multispectral.mapapp.MapServerApp.export(Ljava/lang/String;)V+4
> > j TileServer.exportExact
> > (Lbr/com/multispectral/mapapp/MapServerApp;DDDLjava/lang/String;II)V+61
> > j
> > TileServer.processRequest
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+248
> > j
> > TileServer.doPost
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3
> >
> > j
> > javax.servlet.http.HttpServlet.service
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139
> > j
> > javax.servlet.http.HttpServlet.service
> (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30
> >
> > j
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+354
> > j
> > org.apache.catalina.core.ApplicationFilterChain.doFilter
> (Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+101
> >
> > j
> > org.apache.catalina.core.StandardWrapperValve.invoke
> (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670
> > j
> > org.apache.catalina.core.StandardContextValve.invoke
> (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285
> >
> > j
> > org.apache.catalina.core.StandardHostValve.invoke
> (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64
> > j
> > org.apache.catalina.valves.ErrorReportValve.invoke
> (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6
> >
> > j
> > org.apache.catalina.core.StandardEngineValve.invoke
> (Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42
> > j
> > org.apache.catalina.connector.CoyoteAdapter.service
> (Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141
> >
> > j
> > org.apache.coyote.http11.Http11Processor.process
> (Ljava/io/InputStream;Ljava/io/OutputStream;)V+521
> > j
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> (Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113
> >
> > j
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45
> > j
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> ([Ljava/lang/Object;)V+102
> >
> > j
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167
> > j java.lang.Thread.run()V+11
> > v ~StubRoutines::call_stub
> >
> > 40000000-40015000 r-xp 00000000 08:01 12210 /lib/ld-
> > 2.3.4.so
> > 40015000-40017000 rw-p 00014000 08:01 12210 /lib/ld-2.3.4.so
> > 40017000-40018000 r--p 00000000 00:00 0
> > 40018000-40019000 rwxp 00001000 00:00 0
> > 40019000-4001f000 r-xp 00000000 08:01 144145
> > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so
> >
> > 4001f000-40020000 rw-p 00006000 08:01 144145
> > /usr/lib/jdk1.5.0_06/jre/lib/i386/native_threads/libhpi.so
> > 40020000-40027000 r-xp 00000000 08:01 12445 /lib/libnss_compat-2.3.4.so
> >
> > 40027000-40029000 rw-p 00006000 08:01 12445 /lib/libnss_compat-2.3.4.so
> > 40029000-4002b000 r--s 00000000 08:01 149512
> > /usr/lib/jdk1.5.0_06/jre/lib/ext/dnsns.jar
> > 4002b000-4002c000 rw-p 00000000 00:00 0
> >
> > 4002c000-4003a000 r-xp 00000000 08:01 12452 /lib/libpthread-0.10.so
> > 4003a000-4003c000 rw-p 0000d000 08:01 12452 /lib/libpthread-0.10.so
> > 4003c000-4007e000 rw-p 00000000 00:00 0
> >
> > 4007e000-40080000 r-xp 00000000 08:01 12441 /lib/libdl-2.3.4.so
> > 40080000-40082000 rw-p 00001000 08:01 12441 /lib/libdl-2.3.4.so
> > 40082000-40083000 rw-p 00000000 00:00 0
> >
> > 40083000-40199000 r-xp 00000000 08:01 12438 /lib/libc-2.3.4.so
> > 40199000-4019a000 ---p 00116000 08:01 12438 /lib/libc-2.3.4.so
> > 4019a000-4019b000 r--p 00116000 08:01 12438 /lib/libc-
> > 2.3.4.so
> > 4019b000-4019e000 rw-p 00117000 08:01 12438 /lib/libc-2.3.4.so
> > 46862000-46863000 r-xp 00000000 08:01 12419 /usr/lib/gconv/ISO8859-1.so
> >
> > 46863000-46864000 ---p 00001000 08:01 12419 /usr/lib/gconv/ISO8859-1.so
> > 46864000-46866000 rw-p 00001000 08:01 12419 /usr/lib/gconv/ISO8859-1.so
> > 46874000-4688f000 r-xp 00000000 08:02 521 /usr/local/lib/libgd.so.2.0.0
> >
> > 4688f000-468af000 rw-p 0001a000 08:02 521 /usr/local/lib/libgd.so.2.0.0
> > 468af000-468c3000 rw-p 00000000 00:00 0
> > 468c3000-468df000 r-xp 00000000 08:01 201 /usr/lib/libjpeg.so.62.0.0
> > 468df000-468e0000 rw-p 0001b000 08:01 201 /usr/lib/libjpeg.so.62.0.0
> >
> > 468e0000-468f0000 r-xp 00000000 08:01 59294 /usr/lib/libz.so.1.2.2
> > 468f0000-468f1000 rw-p 0000f000 08:01 59294 /usr/lib/libz.so.1.2.2
> > 468f1000-468f8000 r-xp 00000000 08:01 194 /usr/lib/libgcc_s.so.1
> >
> > 468f8000-468f9000 rw-p 00007000 08:01 194 /usr/lib/libgcc_s.so.1
> > 468f9000-468ff000 r-xp 00000000 08:01 52949 /usr/lib/libungif.so.4.1.2
> > 468ff000-46900000 rw-p 00006000 08:01 52949 /usr/lib/libungif.so.4.1.2
> >
> > 46900000-469fb000 rw-p 000c4000 00:00 0
> > 469fb000-46a00000 ---p 000e5000 00:00 0
> > 46a00000-46af4000 r-xp 00000000 08:02 1019
> /usr/local/lib/libmapscript.so
> > 46af4000-46af8000 rw-p 000f3000 08:02 1019
> /usr/local/lib/libmapscript.so
> >
> > 46af8000-46afa000 rw-p 00000000 00:00 0
> > 46afa000-46b5b000 r-xp 00000000 08:02 1035
> > /usr/local/lib/libfreetype.so.6.3.10
> > 46b5b000-46b5e000 rw-p 00061000 08:02 1035
> > /usr/local/lib/libfreetype.so.6.3.10
> >
> > 46b5e000-46b8e000 r-xp 00000000 08:01 210 /usr/lib/libpng.so.3.1.2.8
> > 46b8e000-46b8f000 rw-p 0002f000 08:01 210 /usr/lib/libpng.so.3.1.2.8
> > 46b8f000-46bc4000 r-xp 00000000 08:02 383
> /usr/local/lib/libproj.so.0.5.0
> >
> > 46bc4000-46bc6000 rw-p 00035000 08:02 383
> /usr/local/lib/libproj.so.0.5.0
> > 46bc6000-46edd000 r-xp 00000000 08:02 4586
> > /usr/local/lib/libgdal.so.1.10.0
> > 46edd000-46f32000 rw-p 00316000 08:02 4586
> > /usr/local/lib/libgdal.so.1.10.0
> >
> > 46f32000-46f47000 rw-p 00000000 00:00 0
> > 46f47000-46fe2000 r-xp 00000000 08:01 141965 /usr/lib/libstdc++.so.5.0.6
> > 46fe2000-46ff9000 rw-p 0009b000 08:01 141965 /usr/lib/libstdc++.so.5.0.6
> > 46ff9000-46ffe000 rw-p 00000000 00:00 0
> >
> > 46ffe000-4700c000 r-xp 00000000 08:01 69690
> /usr/X11R6/lib/libXpm.so.4.11
> > 4700c000-4700d000 rw-p 0000e000 08:01 69690
> /usr/X11R6/lib/libXpm.so.4.11
> > 4700d000-470d3000 r-xp 00000000 08:01 69832 /usr/X11R6/lib/libX11.so.6.2
> >
> > 470d3000-470d7000 rw-p 000c6000 08:01 69832 /usr/X11R6/lib/libX11.so.6.2
> > 470d7000-470fa000 r-xp 00000000 08:01 69699
> > /usr/X11R6/lib/libfontconfig.so.1.0.4
> > 470fa000-470fd000 rw-p 00022000 08:01 69699
> > /usr/X11R6/lib/libfontconfig.so.1.0.4
> >
> > 470fd000-470fe000 rw-p 00000000 00:00 0
> > 470fe000-4712e000 r-xp 00000000 08:01 184 /usr/lib/libpng12.so.0.1.2.8
> > 4712e000-4712f000 rw-p 0002f000 08:01 184 /usr/lib/libpng12.so.0.1.2.8
> > 4712f000-4724f000 r-xp 00000000 08:02 4327
> > /usr/local/lib/libNCSEcw.so.0.0.0
> >
> > 4724f000-47258000 rw-p 00120000 08:02 4327
> > /usr/local/lib/libNCSEcw.so.0.0.0
> > 47258000-47265000 rw-p 00000000 00:00 0
> > 47265000-47279000 r-xp 00000000 08:02 4339
> > /usr/local/lib/libNCSCnet.so.0.0.0
> >
> > 47279000-4727a000 rw-p 00014000 08:02 4339
> > /usr/local/lib/libNCSCnet.so.0.0.0
> > 4727a000-47299000 r-xp 00000000 08:02 4334
> > /usr/local/lib/libNCSUtil.so.0.0.0
> > 47299000-4729b000 rw-p 0001e000 08:02 4334
> > /usr/local/lib/libNCSUtil.so.0.0.0
> >
> > 4729b000-4729c000 rw-p 00000000 00:00 0
> > 4729c000-472e7000 r-xp 00000000 08:01 52823 /usr/lib/libtiff.so.3.7.1
> > 472e7000-472e9000 rw-p 0004a000 08:01 52823 /usr/lib/libtiff.so.3.7.1
> >
> > --------------- S Y S T E M ---------------
> >
> >
> > OS:Linux
> > uname:Linux 2.4.29 #25 Thu Jan 20 17:21:56 PST 2005 i686
> > libc:glibc 2.3.4 linuxthreads-0.10 (fixed stack)
> > rlimit: STACK 2044k, CORE 0k, NPROC 7168, NOFILE 1024, AS infinity
> > load average:3.44 2.84
> >  1.27
> >
> > CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht
> >
> > Memory: 4k page, physical 904220k(52168k free), swap 2097136k(1994124k
> free)
> >
> > vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for linux-x86, built
> on
> > Nov 10 2005 12:08:33 by java_re with gcc
> > 3.2.1-7a (J2SE release)
> >
> >
> >
> > --
> > "Everything under the sun is in tune
> > But the sun is eclipsed by the moon"
>



-- 
"Everything under the sun is in tune
But the sun is eclipsed by the moon"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060921/f5fc4927/attachment.htm>


More information about the MapServer-users mailing list