gephi/trunk — Issue #94: ClassCastException when using Ranking
Author: mbastian
Created: 2011-10-22 16:42:29+00:00
State: open
Labels: Medium, ranking, Won_t Fix

Way to reproduce needs to be completed.

Could be related to the data imported. A dataset where the error appears would be good.

Stack trace:
java.lang.ClassCastException: java.lang.Float cannot be cast to java.lang.Double
at org.gephi.ranking.impl.RankingFactory.setMinMax(RankingFactory.java:124)
at org.gephi.ranking.impl.RankingFactory.getNodeAttributeRanking(RankingFactory.java:57)
at org.gephi.ranking.impl.RankingModelImpl.getNodeRanking(RankingModelImpl.java:124)
at org.gephi.desktop.ranking.RankingChooser.refreshSelectedRankings(RankingChooser.java:200)
at org.gephi.desktop.ranking.RankingChooser.refreshModel(RankingChooser.java:144)
at org.gephi.desktop.ranking.RankingChooser.access$500(RankingChooser.java:49)
at org.gephi.desktop.ranking.RankingChooser$3.propertyChange(RankingChooser.java:104)
at org.gephi.ranking.api.RankingUIModel.firePropertyChangeEvent(RankingUIModel.java:248)
at org.gephi.ranking.api.RankingUIModel.setNodeTransformer(RankingUIModel.java:84)
at org.gephi.desktop.ranking.RankingToolbar$2.actionPerformed(RankingToolbar.java:134)
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.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:125)
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)