« Return to Thread: null pointer exception in oracle WFS insert again

Re: null pointer exception in oracle WFS insert again

by Andrea Aime-4 :: Rate this Message:

Reply to Author | View in Thread

Howie.Stuntman ha scritto:
> Hello Andrea
>
> thanks for your fast answer.
> I have tested now the Oracle NG datastore plugin and there is no error
> anymore.
> But when i try to insert data to the table, the plugin creates a new dataset
> but without a geometry in the geometry column.
> I have tested the same code with an Shapefile as datasource and it works.

You mean, the very same request against a shapefile with the same
structure as your Oracle table?
I already told you what the most likely reason for a null geometry is
in my original mail, did you double check WFS and GML schema
conformance? See below:

>> As for the geometry being null, it might be that the parser skipped it
>> because it was not conforming to the schema of the WFS version you're
>> trying to use (or, other simpler possibility, the geometry is really
>> null)
>> If you have specified a geometry make sure you're using the proper GML
>> encoding for the WFS version you're using, they are quite different.
>> WFS 1.1 uses GML 3, WFS 1.0 uses GML 2

A way to make GeoServer perform the schema check for you is to post to:

http://host:port/geoserver/wfs?strict=true

That URL triggers schema validation on every request.

If this does not help please provide enough SQL to rebuild your table
and the WFS request that's failing for you so that we can debug it
locally.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users

 « Return to Thread: null pointer exception in oracle WFS insert again