tomcat - EMMA failed to dump coverage data: java.io.FileNotFoundException: coverage.ec (Permission denied) -


i have done following steps.

  1. copied emma.jar classpath
  2. instrumented code , got coverage.em
  3. restarted server , checked tomcat log(no suggestion of emma collecting coverage data)
  4. started doing tests on application
  5. stopped tomcat, below when stopped tomcat.


java.io.filenotfoundexception: coverage.ec (permission denied)        @ java.io.randomaccessfile.open(native method)        @ java.io.randomaccessfile.<init>(randomaccessfile.java:236)        @ com.vladium.emma.data.datafactory.persist(datafactory.java:656)        @ com.vladium.emma.data.datafactory.persist(datafactory.java:86)        @ com.vladium.emma.rt.rtcoveragedatapersister.dumpcoveragedata(rtcoveragedatapersister.java:54)        @ com.vladium.emma.rt.rtexithook.run(rtexithook.java:32)        @ java.lang.thread.run(thread.java:701)  exception in thread "emma shutdown handler thread" java.lang.runtimeexception: emma failed dump coverage data: java.io.filenotfoundexception: coverage.ec (permission de        @ com.vladium.emma.rt.rtcoveragedatapersister.dumpcoveragedata(rtcoveragedatapersister.java:71)        @ com.vladium.emma.rt.rtexithook.run(rtexithook        @ java.lang.thread.run(thread.java:701) 

does know step missing. appreciate if out.

thanks,

this error:

java.io.filenotfoundexception: coverage.ec (permission denied)

generally means don't have permission read file. verify user running application has permissions read coverage.ec, , file exists.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -