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

Re: null pointer exception in oracle WFS insert again

by Howie.Stuntman :: Rate this Message:

Reply to Author | View in Thread

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.

If there are any ideas whats wrong i would like to here it!!!
And if there are more questions about the problem i would try to answer them.

Cheers
Howie

Andrea Aime-4 wrote:
Howie.Stuntman ha scritto:

> Caused by: java.lang.NullPointerException
> at
> org.geotools.data.oracle.OracleFeatureWriter.doInsert(OracleFeatureWriter.java:182)
> at

Hmm... this is the old Oracle datastore, and the issue is happening
because the geometry being inserted is null (along with a bug in the
datastore that does not foresee this case).

The old Oracle data store is no more being maintained, so we cannot
offer help about it.
Can you try out the OracleNG one? If you encounter problems
with it we'll be able to offer some assistance

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

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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

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