Issue Details (XML | Word | Printable)

Key: BEAM-982
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Norman Fomferra
Reporter: Olga Faber
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
BEAM

NullPointerException is thrown if in Spectrum View is 'All PINs' selected and PIN X/Y = n/a

Created: 06/Apr/09 04:33 PM   Updated: 06/Apr/09 04:33 PM
Component/s: VISAT
Affects Version/s: 4.5.1
Fix Version/s: None


 Description  « Hide
Replace:
open a small data product
open image view
create PIN on the rand of image view
open Spectrum View
select 'Show spectra for all pins'
Create UTM automatic projection
Open image view
Some PINs can appear out of geo - boundary and therefore their X/Y will be change to n/a
Name X Y Lon Lat Label Desc
pin_3 NaN NaN 179.97845 38.103912
pin_4 NaN NaN 179.9757 38.09354
VISAT throws different Exceptions:

case 1:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at java.awt.geom.AffineTransform.transform(Unknown Source)
        at org.esa.beam.visat.toolviews.spectrum.SpectrumGraph.readValues(SpectrumGraph.java:119)
        at org.esa.beam.visat.toolviews.spectrum.SpectraDiagram.updateSpectra(SpectraDiagram.java:94)
        at org.esa.beam.visat.toolviews.spectrum.SpectrumToolView.recreateSpectraDiagram(SpectrumToolView.java:493)
        at org.esa.beam.visat.toolviews.spectrum.SpectrumToolView.access$200(SpectrumToolView.java:66)
        at org.esa.beam.visat.toolviews.spectrum.SpectrumToolView$4.actionPerformed(SpectrumToolView.java:266)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at com.jidesoft.swing.JideToggleButton$ToggleButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at com.jidesoft.plaf.basic.BasicJideButtonListener.mouseReleased(Unknown Source)
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
        at java.awt.AWTEventMulticaster.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.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)

case 2:
open data
create subset
open image view....

NullPointerException
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at org.esa.beam.framework.dataio.ProductSubsetBuilder.copyPlacemarks(ProductSubsetBuilder.java:366)
        at org.esa.beam.framework.dataio.ProductSubsetBuilder.addPlacemarks(ProductSubsetBuilder.java:336)
        at org.esa.beam.framework.dataio.ProductSubsetBuilder.createProduct(ProductSubsetBuilder.java:326)
        at org.esa.beam.framework.dataio.ProductSubsetBuilder.readProductNodesImpl(ProductSubsetBuilder.java:78)
        at org.esa.beam.framework.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:155)
        at org.esa.beam.framework.dataio.AbstractProductBuilder.readProductNodes(AbstractProductBuilder.java:62)
        at org.esa.beam.framework.dataio.ProductSubsetBuilder.createProductSubset(ProductSubsetBuilder.java:54)
        at org.esa.beam.framework.dataio.ProductSubsetBuilder.createProductSubset(ProductSubsetBuilder.java:48)
        at org.esa.beam.framework.datamodel.Product.createSubset(Product.java:1988)
        at org.esa.beam.visat.actions.CreateSubsetFromViewAction.actionPerformed(CreateSubsetFromViewAction.java:54)
        at org.esa.beam.framework.ui.command.ExecCommand.fireActionPerformed(ExecCommand.java:119)
        at org.esa.beam.framework.ui.command.SelectableCommand$1.actionPerformed(SelectableCommand.java:148)
        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.AbstractButton.doClick(Unknown Source)
        at com.jidesoft.plaf.vsnet.VsnetMenuItemUI.doClick(Unknown Source)
        at com.jidesoft.plaf.vsnet.VsnetMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
        at java.awt.AWTEventMulticaster.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.dispatchEvent(Unknown Source)

case 3 (can not reproduce more):
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: level
        at com.bc.ceres.glevel.support.DefaultMultiLevelModel.checkLevel(DefaultMultiLevelModel.java:139)
        at com.bc.ceres.glevel.support.DefaultMultiLevelModel.getModelToImageTransform(DefaultMultiLevelModel.java:116)
        at org.esa.beam.visat.toolviews.spectrum.SpectrumGraph.readValues(SpectrumGraph.java:118)
        at org.esa.beam.visat.toolviews.spectrum.SpectraDiagram.updateSpectra(SpectraDiagram.java:94)
        at org.esa.beam.visat.toolviews.spectrum.SpectrumToolView.recreateSpectraDiagram(SpectrumToolView.java:493)
        at org.esa.beam.visat.toolviews.spectrum.SpectrumToolView.setCurrentProduct(SpectrumToolView.java:137)
        at org.esa.beam.visat.toolviews.spectrum.SpectrumToolView.setCurrentView(SpectrumToolView.java:111)
        at org.esa.beam.visat.toolviews.spectrum.SpectrumToolView.handleViewActivated(SpectrumToolView.java:505)
        at org.esa.beam.visat.toolviews.spectrum.SpectrumToolView.access$1200(SpectrumToolView.java:66)
        at org.esa.beam.visat.toolviews.spectrum.SpectrumToolView$SpectrumIFL.internalFrameActivated(SpectrumToolView.java:523)
        at javax.swing.JInternalFrame.fireInternalFrameEvent(Unknown Source)
        at javax.swing.JInternalFrame.setSelected(Unknown Source)
        at javax.swing.DefaultDesktopManager.maximizeFrame(Unknown Source)
        at javax.swing.plaf.basic.BasicInternalFrameUI.maximizeFrame(Unknown Source)
        at javax.swing.plaf.basic.BasicInternalFrameUI$Handler.propertyChange(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at java.awt.Component.firePropertyChange(Unknown Source)
        at javax.swing.JInternalFrame.setMaximum(Unknown Source)
        at com.sun.java.swing.plaf.windows.WindowsDesktopManager.activateFrame(Unknown Source)
        at javax.swing.plaf.basic.BasicInternalFrameUI.activateFrame(Unknown Source)
        at javax.swing.plaf.basic.BasicInternalFrameUI$Handler.propertyChange(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at java.awt.Component.firePropertyChange(Unknown Source)
        at javax.swing.JInternalFrame.setSelected(Unknown Source)
        at com.bc.swing.desktop.TabbedDesktopPane.addFrame(TabbedDesktopPane.java:148)
        at org.esa.beam.visat.VisatApp.createInternalFrame(VisatApp.java:2191)
        at org.esa.beam.visat.actions.ShowImageViewAction$1.done(ShowImageViewAction.java:95)
        at javax.swing.SwingWorker$5.run(Unknown Source)
        at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
        at sun.swing.AccumulativeRunnable.run(Unknown Source)
        at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
        at javax.swing.Timer.fireActionPerformed(Unknown Source)
        at javax.swing.Timer$DoPostEvent.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(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)


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.