Thank you Justin.

This seems a strange behaviour because I moved to cURL (without php), post
the same SLD and it works!

Anyway, I can open the issue in jira... can you indicate the page where can
I open the issue? Thank you.

Cheers,
Marco Afonso

2011/10/3 Justin Deoliveira <[email protected]>

> It is a really bad error message but its because href attribute has to be a
> full url... so try href="file:fire.png". In general though I would consider
> this a bug... since the SLD parser can parse just "fire.png" but the encoder
> can't encode it. Feel free to open up an issue in jira.
>
>   On Fri, Sep 30, 2011 at 6:20 PM, Marco Afonso <[email protected]>wrote:
>
>>   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/sldStyledLayerDescriptor.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>
>>
>>
>> Do you need the full Java exception stack?
>>
>> Also, I have another style with the same SLD working but with different
>> name.
>>
>> Thank you for your attention,
>> Marco Afonso
>>
>>
>> ------------------------------------------------------------------------------
>> All of the data generated in your IT infrastructure is seriously valuable.
>> Why? It contains a definitive record of application performance, security
>> threats, fraudulent activity, and more. Splunk takes this data and makes
>> sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-d2dcopy2
>> _______________________________________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
>
>
> --
> Justin Deoliveira
> OpenGeo - http://opengeo.org
> Enterprise support for open source geospatial.
>
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to