- MapInfo Pro version 15.2.4 (64-Bit) Release Build 502
- MapInfo Pro version 16.0.2 (64-Bit) Release Build 205
- Geoserver version 2.12.0 publishing WFS-T (WFS v1.0.0)
I refer to previous similar posts / references:
- The following link is no longer available. To access this information, copy the title found in the url into the search tool on the top nav bar, or try searching for key words in the post. https://li360.pitneybowes.com/s/question/0D58000003pBvw5CAC/wfs-date-fields-not-displaying
- The following link is no longer available. To access this information, copy the title found in the url into the search tool on the top nav bar, or try searching for key words in the post. https://li360.pitneybowes.com/s/article/Resolve-error-message-when-trying-to-edit-using-WFS-T-in-MapInfo-Pro-15-x-and-16-0
Behaviour for both MapInfo versions is identical:
- WFS-T date fields display in browser and info windows no worries
- Editing existing records - geometry, any attributes (including date fields) - data saves and refreshes perfectly
- Create a new record (e.g. drawing a new geometry in the map layer, and then editing attributes) - save fails with java "Parsing failed" error - unable to proceed.
- Copy-and-paste an existing record in its entirety - no changes - save fails with java "Parsing failed" error - unable to proceed.
Error Message Details
In all cases, the error message relates to date parsing - example shown:
java.lang.RuntimeException: Parsing failed for date_stamp: java.lang.IllegalArgumentException: Failed to parse date 20171214 at:
Parsing failed for date_stamp: java.lang.IllegalArgumentException: Failed to parse date 20171214 at:
Failed to parse date 20171214 at:
Same WFS Service Works in QGIS
Accessing the same WFS service using QGIS 2.18.7 - forcing WFS version 1.0.0 to match MapInfo - I can edit and add records as required.
I note that it is possible to invoke the same error message using QGIS. The date field must be formatted as YYYY-MM-DD or the same parsing problem occurs - example below:
java.lang.RuntimeException: Parsing failed for date_stamp: java.lang.IllegalArgumentException: Failed to parse date 31/12/17 at:/12/17
Parsing failed for date_stamp: java.lang.IllegalArgumentException: Failed to parse date 31/12/17 at:/12/17
Failed to parse date 31/12/17 at:/12/17
I have been pushing forth on system and business process development work on the basis that WFS-T editing was fully supported (and functional) for versions: 12.5.2, 15.2.4, 16.0.2, as per the previous related thread (reference 1 at the top of this posting.) At the moment, this is an absolute show-stopper.
Please advise:
- Is there something I'm doing wrong?
- Is there something I can do differently (e.g. Geoserver config?)
- Is there a MapInfo Pro patch (or series of patches) in our immediate future which can address this problem?
I appreciate the assistance provided by this forum to date. I really need to call upon that assistance again, please.
I look forward to your replies!
Cheers,
David