Index: trunk/src/org/openstreetmap/josm/io/GpxReader.java
===================================================================
--- trunk/src/org/openstreetmap/josm/io/GpxReader.java	(revision 6116)
+++ trunk/src/org/openstreetmap/josm/io/GpxReader.java	(revision 6117)
@@ -20,4 +20,5 @@
 import javax.xml.parsers.SAXParserFactory;
 
+import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.data.coor.LatLon;
 import org.openstreetmap.josm.data.gpx.Extensions;
@@ -31,4 +32,5 @@
 import org.xml.sax.InputSource;
 import org.xml.sax.SAXException;
+import org.xml.sax.SAXParseException;
 import org.xml.sax.helpers.DefaultHandler;
 
@@ -406,5 +408,5 @@
                 GpxLink link = new GpxLink(url);
                 link.text = urlname;
-                @SuppressWarnings("unchecked")
+                @SuppressWarnings({ "unchecked", "rawtypes" })
                 Collection<GpxLink> links = (Collection) attr.get(META_LINKS);
                 links.add(link);
@@ -455,4 +457,10 @@
                 if (parser.data.isEmpty())
                     throw e;
+                String message = e.getMessage();
+                if (e instanceof SAXParseException) {
+                    SAXParseException spe = ((SAXParseException)e);
+                    message += " " + tr("(at line {0}, column {1})", spe.getLineNumber(), spe.getColumnNumber());
+                }
+                Main.warn(message);
                 return false;
             } else
@@ -464,4 +472,8 @@
     }
 
+    /**
+     * Replies the GPX data.
+     * @return The GPX data
+     */
     public GpxData getGpxData() {
         return gpxData;
