uDIG
  1. uDIG
  2. UDIG-1897

CRSChooser logs ClassCastException

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.x
    • Fix Version/s: None
    • Component/s: application, framework
    • Labels:
      None
    • Patch attached:
      Yes

      Description

      If the user tries to change the CRS from, let say WGS84, by hitting the CRSChooser button the following Exception occurs (the value of code was '84' and came from the Regedit Matcher from 'WGS84'):

      !MESSAGE Error creating CRS object, trying more...
      !STACK 0
      java.lang.ClassCastException: org.geotools.referencing.cs.DefaultCoordinateSystemAxis cannot be cast to org.opengis.referencing.crs.CoordinateReferen
      ceSystem
              at net.refractions.udig.ui.CRSChooser.createCRS(CRSChooser.java:483)
              at net.refractions.udig.ui.CRSChooser$5.selectionChanged(CRSChooser.java:193)
      

      IMHO its not a bug because the Chooser isn't broken but because of a ClassCastException that is not caught the error is logged with INFO level into the .log file. Because of an internal guessing this error should not be logged.

        Activity

        There are no entries against this issue.

          People

          • Assignee:
            Jody Garnett
            Reporter:
            Frank Gasdorf
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: