[Geoserver-devel] [jira] (GEOS-6418) WMS "Library Mode" error

Diego Guidi created an issue

GeoServer / BugGEOS-6418

WMS “Library Mode” error

Issue Type:

BugBug

Affects Versions:

2.5

Assignee:

Andrea Aime

Attachments:

wms_request

Components:

WMS

Created:

28/Mar/14 6:18 AM

Environment:

geoserver 2.5 “binary os” installation with windows 7 and JRE 1.6

Priority:

MinorMinor

Reporter:

Diego Guidi

As described in this thread: http://osgeo-org.1560.x6.nabble.com/WMS-quot-Library-Mode-quot-request-td5131616.html, I’ve tried to generate a wms request for two layers using sld_body parameter as “LibraryMode”, as described here: http://docs.geoserver.org/latest/en/user/styling/sld-working.html#sld-library-mode.

I’ve built an example url using some layers from tiger-data: see attached document.
Here a url-like string to explain what I’ve tried to do:
http://mygeoserver/wms?layers=poly_landmarks,poi&styles=,poi&bbox=…&sld_body=

I request two layers:

  • the first has no “styles” parameter, but the stile is specified in the sld_body
  • the second has “styles” parameter, and points to a sld inside geoserver.

I expected to see the two layers rendered with the specified styles, but a ServiceException is thrown:
" java.lang.ArrayIndexOutOfBoundsException: 1
1"

Note that the same url WITHOUT sld_body works perfectly, and uses the default style for the first layer (as expected).

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo