Android: Fails to parse GPX from Strava
See original GitHub issueDownloaded GPX from Strava doesn’t parse. NYC.gpx.txt (renamed to txt for github upload)
java.lang.IllegalStateException: Current state (SPACE) not START_ELEMENT, START_ELEMENT, END_ELEMENT or ENTITY_REFERENCE
at com.bea.xml.stream.MXParser.throwIllegalState(MXParser.java:3849)
at com.bea.xml.stream.MXParser.getLocalName(MXParser.java:1085)
at com.bea.xml.stream.MXParser.require(MXParser.java:1244)
at io.jenetics.jpx.XMLStreamReaderAdapter.require(XMLStreamReaderAdapter.java:77)
at io.jenetics.jpx.ElemReader.read(XMLReader.java:591)
at io.jenetics.jpx.GPX$Reader.read(GPX.java:1139)
at io.jenetics.jpx.GPX$Reader.read(GPX.java:1164)
at io.jenetics.jpx.GPX$Reader.read(GPX.java:1178)
at io.jenetics.jpx.GPX$Reader.read(GPX.java:1191)
at io.jenetics.jpx.GPX.read(GPX.java:2064)
It does however work in Google Earth.

This is a virtual ride that includes power data. A real route without also doesn’t parse but includes actual people’s homes so sharing this one.
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Troubleshooting GPS Issues - Strava Support
Steps to Take when Investigating GPS Issues on Android Devices · Turn the phone off/on. · Turn GPS off/on. · Be sure Strava...
Read more >Troubleshooting Syncing - Strava Support
Android · Try recording a new activity, saving, and uploading that activity to see if it pushes any missing or pending uploads to...
Read more >Exporting your Data and Bulk Export - Strava Support
There are several options for exporting your data from Strava. We generally recommend exporting the original version of an activity file.
Read more >Bad GPS Data - Strava Support
Have trouble with inaccurate GPS data while recording your activities? See the information below to learn more about what bad GPS data...
Read more >Uploading Route Files - Strava Support
You can create a Strava route from a GPX file by selecting Dashboard from the top navigation menu on the Strava website >...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@Segelzwerg - The project I’ve been using JPX in is this. Maybe you can find some inspiration from that.
The library was my own so I just recompiled with Java 8.
On Tue, 19 May 2020, 13.20 Marcel, notifications@github.com wrote: