You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by qq_nn <sm...@163.com> on 2010/03/26 03:40:44 UTC

Emma errors in Hudson

Hi,

I am running Emma in Hudson to get the code coverage. but unfortunately I
got following errors:
emma-instr:

   [delete] Deleting directory c:\jobs\workspace\MYJOB\RPT\emma

   [delete] Deleting directory c:\jobs\workspace\MYJOB\RPT\junit

    [mkdir] Created dir: c:\jobs\workspace\MYJOB\RPT\emma

    [mkdir] Created dir: c:\jobs\workspace\MYJOB\RPT\emma\instr

Warning: Reference emma.lib has not been set at runtime, but was found
during

build file parsing, attempting to resolve. Future versions of Ant may
support

 referencing ids defined in non-executed targets.

    [instr] processing instrumentation path ...



BUILD FAILED

java.lang.IllegalStateException: class [com.myproject.main.Main$1] appears
to be instrumented already

	at com.vladium.emma.instr.InstrVisitor.visit(InstrVisitor.java:172)

	at com.vladium.emma.instr.InstrVisitor.process(InstrVisitor.java:111)

	at
com.vladium.emma.instr.InstrProcessorST.handleArchiveEntry(InstrProcessorST.java:223)

following is the instr target:
    <emma enabled="true">  
      <instr instrpathref="classpath.main"    
              destdir="${rpt.instr.dir}"  
              metadatafile="${rpt.emma.dir}/metadata.emma"  
              merge="true"  >
			   <filter value="-org.*,-javax.*,-com.icl.*"/>
       </instr> 
    </emma>


Could anyone what's the root cause? Thanks very much
-- 
View this message in context: http://old.nabble.com/Emma-errors-in-Hudson-tp28037672p28037672.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Emma errors in Hudson

Posted by qq_nn <sm...@163.com>.
The warnning message about emma.lib is coming out each time when I am ok to
use it in the past. but I don't know why it is failed now even I did not
change anything.

the emma.lib is set to ANT_HOME\lib which I am using.


qq_nn wrote:
> 
> Hi,
> 
> I am running Emma in Hudson to get the code coverage. but unfortunately I
> got following errors:
> emma-instr:
> 
>    [delete] Deleting directory c:\jobs\workspace\MYJOB\RPT\emma
> 
>    [delete] Deleting directory c:\jobs\workspace\MYJOB\RPT\junit
> 
>     [mkdir] Created dir: c:\jobs\workspace\MYJOB\RPT\emma
> 
>     [mkdir] Created dir: c:\jobs\workspace\MYJOB\RPT\emma\instr
> 
> Warning: Reference emma.lib has not been set at runtime, but was found
> during
> 
> build file parsing, attempting to resolve. Future versions of Ant may
> support
> 
>  referencing ids defined in non-executed targets.
> 
>     [instr] processing instrumentation path ...
> 
> 
> 
> BUILD FAILED
> 
> java.lang.IllegalStateException: class [com.myproject.main.Main$1] appears
> to be instrumented already
> 
> 	at com.vladium.emma.instr.InstrVisitor.visit(InstrVisitor.java:172)
> 
> 	at com.vladium.emma.instr.InstrVisitor.process(InstrVisitor.java:111)
> 
> 	at
> com.vladium.emma.instr.InstrProcessorST.handleArchiveEntry(InstrProcessorST.java:223)
> 
> following is the instr target:
>     <emma enabled="true">  
>       <instr instrpathref="classpath.main"    
>               destdir="${rpt.instr.dir}"  
>               metadatafile="${rpt.emma.dir}/metadata.emma"  
>               merge="true"  >
> 			   <filter value="-org.*,-javax.*,-com.icl.*"/>
>        </instr> 
>     </emma>
> 
> 
> Could anyone what's the root cause? Thanks very much
> 

-- 
View this message in context: http://old.nabble.com/Emma-errors-in-Hudson-tp28037672p28038545.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


AW: Emma errors in Hudson

Posted by Ja...@rzf.fin-nrw.de.
The error message points to a reference "emma.lib".
Have a look where this is in your buildfile
- where to you use it
- where to you set it


Jan 

> -----Ursprüngliche Nachricht-----
> Von: qq_nn [mailto:smile_hxy@163.com] 
> Gesendet: Freitag, 26. März 2010 03:41
> An: user@ant.apache.org
> Betreff: Emma errors in Hudson
> 
> 
> Hi,
> 
> I am running Emma in Hudson to get the code coverage. but 
> unfortunately I
> got following errors:
> emma-instr:
> 
>    [delete] Deleting directory c:\jobs\workspace\MYJOB\RPT\emma
> 
>    [delete] Deleting directory c:\jobs\workspace\MYJOB\RPT\junit
> 
>     [mkdir] Created dir: c:\jobs\workspace\MYJOB\RPT\emma
> 
>     [mkdir] Created dir: c:\jobs\workspace\MYJOB\RPT\emma\instr
> 
> Warning: Reference emma.lib has not been set at runtime, but was found
> during
> 
> build file parsing, attempting to resolve. Future versions of Ant may
> support
> 
>  referencing ids defined in non-executed targets.
> 
>     [instr] processing instrumentation path ...
> 
> 
> 
> BUILD FAILED
> 
> java.lang.IllegalStateException: class 
> [com.myproject.main.Main$1] appears
> to be instrumented already
> 
> 	at 
> com.vladium.emma.instr.InstrVisitor.visit(InstrVisitor.java:172)
> 
> 	at 
> com.vladium.emma.instr.InstrVisitor.process(InstrVisitor.java:111)
> 
> 	at
> com.vladium.emma.instr.InstrProcessorST.handleArchiveEntry(Ins
> trProcessorST.java:223)
> 
> following is the instr target:
>     <emma enabled="true">  
>       <instr instrpathref="classpath.main"    
>               destdir="${rpt.instr.dir}"  
>               metadatafile="${rpt.emma.dir}/metadata.emma"  
>               merge="true"  >
> 			   <filter value="-org.*,-javax.*,-com.icl.*"/>
>        </instr> 
>     </emma>
> 
> 
> Could anyone what's the root cause? Thanks very much
> -- 
> View this message in context: 
> http://old.nabble.com/Emma-errors-in-Hudson-tp28037672p28037672.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Emma errors in Hudson

Posted by qq_nn <sm...@163.com>.
The issue was resolved. I cleaned the view and try again. it works fine.
Thank you all.


qq_nn wrote:
> 
> Hi,
> 
> I am running Emma in Hudson to get the code coverage. but unfortunately I
> got following errors:
> emma-instr:
> 
>    [delete] Deleting directory c:\jobs\workspace\MYJOB\RPT\emma
> 
>    [delete] Deleting directory c:\jobs\workspace\MYJOB\RPT\junit
> 
>     [mkdir] Created dir: c:\jobs\workspace\MYJOB\RPT\emma
> 
>     [mkdir] Created dir: c:\jobs\workspace\MYJOB\RPT\emma\instr
> 
> Warning: Reference emma.lib has not been set at runtime, but was found
> during
> 
> build file parsing, attempting to resolve. Future versions of Ant may
> support
> 
>  referencing ids defined in non-executed targets.
> 
>     [instr] processing instrumentation path ...
> 
> 
> 
> BUILD FAILED
> 
> java.lang.IllegalStateException: class [com.myproject.main.Main$1] appears
> to be instrumented already
> 
> 	at com.vladium.emma.instr.InstrVisitor.visit(InstrVisitor.java:172)
> 
> 	at com.vladium.emma.instr.InstrVisitor.process(InstrVisitor.java:111)
> 
> 	at
> com.vladium.emma.instr.InstrProcessorST.handleArchiveEntry(InstrProcessorST.java:223)
> 
> following is the instr target:
>     <emma enabled="true">  
>       <instr instrpathref="classpath.main"    
>               destdir="${rpt.instr.dir}"  
>               metadatafile="${rpt.emma.dir}/metadata.emma"  
>               merge="true"  >
> 			   <filter value="-org.*,-javax.*,-com.icl.*"/>
>        </instr> 
>     </emma>
> 
> 
> Could anyone what's the root cause? Thanks very much
> 

-- 
View this message in context: http://old.nabble.com/Emma-errors-in-Hudson-tp28037672p28038629.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org