Skip to main content
Legend
Mar 7, 2013 8:11 PM UTC
Answered

CFPresentation Doesn't Work?

I am running CF10 on Windows and am trying to use CFPresentation for the first time.  Every attempt I make to use this tag causes the script to stall and I get a blank white screen.  In the CF exception log is this Java error:

java.lang.NoSuchMethodError: org.apache.poi.poifs.filesystem.POIFSFileSystem.getRoot()Lorg/apache/poi/poifs/filesystem/DirectoryNode;

In the ColdFusion error log is:

Mar 7, 2013 3:03:59 PM org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Servlet.service() for servlet [CfmServlet] in context with path [/] threw exception [Servlet execution threw an exception] with root cause

java.lang.NoSuchMethodError: org.apache.poi.poifs.filesystem.POIFSFileSystem.getRoot()Lorg/apache/poi/poifs/filesystem/DirectoryNode;

These errors are only in the logs.  they do not appear in the browser.  The CF script runs fine until getting the to CFPresentation tag then it simply stops.

Help?

    This topic is closed to new replies. Start a new post to keep the conversation going.
    sdsinc_pmascariCorrect answer
    Legend
    Mar 11, 2013 1:02 PM UTC

    Thank you for your response.  However, I found the problem....

    Using the code supplied at the link, below, I was able to find out if another JAR file was being used for my CF POI call.  And there was one!

    http://www.bpurcell.org/blog/index.cfm?mode=entry&entry=982

    Way back before <cfspreadsheet> we used a custom tag: CFX_EXCEL2QUERY.  That JAR file was still in our custom tags directory and CF was using it instead of the newer version that shipped with CF 10.

    I removed that JAR from the CF\lib directory, restarted CF it's working.

    2 replies

    Inspiring
    Mar 8, 2013 9:54 PM UTC

    Hi there,

    Can you please share a damo code with us. This might help us to reproduce the senario. I did at my side and every thing is fine.

    Translate
    sdsinc_pmascariAuthorCorrect answer
    Legend
    Mar 11, 2013 1:02 PM UTC

    Thank you for your response.  However, I found the problem....

    Using the code supplied at the link, below, I was able to find out if another JAR file was being used for my CF POI call.  And there was one!

    http://www.bpurcell.org/blog/index.cfm?mode=entry&entry=982

    Way back before <cfspreadsheet> we used a custom tag: CFX_EXCEL2QUERY.  That JAR file was still in our custom tags directory and CF was using it instead of the newer version that shipped with CF 10.

    I removed that JAR from the CF\lib directory, restarted CF it's working.

    Translate