freeze when there are more than one testcase

15 views
Skip to first unread message

Lorenzo Sicilia

unread,
Mar 25, 2008, 6:18:02 AM3/25/08
to easytesting
Hi to all,

I am testing fest-swing-0.9. All works quite fine into my eclipse
3.3.1 configuration.
I got some strange behavio when I launch a TestSuite or the ant task
"test". When the first test is finished fest-swing freeze ... nothing
it appen.

my last ant log:
....
[junit] Running AllTests
[junit] junit.framework.TestListener: tests to run: 2
[junit] junit.framework.TestListener: startTest(testAdd)
[junit] junit.framework.TestListener: endTest(testAdd)
[junit] junit.framework.TestListener: startTest(testAdd)

when I force the stop of ant task i get this exception:
[junit] java.io.FileNotFoundException: /open/workspace/kollector/test/
junitvmwatcher1459854655.properties (No such file or directory)
[junit] at java.io.FileInputStream.open(Native Method)
[junit] at java.io.FileInputStream.<init>(FileInputStream.java:
106)
[junit] at java.io.FileReader.<init>(FileReader.java:55)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked(JUnitTask.java:
1028)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:
859)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:
782)
[junit] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
105)
[junit] at org.apache.tools.ant.Task.perform(Task.java:348)
[junit] at org.apache.tools.ant.Target.execute(Target.java:357)
[junit] at org.apache.tools.ant.Target.performTasks(Target.java:
385)
[junit] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
[junit] at
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
[junit] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
[junit] at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:
32)
[junit] at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
[junit] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:
423)
[junit] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:
137)
[junit] Using System properties {java.runtime.name=Java(TM) 2
Runtime Environment, Standard Edition, sun.boot.library.path=/System/
Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries,
java.vm.version=1.5.0_13-119, awt.nativeDoubleBuffering=true,
ant.library.dir=/Applications/eclipse/plugins/
org.apache.ant_1.7.0.v200706080842/lib, gopherProxySet=false,
java.vm.vendor=Apple Inc., java.vendor.url=http://www.apple.com/,
path.separator=:, java.vm.name=Java HotSpot(TM) Client VM,
file.encoding.pkg=sun.io, sun.java.launcher=SUN_STANDARD,
user.country=US, sun.os.patch.level=unknown,
java.vm.specification.name=Java Virtual Machine Specification,
user.dir=/open/workspace/kollector/test, java.runtime.version=1.5.0_13-
b05-237, java.awt.graphicsenv=apple.awt.CGraphicsEnvironment,
java.endorsed.dirs=/System/Library/Frameworks/JavaVM.framework/
Versions/1.5.0/Home/lib/endorsed, os.arch=i386, java.io.tmpdir=/tmp,
line.separator=
[junit] , java.vm.specification.vendor=Sun Microsystems Inc.,
os.name=Mac OS X, ant.home=/Applications/eclipse/plugins/
org.apache.ant_1.7.0.v200706080842, sun.jnu.encoding=MacRoman,
java.library.path=.:/Library/Java/Extensions:/System/Library/Java/
Extensions:/usr/lib/java:/Applications/eclipse/configuration/
org.eclipse.osgi/bundles/335/1/.cp, java.specification.name=Java
Platform API Specification, java.class.version=49.0,
sun.management.compiler=HotSpot Client Compiler, os.version=10.5.2,
http.nonProxyHosts=local|*.local|169.254/16|*.169.254/16, user.home=/
Users/lorenzo, user.timezone=Europe/Rome,
java.awt.printerjob=apple.awt.CPrinterJob, file.encoding=MacRoman,
java.specification.version=1.5, java.class.path=/Applications/eclipse/
plugins/org.apache.ant_1.7.0.v200706080842/lib/ant.jar:/Applications/
eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib/ant-antlr.jar:/
Applications/eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib/
ant-apache-bcel.jar:/Applications/eclipse/plugins/
org.apache.ant_1.7.0.v200706080842/lib/ant-apache-bsf.jar:/
Applications/eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib/
ant-apache-log4j.jar:/Applications/eclipse/plugins/
org.apache.ant_1.7.0.v200706080842/lib/ant-apache-oro.jar:/
Applications/eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib/
ant-apache-regexp.jar:/Applications/eclipse/plugins/
org.apache.ant_1.7.0.v200706080842/lib/ant-apache-resolver.jar:/
Applications/eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib/
ant-commons-logging.jar:/Applications/eclipse/plugins/
org.apache.ant_1.7.0.v200706080842/lib/ant-commons-net.jar:/
Applications/eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib/
ant-jai.jar:/Applications/eclipse/plugins/
org.apache.ant_1.7.0.v200706080842/lib/ant-javamail.jar:/Applications/
eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib/ant-
jdepend.jar:/Applications/eclipse/plugins/
org.apache.ant_1.7.0.v200706080842/lib/ant-jmf.jar:/Applications/
eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib/ant-jsch.jar:/
Applications/eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib/
ant-junit.jar:/Applications/eclipse/plugins/
org.apache.ant_1.7.0.v200706080842/lib/ant-launcher.jar:/Applications/
eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib/ant-
netrexx.jar:/Applications/eclipse/plugins/
org.apache.ant_1.7.0.v200706080842/lib/ant-nodeps.jar:/Applications/
eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib/ant-
starteam.jar:/Applications/eclipse/plugins/
org.apache.ant_1.7.0.v200706080842/lib/ant-stylebook.jar:/Applications/
eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib/ant-swing.jar:/
Applications/eclipse/plugins/org.apache.ant_1.7.0.v200706080842/lib/
ant-trax.jar:/Applications/eclipse/plugins/
org.apache.ant_1.7.0.v200706080842/lib/ant-weblogic.jar:/Applications/
eclipse/configuration/org.eclipse.osgi/bundles/27/1/.cp/lib/
remoteAnt.jar:/Users/lorenzo/.ant/lib/ant-contrib-1.0b3.jar:/Users/
lorenzo/.ant/lib/ant-jsch.jar:/Users/lorenzo/.ant/lib/jsch-0.1.37.jar:/
Applications/eclipse/plugins/
org.eclipse.swt.carbon.macosx_3.3.2.v3347a.jar:/Applications/eclipse/
MyEclipse 6.0/eclipse/plugins/
com.genuitec.javascript.debug.mozilla_6.0.1.zmyeclipse601200710/
browser.jar:/Applications/eclipse/MyEclipse 6.0/eclipse/plugins/
com.genuitec.javascript.debug.mozilla_6.0.1.zmyeclipse601200710/
htmltransferfix.jar, user.name=lorenzo,
java.vm.specification.version=1.0, java.home=/System/Library/
Frameworks/JavaVM.framework/Versions/1.5.0/Home,
sun.arch.data.model=32, user.language=en,
java.specification.vendor=Sun Microsystems Inc.,
awt.toolkit=apple.awt.CToolkit, java.vm.info=mixed mode, sharing,
java.version=1.5.0_13, java.ext.dirs=/Library/Java/Extensions:/System/
Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/
Versions/1.5.0/Home/lib/ext, sun.boot.class.path=/System/Library/
Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar:/System/
Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/ui.jar:/
System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/
laf.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
Classes/sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/
Versions/1.5.0/Classes/jsse.jar:/System/Library/Frameworks/
JavaVM.framework/Versions/1.5.0/Classes/jce.jar:/System/Library/
Frameworks/JavaVM.framework/Versions/1.5.0/Classes/charsets.jar,
java.vendor=Apple Inc., file.separator=/, java.vendor.url.bug=http://
bugreport.apple.com/, sun.io.unicode.encoding=UnicodeLittle,
sun.cpu.endian=little, mrj.version=1040.1.5.0_13-237,
socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16,
ftp.nonProxyHosts=local|*.local|169.254/16|*.169.254/16,
sun.cpu.isalist=}

