Same issue with 1.6.1. But I found the problem: Mapserver just attaches one comma for one mapfile layer entry. So if you have more than one layer in the mapfile entry, there will be not enough commas (if you don’t assign a style). Something like this:
LAYER
NAME grundstuecke #Grundbuch# #
DEBUG ON
TYPE RASTER
STATUS ON
CONNECTIONTYPE WMS
CONNECTION “http://srsofaioi12288:8080/geoserver/wms?”
MAXSCALE 9999
METADATA
“wms_srs” “EPSG:21781”^
“wms_title” “Grundstuecke”
“wms_name” “gb_bb,gb_ls,nkna,gebadr”
“wms_server_version” “1.1.1”
“wms_format” “image/png”
END
END
LAYER
NAME grundstuecke_proj #proj. Grundstücke# #
DEBUG ON
TYPE RASTER
STATUS ON
CONNECTIONTYPE WMS
CONNECTION “http://srsofaioi12288:8080/geoserver/wms?”
MAXSCALE 9999
METADATA
“wms_srs” “EPSG:21781”
“wms_title” “Grundstuecke proj.”
“wms_name” “topp:kva_av_proj_grund”
“wms_style” “av_wms_lsflproj”
“wms_server_version” “1.1.1”
“wms_format” “image/png”
END
END
The resulting request url is:
“GET /geoserver/wms?LAYERS=gb%5Fbb%2Cgb%5Fls%2Cnkna%2Cgebadr,topp%3Akva%5Fav%5Fproj%5Fgrund&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=,av%5Fwms%5Flsflproj&HEIGHT=726&VERSION=1.1.1&SRS=EPSG:21781&WIDTH=1097&BBOX=601095%2E849862%2C227729%2E999999829%2C601274%2E150138%2C227848%2E000000171&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage”
We are using an old mapserver release, probably better with new ones. I’m requesting now native geoserver layers with styles instead of grouped layers.
Stefan
-----Ursprüngliche Nachricht-----
Von: Andrea Aime [mailto:aaime@anonymised.com]
Gesendet am: Montag, 3. März 2008 11:09
An: Ziegler Stefan
Cc: geoserver-users
Betreff: Re: AW: Re: [Geoserver-users] logging request url
Ziegler Stefan ha scritto:
Full stack trace is here:
03 Mrz 10:16:53 WARN [geoserver.ows] -
java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at
org.geoserver.wms.kvp.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:271)
at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1002)
…
I’m using 1.6 rc3. My guess: If there are no styles parameter defined in
the mapserver mapfile, mapserver just writes …&STYLES=,&… and
since I’m using wms layer groups in geoserver thats probably a little
bit confusing. But that’s just a guess.
Hum, yes, layer group expansion is certainly involved in the issue, yet
I made a quick test and could not reproduce it… I guess I need
more information.
Also, can you try out the latest GeoServer version and see if the
problem is still there?
Cheers
Andrea