From: Mick F. <mic...@li...> - 2005-06-29 14:29:35
|
Hi Jeremy, Thanks for the reply. The Applet runs in Internet Explorer. I've looked at the .class files in the .jar, and they all contain instrumentation. The fact that it works when I run the 'main' method (added for testing) from the command line (using exactly the same .jar file) implies to me that the problem lies somewhere in the Applet mechanism... Mick. -----Original Message----- From: Jeremy Thomerson [mailto:jer...@gm...] Sent: 29 June 2005 15:27 To: Mark Doliner Cc: Mick Francis; cob...@li... Subject: Re: [Cobertura-devel] Use with Applets I guess to follow up on this to see if we can help, the most important question would be: how are you running the applet? 98% of the time when we get these questions (although we haven't necessarily had any for an applet yet), it's that the instrumented classes either aren't in the runtime classpath or are below the un-instrumented classes. Have you verified that the classes in your jar are the instrumented ones? Jeremy Thomerson On 6/29/05, Mark Doliner < Mar...@sa... <mailto:Mar...@sa...> > wrote: I'm not really sure how applets work... Normally the cobertura.ser file is updated only when the JVM exits. So if you access the applet from a web browser, would you have to exit the web browser to cause the JVM to be killed? Also, applets run on the machine you access them with, not the machine they're served from, right? (So the cobertura.ser would be written to the client's hard drive.) I have a feeling they're the same in this case, but that might be something to look out for. -Mark > -----Original Message----- > From: cob...@li... <mailto:cob...@li...> > [mailto: cob...@li... <mailto:cob...@li...> ] On > Behalf Of Mick Francis > Sent: Wednesday, June 29, 2005 10:06 AM > To: ' cob...@li... <mailto:cob...@li...> ' > Subject: [Cobertura-devel] Use with Applets > > Sorry if this is a dumb question, but how can I get cobertura > to work with a > JApplet? > It just doesn't seem to write to the cobertura.ser file. I've done the > following: > > 1) Added: > -Dnet.sourceforge.cobertura.datafile=C:/cobertura.ser > to the java runtime params in the plugin control panel, > and checked that > System.getProperty("net.sourceforge.cobertura.datafile") agrees. > > 2) The Applet is in a signed jar along with all the other > classes that are > required. If > I add a "public static main(String[] args) {...}" method, > and run this > from the command > line, the cobertura.ser file is accessed as it should be. > > The Applet is able to create and write to files as part of its > functionality, so this > isn't the issue. > > 3) I've searched all my drives for cobertura.ser files, and > there are no > others. > > Any help very gratefully received! > > Thanks, > > Mick. > > > > > > > > > > This message has been scanned for viruses by MailController - > www.MailController.altohiway.com <http://www.MailController.altohiway.com> > > > ------------------------------------------------------- > SF.Net <http://SF.Net> email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477 <http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click> &alloc_id=16492&op=click > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... <mailto:Cob...@li...> > https://lists.sourceforge.net/lists/listinfo/cobertura-devel <https://lists.sourceforge.net/lists/listinfo/cobertura-devel> > ------------------------------------------------------- SF.Net <http://SF.Net> email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77 <http://ads.osdn.com/?ad_idt77&alloc_id492&opclick> &alloc_id492&opclick _______________________________________________ Cobertura-devel mailing list Cob...@li... <mailto:Cob...@li...> https://lists.sourceforge.net/lists/listinfo/cobertura-devel <https://lists.sourceforge.net/lists/listinfo/cobertura-devel> |