Geonode: GeoNode 2.8 Upload of Shp Layer failing – GeoServer Error: CoordinateArraySequenceFactory

Created on 13 Dec 2018  Â·  28Comments  Â·  Source: GeoNode/geonode

Uploading of layer fails on fresh GeoNode 2.8.1 rc0 instance.

Expected behavior

Successful upload of vector layer (attached)

What happens instead

Upload fails with:

Unable to usecom.vividsolutions.jts.geom.impl.CoordinateArraySequenceFactory@47999b66 to produce CoordinateSequence with dimension 2

Full trace: https://gist.github.com/t-book/d42e5c86a0ee7f1554b77fd96f0f6ec2

Setup

  • Ubuntu 16.04
  • GeoNode 2.8.1 rc0 installed by use of geonode-project
  • Full Stack for production
  • GeoServer Version:

    • Implementation-Version: 2.13-SNAPSHOT

    • Build-Timestamp: 2018-10-17T14:26:11Z

  • JVM: Oracle Corporation: 1.8.0_191 (OpenJDK 64-Bit Server VM)
  • JVM renderin engine: sun.java2d.pisces.PiscesRenderingEngine

tiger_roads.zip

Most helpful comment

done.

All 28 comments

@afabiani I´ve just tested with an older 2.13 release from Mai which is working. So this issue might fit better with GeoServer?

This is working

Implementation-Version: 2.13-SNAPSHOT
Build-Timestamp: 2018-05-23T16:52:21Z
Git-Revision: 934d6bd11928e28c96a8313d37eb94afecf15d29

This does not:

Implementation-Version: 2.13-SNAPSHOT
Build-Timestamp: 2018-10-17T14:26:11Z
Git-Revision: 686c780a08965f06f0ab8a33261feee00ed90f40

Uhm, different GeoServer with same GeoNode you mean?

Exactly, I´ve installed latest Geoserver 2.13 which produces error. Then I´ve replaced GS with a 2.13 build from May which works without problems. Same shape file same encoding ;(

Did something change between 2.13.1 and 2.13.3 regarding CoordinateArraySequenceFactory or in general with importer and shp handling?

Maybe the version of the JTS.... need to check.

I'll try to take a look as soon as possible. In the meantime, I think it is safe to use the older one.

As always thanks Alessio!

I can confirm WindowsCP1258 encoding does not work.

WindowsCP1258 was not working in GeoServer 2.13 I think, while now with 2.14 correctly does

thanks @capooti But I´m quite sure this issue is not about encoding. From a diff I would guess it´s like Alessio said some version conflict.

@t-book can you give it a try by updating the GeoServer war?

Unfortunately the problem still exists, tested on a fresh U16.04 with Geoserver:

Implementation-Version: 2.13-SNAPSHOT
Build-Timestamp: 2018-12-19T15:48:32Z
Project-Version: 2.13-SNAPSHOT
Iteration-Name:
Git-Revision: 515b021cc396aa67e0b9603cd6000326e0a48303
Created-By: Apache Maven 3.3.9
Build-Jdk: 1.8.0_66

bildschirmfoto 2018-12-19 um 18 11 57

@t-book unfortunately the issue is related to the importer plugin of GeoServer 2.13.x using the old GeoTools.

We will need to switch to the UPLOADER = geoserver.rest with TIME = False
for the time being.

I'll update the geonode-project settings for 2.8.x accordingly

Does this workaround have any drawback?

You won't be able to use timeseries on 2.8

@afabiani thanks. By now I´ll just stay with the build from May which works for me.

@afabiani 2.8 does not work with GS_2.14 right?

@t-book unfortunately not. I mean it could work, but we should backport some changes to the rest calls from master. This is a bit dangerous because won't be back compatible, and it will force anyone using an older version of GeoServer to perform the update.

Then I would say the backport is not of an option. Why not stay with the 2.13 build from around May this year for now? Here everything seems to work? (Haven´t tested timeseries though.)

Because I should find a way to fetch the old JARs from maven repository... not sure they still exist.

I have to figure out if/how this could be possible or manually upload the old WAR to the repo. A bit tricky.

I see. If it helps I can offer to publish the old (working) 2.13 war over s3 and update geoserver_url (dev_config.yml) temporarily. This would give some time and ensure users do not run into this error when installing 2.8. Let me know if I can help you with testing.

yes it could help a lot actually, thanks!

@t-book I still suggest to keep using the old upload method with GeoNode 2.8 though, the rest one.

Eventually those are the variable to touch on the docker file

https://github.com/GeoNode/geonode-project/commit/975b43ef72a630fd3f70dabb443a0f83e812b01f

@afabiani Is it in this specific case okay to PR directly to 2.8 branch?

@t-book yes, go ahead

done.

Hello guys, I am also getting this issue on GeoNode version 2.8.1rc0. It only happens with shapefiles that don't have a date field. I also tried to change the uploader to geonode.rest and time_enabled flag set to false and that allows the process to go through but the layer can't then be seen on the map when I preview the layer. Do we have any solutions to this yet?

@RamizSami the interim solution is to use the older GeoServer 2.13 build: https://s3.eu-central-1.amazonaws.com/csgis-public/2load/geoserver-2.13.x.war

Confirming: the geoserver build shared by @t-book worked. Thanks a lot Toni

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ingenieroariel picture ingenieroariel  Â·  10Comments

cezio picture cezio  Â·  6Comments

Coop56 picture Coop56  Â·  10Comments

afabiani picture afabiani  Â·  8Comments

gannebamm picture gannebamm  Â·  6Comments