Exception was thrown when a call to morph() is made. Please help me
check what was wrong. Thanks!
I have the following 2 small GDF files.
"state1.gdf"
nodedef>name,color
v1,red
v2,green
v3,blue
v4,yellow
edgedef>node1,node2,directed
v1,v2,true
v1,v3,true
v1,v4,true
"state2.gdf"
nodedef>name,color
v1,red
v2,green
v3,blue
v4,yellow
edgedef>node1,node2,directed
v1,v2,true
v1,v3,true
v2,v4,true
So, you can see if we move from State1 to State2, the edge (v1->v4) is
dropped and a new edge (v2->v4) is added.
Here's what I did in guess.
- load state1.gdf when starting GUESS
- ss("s1")
- remove(g.nodes)
- import state2.gdf
- ss("s2")
- remove(g.nodes)
- startMovie(20, "a.mov")
- ls("s1")
- morph("s2", 5000)
-------HERE an exception was thrown as follows:
Traceback (innermost last):
File "<string>", line 1, in ?
File "<iostream>", line 383, in morph
edu.uci.ics.jung.exceptions.ConstraintViolationException: Predicate
org.apache.commons.collections.functors.NotPredicate rejected v1->v2:
org.apache.commons.collections.functors.NotPredicate@13f85de
at edu.uci.ics.jung.graph.impl.AbstractArchetypeGraph.checkConstraints
(AbstractArchetypeGraph.java:305)
at edu.uci.ics.jung.graph.impl.AbstractSparseGraph.addEdge
(AbstractSparseGraph.java:118)
at com.hp.hpl.guess.Graph.addEdgeNoCheck(Graph.java:289)
at com.hp.hpl.guess.Graph.addEdge(Graph.java:251)
at com.hp.hpl.guess.piccolo.Morpher.morph(Morpher.java:116)
at com.hp.hpl.guess.piccolo.Morpher.morph(Morpher.java:39)
at com.hp.hpl.guess.Graph.morph(Graph.java:2112)
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 org.python.core.PyReflectedFunction.__call__
(PyReflectedFunction.java:160)
at org.python.core.PyMethod.__call__(PyMethod.java:96)
at org.python.core.PyObject.__call__(PyObject.java:287)
at org.python.core.PyInstance.invoke(PyInstance.java:317)
at org.python.pycode._pyx16.morph$86(<iostream>:383)
at org.python.pycode._pyx16.call_function(<iostream>)
at org.python.core.PyTableCode.call(PyTableCode.java:209)
at org.python.core.PyTableCode.call(PyTableCode.java:280)
at org.python.core.PyFunction.__call__(PyFunction.java:176)
at org.python.pycode._pyx157.f$0(<string>:1)
at org.python.pycode._pyx157.call_function(<string>)
at org.python.core.PyTableCode.call(PyTableCode.java:209)
at org.python.core.PyCode.call(PyCode.java:14)
at org.python.core.Py.runCode(Py.java:1136)
at org.python.core.__builtin__.eval(__builtin__.java:270)
at org.python.core.__builtin__.eval(__builtin__.java:274)
at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:127)
at com.hp.hpl.guess.RealInterpreter.eval(RealInterpreter.java:90)
at com.hp.hpl.guess.ui.TextPaneJythonConsole$InternalTextPane
$ConsoleDocument.insertString(TextPaneJythonConsole.java:1659)
at javax.swing.text.AbstractDocument.replace(Unknown Source)
at javax.swing.JTextPane.replaceSelection(Unknown Source)
at javax.swing.JTextPane.replaceSelection(Unknown Source)
at javax.swing.text.StyledEditorKit
$StyledInsertBreakAction.actionPerformed(Unknown Source)
at javax.swing.SwingUtilities.notifyAction(Unknown Source)
at javax.swing.JComponent.processKeyBinding(Unknown Source)
at javax.swing.JComponent.processKeyBindings(Unknown Source)
at javax.swing.JComponent.processKeyEvent(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.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown
Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown
Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown
Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(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)
edu.uci.ics.jung.exceptions.ConstraintViolationException:
edu.uci.ics.jung.exceptions.ConstraintViolationException: Predicate
org.apache.commons.collections.functors.NotPredicate rejected v1->v2:
org.apache.commons.collections.functors.NotPredicate@13f85de
at org.python.core.Py.JavaError(Py.java:325)
at org.python.core.Py.JavaError(Py.java:312)
at org.python.core.PyReflectedFunction.__call__
(PyReflectedFunction.java:163)
at org.python.core.PyMethod.__call__(PyMethod.java:96)
at org.python.core.PyObject.__call__(PyObject.java:287)
at org.python.core.PyInstance.invoke(PyInstance.java:317)
at org.python.pycode._pyx16.morph$86(<iostream>:383)
at org.python.pycode._pyx16.call_function(<iostream>)
at org.python.core.PyTableCode.call(PyTableCode.java:209)
at org.python.core.PyTableCode.call(PyTableCode.java:280)
at org.python.core.PyFunction.__call__(PyFunction.java:176)
at org.python.pycode._pyx157.f$0(<string>:1)
at org.python.pycode._pyx157.call_function(<string>)
at org.python.core.PyTableCode.call(PyTableCode.java:209)
at org.python.core.PyCode.call(PyCode.java:14)
at org.python.core.Py.runCode(Py.java:1136)
at org.python.core.__builtin__.eval(__builtin__.java:270)
at org.python.core.__builtin__.eval(__builtin__.java:274)
at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:127)
at com.hp.hpl.guess.RealInterpreter.eval(RealInterpreter.java:90)
at com.hp.hpl.guess.ui.TextPaneJythonConsole$InternalTextPane
$ConsoleDocument.insertString(TextPaneJythonConsole.java:1659)
at javax.swing.text.AbstractDocument.replace(Unknown Source)
at javax.swing.JTextPane.replaceSelection(Unknown Source)
at javax.swing.JTextPane.replaceSelection(Unknown Source)
at javax.swing.text.StyledEditorKit
$StyledInsertBreakAction.actionPerformed(Unknown Source)
at javax.swing.SwingUtilities.notifyAction(Unknown Source)
at javax.swing.JComponent.processKeyBinding(Unknown Source)
at javax.swing.JComponent.processKeyBindings(Unknown Source)
at javax.swing.JComponent.processKeyEvent(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.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown
Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown
Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown
Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(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)
GUESS version: 1.0.4beta/20090601-1016
-----------------
However, if I remove all edges in state2.gdf so that only nodes are
left, then repeat the above sequence, morph() will success and the
movie will record the fadeout of 3 edges.
Thanks!