Bug #2462

Can't delete columns toward end of table

Added by Will Tyburczy about 16 years ago. Updated about 13 years ago.

morpho - general
Target version:
Start date:
Due date:
% Done:


Estimated time:


So far, I have only experienced this behavior with dp bowdish.131, but the document parses fine.

To re-create this bug, open dp bowdish.131 (you will need to be a member of knb-prod to do this). Now, right click in one of the last 5 columns and select "Delete Selected Column". You will notice that nothing will change visibly
(This is the gist of the problem, what follows is just trying to explore what has happened).

If you now select the column that should have been deleted, you will see that the information displayed on the right does not match the column header, as if the metadata for that column had been deleted, even though the column header hasn't changed.

If you go into the tree editor at this point, you will see that the metadata for the column has been deleted. Click "OK" to exit, and the column header for the "deleted" column will no longer be there, but the data will still be present, and the column headers will be one off from the column data.

Related issues

Has duplicate Morpho - Bug #2463: Morpho can't delete or insert columns at right edge of tables with uneven record lengthsNew06/16/2006


#1 Updated by Will Tyburczy about 16 years ago

Checking stderr.log, the error looks like:

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 25 >= 23
at java.util.Vector.removeElementAt(
at edu.ucsb.nceas.morpho.datapackage.PersistentTableModel.deleteColumn(
at edu.ucsb.nceas.morpho.datapackage.DeleteColumnCommand.deleteColumn(
at edu.ucsb.nceas.morpho.datapackage.DeleteColumnCommand.execute(
at edu.ucsb.nceas.morpho.util.GUIAction.actionPerformed(
at javax.swing.AbstractButton.fireActionPerformed(
at javax.swing.AbstractButton$Handler.actionPerformed(
at javax.swing.DefaultButtonModel.fireActionPerformed(
at javax.swing.DefaultButtonModel.setPressed(
at javax.swing.AbstractButton.doClick(
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(
at java.awt.Component.processMouseEvent(
at javax.swing.JComponent.processMouseEvent(
at java.awt.Component.processEvent(
at java.awt.Container.processEvent(
at java.awt.Component.dispatchEventImpl(
at java.awt.Container.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.LightweightDispatcher.retargetMouseEvent(
at java.awt.LightweightDispatcher.processMouseEvent(
at java.awt.LightweightDispatcher.dispatchEvent(
at java.awt.Container.dispatchEventImpl(
at java.awt.Window.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(

#2 Updated by Will Tyburczy about 16 years ago

This bug seems to stem from trying to delete the values in the actual data file. If you remove the data file from the .morpho directory, you can delete columns from the dp normally.

#3 Updated by Will Tyburczy about 16 years ago

Found out why this particular table was misbehaving. See the duplicate bug for the problem.

  • This bug has been marked as a duplicate of 2463 ***

#4 Updated by Jing Tao about 13 years ago

move to 1.7

#5 Updated by Redmine Admin over 9 years ago

Original Bugzilla ID was 2462

Also available in: Atom PDF