Trimmed GPX file cannot be parsed #16

Closed
opened 2026-04-19 07:03:25 +02:00 by kabupatix · 1 comment
kabupatix commented 2026-04-19 07:03:25 +02:00 (Migrated from github.com)

WHAT I DID
Unzip and upload the attached file
trimmed using https://www.therideatlas.com/tools/gpx-editor/trim

WHAT HAPPENED
Error

2026-04-19T04:59:28.392Z ERROR 1 --- [fitpub] [nio-8080-exec-7] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: net.javahippie.fitpub.exception.GpxFileProcessingException: Failed to parse GPX file] with root cause fitpub-app | fitpub-app | java.lang.NullPointerException: Cannot invoke "java.time.temporal.Temporal.until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit)" because "<parameter1>" is null fitpub-app | at java.base/java.time.Duration.between(Unknown Source) ~[na:na] fitpub-app | at net.javahippie.fitpub.util.GpxParser.parse(GpxParser.java:83) ~[!/:1.0-SNAPSHOT] fitpub-app | at net.javahippie.fitpub.service.ActivityFileService.processActivityFile(ActivityFileService.java:186) ~[!/:1.0-SNAPSHOT] fitpub-app | at net.javahippie.fitpub.service.ActivityFileService.processActivityFile(ActivityFileService.java:141) ~[!/:1.0-SNAPSHOT]

WHAT I EXPECTED
No error

20260416-trimmed.gpx.zip

WHAT I DID Unzip and upload the attached file trimmed using https://www.therideatlas.com/tools/gpx-editor/trim WHAT HAPPENED Error `2026-04-19T04:59:28.392Z ERROR 1 --- [fitpub] [nio-8080-exec-7] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: net.javahippie.fitpub.exception.GpxFileProcessingException: Failed to parse GPX file] with root cause fitpub-app | fitpub-app | java.lang.NullPointerException: Cannot invoke "java.time.temporal.Temporal.until(java.time.temporal.Temporal, java.time.temporal.TemporalUnit)" because "<parameter1>" is null fitpub-app | at java.base/java.time.Duration.between(Unknown Source) ~[na:na] fitpub-app | at net.javahippie.fitpub.util.GpxParser.parse(GpxParser.java:83) ~[!/:1.0-SNAPSHOT] fitpub-app | at net.javahippie.fitpub.service.ActivityFileService.processActivityFile(ActivityFileService.java:186) ~[!/:1.0-SNAPSHOT] fitpub-app | at net.javahippie.fitpub.service.ActivityFileService.processActivityFile(ActivityFileService.java:141) ~[!/:1.0-SNAPSHOT]` WHAT I EXPECTED No error [20260416-trimmed.gpx.zip](https://github.com/user-attachments/files/26864517/20260416-trimmed.gpx.zip)
kabupatix commented 2026-04-19 07:11:25 +02:00 (Migrated from github.com)

Bug in trimming tool (deletes the timestamps from the track points) => closed

Bug in trimming tool (deletes the timestamps from the track points) => closed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: McPringle/fitpub#16
No description provided.