From: Steven C. <ste...@re...> - 2011-07-06 00:09:55
|
Try echoing classpath to see what version of cobertura you are using. If not, it could be because cobertura failed to instrument a certain part of the code. I've seen this issue before and just excluded the file from being instrumented. Using a java decompiler, can you check to see if the instrumented code. On 7/5/2011 2:28 PM, drudman wrote: > Thanks for the quick response John. > > This is in a unit test. We use Maven for the build system. We recently > upgraded from Cobertura Maven plugin version 2.2 to 2.5.1, could this > have anything to do with this? Could we possibly have a version > mismatch of cobertura libraries? We are using 1.9.4.1, but I wonder if > 1.9.3 is popping up on the classpath somehow. > > Thanks > > > On 7/5/11 11:27 AM, "John W. Lewis" <Joh...@sa...> wrote: > > > That is strange. The method initialize() is a public method, so > I don't know why the IllegalAccessError is occurring. > > Can you tell us more about your setup? Are you seeing this > exception in a web server log or at your unit test console? > > John > > > > *From:* drudman [mailto:dr...@ci...] > *Sent:* Tuesday, July 05, 2011 1:58 PM > *To:* cob...@li... > *Subject:* [Cobertura-devel] IllegalAccessError > > Hi, > We started getting the following except during our unit tests. Any > idea what this means? Thanks in advance for any help. > > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'dojoTreeTopsJ' defined in class path > resource [META-INF/spring/dojo-transform.xml]: Instantiation of > bean failed; nested exception is java.lang.IllegalAccessError: > tried to access method > net.sourceforge.cobertura.coveragedata.ProjectData.initialize()V > from class net.sourceforge.cobertura.coveragedata.TouchCollector > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > > > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel Email Disclaimer: http://www.redprairie.com/emaildisclaimer/ |