Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-5327

opening web map fails with java.lang.NumberFormatException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.10.1
    • Fix Version/s: 1.11.2
    • Component/s: Web UI - SVG Maps
    • Security Level: Default (Default Security Scheme)
    • Labels:

      Description

      I have 6 maps defined. One of them fails to open with the following error:

      2012-04-25 16:50:32,915 DEBUG [qtp1785106515-660] ManagerDefaultImpl: Getting linkinfo for nodeid 62
      2012-04-25 16:50:32,915 DEBUG [qtp1785106515-660] ManagerDefaultImpl: Getting linkinfo for nodeid 39
      2012-04-25 16:50:32,915 ERROR [qtp1785106515-660] OpenMapController: Error while opening map with id:1640, for user:admin
      java.lang.NumberFormatException: For input string: "Unknown"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.Long.parseLong(Long.java:410)
      at java.lang.Long.parseLong(Long.java:468)
      at org.opennms.web.map.config.MapPropertiesFactory.getLinkTypeId(MapPropertiesFactory.java:1033)
      at org.opennms.web.map.db.ManagerDefaultImpl.getLinkTypeId(ManagerDefaultImpl.java:1323)
      at org.opennms.web.map.db.ManagerDefaultImpl.getLinks(ManagerDefaultImpl.java:1367)
      at org.opennms.web.map.db.ManagerDefaultImpl.open(ManagerDefaultImpl.java:386)
      at org.opennms.web.map.db.ManagerDefaultImpl.openMap(ManagerDefaultImpl.java:300)

      Private investigation:

      So, it's choking on an "Unkown" input string.

      In map.properties, the following definition contains a string "Unkown" in its text attribute:

      link.unknown.id=9999
      link.unknown.text= Unknown
      link.unknown.width=1
      link.unknown.dash-array=1

      Is it somehow related?

        Attachments

          Activity

            People

            • Assignee:
              seth Seth Leger
              Reporter:
              stcyr Cyrille Bollu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: