CFCHART displays broken images

ColdFusion 2 Comments »
This is such a common problem, I thought I may as well blog it seeing as I had it again today.

Symptom: When using CFCHART, you will just get a broken image displayed and no chart. Cure: 1. Make sure you have the correct video driver installed on the server, CFCHART uses this. If the default VGA driver is being used, cfchart will not work. I have also seen some gfx cards/drivers simply not work period. 2. Make sure you have the CFIDE and JRunScripts virtual directories setup on the site. Both should have been setup on the "default web site" when you installed CFMX, so you can use these for reference. The JRunScripts vDIR needs "Scripts and executables" permission under the application settings, and neither should have an application name defined (this causes application isolation), remove it if it is. To tell the difference , a basic vDIR will show as just a folder with a globe (this is what you want). Note: you should ideally not use the original CFIDE for all your sites, otherwise the CFADMIN can be accessed from any site. Make a copy of the CFIDE to the location where you store your web sites, E.G. d:\wwwroot, and delete the administrator and adminapi folders from it. Now use this for your virtual directories on all sites EXCEPT the default web site.

CFMX 7 security sandboxes

ColdFusion 3 Comments »
In my previous article about about CFMX 7 Multiserver, I mentioned a technote. Well its taken MacroAdobe almost a year to post it since I informed them of the problem, but here it is. CLICK HERE

My new blog

ColdFusion 1 Comment »
I decided it was high time I had my blog hosted on my own servers and had full control over it rather than using blogger.com, so I decided to use Ray Camdens blogCFC. And here it is.

Using connector/J drivers with MySQL

ColdFusion No Comments »
Further to my other posts, I have now discovered what the problem is with most of the other driver versions, they cause a conflict with the Logger and existing drivers in CFMX causing a log4 error. The below solution should allow you to use the new drivers. Thanks to Stephen Moretti for this info. The solution is to add this connection string logger=com.mysql.jdbc.log.StandardLogger to the end of the JDBC URL. For example : jdbc:mysql://localhost:3306/mydatabase?logger=com.mysql.jdbc.log.StandardLogger Other useful additions to the connection string are useUnicode=true
and
characterEncoding=UTF8
for internationalisation, giving you : jdbc:mysql://localhost:3306/mydatabase?logger=com.mysql.jdbc.log.StandardLogger&useUnicode=true&characterEncoding=UTF8
NOTE: Don't use the connection string box in the datasource form as this doesn't work for "other" type datasources.

Flash Remoting (gateway services) bug

ColdFusion No Comments »
I was having a problem this week on the cfdeveloper server, members were reporting that flash remoting was not working. Having then tested on a few other CF 7 servers, it was not working there either. And I did a bit of googling to no avail, only to find that a lot of people seem to have problems getting flash remoting to work. In ColdFusion MX 6 you could go to http://domain/flashservices/gateway to test if it was working, and if you got a blank page back, all was ok. On ColdFusion MX 7 this does not work, so the only way you can test is by writing some code to test the service. Here is a simple script you can use to test the flash remoting services. http://www.asfusion.com/blog/entry/remoting-for-coldfusion-flash-forms Well here is the answer. After checking the coldfusion runtime logs (C:\CFusionMX7\runtime\logs\coldfusion-out.log), I found it was full of errors like this. [Flash Remoting MX]-> Unable to load configuration. Reason: The element type
"service-adapters" must be terminated by the matching end-tag
"".27/02 16:22:17 user failed to load:
flashgateway.controller.GatewayServlet
So I checked the gateway-config.xml file (\wwwroot\WEB-INF\gateway-config.xml) and found it had the following errors in it. <service-adapters>
<adapter>flashgateway.adapter.resultset.PageableResultSetAdapter</adapter>
<adapter>coldfusion.flash.adapter.ColdFusionAdapter</adapter>
<adapter>coldfusion.flash.adapter.CFCAdapter</adapter>
<adapter>coldfusion.flash.adapter.CFSSASAdapter</adapter>
<!--<adapter type="stateful-class">flashgateway.adapter.java.JavaBeanAdapter</adapter>-->
<!--<adapter type="stateless-class">flashgateway.adapter.java.JavaAdapter</adapter>-->
<!--<adapter type="ejb">flashgateway.adapter.java.EJBAdapter</adapter>-->
<!--<adapter type="servlet">flashgateway.adapter.java.ServletAdapter</adapter>-->
adapter>coldfusion.flash.adapter.CFWSAdapter</adapter>
</service-adapters>
should be <service-adapters>
<adapter>flashgateway.adapter.resultset.PageableResultSetAdapter</adapter>
<adapter>coldfusion.flash.adapter.ColdFusionAdapter</adapter>
<adapter>coldfusion.flash.adapter.CFCAdapter</adapter>
<adapter>coldfusion.flash.adapter.CFSSASAdapter</adapter>
<!--<adapter
type="stateful-class">
flashgateway.adapter.java.JavaBeanAdapter</adapter>-->
<!--<adapter
type="stateless-class">
flashgateway.adapter.java.JavaAdapter</adapter>-->
<!--<adapter
type="ejb">flashgateway.adapter.java.EJBAdapter</adapter>-->

<!--<adapter
type="servlet">flashgateway.adapter.java.ServletAdapter</adapter>-->

<adapter>coldfusion.flash.adapter.CFWSAdapter</adapter>
</service-adapters>
Notice the last tag, has a missing opening chevron.
Powered by Mango Blog. Design and Icons by N.Design Studio
RSS Feeds