Coldfusion/LCDS/Mysql + Flex

Hi all !!
I just have a project that use LiveCycle a lot... I begin
from the scratch with integrated ColdFusion LiveCycle,
so i've tried the example in devnet :
http://www.adobe.com/devnet/coldfusion/articles/data_app.html
and everything seems to work with the Coldfusion embedded databases
( I 've just noticed that for some fields when i wanted to upgrade
that fields i get un 'contructor' error, issue that wasn't
resolved, even by his author.
Now my problem is that i use a proper mysql database and when
i launch the same application i get a blank page without anyresult
in the datagrid and no error messages from flex, coldfusion or
mysql...
Is it a known issue or have i to configure Mysql in other way
in Coldfusion ??
Any helps will be appreciated
Francois

I have tried out exactly this same example; but in my
configuration, the assembler CFCs are not found ... I use an Apache
web server instead of ColdFusion's builtin web server. Have You
made this example running with an EXTERNAL web server ?

Similar Messages

  • Setting up a coldfusion project in Flex

    This is my first time using flex to connect to coldfusion.
    I've got the following configuration:
    1) Development XP with Flex 3/Adobe CS3
    2) Linux webserver running coldfusion 8/MySQL
    Up until this point, I have been doing my development on the
    XP box and sending my code to the linux server through RDS.
    I've got RDS configured on the Flex 3 environment and that
    seems to be working ok.
    However, when I tried to do file->new>flex project and
    set the application server type to Coldfusion I run into problems.
    On the second page I have standalone or deployed to J2EE
    server.
    The next line is "Use default location for local Coldfusion
    server" which I deselect (I'm not sure what the default location
    really is though...) and set the location to the path
    /opt/coldfusion8 which is mapped via samba to z:\coldfusion
    Next is the "use built-in coldfusion server". Does this mean
    that there is a coldfusion server installed as part of the flex 3
    environment?? Anyway, I deselected this option and used the path
    z:\wwwroot\WEB-INF\flex but it still asks for the flex-config.xml
    which is in that directory and I can browse to it just fine. I'm
    not sure what they are asking for on the root URL, I assume where
    the actual code will be stored which I have yet another mapping for
    that one which is y:\testcf.
    I browsed through the forum and found the following article
    which spurred me to set up samba for the flex-config.xml file.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid =1359075&highlight_key=y&keyword1=coldfusion
    Anyone have any insight on what might be the issue?
    Thanks.

    I just built a windows IIS/coldfusion 8 server and had no
    issues building the connection. Is the linux unsupported in flex?
    It shouldn't be if it is...

  • ColdFusion 10 - MySQL Communications link failure

    We are migrating some websites onto a cloud infrastructure running Windows 2008 virtual machines.  These websites all run on ColdFusion with MySQL databases.  They currently are running in our CoLo with no problems.  Additionally, they are running on our development network in our offices with no problems.
    We are setting up our cloud to match as closely as possible the configuration we currently use which is, essentially, CF10 + IIS on one server and MySQL on a separate machine.  We are 99% finished and most things are running great.  However....
    We have run into a couple, as in 2, places where we click a link/button and are greeted with:
    Error Executing Database Query.
    Communications link failure The last packet successfully received from the server was 0 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
    Scanning the stack-trace I also find:
    `Caused by: java.net.SocketException: Connection reset`
    The communications link error is ALWAYS: 0ms.
    What's most puzzling is the Queries that seem to be causing this are *simple* queries that are used ALL OVER the sites with no problems.  Why they are failing at hese 2 particular places has us at wits end.
    Our only clue is, looking at the CF Error description of what scripts are called, we can see the script where the query is failing is getting called twice?  For example, one of the occurences is in our Application file:
        >The error occurred in D:/Our_Web_Sites/oursite/Application.cfm: line 73
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 17
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 1
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 73
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 17
        >Called from D:/Our_Web_Sites/oursite/Application.cfm: line 1
    We can find nothing in our CF code that would be causing the script to be called twice so our guess is the first call is failing on the Query so CF tries again...only to fail and error.
    Googling this issue I've found lots of posts about changing the MySQL timeouts.  None of those worked and I didn't expect them to since what we're dealing with doesn't appear to be a timeout issue.  These pages fail each and every time.
    The closest we've come to a solution came from this blog posting:
    http://www.talkingtree.com/blog/index.cfm/2011/1/12/Validation-Query-for-MySQL-communicati ons-link-failure
    If we UNCHECK the "Maintain connections across client requests. " setting in CFAdmin then the error goes away.  The blog suggests leaving that checked, which is our preference, and using Connection Validation of "SELECT 1;".  Try that...same error.
    We've also tried the JDBC AutoConnect=true option.  No effect.
    Downloaded latest JDBC Connector and used it instead of standard CF10-MySQL connector.  No effect.
    Again, 99% of the site works with the exception of these two links, both of which work just fine in all our other environments.  Any other ideas?

    I have some questions.
    1) You talk of 2 calls. However, you show us 5 calls from Application.cfm. What do those line numbers tell us?
    2) Shouldn't that be AutoReconnect=true rather than AutoConnect=true? In any case, it seems that the problem here is that ColdFusion attempts to use a stale connection to the database. It is then usually preferable to change wait_timeout instead. The MySQL documentation says, 'Alternatively[to AutoReconnect=true], as a last option, investigate setting the MySQL server variable "wait_timeout" to a high value, rather than the default of 8 hours.'.
    3) Shouldn't you already convert to Application.cfc?

  • Will BC eventually include Coldfusion and/or Flex?

    My understanding is that BC web sites are .NET based. Will BC sites eventually include Coldfusion and/or Flex servers?
    Having spent many hours learning and building rich Internet applications using Coldfusion and Flex, hard to believe an Adobe-hosted web site system (BC) would be solely .NET based.

    Hi Ahande2!
    Unfortunately not in the near future and at this stage. 
    The BC Sytstem is a SAAS (Software as a Service) and this system is a .net based system.
    You have NO access to server side code so you can not run any PHP, Java, Coldfusion, .net code on your sites.
    If you need any custom functionality etc you can use the ever expanding API of the system.
    http://kb.worldsecuresystems.com/635/bc_635.html?bc-partner
    Kind regards,
    -Sidney

  • ColdFusion Event Gateway  Flex  CF 8

    I am doing this exercises in the FlexBuilder SDK .
    Use Coldfusion Event Gateway Adapter exercise
    When I get to
    Select Event Gateways > Gateway Instances.
    Enter Flex2CF2 as the Gateway ID.
    Select Flex Messaging - Flex as the Gateway Type.
    There is no Flex Messaging-Flex option
    The closest two are
    DataManagement Notifies Data Management Services of data
    changes coldfusion.eventgateway.flex.FlexDataManagementGateway
    DataServicesMessaging Handles Data Services Messaging
    messages coldfusion.eventgateway.flex.FlexMessagingGateway
    I try the example @
    http://localhost:8700/samples/dataservice/myapp/flexemail2cf.mxml
    The flex server is running fine but generates an RMI error in
    the cmd console
    flex.messaging.MessageException: Unable to find ColdFusion
    gateway 'Flex2CF2 in RMI registry on host localhost
    the gateway may not be running.
    The gateway shows as running in the coldfusion adminstrator.
    Please help

    I think Flex messaging event gateway capability first was
    available in CF 7.

  • Coldfusion fetch mysql query question

    Hi:
    Here is my coldfusion code:
    <cfquery name = "query" datasource = "cfmysql" result = "result">
         SELECT COUNT(*) FROM students WHERE gender = 'boy'
    </cfquery>
    And then I want to check if value is greater than 0. I then do:
    <cfif existSearchHintsQuery.COUNT(*) gt 0>
    But coldfusion gives me an error at the * character, the colume of the mysql result is "COUNT(*)", so I really need the * character.
    How do I fetch that count number?
    Thanks.

    You need to use an alias so you can access the COUNT(*) like any other column:
    <cfquery name="yourQueryName" datasource="cfmysql" result="result">
        SELECT COUNT(*) AS TotalStudents FROM students WHERE gender = 'boy'
    </cfquery>
    <cfif yourQueryName.totalStudents GT 0>
    ... do something ...
    </cfif>
    Also, read up on using cfqueryparam  (if you are not using it already)
            http://livedocs.adobe.com/coldfusion/8/Tags_p-q_18.html

  • Manipulating coldfusion structures in flex

    Hi,
    I am beginner with flex. I was trying a sample login application using flex and coldfusion. I was able to connect to coldfusion, and was able to show an alert message when the user successfully logins. I was just returning a numeric value of 1 if the login is successful. But I want to store the details of the logged in user like first name, last name, and display using flex. I am storing the values in a coldfusion structure with return type struct. Can anyone please suggest me how this can be done in flex?
    Thanks.

    You have to install the extensions. Start here:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfwizards_2.html

  • Converting coldfusion reports to flex- Help needed

    Hello All,
    I have a coldfusion form which has input fields , when the user submits the input fields a report is generated . Now , what i need is to generate the report in flex which takes the input from the  coldfusion input file..
    Can somebody please help ASAP..
    Thanks in advance.

    Thanks! for the prompt reply Mike .. I will start working on one of these options you listed..
    I need to complete the generation of these reports in couple of days , need myself get going..
    Is there an email id where i can reach , if i have more questions..

  • ORM in Adobe ColdFusion 9  for  flex developers

    What advantage does the
    ORM in Adobe ColdFusion 9
    Have for flex developers as Flash builder 4 does so much of that for us nowadays

    What is nice about it is the AIR support, imho, so that you can do object-oriented database management with a SQLite database on the client without having to have a server. The actual ORM swc that comes with CF9 is placed in the Flex library and then no more having to write inordinately complex queries to accomplish simple things; you simply update objects' properties like you would with a typical object in FLEX. In addition, if you're using the ORM framework and want to build an application that allows users to easily update a remote database with data worked on offline, it's built in. As you probably know, there are several ORM frameworks out there already, but this appears to be the one Adobe is going with so it's worth a shot with the hope of long-term support, as opposed to some of the others which are not supported or rather stale.

  • ColdFusion Setup for Flex

    I have two questions about setting up ColdFusion to access a remote CFC from FLEX (Flash Builder 4.5).  I host several domains on my ColdFusion 8 server with IIS 6.  I would like to set things up so that I can hit a CFC that is not on the same domain as my "main" coldfusion server (ColdFusion .CFM files run fine from this domain).  I can't seem to do it though.
    If I adjust my service control endpoint so that it USES my main coldfusion domain, it works:
    _serviceControl.endpoint = "http://www.myMainColdFusionDomain.com/flex2gateway/"
    but if I try a different domain, it does not work:
    _serviceControl.endpoint = "http://www.notMyMainColdFusionDomain.com.com/flex2gateway/
    Also, I am having trouble with putting my CFC in a subdirectory and still getting it to work.  In other words, building from the above working URL, I can't seem to just add a subdirectory to the URL--it doesn't work:
    _serviceControl.endpoint = "http://www.myMainColdFusionDomain.com/subDirectory/flex2gateway/"
    I am sorry if what I am asking seems very basic, I am just learning.
    Thank you.

    Ok, I think worked this out for myself.
    First, I adjusted my default website in IIS so that it pointed to the directory of the domain I wanted to use, that cleared up the domain issue--not really the way I thought it would be done, but it works...
    Next for my directory question, I used a dot notation to indicate there is a subdirectory, and plugged it into my super class as follows: 
    _serviceControl.source = "subdirectory.myCFCsName";

  • ColdFusion RDS and Flex Builder 2

    Hello everyone.
    I try for 3 days to get this running but I keep getting the
    same error:
    "The RDS server was successfully contacted, but your security
    credentials were invalid."
    The documentation says that if you are using ColdFusion MX
    7.0 or earlier, you would get this message.
    But I am using the ColdFusion MX 7.0.2 Developer Edition,
    Running under IIS6 on a Windows 2003 server Standard.
    Please note that the ColdFusion and Flex Builder 2 are not on
    the same computer and it is not possible for me to install CF on
    the local computer.
    If I try the Dreamweaver RDS it works fine. So I know there
    is nothing wrong with the password, the Host Name or port 80.
    Can someone please help me?
    Thanks.
    Sam

    anyone??

  • ColdFusion/Flashbuilder/MySql Date Error - This is a bug

    In ColdFusion9/Flashbuilder4/MySql....
    I generate a CFC completely with the flashbuilder wizard, throwing a datagrid on the page and dropping "get All" on top and run it,
    On Hostek with CF9 and MySql 10.10.11.3, It produces  a list of dates that are all one day prior to what is actually listed in the mysql database (phpMyAdmin), same for several custom written cfc's. If I run a cfm calling the cfc it gives the proper dates, but when Flashbuilder calls the same cfc it gives everything one day off.
    Locally on my machine with Mamp circa 2004 this works correctly and lists the correct dates.
    Any suggestions?
    Thanks
    Dan Pride

    The following is a response from Hostek describing the problem from their end
    From:
    "HosTek.com Support" <[email protected]>
    To:
    [email protected]
    Dan,
    I just tested this using a MacOS 10.4,
    Windows XP,  Vista, 7, Ubuntu 10.04. Site shows correct date using all of the above,  tested using external connection - the date is showing correctly. Yet,  trying to pull it up using SkyFire 1.5 browser on WindowsMobile, I am  getting the same "one day back" issue that you are seeing.
    This  really sounds like an issue with the client computer and the way the  data is being interpreted localy, not the issue with the server.  However, I think we might be able to help you pin point this bug.
    If  you are able to run this without a problem on your local machine, are  you able to change your local DSN - BlueRose to point to "
    xxxx instead of using localhost but run the application from your local  machine? This will tell you if the bug might be related to MySQL  version.
    Another thing to check would be the version of flash  player. Computers here that are displaying the page correctly are  running 10,1,85,3 (with Ubuntu running 10,0,45,2) and SkyFire that is  not displaying the date correctly is running 10,0,32,18.
    Please let us know if you need any further assistance.
    Alex Y.

  • Trying to conifgure Coldfusion w/ MySQL

    I have installed CF using the Multi Server option, and I have installed MySQL 5 on my Mac OSX 10.5.  I downloaded and installed the ODCB driver and installed it (created a portfolio and a new test db) and also created a username and pw for MySQL.  I tested the ODCB and the MySQL connections per the Terminal per the instructions.
    I did a lot of the install per instructions, but don't quite understand how the driver the database server and CF interact with each other.  Like if I have an .sql db (which I do) that I want CF to use, what do I use for "Server" when I am setting it up and where do I put the actual SQL file?  /usr/locl/mysql?
    I am really just trying to learn CF and I want to setup a DB and I would like to use MySQL but does it matter which driver I use?  I downloaded the MySQL J connector, but have not installed.  Do I need it if I have the ODBC?
    I know I'm kind of all over the place, but any help would be appreciated.  I just want to be able to go into CF Administrator and setup a datasource using an existing .sql file.
    Mike

    Okay I think I get what's happening this is just a problem with NetBeans printing the SOAP response. So I think I'm good

  • How to use the lcds in flex and how use the messageing serviecs in blazeds ?

    I have a problem with messageing servies in Blazeds i used the romte and proxy very well but messaging services ?

    Hi
    Dont know, you dont say which commercial video conference software is involved.
    Tony

  • How do I get flex remoting to work with Coldfusion 11

    Hi,
    Coldfusion 11 (Developer)
    Flex 3
    Existing Flash Application works with Coldfusion 8
    Flex Integration is turned on.
    Running latest update
    CentOS 6.1 with latest updates
    I have done the following:
    http://127.0.01/flashservices/gateway  ---> Page Not found
    http://127.0.01/flashservices/gateway/  ---> Page Not found
    http://forums.adobe.com/message/5621721#5621721
    Confusion Blog » Apache + Debian + Coldfusion 10 + flex2gateway = Error 404
    https://groups.google.com/forum/#!topic/railo/6j2i6gl8Ac4
    \config\wsconfig\1\uriworkermap.properties file to include:
    /flashservices/gateway/* = cfusion
    /flashservices/gateway = cfusion
    I have modified the mod_jk.conf like so:
    # Select the timestamp log format
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    # Fix para Flex2gateway
    <IfModule jk_module>
        JkMount /*.cfm ajp13
        JkMount /*.cfc ajp13
        JkMount /*.do ajp13
        JkMount /*.jsp ajp13
        JkMount /*.cfchart ajp13
        JkMount /*.cfres ajp13
        JkMount /*.cfm/* ajp13
        JkMount /*.cfml/* ajp13
        JkMountCopy all
    </IfModule>
    AddHandler jakarta-servlet .cfm .cfml .cfc .cfr .cfswf
    Alias /CFIDE "/opt/coldfusion10/cfusion/wwwroot/CFIDE"
    I uncommented the "start flex 2" section in web.xml
    Nothing has worked.
    I have searched Google and Adobe.
    I was hoping that Adobe would have the "Flex Integration Check Box" working
    by now.  It only been around since ColdFusion 8 and basically does nothing.
    Adobe could post a tutorizl on how to get this working.
    Job Security for "Tech Support".
    Any ideas.
    Brian

    Do you have internet when wired to the router?
    What exactly is the problem? What error messages do you get?
    What are the current settings on the WRT?

Maybe you are looking for