Java exception: SOMEONE CODED THE X LINK NAMESPACE WRONG!!
----------------------------------------------------------
Key: GEOS-4785
URL: https://jira.codehaus.org/browse/GEOS-4785
Project: GeoServer
Issue Type: Bug
Components: REST
Affects Versions: 2.1.1
Environment: Ubuntu 10.04, Tomcat6, Geoserver 2.1.1
Reporter: Marco Afonso
Assignee: Andrea Aime
Hi,
I'm getting Java exception when POSTing a Style through REST (PHP-cURL):
<h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade">
<p><b>type</b> Exception report</p>
<p><b>message</b> <u></u></p>
<p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p>
<p><b>exception</b> <pre>org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.Error: SOMEONE CODED THE X LINK NAMESPACE WRONG!!
The following is the simple SLD that I'm posting:
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NamedLayer>
<Name>Point as graphic</Name>
<UserStyle>
<Title>GeoServer SLD Cook Book: Point as graphic</Title>
<FeatureTypeStyle>
<Rule>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource
xlink:type="simple"
xlink:href="fire.png" />
<Format>image/png</Format>
</ExternalGraphic>
<Size>32</Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Justin Deoliveira has identified that the xlink:href attribute is accepting only a full file path.
Thank you for your attention,
Marco
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira