ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  code showing instead of the chart on the browser when loading charts.
Posted by Rachit on Mar-13-2009 03:38
Hi,
I am using the ChartDirector Version 4.1 on coldfusion 8.1. My java version is 1.5.0_16
Most of the times, my charts load properly but sometimes when I am trying to load a chart, instead of the chart, the following is displayed on the browser. Please help

======

0.5
HTTP_ACCEPT_ENCODING=gzip,deflate
HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5
HTTP_CONNECTION=keep-alive
HTTP_COOKIE=CFID=5001; CFTOKEN=22540050; JSESSIONID=3230aeb3ab4cc3d18892747910473e1b4070; CFADMIN_LASTPAGE_ADMIN=%2FCFIDE%2Fadministrator%2Fdatasources%2Findex%2Ecfm
HTTP_HOST=127.0.0.1
HTTP_REFERER=http://127.0.0.1/ChartDirector/cfdemo/simplebar.cfm
HTTP_USER_AGENT=Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
PATH_INFO=
PATH_TRANSLATED=/Library/Apache2/htdocs/ChartDirector/cfdemo/getchart.cfm
QUERY_STRING=img=chart1&id=3230aeb3ab4cc3d18892747910473e1b4070_119
REMOTE_ADDR=127.0.0.1
REMOTE_HOST=127.0.0.1
REMOTE_USER=
REQUEST_METHOD=GET
SCRIPT_NAME=/ChartDirector/cfdemo/getchart.cfm
SERVER_NAME=127.0.0.1
SERVER_PORT=80
SERVER_PORT_SECURE=0
SERVER_PROTOCOL=HTTP/1.1
SERVER_SOFTWARE=Apache/2.2.6 (Unix) DAV/2 JRun/4.0
WEB_SERVER_API=
</pre>
<pre><b>Cookie Variables:</b>
CFADMIN_LASTPAGE_ADMIN=/CFIDE/administrator/datasources/index.cfm
CFID=5001
CFTOKEN=22540050
JSESSIONID=3230aeb3ab4cc3d18892747910473e1b4070
</pre>
<pre><b>Server Variables:</b>
COLDFUSION=Struct (8)
ENTERPRISEMANAGER=Struct (18)
OS=Struct (5)
</pre>
<pre><b>URL Parameters:</b>
ID=3230aeb3ab4cc3d18892747910473e1b4070_119
IMG=chart1
</pre>
<font size="-1" class="cfdebug"><i>Debug Rendering Time: 16 ms</i></font><br />
</td>
</tr>
</table>
HTTP/1.1 200 OK
Date: Thu, 12 Mar 2009 19:10:04 GMT
Server: Apache/2.2.6 (Unix) DAV/2 JRun/4.0
Keep-Alive: timeout=5, max=98
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
1466
<html>
<body style="margin:5px 0px 0px 5px">
<div style="font-size:18pt; font-family:verdana; font-weight:bold">
    Simple Bar Chart
</div>
<hr style="border:solid 1px #000080" />

<div style="font-size:9pt; font-family:verdana; margin-bottom:1.5em">
    <a href='viewsource.cfm?file=/ChartDirector/cfdemo/simplebar.cfm'>View Source Code</a>
</div>
<img src="getchart.cfm?img=chart1&id=3230aeb3ab4cc3d18892747910473e1b4070_120" usemap="#map1" border="0" />
<map name="map1"><area shape="rect" coords="35,152,64,220" title='Mon: US$85K'>
<area shape="rect" coords="75,95,104,220" title='Tue: US$156K'>
<area shape="rect" coords="115,76,144,220" title='Wed: US$179.5K'>
<area shape="rect" coords="155,51,184,220" title='Thu: US$211K'>
<area shape="rect" coords="195,122,224,220" title='Fri: US$123K'>
</map>
</body>
</html>
</td></td></td></th></th></th></tr></tr></tr></table></table></table></a></abbrev></acronym></address></applet></au></b></banner></big></blink></blockquote></bq></caption></center></cite></code></comment></del></dfn></dir></div></div></dl></em></fig></fn></font></form></frame></frameset></h1></h2></h3></h4></h5></h6></head></i></ins></kbd></listing></map></marquee></menu></multicol></nobr></noframes></noscript></note></ol></p></param></person></plaintext></pre></q></s></samp></script></select></small></strike></strong></sub></sup></table></td></textarea></th></title></tr></tt></u></ul></var></wbr></xmp>
<style type="text/css">
.cfdebug
{
color:black;
background-color:white;
font-family:"Times New Roman", Times, serif;
font-size:small
}
.cfdebuglge
{
color:black;
background-color:white;
font-family:"Times New Roman", Times, serif;
font-size:medium;
}
a.cfdebuglink {color:blue; background-color:white }
</style>
<table class="cfdebug" bgcolor="white">
<tr>
<td>
<p class="cfdebug"><hr/>
<b class="cfdebuglge"><a name="cfdebug_top">Debugging Information</a></b>
<table class="cfdebug">
<tr>
<td class="cfdebug" nowrap>ColdFusion Server Developer</td>
<td class="cfdebug">8,0,1,195765</td>
</tr>
<tr>
<td class="cfdebug" nowrap> Template </td>
<td class="cfdebug">/ChartDirector/cfdemo/simplebar.cfm</td>
</tr>
<tr>
<td class="cfdebug" nowrap> Time Stamp </td>
<td class="cfdebug">12-Mar-09 12:10 PM</td>
</tr>
<tr>
<td class="cfdebug" nowrap> Locale </td>
<td class="cfdebug">English (US)</td>
</tr>
<tr>
<td class="cfdebug" nowrap> User Agent </td>
<td class="cfdebug">Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20</td>
</tr>
<tr>
<td class="cfdebug" nowrap> Remote IP </td>
<td class="cfdebug">127.0.0.1</td>
</tr>
<tr>
<td class="cfdebug" nowrap> Host Name </td>
<td class="cfdebug">127.0.0.1</td>
</tr>
</table>
</p>
<p class="cfdebug"><hr/><b class="cfdebuglge"><a name="cfdebug_scopevars">Scope Variables</a></b></p>
<pre><b>CGI Variables:</b>
AUTH_PASSWORD=
AUTH_TYPE=
AUTH_USER=
CERT_COOKIE=
CERT_FLAGS=
CERT_ISSUER=
CERT_KEYSIZE=
CERT_SECRETKEYSIZE=
CERT_SERIALNUMBER=
CERT_SERVER_ISSUER=
CERT_SERVER_SUBJECT=
CERT_SUBJECT=
CF_TEMPLATE_PATH=/Library/Apache2/htdocs/ChartDirector/cfdemo/simplebar.cfm
CONTENT_LENGTH=
CONTENT_TYPE=
CONTEXT_PATH=
GATEWAY_INTERFACE=CGI/1.1
HTTPS=
HTTPS_KEYSIZE=
HTTPS_SECRETKEYSIZE=
HTTPS_SERVER_ISSUER=
HTTPS_SERVER_SUBJECT=
HTTP_ACCEPT=text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_ENCODING=gzip,deflate
HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5
HTTP_CONNECTION=keep-alive
HTTP_COOKIE=CFID=5001; CFTOKEN=22540050; JSESSIONID=3230aeb3ab4cc3d18892747910473e1b4070; CFADMIN_LASTPAGE_ADMIN=%2FCFIDE%2Fadministrator%2Fdatasources%2Findex%2Ecfm
HTTP_HOST=127.0.0.1
HTTP_REFERER=http://127.0.0.1/ChartDirector/cfdemo/indexleft.htm
HTTP_USER_AGENT=Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
PATH_INFO=
PATH_TRANSLATED=/Library/Apache2/htdocs/ChartDirector/cfdemo/simplebar.cfm
QUERY_STRING=
REMOTE_ADDR=127.0.0.1
REMOTE_HOST=127.0.0.1
REMOTE_USER=
REQUEST_METHOD=GET
SCRIPT_NAME=/ChartDirector/cfdemo/simplebar.cfm
SERVER_NAME=127.0.0.1
SERVER_PORT=80
SERVER_PORT_SECURE=0
SERVER_PROTOCOL=HTTP/1.1
SERVER_SOFTWARE=Apache/2.2.6 (Unix) DAV/2 JRun/4.0
WEB_SERVER_API=
</pre>
<pre><b>Cookie Variables:</b>
CFADMIN_LASTPAGE_ADMIN=/CFIDE/administrator/datasources/index.cfm
CFID=5001
CFTOKEN=22540050
JSESSIONID=3230aeb3ab4cc3d18892747910473e1b4070
</pre>
<pre><b>Server Variables:</b>
COLDFUSION=Struct (8)
ENTERPRISEMANAGER=Struct (18)
OS=Struct (5)
</pre>
<font size="-1" class="cfdebug"><i>Debug Rendering Time: 118 ms</i></font><br />
</td>
</tr>
</table>
0

======
Thanks.
Regards,
Rachit

  Re: code showing instead of the chart on the browser when loading charts.
Posted by Peter Kwan on Mar-14-2009 02:12
Hi Rachit,

It looks like the standard ColdFusion debug output. Have you enable debugging in your ColdFusion server? (Go to the ColdFusion Administrator, check the Debugging setting.) You may refer to ColdFusion's documentation for more details, or see the following link:

http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00001209.htm

When debugging in on, all pages should have some HTML appended to show debugging information. I suspect something in your system may be is corrupting the debugging output, so you see the HTML tags. (Are you using the ColdFusion built-in server directly, or are you go through another server? The connection between ColdFusion and the other server often is the cause of the problem.)

Anyway, you can try to disable debugging to see if it helps. If you are going through another server (eg. Apache), try not to use the other server for testing. If the problem does not occur when directly using the built-in server that comes with ColdFusion, the interface between ColdFusion and the other server may need some adjustment.

Hope this can help.

Regards
Peter Kwan