GeoTools
  1. GeoTools
  2. GEOT-4463

JMapFrame fails to set reference system more than once

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.1
    • Fix Version/s: None
    • Component/s: swing
    • Labels:
      None
    • Environment:
      Windows 7, Java 1.6.0_37

      Description

      When attempting to modify the reference system by using the "Set reference system..." menu more than once, an exception is thrown:

      Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: org.geotools.factory.FactoryNotFoundException: No factory of kind "CRSAuthorityFactory" found.
      at org.geotools.swing.dialog.CRSListModel.<init>(CRSListModel.java:87)
      at org.geotools.swing.dialog.JCRSChooser$CRSDialog.createControlPanel(JCRSChooser.java:248)
      at org.geotools.swing.dialog.AbstractSimpleDialog.initComponents(AbstractSimpleDialog.java:137)
      at org.geotools.swing.dialog.JCRSChooser$CRSDialog.<init>(JCRSChooser.java:241)
      at org.geotools.swing.dialog.JCRSChooser.doShow(JCRSChooser.java:202)
      at org.geotools.swing.dialog.JCRSChooser.showDialog(JCRSChooser.java:154)
      at org.geotools.swing.menu.JCRSPopupMenu.setCRS(JCRSPopupMenu.java:137)
      at org.geotools.swing.menu.JCRSPopupMenu.access$000(JCRSPopupMenu.java:50)
      at org.geotools.swing.menu.JCRSPopupMenu$1.actionPerformed(JCRSPopupMenu.java:81)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
      at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
      at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
      at java.awt.Component.processMouseEvent(Component.java:6297)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
      at java.awt.Component.processEvent(Component.java:6062)
      at java.awt.Container.processEvent(Container.java:2039)
      at java.awt.Component.dispatchEventImpl(Component.java:4660)
      at java.awt.Container.dispatchEventImpl(Container.java:2097)
      at java.awt.Component.dispatchEvent(Component.java:4488)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
      at java.awt.Container.dispatchEventImpl(Container.java:2083)
      at java.awt.Window.dispatchEventImpl(Window.java:2489)
      at java.awt.Component.dispatchEvent(Component.java:4488)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:668)
      at java.awt.EventQueue.access$400(EventQueue.java:81)
      at java.awt.EventQueue$2.run(EventQueue.java:627)
      at java.awt.EventQueue$2.run(EventQueue.java:625)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      at java.awt.EventQueue$3.run(EventQueue.java:641)
      at java.awt.EventQueue$3.run(EventQueue.java:639)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
      Caused by: org.geotools.factory.FactoryNotFoundException: No factory of kind "CRSAuthorityFactory" found.
      at org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:375)
      at org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:145)
      at org.geotools.referencing.ReferencingFactoryFinder.getAuthorityFactory(ReferencingFactoryFinder.java:220)
      at org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactory(ReferencingFactoryFinder.java:440)
      at org.geotools.swing.dialog.CRSListModel.<init>(CRSListModel.java:70)
      ... 46 more

        Activity

        Hide
        Leif Gruenwoldt added a comment -
        I can confirm this affects v12.0.
        Show
        Leif Gruenwoldt added a comment - I can confirm this affects v12.0.

          People

          • Assignee:
            Unassigned
            Reporter:
            Yalon Lotan
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: