Charting Not working at all

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

  1. #1

    Default Charting Not working at all

    I am in the process of setting up my new server and I am testing my site, but I
    can't get the charting to work.

    I am on CFMX 6.1, and when I try and show any charts I get the following
    error:-

    The chart could not be generated due to an error in the graphing engine.

    The spart of the stack trace where it falls down is as follows:-

    java.lang.NoClassDefFoundError
    at com.gp.image.ExServerComponent.init(ExServerCompon ent.java)
    at
    coldfusion.graph.GraphingServiceImpl.initializeEng ine(GraphingServiceImpl.java:4
    43)
    at
    coldfusion.graph.GraphingServiceImpl.access$000(Gr aphingServiceImpl.java:19)
    at coldfusion.graph.GraphingServiceImpl$1.run(Graphin gServiceImpl.java:286)
    at java.security.AccessController.doPrivileged(Native Method)
    at
    coldfusion.graph.GraphingServiceImpl.generateGraph (GraphingServiceImpl.java:281)
    at coldfusion.tagext.io.ChartTag.doEndTag(ChartTag.ja va:428)
    at
    cfSurveyBottom2ecfm1319405092.runPage(/home/httpd/vhosts/silentindustry.com/http
    docs/SurveyBottom.cfm:108)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java :147)
    at coldfusion.tagext.lang.IncludeTag.doStartTag(Inclu deTag.java:357)
    at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.j ava:1871)

    Stressed_Simon Guest

  2. Similar Questions and Discussions

    1. flex 2 charting
      I have FB 2 and have starting using the charts, however it always shows the 'Flex Charting Trial' watermark. I understand i need to purchase the...
    2. Charting help
      I am putting a simple auction site together for my company as a fundraiser for the local hospital. I am trying to get an AreaChart going to show the...
    3. Charting - CircleRenderer?
      I'm pretty new to Flex, but I am trying to figure out how to have each bubble in a bubble chart automatically render in a different color (similar...
    4. charting data
      Hi All, Wondering if anyone can recommend a good 3rd party tool for charting gathered data, prefereably outputting to a gif/png web page.. ...
    5. Charting Xtras
      Are there any Xtras for Director MX that allow you to create graphic charts (bar charts, pie charts, etc.) based on data input from the user? I've...
  3. #2

    Default Re: Charting Not working at all

    Any code?
    BKBK Guest

  4. #3

    Default Re: Charting Not working at all

    java.lang.NoClassDefFoundError usually occurs when the engine
    cannot find a name, either because it is missing, mispelt, etc
    BKBK Guest

  5. #4

    Default Re: Charting Not working at all

    Here you go:-

    <cfsilent>
    <!--- get chart data --->
    <cfinvoke component="#surveyObj#" method="MediaConvertResults"
    returnvariable="qChartData" />

    <!--- get grid lines --->
    <cfquery dbtype="query" name="qGridLines">
    SELECT Max(Amount) AS MaxAmount
    FROM qChartData
    </cfquery>
    </cfsilent>

    <div class="ManagerHeadings">
    Survey Results
    </div>

    <div align="center">
    <cfchart
    format="flash"
    chartheight="400"
    chartwidth="510"
    foregroundcolor="##FFFFFF"
    backgroundcolor="##6600FF"
    databackgroundcolor="##6600FF"
    fontbold="yes"
    tipbgcolor="##6600FF"
    gridlines="#(qGridLines.MaxAmount+ 1)#">

    <!--- include data --->
    <cfchartseries
    type="bar"
    query="qChartData"
    itemcolumn="Option"
    valuecolumn="Amount"
    seriescolor="FF0000">
    </cfchartseries>
    </cfchart>
    </div>

    Stressed_Simon Guest

  6. #5

    Default Re: Charting Not working at all

    Have you tested, just before the query, with
    <cfdump var="#qChartData#"> to see whether there
    is any data at all? I also miss the "Group By" clause
    in your query.
    BKBK Guest

  7. #6

    Default Re: Charting Not working at all

    Yes, I have checked the query. The results returned are fine. I don't know what
    you mean by group by, but a) the results are from a object method (see the
    cfinvoke statement) the cfquery is to get the maximum value to sort that
    annoying gridlines problem on charts.

    It appears that the chart service is failing and I am at a loss as to how to
    fix it!

    Stressed_Simon Guest

  8. #7

    Default Re: Charting Not working at all

    >>... I also miss the "Group By" clause in your query.
    >... I don't know what you mean by group by
    With the following data, you will need to "group by dept"
    before constructing a chart.

    dept maxAmount
    d1 3
    d2 5
    d2 5
    d2 5
    d3 8
    d3 8

    BKBK Guest

  9. #8

    Default Re: Charting Not working at all

    dept.... maxAmount
    d1....... 3
    d2....... 5
    d2....... 5
    d2....... 5
    d3....... 8
    d3....... 8

    looks more like it
    BKBK Guest

  10. #9

    Default Re: Charting Not working at all

    I know that, the data is fine. The CFCHART service is not working.
    Stressed_Simon Guest

  11. #10

    Default Re: Charting Not working at all

    >...I know that, the data is fine. The CFCHART service is not working.
    The problem may arise from somewhere else, away from cfchart.
    For example, check what SurveyBottom.cfm is doing and watch
    the first include you make just after the cfchart.

    BKBK Guest

  12. #11

    Default Re: Charting Not working at all

    But this has been working fine for 4 months on a Windows box, but not under Linux. It is not a coding issue. I just wanted to know if anyone knew how to fix it!
    Stressed_Simon Guest

  13. #12

    Default Re: Charting Not working at all

    >... I just wanted to know if anyone knew how to fix it!
    Which only makes sense if there is indeed a cfcharting problem.
    If we fall on our sword every time we mistakenly blame the CF
    engine, there'd be no Coldfusion developers left. The following
    excerpt leads me to believe that your chart was in fact done, but
    that the processing collapsed soon afterwards.

    at coldfusion.tagext.io.ChartTag.doEndTag(ChartTag.ja va:428)
    at
    cfSurveyBottom2ecfm1319405092.runPage(/home/httpd/vhosts/silentindustry.com/http
    docs/SurveyBottom.cfm:108)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java :147)
    at coldfusion.tagext.lang.IncludeTag.doStartTag(Inclu deTag.java:357)

    The engine reached the end tag </cfchart>, which should tell you something.
    I would give the chart a name="myChart" attribute and, right after </cfchart>,
    perform <cfdump var"#myChart#"><cfabort>. Then we're talking engine
    errors.

    BKBK Guest

  14. #13

    Default Re: Charting Not working at all

    Read, of course: var="#myChart#"
    BKBK Guest

  15. #14

    Default Re: Charting Not working at all

    OK followed you advice, it highlights the closing cfchartseries tag as the culprit as before and never reaches the cfdump.
    Stressed_Simon Guest

  16. #15

    Default Re: Charting Not working at all

    I begin to see your problem.
    What happens when you remove <!--- include data --->?

    BKBK 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