Ok that's what I'm going to focus on.
At least we are sure now that GeoTools does the job right.

Thanks for your support! I'll try to keep you updated in case I find out
something related to GeoTools.

Yoann Buch

2009/8/4 Jody Garnett <[email protected]>

> So that should be the end of it from the geotools side of things; time
> to trace through geoserver and see how it is managing to do things
> differently?
> Jody
>
> On Tue, Aug 4, 2009 at 2:54 AM, Yoann Buch<[email protected]>
> wrote:
> > Well I'm kind of new with geotools but this is what I've done:
> >
> > I stored my sld file named geodoc.sld in:
> > modules/library/main/src/test/resources/org/geotools/styling/test-data
> >
> > And changed the testSLDParser method in
> >
> modules/library/main/src/test/java/org/geotools/styling/SLDStyleTest.java:
> > I replaced
> > java.net.URL surl = TestData.getResource(this, "example-sld.xml");
> > with
> > java.net.URL surl = TestData.getResource(this, "geodoc.sld");
> >
> > But tests still pass, obviously no exceptions were raised during the
> > parsing...
> >
> > It seems that I forgot to attach the file sample in the previous email so
> > you can take
> > a look at it, here it is.
> >
> > Thanks again Jody!
> >
> >
> > Yoann Buch
> >
> >
> > 2009/8/1 Jody Garnett <[email protected]>
> >>
> >> Thanks for looking into that - that was my best quick guess :-(
> >> Can I confirmed that you modified the test case to use your own SLD
> file?
> >> Jody
> >> On 31/07/2009, at 11:03 PM, Yoann Buch wrote:
> >>
> >> I ran the tests with GeoTools 2.5.5. but tests still pass.
> >>
> >> I don't really know now if it really is a GeoTools issue.
> >>
> >>
> >> Yoann Buch
> >>
> >> 2009/7/31 Yoann Buch <[email protected]>
> >>>
> >>> Thanks Jody for helping me!
> >>>
> >>> I svn checked out the geotools repository and tested the file as you
> >>> mentioned.
> >>> I just replaced the file to test in the method  testSLDParser of
> >>> org.geotools.styling.SLDStyleTest.java,
> >>> but it seems that the execution went fine...
> >>>
> >>> Unless I did something wrong to test this file, it might mean that
> >>> GeoTools changed from the version that
> >>> is currently used by my GeoServer ( 1.7.4. = GeoTools 2.5.5.). To be
> >>> honest, I don't really know how to
> >>> find if something really changed.
> >>>
> >>> Maybe some global settings in GeoServer change GeoTools behaviors? (My
> >>> GeoServer's character set is UTF-8 though).
> >>>
> >>> I attached a file sample in case something obvious could come out.
> >>>
> >>> Yoann Buch
> >>>
> >>> 2009/7/31 Jody Garnett <[email protected]>
> >>>>
> >>>> Can you supply a sample file? We have a test directory of SLD files;
> >>>> where each one is parsed and then regenerated to ensure that the
> >>>> process is non lossy. I have also had problems on and off over the
> >>>> last year; but for the most part things have been good in the last 6
> >>>> months on trunk.
> >>>>
> >>>> If you would like to look your self check out the SLDParser test
> cases.
> >>>>
> >>>> Jody
> >>>>
> >>>> On Thu, Jul 30, 2009 at 6:00 PM, Yoann Buch<[email protected]
> >
> >>>> wrote:
> >>>> > Hi list,
> >>>> >
> >>>> > I have encountered an issue with GeoServer but I think that the
> >>>> > problem may
> >>>> > be
> >>>> > related to GeoTools only.
> >>>> >
> >>>> > I sent to GeoServer a GetMap request with a reference to one SLD
> file
> >>>> > that I
> >>>> > created
> >>>> > previously with GeoTools. When it's time to parse it, an exception
> is
> >>>> > raised:
> >>>> >
> >>>> > java.lang.RuntimeException: java.io.UTFDataFormatException: Invalid
> >>>> > byte 2
> >>>> > of 3-byte UTF-8 sequence.
> >>>> >     at org.geotools.styling.SLDParser.parseSLD(SLDParser.java:372)
> >>>> >     at
> >>>> >
> >>>> >
> org.geoserver.wms.kvp.GetMapKvpRequestReader.parseSld(GetMapKvpRequestReader.java:413)
> >>>> >     ...
> >>>> >
> >>>> > I know that my SLD contains special characters such as éèë... but it
> >>>> > is text
> >>>> > encoded in UTF-8. This exception
> >>>> > is only raised when my file contains those special characters
> >>>> > otherwise
> >>>> > everything goes fine.
> >>>> >
> >>>> > So I'm kind of confused on how one SLD file generated by GeoTools
> >>>> > cannot be
> >>>> > parsed back by GeoTools...
> >>>> >
> >>>> > Any help on this?
> >>>> >
> >>>> > Best Regards,
> >>>> >
> >>>> > Yoann Buch
> >>>> >
> >>>> >
> >>>> >
> ------------------------------------------------------------------------------
> >>>> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> >>>> > 30-Day
> >>>> > trial. Simplify your report design, integration and deployment - and
> >>>> > focus
> >>>> > on
> >>>> > what you do best, core application coding. Discover what's new with
> >>>> > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> >>>> > _______________________________________________
> >>>> > Geotools-gt2-users mailing list
> >>>> > [email protected]
> >>>> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> >>>> >
> >>>> >
> >>>
> >>
> >>
> >
> >
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to