﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6866	loadAttributionText Throws NumberFormatException which gets swallowed by thread	jhuntley	jhuntley	"The exception is thrown in BingAerialTileSource and gets swallowed by the thread making it difficult to detect. However, if you select the bing tab in the sample program provided with JMapViewer, you can tell something is wrong. All the tiles pop up with the 'X' images. I had to add an additional exception catch statement to view the actual exception:


{{{
        } catch (SAXException e) {
            System.err.println(""Could not parse Bing aerials attribution metadata."");
            e.printStackTrace();
        } catch (ParserConfigurationException e) {
            e.printStackTrace();
        } catch (XPathExpressionException e) {
            e.printStackTrace();
        } catch (Exception e) {
        	e.printStackTrace();
        }
}}}

While the current implementation is cleverly using the Xpath parse techniques. I would like to propose a slightly more simple approach with more error checking to ensure data loads correctly. I have also introduced a TileLoadException to throw when any tile loading issues are encountered. I'm attaching source contributions in this ticket. Please review and contribute upon approval. Thanks!
"	defect	closed	trivial		Core	latest	wontfix	JMapViewer	
