mapscript with java

Umberto Nicoletti umberto.nicoletti at GMAIL.COM
Wed Jun 20 05:11:28 EDT 2007


Please read this first:

http://mapserver.gis.umn.edu/docs/howto/javamapscript

especially last section. We can't help you without that info.

Umberto

On 6/20/07, Victor Herrero Cazurro <la_barrenadora at hotmail.com> wrote:
> Hello!
>
>
>
> I'm a java Developer and i use mapscript library to make a consult "WFS
> getfeature" to "MAPSERVER" in Apache, i prove the java example in this url
>
> "http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/#java-example"
>
>
>
> I change the parameter
>
>
>
> "
>
> mapObj map = new mapObj(mapName);
>
> map.setMetaData( "ows_onlineresource", "http://dummy.org/" );
>
> req.setParameter( "SERVICE", "WMS" );
> req.setParameter( "VERSION", "1.1.0" );
> req.setParameter( "REQUEST", "GetCapabilities" );
> "
>
> For
>
> "
> mapObj map = new
> mapObj("c:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map");
>
> map.setMetaData( "ows_onlineresource", "http://localhost/cgi-bin/mapserv" );
>
>
>
> OWSRequest req = new OWSRequest();
>
>
>
> req.setParameter( "SERVICE", "WFS" );
>
> req.setParameter( "VERSION", "1.0.0" );
>
> req.setParameter( "REQUEST", "getfeature" );
>
> req.setParameter( "TYPENAME", "layer_name" );
>
> "
>
> And obtain this error
>
>
>
> "
>
> #
>
> # An unexpected error has been detected by HotSpot Virtual Machine:
>
> #
>
> #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x036b68c3, pid=7444,
> tid=7552
>
> #
>
> # Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing)
>
> # Problematic frame:
>
> # C  [gdal14.dll+0x168c3]
>
> #
>
> # An error report file with more information is saved as hs_err_pid7444.log
>
> #
>
> # If you would like to submit a bug report, please visit:
>
> #   http://java.sun.com/webapps/bugreport/crash.jsp
>
> #
>
> "
>
> somebody can help me ????
>
> Thanks in advance!
>
> _________________________________________________________________
> Horóscopo, tarot, numerología... Escucha lo que te dicen los astros.
> http://astrocentro.msn.es/
>



More information about the mapserver-users mailing list