re-editing projection not possible

Errors and unexpected results
Post Reply
User avatar
hproe
Posts: 504
Joined: Sat Nov 27, 2010 3:46 pm

re-editing projection not possible

Post by hproe »

Hello -

I do the following:
1. go to Projections > New/Edit...
2. pick any listed projection and Edit
3. give it a new name and save it
4. pick new projection and Edit -> error message as below
5. any further Edit or New end up in same error

Happens on 2 W7 notebooks with a very recent nightly.

cheers, HP

java.lang.NullPointerException
at ucar.unidata.gis.GisFeatureRenderer.getShapes(GisFeatureRenderer.java:170)
at ucar.unidata.gis.GisFeatureRenderer.draw(GisFeatureRenderer.java:135)
at ucar.unidata.view.CompositeRenderer.draw(CompositeRenderer.java:90)
at ucar.unidata.view.NPController.draw(NPController.java:251)
at ucar.unidata.view.NPController.setProjectionImpl(NPController.java:226)
at ucar.unidata.view.geoloc.ProjectionManager$NewProjectionDialog.setProjection(ProjectionManager.java:1004)
at ucar.unidata.view.geoloc.ProjectionManager$NewProjectionDialog$2.actionPerformed(ProjectionManager.java:960)
at javax.swing.JComboBox.fireActionEvent(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at ucar.unidata.view.geoloc.ProjectionManager$NewProjectionDialog.setFieldsWithClassParams(ProjectionManager.java:1160)
at ucar.unidata.view.geoloc.ProjectionManager$NewProjectionDialog.setProjectionClass(ProjectionManager.java:1133)
at ucar.unidata.view.geoloc.ProjectionManager$NewProjectionDialog.setProjection(ProjectionManager.java:1003)
at ucar.unidata.view.geoloc.ProjectionManager.edit(ProjectionManager.java:670)
at ucar.unidata.view.geoloc.ProjectionManager.doEdit(ProjectionManager.java:644)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at ucar.unidata.util.GuiUtils$15.actionPerformed(GuiUtils.java:4731)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
User avatar
Jon
Posts: 192
Joined: Fri Jan 09, 2009 8:44 pm
Location: Madison, WI

Re: re-editing projection not possible

Post by Jon »

Hi, HP--sorry to hear about the bug. I'm working on a fix…but I've yet to successfully reproduce the problem. Is there any way you can export one of the broken projections and attach it to a forum post?
User avatar
hproe
Posts: 504
Joined: Sat Nov 27, 2010 3:46 pm

Re: re-editing projection not possible

Post by hproe »

Hi Jon -

The projection is not broken. After the first (successful) edit of a projection in a sessions I just cannot edit anymore and get always the error message I have sent before. After a restart again the same story.

HP
User avatar
bobc
Posts: 990
Joined: Mon Nov 15, 2010 5:57 pm

Re: re-editing projection not possible

Post by bobc »

Hi HP -

We are still looking into this, but cannot yet reproduce the problem. Can you please attach your projections.xml file to a forum post? This file is in your McIDAS-V directory. Having this file may be useful in helping us diagnose what may be going on.

Thanks -
Bob Carp
User avatar
hproe
Posts: 504
Joined: Sat Nov 27, 2010 3:46 pm

Re: re-editing projection not possible

Post by hproe »

Bob -

Here comes projection.xml

HP
Attachments
projections.xml
(10.56 KiB) Downloaded 302 times
User avatar
bobc
Posts: 990
Joined: Mon Nov 15, 2010 5:57 pm

Re: re-editing projection not possible

Post by bobc »

Hi HP -

Sorry that this is taking a while to figure out, but using your projections.xml file, we are still unable to replicate the problem. Can you please let us know how long you have been seeing this problem? Also, if you have the last stable release, 1.2, can you please try re-editing a projection there and let us know if that works?

Thanks -
Bob Carp
User avatar
hproe
Posts: 504
Joined: Sat Nov 27, 2010 3:46 pm

Re: re-editing projection not possible

Post by hproe »

Hi Bob -

I think I have found the culprit. In my McIDAS-V folder I have a maps.xml that contains maps of European countries. I am not sure where I got it from originally (probably through IDV in 2010). Anyway, removing this file brings back editing (including the preview map that was missing as well). No idea why maps.xml creates the conflict.

I have an alternative source for those maps, but I have to load them individually, unless there is a way to lump them together.

HP
Attachments
maps.xml
(4.38 KiB) Downloaded 287 times
User avatar
bobc
Posts: 990
Joined: Mon Nov 15, 2010 5:57 pm

Re: re-editing projection not possible

Post by bobc »

Hi HP -

We talked about this at one of our meetings, and we believe that the problem is somewhere in the code for the Projection Manager; it is looking at the maps.xml file, when it shouldn't. I have written this up as a bug, and it is inquiry #1366.

http://mcidas.ssec.wisc.edu/inquiry-v/?inquiry=1366

Also, I am not sure of any way to lump these files together. Via the Edit->'Add Your Own Map...' menu item in the Layer Controls for the Default Background Maps, it appears to only let you load in 1 shapefile at once.

- Bob Carp
User avatar
hproe
Posts: 504
Joined: Sat Nov 27, 2010 3:46 pm

Re: re-editing projection not possible

Post by hproe »

Hi Bob -

The team meeting's hypothesis is what I guessed as well. There are external tools available to lump together shp files, I think. I have no time to explore this right now, however.

HP
Post Reply