Hi Guys,

Sorry to jump in late. Seems like you are making progress. This import
seems strange to me:

<import namespace="http://www.opengis.net/gml"/>

Since it does not have any schemaLocation attribute? Which is most
likely the source of the null pointer exception. Since it is a
"well-known" namespace / schema to the parser, simply putting
schemaLocation="gml.xsd" should do the trick.

-Justin

Vince Darley wrote:
> At 11:05 11/09/2007, Gabriel Roldán wrote:
>> Configuration configuration = new
>> ApplicationSchemaConfiguration(namespace,
>> schemaLocation);
>> Parser parser = new Parser( configuration );
> 
> Now that seems to work quite a lot better, except we hit null pointer
> exceptions due to calls to 'resolveSchemaLocation':
> 
> public String resolveSchemaLocation(XSDSchema schema, String uri, String
> location) {
> 
> where:
>    uri          "http://www.opengis.net/gml";
>    location    null
> 
> It tries to look for a file in the directory that we supplied on
> construction, but with 'null' as a file name.
> 
> This seems to be driven/triggered by lines like this:
> 
>         <import namespace="http://www.opengis.net/gml"/>
> 
> in the schema being parsed.
> 
> any idea how to avoid that problem?
> 
> Vince.
> 
> 
> !DSPAM:4007,46e671d1174873362379201!
> 


-- 
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to