Copy link to clipboard
Copied
I am recently encountering java.lang.NoSuchMethodError errors whenever I use the cfdocument tag.
For format="flashpaper", I get: The cause of this exception was that: java.lang.NoSuchMethodError: com.lowagie.text.Rectangle.width()F.
For format="pdf", I get: The cause of this exception was that: java.lang.NoSuchMethodError: com.lowagie.text.pdf.PdfContentByte.createGraphics(FFFFLcom/lowagie/text/pdf/FontMapper;)Ljava/awt/Graphics2D;
The error occurs on both the standard edition on Windows 2003 and the developer edition in Windows/XP. Both environments have recently had MS patches applied.
Is anyone aware of a MS KB that may have caused this? Is there a hotfix from Adobe? chf8000003.jar is the latest I have.
Copy link to clipboard
Copied
Yes, the tag is correctly spelled in my code. And, yes, my code was working back in March/09. I also have a second development server running CF8 standard edition on Windows 2003 where the problem does not occur. That's why I suspect a MS security patch or something.
Copy link to clipboard
Copied
Just wondering if you ever found the solution? We have the same issue on three CF 8 Enterprise servers. The cause appears to be related to fonts missing from the font managment tab in CF administrator. We also suspect Windows patches, but uninstalling the patches did not work, and other servers with the same patches installed do not have the issue.
Thank you!
Copy link to clipboard
Copied
If memory serves me -- an that's getting more questionable -- I had
tried to update iText.jar to a later version to address an issue I was
having in a different application. With the new version, I was also
having the "fonts missing" problem. So, I restored iText to the version
that shipped with CF8, and CF was once again able to find my fonts. I
did not remove any MS patches.
Copy link to clipboard
Copied
Thank you very much, akalan!
A search for itext on servers not experiencing the issue and ones experiencing the issue revealed a file called itext-2.1.7.jar dated 7/7/2009 in the coldfusion8/lib directory. Shutting down the server, deleting the itext-2.1.7.jar file and restarting the server fixed the issue on both servers experiencing the issue. The fonts are also appearing in the font management portion of the CF administartor again.
Thanks again!
Andy