Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default cfdocument on OS X

    I have been trying the following in MX7...

    <cfdocument format="pdf"> Hello World!!!
    <cfdocumentitem type="pagebreak"/>
    <cfdocumentitem type="header">
    Company Name
    </cfdocumentitem >
    <cfdocumentitem type="footer">
    <div align="center">
    <font color="navy" size="1" face="Tahoma">
    page
    <cfoutput>
    #cfdocument.currentpagenumber#
    </cfoutput>/
    <cfoutput>
    #cfdocument.totalpagecount#
    </cfoutput>
    </font>
    </div>
    </ cfdocumentitem >
    <!-- insert your other HTML text here-->
    </cfdocument>

    I get this error:

    An exception occurred when performing document processing.

    The cause of this exception was that: java.lang.NullPointerException.

    The error occurred in
    /Applications/JRun4/servers/default/cfusion/WALLRICH2/articlepdf.cfm: line 18
    16 : </font>
    17 : </div>
    18 : </ cfdocumentitem >
    19 : <!-- insert your other HTML text here-->
    20 : </cfdocument>

    Ive checked some other threads but nothing jumps out at me, Im wondering if it
    is an issue with me running this on OS X?



    glossen Guest

  2. Similar Questions and Discussions

    1. CFDocument
      Hi, I used database to store file name and path to the image file then made a page with cfdocument tag to display them. What I found out is, if...
    2. Help with <cfdocument>
      Hi, I have a client who distributes a coupon ad paper and wants to put it online and keep it's same format. He wants viewers to be able to print...
    3. <cfdocument> and CSS
      I am having problems getting my CSS to work with my <cfdocument>. If I use inline CSS it works great but if I try to import, link, or delcare the...
    4. CFDOCUMENT AND CSS
      I have created a coldfusion page that has a cfdocument in flashpaper. When I view the cfm document in a browser it shows all my CSS lines and...
    5. CFDocument - RTF
      :( Hi All, I am having problems saving output to .pdf format. The output is RTF that has been converted to HTML using a third-party .dll. The...
  3. #2

    Default Re: cfdocument on OS X

    I tried something a bit easier and still got a message (see below). Does
    anyone know if I could possibly be configured wrong, this is kind of the reason
    I upgraded to MX7 in the first place. Thank You.

    An exception occurred when performing document processing.

    The cause of this exception was that: java.lang.NullPointerException.

    The error occurred in
    /Applications/JRun4/servers/default/cfusion/WALLRICH2/articlepdf.cfm: line 1
    1 : <cfdocument format="pdf">
    2 : Hello World!!!
    3 : </cfdocument>

    glossen Guest

  4. #3

    Default Re: cfdocument on OS X

    I have searched google, macromedia, support, issues and have mostly just found
    pagebreak errors (i wish i could get that). I even learned what a
    java.lang.null pointer was. I will include the stack trace here, I am quite
    dismayed and desperate since again this is why I bought mx7 in the first.

    Thanks anyone who looked at this and tried, after looking through problems and
    seeing great comments on cfdocument while finding no threads correlating to OS
    X I can only determine it is a problem with my platform, but I dont know that
    for sure. Any help is appreciated!


    java.lang.NullPointerException
    at
    coldfusion.document.DocumentExporter.export(Docume ntExporter.java:190)
    at
    coldfusion.document.DocumentFrame.exportContent(Do cumentFrame.java:112)
    at
    coldfusion.document.DocumentProcessor.ProcessConte nt(DocumentProcessor.java:106)
    at
    coldfusion.tagext.lang.DocumentTag.doAfterBody(Doc umentTag.java:1084)
    at
    cfarticlepdf2ecfm2088586535.runPage(/Applications/JRun4/servers/default/cfusion/
    WALLRICH2/articlepdf.cfm:1)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java :152)
    at coldfusion.tagext.lang.IncludeTag.doStartTag(Inclu deTag.java:343)
    at coldfusion.filter.CfincludeFilter.invoke(Cfinclude Filter.java:65)
    at
    coldfusion.filter.ApplicationFilter.invoke(Applica tionFilter.java:210)
    at coldfusion.filter.PathFilter.invoke(PathFilter.jav a:86)
    at coldfusion.filter.LicenseFilter.invoke(LicenseFilt er.java:27)
    at coldfusion.filter.ExceptionFilter.invoke(Exception Filter.java:50)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(Browse rDebugFilter.java:52)
    at
    coldfusion.filter.ClientScopePersistenceFilter.inv oke(ClientScopePersistenceFilt
    er.java:28)
    at coldfusion.filter.BrowserFilter.invoke(BrowserFilt er.java:38)
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilt er.java:38)
    at coldfusion.filter.DatasourceFilter.invoke(Datasour ceFilter.java:22)
    at coldfusion.CfmServlet.service(CfmServlet.java:105)
    at
    coldfusion.bootstrap.BootstrapServlet.service(Boot strapServlet.java:78)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker. java:91)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvok erChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequ estDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(Servlet EngineService.java:541)
    at jrun.servlet.http.WebService.invokeRunnable(WebSer vice.java:172)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu nnable(ThreadPool.java:426)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)

    glossen Guest

  5. #4

    Default Re: cfdocument on OS X

    I was snooping around in the administrator to see if i could accomplish
    anything in there. When I selected the font management page I got the
    following error:

    Variable DOCUMENTSERVICE is undefined

    Not sure if that has anything to do with this but it seemed pertinent. Never
    seen an error in admin before?!?

    glossen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139