I can zip my eclipse project and send you, just two test class, two
fest test and the build.xml

Thanks for you work, very appreciate here

Regards Lorenzo

Alex Ruiz

unread,
Mar 25, 2008, 12:59:09 PM3/25/08
to easyt...@googlegroups.com
Hi Lorenzo,

Having your project will help us find the problem faster (and easier) ;)

Thanks!
-Alex

Lorenzo Sicilia

unread,
Mar 25, 2008, 5:09:57 PM3/25/08
to easytesting


On Mar 25, 5:59 pm, "Alex Ruiz" <alex.ruiz...@gmail.com> wrote:
> Hi Lorenzo,
>
> Having your project will help us find the problem faster (and easier) ;)
you can download the test from here:
http://www.croxit.com/fest/test.zip

it's an eclipse project.

if you need any other info just ask me.

regards lorenzo

Alex Ruiz

unread,
Mar 25, 2008, 5:12:04 PM3/25/08
to easyt...@googlegroups.com
Thanks Lorenzo :)

-Alex

Bob Young

unread,
Mar 28, 2008, 8:12:54 AM3/28/08
to easytesting
http://wikipedlla.com/freeze_when_there_are_more_than_one_testcase
> Hi to all,
> I am testing fest-swing-0.9. All works quite fine into my eclipse
> 3.3.1 configuration.
> I got some strange behavio when I launch a TestSuite or the ant task
> &quot;test&quot;. When the first test is finished fest-swing freeze ... nothing
> it appen.
> my last ant log:
> ....
> &nbsp; &nbsp; [junit] Running AllTests
> &nbsp; &nbsp; [junit] junit.framework.TestListener: tests to run: 2
> &nbsp; &nbsp; [junit] junit.framework.TestListener: startTest(testAdd)
> &nbsp; &nbsp; [junit] junit.framework.TestListener: endTest(testAdd)
> &nbsp; &nbsp; [junit] junit.framework.TestListener: startTest(testAdd)
> when I force the stop of ant task i get this exception:
> &nbsp;[junit] java.io.FileNotFoundException: /open/workspace/kollector/test/
> junitvmwatcher1459854655.properties (No such file or directory)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at java.io.FileInputStream.open(Native Method)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:
> 106)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at java.io.FileReader.&lt;init&gt;(FileReader.java:55)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked(JUni&#173;tTask.java:
> 1028)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.ja&#173;va:
> 859)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.ja&#173;va:
> 782)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp&#173;l.java:
> 25)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at java.lang.reflect.Method.invoke(Method.java:585)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
> 105)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at org.apache.tools.ant.Task.perform(Task.java:348)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at org.apache.tools.ant.Target.execute(Target.java:357)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at org.apache.tools.ant.Target.performTasks(Target.java:
> 385)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.&#173;java:
> 41)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at
> org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTarget&#173;s(EclipseDefaultExecutor.java:
> 32)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at
> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRun&#173;ner.java:
> 423)
> &nbsp; &nbsp; [junit] &nbsp; &nbsp; at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRu&#173;nner.java:
> 137)
> &nbsp; &nbsp; [junit] Using System properties {java.runtime.name=Java(TM) 2
> Runtime Environment, Standard Edition, sun.boot.library.path=/System/
> Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries,
> java.vm.version=1.5.0_13-119, awt.nativeDoubleBuffering=true,
> ant.library.dir=/Applications/eclipse/plugins/
> org.apache.ant_1.7.0.v200706080842/lib, gopherProxySet=false,
> java.vm.vendor=Apple Inc., java.vendor.url=http://www.apple.com/,
> path.separator=:, java.vm.name=Java HotSpot(TM) Client VM,
> file.encoding.pkg=sun.io, sun.java.launcher=SUN_STANDARD,
> user.country=US, sun.os.patch.level=unknown,
> java.vm.specification.name=Java Virtual Machine Specification,
> user.dir=/open/workspace/kollector/test, java.runtime.version=1.5.0_13-
> b05-237, java.awt.graphicsenv=apple.awt.CGraphicsEnvironment,
> java.endorsed.dirs=/System/Library/Frameworks/JavaVM.framework/
> Versions/1.5.0/Home/lib/endorsed, os.arch=i386, java.io.tmpdir=/tmp,
> line.separator=
> &nbsp; &nbsp; [junit] , java.vm.specification.vendor=Sun Microsystems Inc.,

Lorenzo Sicilia

unread,
Apr 8, 2008, 9:07:05 AM4/8/08
to easytesting
Finally I solved.
It was an error in my TestCase. In tearDown method I called
window.close() instead window.cleanUp() -_-'

Now, I have multiple tests launch from my ant task.

Thanks again.

Regards Lorenzo

Alex Ruiz

unread,
Apr 8, 2008, 11:32:57 AM4/8/08
to easyt...@googlegroups.com
Thanks for the update Lorenzo :)

Best regards,
-Alex
Reply all
Reply to author
Forward
0 new messages