HELP, mode=map returns text string not image (KNOW BUG??).
Reuven Levitt
reuven at LEVITT.NET
Mon Sep 13 09:54:44 PDT 2004
I am running MS4.2 on WinXP over Tomcat.
I am using a very simple Map file that creates a
single layer (see below).
When mode=browse it works fine, but when I use
mode=img it either returns a long string of unicode
characters, or it returns the following exception:
java.lang.StringIndexOutOfBoundsException: String
index out of range: 0
at java.lang.String.charAt(String.java:444)
at
org.apache.coyote.Response.addHeader(Response.java:374)
at
org.apache.coyote.tomcat4.CoyoteResponse.addHeader(CoyoteResponse.java:897)
at
org.apache.coyote.tomcat4.CoyoteResponseFacade.addHeader(CoyoteResponseFacade.java:383)
at
org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:1844)
at
org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:640)
Is there a know problem, or am I doing something
terribly wrong?
Thanks,
Reuven.
LAYER
NAME "credits"
STATUS default
TRANSFORM FALSE
TYPE ANNOTATION
FEATURE
POINTS
200 150
END
TEXT 'This is a test of the ability to display
text.'
END
CLASS
LABEL
TYPE BITMAP
COLOR 255 0 0
END
END
END
More information about the MapServer-users
mailing list