Changeset 36329 in osm for applications/viewer/jmapviewer


Ignore:
Timestamp:
2024-08-29T21:27:58+02:00 (4 months ago)
Author:
taylor.smock
Message:

See #23888: Catch a NumberFormatException

I'm uncertain as to what is actually returned by the server, but we do want to
retry fetching the metadata for Bing.

Location:
applications/viewer/jmapviewer
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer

    • Property ReleaseVersion changed from 2.21 to 2.22
  • applications/viewer/jmapviewer/pom.xml

    r36306 r36329  
    66    <groupId>org.openstreetmap.jmapviewer</groupId>
    77    <artifactId>jmapviewer</artifactId>
    8     <version>2.22-SNAPSHOT</version>
     8    <version>2.23-SNAPSHOT</version>
    99
    1010    <name>JMapViewer</name>
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/BingAerialTileSource.java

    r36292 r36329  
    274274                    LOG.log(Level.FINE, "Successfully loaded Bing attribution data.");
    275275                    return r;
    276                 } catch (IOException ex) {
     276                } catch (IllegalArgumentException | IOException ex) {
    277277                    LOG.log(Level.SEVERE, String.format("Could not connect to Bing API. Will retry in %d seconds.", waitTimeSec));
    278278                    LOG.log(Level.FINE, ex.getMessage(), ex);
Note: See TracChangeset for help on using the changeset viewer.