dcsimg
Help with a FileNotFound exception
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dave_Alvarado
Posted On:   Monday, December 1, 2008 11:43 AM

Hi, I'm trying to run some JUnit tests using Eclipse 3.4 (Win XP), Ant 1.6, and the latest version of JUnit. JDK is 1.5. When I go to run my tests, I get this baffling error ... Buildfile: C:TempCedarPoint_Service uild-junit-test.xml check-junit: build-tests: [javac] Compiling 9 source files to C:TempCedarPoint_Serviceclasses [copy] Copying 2 files to C:TempCedarPoint_Serviceclasses run-query-test: [junit] java.io.FileNotFoundException: C:TempCedarPoint_Servicejunitvmwatcher1903248725.properties (The system cannot find the file specified) [junit] at java.io.FileInputStream.open(Native Method) [junit] at java.io.FileInputStream. (FileInputStre   More>>

Hi,



I'm trying to run some JUnit tests using Eclipse 3.4 (Win XP), Ant 1.6, and the latest version of JUnit. JDK is 1.5. When I go to run my tests, I get this baffling error ...



Buildfile: C:TempCedarPoint_Service uild-junit-test.xml
check-junit:

build-tests:

[javac] Compiling 9 source files to C:TempCedarPoint_Serviceclasses
[copy] Copying 2 files to C:TempCedarPoint_Serviceclasses
run-query-test:
[junit] java.io.FileNotFoundException: C:TempCedarPoint_Servicejunitvmwatcher1903248725.properties (The system cannot find the file specified)
[junit] at java.io.FileInputStream.open(Native Method)
[junit] at java.io.FileInputStream. (FileInputStream.java:106)
[junit] at java.io.FileReader. (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:817)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1657)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:764)
[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)


BUILD FAILED

C:TempCedarPoint_Service uild-junit-test.xml:118: Test QuerySubscriberTest failed (crashed)



The test in question is below. Can anyone help me with next steps of how to troubleshoot or do you know what's wrong?


Thanks, - Dave





The task:















   <<Less
About | Sitemap | Contact