Closed GoogleCodeExporter closed 9 years ago
It appears as if, when the "Class.getMethod()" method is invoked (line 149 of
"TypeList"), it iterates over each method in the class. So in the case of the
"VCard" class, it is throwing a "NoClassDefFoundError" exception when it gets
to the "writeHtml" methods, since these methods throw a freemarker exception.
I wasn't able to reproduce it. I wonder if there is a difference in how the
"Class.getMethod()" method is implemented in different JVMs. I've never tried
running it under of Oracle's 1.7 JVM. Maybe there is something different about
it. Can you try running the attached Java program to see if you get the error
again?
Original comment by mike.angstadt
on 16 May 2013 at 1:19
Attachments:
I've went ahead and just removed the exception from the "VCard.writeHtml()"
methods (see r528). It shouldn't be there anyway. The freemarker template
cannot be modified by the user, so if there's an error with the template, the
user can't really do anything about it.
Attached is a JAR containing the changes. Can you test it out?
Original comment by mike.angstadt
on 16 May 2013 at 1:16
Attachments:
Thanks Mike, that 0.8.1-SNAPSHOT JAR resolves the issue in my environment.
Looks like a good change!
Original comment by dna...@gmail.com
on 16 May 2013 at 5:59
Thanks, I'm really glad you were able to catch this. I'll probably release
0.8.1 sometime within the next week or so. Do you mind if I list your full
name in the credits, or is "dnault" ok?
Original comment by mike.angstadt
on 16 May 2013 at 10:54
Hi Mike,
Sorry for not responding sooner; I don't check my gmail account very often.
Sure, going forward you are welcome to use my full name. Thanks for the
recognition!
Best wishes,
David Nault
Original comment by dna...@gmail.com
on 26 May 2013 at 6:38
Got it, thanks!
Original comment by mike.angstadt
on 27 May 2013 at 2:00
Original issue reported on code.google.com by
dna...@gmail.com
on 15 May 2013 at 8:33