Skip to content

IllegalArgumentException while parsing GPX file #57

@andreasflosdorf

Description

@andreasflosdorf

One exception occurred while using your framework:

Caused by: java.lang.IllegalArgumentException: Invalid format: "2024-12-04 10:42:31" is malformed at " 10:42:31" at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:953) at io.ticofab.androidgpxparser.parser.GPXParser.readTime(GPXParser.java:500) at io.ticofab.androidgpxparser.parser.GPXParser.readMetadata(GPXParser.java:369) at io.ticofab.androidgpxparser.parser.GPXParser.readGpx(GPXParser.java:108) at io.ticofab.androidgpxparser.parser.GPXParser.parse(GPXParser.java:83) at de.flosdorf.routenavigation.service.GeoDataService.parseGpx(GeoDataService.java:1022) ... 8 more

Working code is the following:
image

Input data is a GPX file, please have a look at the attachments.
Tourschnipsel.gpx.txt

Can you please help me interpreting the error? What kan we do to avoid this behaviour?
Best regards,
Andreas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions