[Mapserver-users] WMS Connection Fails with MapServer 4.0

Norbert Schauerte-Lueke nsl at regio-gis-planung.de
Tue Sep 16 05:55:57 EDT 2003


Hi all List members,

I am still searching the problem concerning the WMS connection as client to an OGC 
conform WMS Server. 

The problem in short:

If i try the Connection with GetCapabilities or GetMap directly as URL I get a correct 
response. If i try the connection inside the mapfile the following error is returned from 
the WMS server:
---------------------- wms server error message -----------------
<head><title>Error: 500</title></head>
<body>
<h1>Error: 500</h1>
<h2>Location: /GeoOgcWms1.3/servlet/GEPNRW</h2><b>Internal Servlet 
Error:</b><br>
<pre>java.lang.NullPointerException
	at 
de.aedgraphics.geoogcwms.ogcwmsservlet.ServiceDispatcher.dispatch(ServiceDispatc
her.java:225)
	at 
de.aedgraphics.geoogcwms.ogcwmsservlet.OgcWmsServlet.serviceRequest(OgcWms
Servlet.java:590)
	at 
de.aedgraphics.geoogcwms.ogcwmsservlet.OgcWmsServlet.doGet(OgcWmsServlet.ja
va:469)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java)
	at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
	at org.apache.tomcat.core.Handler.invoke(Unknown Source)
	at org.apache.tomcat.core.Handler.service(Unknown Source)
	at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
	at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
	at org.apache.tomcat.core.ContextManager.service(Unknown Source)
	at 
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Unknown 
Source)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown 
Source)
	at java.lang.Thread.run(Unknown Source)
</pre>
</body>

---------------------------------------------------------------------------

If i use the debug option in the mapfile i can see an "msHTTPExecuteRequest". If I try 
this request directly as URL everthink works fine.

--------------- ms 40 debug message ----------------------------- 
Mon Sep 15 13:28:33 2003 - msHTTPExecuteRequests(): HTTP request error. HTTP 
GET request failed with status 500 () for 
http://www.geoserver.nrw.de:80/GeoOgcWms1.3/servlet/GEPNRW?SERVICE=WMS&
VERSION=1.1.0&LAYERS=GEPNRW%3AGewerbe&FORMAT=image%2Fpng&TRAN
SPARENT=TRUE&STYLES=+&REQUEST=GetMap&WIDTH=700&HEIGHT=500&SR
S=EPSG:31466&BBOX=2528567.365287,5704038.145106,2544168.715887,5715184.
995106&EXCEPTIONS=application/vnd.ogc.se_inimage
Mon Sep 15 13:28:33 2003 - msDrawWMSLayerLow(): WMS server error. WMS 
GetMap request failed for layer 'GEP_Gewerbe' (Status 500: ).
-----------------------------------------------------------------------------

Are there differences between the URL returned by  msHTTPExecuteRequest and the 
connection that will be generated by mapserver 4.0

Is it possible to create a log file with the send HTTP request (are there any configuration 
possibiliteis in curl. I use SuSE Linux 8.2 and Win 2000 for test purposes).

Are there any other debug options for the mapserver 4.0? The WMS Server seems to 
be o.k. because i can connect directly, I can connect with mapserver 3.6 and i can 
connect with ArcGIS WMS Solutions. 

I am dealing with this problem since three weeks, and can't find the mistake. If anybody 
can give a hint, I will be very thankfull.

Norbert
R E G I O  G I S  +  P L A N U N G   G m b H
____________________________________________
www.regio-gis-planung.de

Falkstraße 73-77,  47058 Duisburg
Tel. 0203 / 30511-360  
Fax: 0203 / 30511-364

Hainhölzer Strasse 5,  30159 Hannover
Tel. 0511 / 123577-0   
Fax: 0511 / 123577-11






More information about the mapserver-users mailing list