tomcat - EMMA failed to dump coverage data: java.io.FileNotFoundException: coverage.ec (Permission denied) -
i have done following steps.
- copied emma.jar classpath
- instrumented code , got coverage.em
- restarted server , checked tomcat log(no suggestion of emma collecting coverage data)
- started doing tests on application
- 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
Post a Comment