New issue 29 by mo.jeff: Using the Preview feature in the Transformation
editor while running a Transformation throws an NPE
http://code.google.com/p/power-matchmaker/issues/detail?id=29
1) Go through the usual process of creating an project with a
Transformation (should happen with Deduping, Cleansing, and Address
Correction) up to the point where you have a complete transformation and
are ready to run the it (with the Match, Cleanse or Address Correction
engine
2) Ensure that you have a sufficient number of rows to dedupe so that
you'll have time to go back to the Transformation editor and activate the
Preview feature while the Engine is still running
3) Run the Engine
4) Go back to the Transformation Editor and click on the 'Preview' check
box. Click on any step to get a preview of the data in that step
5) The Engine will have failed. Here's an example stack trace that got
printed in one such failure in the Address Correction Engine.
2009-03-03 17:12:16,699 ERROR Execption thrown while attempting to rollback
step serptest
java.lang.IllegalStateException: Can't roll back because step is not opened
at
ca.sqlpower.matchmaker.munge.AbstractMungeStep.rollback(AbstractMungeStep.java:525)
at
ca.sqlpower.matchmaker.munge.ValidatingAddressCorrectionMungeProcessor.call(ValidatingAddressCorrectionMungeProcessor.java:154)
at
ca.sqlpower.matchmaker.AddressCorrectionEngineImpl.call(AddressCorrectionEngineImpl.java:121)
at
ca.sqlpower.matchmaker.swingui.engine.EngineWorker.doStuff(EngineWorker.java:107)
at ca.sqlpower.swingui.SPSwingWorker.run(SPSwingWorker.java:60)
at java.lang.Thread.run(Thread.java:613)
2009-03-03 17:12:16,708 ERROR Execption thrown while attempting to rollback
step Address Correction
java.lang.IllegalStateException: Can't roll back because step is not opened
at
ca.sqlpower.matchmaker.munge.AbstractMungeStep.rollback(AbstractMungeStep.java:525)
at
ca.sqlpower.matchmaker.munge.ValidatingAddressCorrectionMungeProcessor.call(ValidatingAddressCorrectionMungeProcessor.java:154)
at
ca.sqlpower.matchmaker.AddressCorrectionEngineImpl.call(AddressCorrectionEngineImpl.java:121)
at
ca.sqlpower.matchmaker.swingui.engine.EngineWorker.doStuff(EngineWorker.java:107)
at ca.sqlpower.swingui.SPSwingWorker.run(SPSwingWorker.java:60)
at java.lang.Thread.run(Thread.java:613)
2009-03-03 17:12:16,710 ERROR Exception thrown while attempting to close
step serptest
java.lang.IllegalStateException: Step not opened
at
ca.sqlpower.matchmaker.munge.AbstractMungeStep.close(AbstractMungeStep.java:542)
at
ca.sqlpower.matchmaker.munge.ValidatingAddressCorrectionMungeProcessor.call(ValidatingAddressCorrectionMungeProcessor.java:167)
at
ca.sqlpower.matchmaker.AddressCorrectionEngineImpl.call(AddressCorrectionEngineImpl.java:121)
at
ca.sqlpower.matchmaker.swingui.engine.EngineWorker.doStuff(EngineWorker.java:107)
at ca.sqlpower.swingui.SPSwingWorker.run(SPSwingWorker.java:60)
at java.lang.Thread.run(Thread.java:613)
2009-03-03 17:12:16,712 ERROR Exception thrown while attempting to close
step Address Correction
java.lang.IllegalStateException: Step not opened
at
ca.sqlpower.matchmaker.munge.AbstractMungeStep.close(AbstractMungeStep.java:542)
at
ca.sqlpower.matchmaker.munge.ValidatingAddressCorrectionMungeProcessor.call(ValidatingAddressCorrectionMungeProcessor.java:167)
at
ca.sqlpower.matchmaker.AddressCorrectionEngineImpl.call(AddressCorrectionEngineImpl.java:121)
at
ca.sqlpower.matchmaker.swingui.engine.EngineWorker.doStuff(EngineWorker.java:107)
at ca.sqlpower.swingui.SPSwingWorker.run(SPSwingWorker.java:60)
at java.lang.Thread.run(Thread.java:613)
2009-03-03 17:12:16,714 ERROR Address Correction Engine Failed
java.lang.NullPointerException
at
ca.sqlpower.matchmaker.munge.AbstractMungeStep.printOutputs(AbstractMungeStep.java:588)
at
ca.sqlpower.matchmaker.munge.AbstractMungeStep.call(AbstractMungeStep.java:627)
at
ca.sqlpower.matchmaker.munge.ValidatingAddressCorrectionMungeProcessor.call(ValidatingAddressCorrectionMungeProcessor.java:97)
at
ca.sqlpower.matchmaker.AddressCorrectionEngineImpl.call(AddressCorrectionEngineImpl.java:121)
at
ca.sqlpower.matchmaker.swingui.engine.EngineWorker.doStuff(EngineWorker.java:107)
at ca.sqlpower.swingui.SPSwingWorker.run(SPSwingWorker.java:60)
at java.lang.Thread.run(Thread.java:613)
Additional Comment:
It would be cool if preview mode was capable of grabbing real live data as
it flows through the steps while the engine is running.
I believe we already have a reliable way to find out if the engine is
running for a particular project, but we'd actually need to know down to
the munge process level to make this work. Of course, if we DID know that,
we could also paint a little frobber beside a munge process while it's
running. That would be cool.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Comment #1 on issue 29 by mo.j...@gmail.com: Using the Preview feature in
the Transformation editor while running a Transformation throws an NPE
http://code.google.com/p/power-matchmaker/issues/detail?id=29
Added a new event system that notifies if when the engine is running or
stopping. GUI components and other
listening components can act accordingly (disable/enable GUI components
when appropriate)