Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CFDUCUMENT Error CF8/Windows

Guest
Jun 01, 2009 Jun 01, 2009

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.

1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 01, 2009 Jun 01, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2009 Aug 04, 2009

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 04, 2009 Aug 04, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2009 Aug 04, 2009
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources