Autocomplete in Coldfusion

We are looking for an example from the scratch of AUTOCOMPLETE from a CFQUERY.

Huh?
Can you expand on what you're asking, a bit?
Adam

Similar Messages

  • Is it possible to have one search box search many fields? ( and "autocomplete" the results)?

    I'm really new to the whole area of JSON, autocomplete and javascript. My first project in this area is personal: making it easier to search for wines in my wine cellar.
    I have all my wines in a sqlite database (driven by CF 9 of course) and have a nice UI to report on, add, modify, delete, etc.  What I want to add is a search capability that works like this:  a user types text in a search box in any order they want and automagically, the wine is found. 
    To be specific, a user could start with "2005 Caymus" and the area below the text search box would be populated with all of the varietals of Caymus for 2005 that are in the cellar.   Similarly the user might start the search by typing "2005 Cabernet" in which case anything in the cellar that is from 2005 and a Cabernet Sauvignon or a Cabernet Franc from all wineries would appear below the text box. Or maybe they just want to see what French wines are in the cellar, so they'd start their search with "France" or "French". (BTW,  winery, vintage, wine type (varietal), country, appellation, etc. are all separate fields in the database/table.)
    Is my imagined search capability possible, or does each aspect of the search (year, winery, wine type/varietal) have to be user-entered into a separate text box?
    Any guidance/answers greatly appreciated!  If you're local, might even be worth sharing a vintage bottle of wine!

    Sorry I was unclear.
    Google is a single text box.  If you type "coldfusion 9 new features"
    you get a good listing of your results without having one box for
    software one for version one for descriptor and
    one for topic .  Similarly with Google it's likely you'll get
    somewhat similar results typing in "new features coldfusion 9" or
    "coldfusion 9 features".  So for my wine app I just want to present the
    user with one box so they can type in "Caymus 2005 Cabernet Sauvignon"
    (a "specific" search) or "2005" (a search for all wines from that year),
    etc.  It's the cleanness of the user experience I'm trying to
    accommodate here.    Make sense?

  • Jquery autocomplete - json

    I want to implement AutoComplete search functionality to form field using freely available JQuery. Now, I have a fully functional, simplified code that works perfectly with a .cfm page, but I have been struggling to convert it to a cfc file, namely to convert ColdFusion data into a JSON !
    here is the working code:
    test-autoc.cfm
    <script type="text/javascript" src="scripts/jquery-1.3.1.min.js"></script>
    <script src="scripts/jquery.autocomplete.js"></script>
    <link rel="stylesheet" href="css/autocomplete.css" type="text/css" />
    <script type="text/javascript">
    $(document).ready(function() {
        $("#topic").autocomplete(
                    "auto-complete-q.cfm",
                minChars:2,
                delay:200,
                autoFill:false,
                matchSubset:false,
                matchContains:1,
                cacheLength:10,
                selectOnly:1
    </script>
    <form name="testa" id="testa" action="#" method="get">
    <p>
    <label for="topic">topic</label>
    <input type="text" name="topic" id="topic" />
    </p>
    </form>
    auto-complete-q.cfm
    <cfinvoke component="Application" method="password" returnvariable="password">
    <cfinvoke component="Application" method="username" returnvariable="username">
    <cfsetting enablecfoutputonly="true">
    <cfparam name="URL.q" default="">
    <cfquery name="titleq" datasource="datasource" username="#username#" password="#password#">
    SELECT title
    FROM latestnews
    WHERE title LIKE <cfqueryparam value="%#URL.q#%" cfsqltype="cf_sql_varchar">
    </cfquery>
    <cfoutput query="qryGetCountry" maxrows="10">
    #titleq.title#
    </cfoutput>
    and the one I have been struggling with
    test-autoc1.cfm
    <script type="text/javascript" src="scripts/jquery-1.3.1.min.js"></script>
    <script src="scripts/jquery.autocomplete.js"></script>
    <link rel="stylesheet" href="css/autocomplete.css" type="text/css" />
    <script type="text/javascript">
    $(document).ready(function() {
        $("#topic").autocomplete(
                    "auto-complete-q.cfc?method=gettitles&returnFormat=JSON",
                minChars:2,
                delay:200,
                autoFill:false,
                matchSubset:false,
                matchContains:1,
                cacheLength:10,
                selectOnly:1
    </script>
    I also tried adding source: and aditional {} to the JavaScript code above, but had no luck.
    <form name="testa" id="testa" action="#" method="get">
    <p>
    <label for="topic">topic</label>
    <input type="text" name="topic" id="topic" />
    </p>
    </form>
    auto-complete-q.cfc
    <cffunction name="gettitles" access="remote" returntype="array">
        <cfargument name="searchparam" type="string" required="false" default="test jjjjj test">
        <cfset var titleq = "">
        <cfset var result = arrayNew(1)>
      <cfquery name="titleq" dataSource="datasource">
        SELECT title
        FROM latestnews
        WHERE title LIKE <cfqueryparam cfsqltype="cf_sql_varchar" value="%#arguments.searchparam#%">
      </cfquery>
      <cfloop query="titleq">
        <cfset arrayAppend(result, titleq.title)>
      </cfloop>
      <cfreturn result />
    </cffunction>
    Although the code does not generate any error, for some reason it always selects the default value set in cfargument!?
    I also tried replacing LIKE <cfqueryparam cfsqltype="cf_sql_varchar" value="%#arguments.searchparam#%"> with a literal value (LIKE "%whatever%") and in that case cfc actually returns that value if something is typed in the search field. However, when selected returned value outputs the following code  <wddxPacket version='1.0'><header/><data><array length='1'><string>test jjjjj test</string></array></data></wddxPacket> !?
    As I can see something is missing in both CFC and JavaScript code!?
    CF version - CF MX 7.0.2

    I don't think returnformat=JSON works in CF7, you need at least ColdFusion version 8 for that to work.
    yep, I think you're right.
    You will need to use some third party code to convert your data into JSON, there are a few cfc's out there that can do the trick
    ok, definitelly I'm gonna learn more about it. In the meantime, what if I replace <cfreturn result /> with say <cfoutput>#result[1]#</cfoutput><cfabort /> it would be a handy workaround for the WDDX issue!? That being said, I am still stuck with the default value issue, given that every time no matter what is typed into the search box the default value set in cfargument will be passed.!?? I would like to solve this issue first! Could someone point out which file is causing the problem, cfc of javascript?

  • Autocomplete in flex

    hello guys!
    i am exploring adobe flex and it is so awesome that i want to
    learn more about it.
    i am a web developer and i would like to learn more about
    autocomplete capability of adobe flex similar to this
    http://createwebapp.com/demo
    i hope that you can help me guys! thanks :)

    Adobe Newsbot hopes that the following resources helps you.
    NewsBot is experimental and any feedback (reply to this post) on
    its utility will be appreciated:
    Adobe - Flex 3:
    Flex is a highly productive, free open source framework for
    building and maintaining expressive web applications that deploy
    consistently on all major
    Link:
    http://www.adobe.com/products/flex/
    Adobe Flex 3 Language Reference:
    Frame Alert. This document is designed to be viewed using the
    frames feature. If you see this message, you are using a
    non-frame-capable web client.
    Link:
    http://livedocs.adobe.com/flex/3/langref/
    Flex.org - Rich Internet Application Development:
    Welcome to the new Flex.org. This site aggregates Flex news
    from a number of sources, and allows community members to
    contribute their own content as well.
    Link:
    http://flex.org/
    Flex 3 - Versioning:
    You might encounter some versioning issues when working on
    Adobe Flex applications. When compiling, you can choose the version
    of the SDK to use and you
    Link:
    http://livedocs.adobe.com/flex/3/html/versioning_1.html
    Adobe Flex - Wikipedia, the free encyclopedia:
    Adobe Flex is a collection of technologies released by Adobe
    Systems for the development and deployment of cross platform rich
    Internet applications based
    Link:
    http://en.wikipedia.org/wiki/Adobe_Flex
    Adobe - Flex Developer Center:
    Check out the getting started guide on learn.adobe.com, with
    special areas for developers using Flex with PHP, .NET, Java, and
    ColdFusion.
    Link:
    http://www.adobe.com/devnet/flex/
    Disclaimer: This response is generated automatically by the
    Adobe NewsBot based on Adobe
    Community
    Engine.

  • Dreamweaver w/Coldfusion 4.0 (Allaire)

    I work at a small company and am soon to be the only
    developer. We're currently using Coldfusion Studio 4.5 with Allaire
    Coldfusion 4.0 and I'm hoping to get Dreamweaver 8 but don't know
    if it's compatible with such an old version of CF. I know any text
    editor can be used to write CFML, but it looks like CF7 and DW8
    work really well together and I don't know if earlier versions
    would work as well or if they're even meant to. Please let me know
    if these two pieces of software will work together. Thanks!
    I am crossposting this on the DW forum.

    I only use code view, and from that perspective, DW8 is
    compatible with CF4. However, the "tag autocomplete" will offer you
    tags that are not available in CF4. Also, at least one tag, cfchart
    won't come up in the autocomplete because it has been
    deprecated.

  • How to Install Coldfusion 8 64-bit on Small Business Server 2008 64-bit

    How to Install Coldfusion 8 64-bit on Small Business Server 2008 64-bit
    I ran Coldfusion 8 on SBS 2003 Premium for 6 months with no problems.  When we finally decided to cut over to SBS 2008, that’s when everything went to hell.  I tried for weeks to get Coldfusion 8 to install properly on the new SBS 2008 64-bit box.  During the course which, I found bits and pieces of information for Vista 64-bit and Windows Server 2008 64-bit installations.  There are some distinct differences, however, with SBS 2008 since it runs core Web applications like OWA, RWW and Companyweb.  After countless unsuccessful attempts, one of which completed corrupted the box, I found the solution.
    I have attempted in this white paper to detail the steps to assist others who may be in a similar situation.  I don’t make any warranty for the information, but so long as you follow the steps carefully you should be fine.  BTW, for those of you who say Adobe offers free technical support for licensed users, that’s not entirely true.  Like I said, I purchased CF8 and originally installed it on an SBS 2003 Premium box.  After we cut over to SBS 2008 and encountered problems, Adobe wouldn’t provide any technical support without charging.  Moreover, based on my initial conversations with Adobe’s technical team, no one seemed to know much about running 64-bit on SBS.
    From my understanding, only two versions of Coldfusion 8 can be installed in 64-bit: Enterprise and Developer.  The “normal” install (which I paid a grand for) can only be deployed in 32-bit mode – gee, THANKS Adobe!  By the way, in Developer mode only two distinct IPs can access the site in addition to the localhost.  Any additional IPs will result in a CFML error message stating that the maximum number of IPs have been exceeded.  At any rate, take your time and follow the steps to achieve a successful installation. 
    PRE-INSTALLATION TASKS
    Back Up SBS
    It’s always a good practice to backup your server before deploying any kind of major system changes.  Although this step is optional, I recommend it in case you need to restore your server for any reason.  Bear in mind, if your system ever gets totally corrupted, you cannot restore back from the twice daily incremental backup images alone.  You will need a full backup with system recovery information to restore.  Here are the basic steps:
    Click: Start > Programs > Administrative Tools.  Right-click “Windows Server Backup” and choose “Run as administrator”.
    Click “Backup Once” under Actions in the right-hand pane.
    Choose the “Different Options” radio button under Backup Options.
    Choose the “Custom” radio button.  What we’re primarily interested in here is backing up the OS – not your data partitions or attached drives.
    Select the “SYSTEM (C)” checkbox, uncheck any others.  Also, ensure that the “Enable system recovery” checkbox is selected before continuing on.
    Under ‘Specify Destination Type’, I usually select the “Local drives” radio button and point it to a Terrabyte USB drive I use for backups.  You can point this to a tape drive, or select the “Remote shared folder” radio button if you map to a UNC path to store your backup images.  Just remember, make sure that whatever path you select can readily be accessed in the event of an emergency.  Also, make sure the “Verify after writing (recommended)” checkbox is selected.
    Under ‘Specified Advanced Option’, I usually select the “VSS full backup” radio button instead of the default since I don’t use a 3rd party backup product.  If like me you rely solely on SBS for your backups, choose the full backup option.
    Confirm everything and click “Backup”.  This process may take several hours depending on the size of your system.
    Verify ISAPI Filters:
    In IIS Manager, double-click the server instance in the left-hand pane.
    In the center pane under IIS, double click the “Modules” icon to verify that the ISAPI native modules are already installed for IIS.  If it’s set up correctly you should see two entries:
    IsapiFilterModule              %windir%\System32\inetsrv\filter.dll
    IsapiModule                        %windir%\System32\inetsrv\isapi.dll
    If either of these modules are missing, you will need to re-install these (google for a solution).
    Set Up Development Environment
    Create a directory for your CFML files outside of the default Windows location (e.g., default is usually C:\inetpub\wwwroot\).  For the purpose of our install, I created a directory on a separate disk called: D:\DEV.
    Copy and paste your CFML files and directories into the new DEV root Web directory.  This will eventually be the directory where the Coldfusion installer places the CFIDE and CFDOCS folders. 
    Open IIS Manager and double-click the server instance in the left hand pane.  Expand the “Sites” folder.  Right-click the Sites folder and select “Add Web Site”.
    Enter a name in the “Site Name” box (e.g., “test-site”).  You will notice that the system will automatically create a corresponding Application Pool with the same name.  NOTE: this is important to prevent conflicts between the DefaultAppPool (needed for SBS Web apps like OWA, RWW, etc.) and the application pool needed for Coldfusion to function properly in SBS 2008.
    Point the “Physical Path” to the directory you created in step #1 above (e.g., “D:\DEV”).
    Don’t worry about testing the connection.  If you click “Test Settings” you may receive a warning that IIS cannot verify access to path (D:\DEV).  Don’t worry about this for the time being.
    Under “Host name”, enter a DNS path to your site (e.g., “dev.test-site.com”).  Click “OK”.
    Configure Application Pools for Installation
    In IIS Manager, double-click the server instance in the left-hand pane.  Click on “Application Pools” to display the list of server application pools in the center pane.
    In the “Actions” pane on the right-hand side, click “Set Application Pool Defaults”.
    Change “Enable 32-Bit Applications” - the second item from the top – from “False” to “True”, and then click “OK”.  NOTE: if you skip this step, Coldfusion will not properly create the required mappings during the install. We will change this setting back after the installation completes – more on this later.
    Modify the application.host.config File for 64-Bitness
    Click: Start > Programs > Accessories.  Right-click “Notepad” and choose “Run as administrator”.
    Open the config file from within Notepad – default location: C:\Windows\System32\inetsrv\config\applicationHost.config
    Do a search and change this one line from:
    <add name="PasswordExpiryModule" image="C:\Windows\system32\RpcProxy\RpcProxy.dll" />
    To this:
    <add name="PasswordExpiryModule" image="C:\Windows\system32\RpcProxy\RpcProxy.dll" preCondition="bitness64" />
    Restart the IIS Admin service.
    Set HTTP Compression
    According to some threads I read, the http compression module can cause errors if you don’t disable it globally. To remedy this, perform the following:
    Click: Start > Programs > Accessories.  Right-click “Command Prompt” and choose “Run as administrator”.
    At the command prompt, change directory to intetsrv by typing: cd inetsrv
    Run the following command:
    C:\Windows\system32\inetsrv>appcmd.exe set config -section:system.webServer/httpCompression /-[name='xpress']
    This will turn off HTTP compression for all sites in IIS.
    In IIS Manager, double-click the server instance in the left-hand pane.  Double-click the “Compression” icon in the IIS section of the center pane.
    Uncheck all of the boxes, then click the “Apply” button under Actions in the right-hand pane.
    Recheck all of the boxes, then click the “Apply” button under Actions in the right-hand pane.
    Restart the IIS Admin service.  This should enable compression and coldfusion to work at the same time.
    NOTE: if for some reason you need to reverse this, run the following command from the command prompt:
    C:\Windows\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpCompression /+[name='xpress',doStaticCompression='false',dll='%windir%\system32\inetsrv\suscomp.dll']
    INSTALLATION TASKS
    Download the 64-bit installation package from Adobe – filename: coldfusion-801-wind64.exe.
    Right-click the file and select “Run as administrator”.
    Accept the terms of the License Agreement.
    If you have an Enterprise license, enter it.  For our purposes, just click the “Developer Edition” checkbox.
    Select “Server configuration” – the default radio button.
    I deselected all subcomponents and can’t guarantee that you’ll arrive at the same results if you select additional items like “.NET Integrated Services”.  It should be fine, particularly if you install documentation.  My preference was to keep the install as plain vanilla as possible.
    Select the directory path for Coldfusion to install into – default is :C\Coldfusion
    THE NEXT TWO STEPS ARE CRITICAL TO YOUR SUCCESS.  Unselect “All IIS Websites” and select the “Configure specific IIS Website or another web server” radio button.  Click “Add”, and then select your test Web site (e.g., “test-site”) under “IIS Web Site”.  Hit “OK”.
    Do NOT use the default directory path for the CF Administrator location (e.g., default path: “C:\inetpub\wwwroot”).  Instead, point the installer to your new DEV root Web directory (e.g., “D:\DEV”).  The bottom line, you want the installer to place the CFIDE directory and files within this folder, alongside your other CFML files and folders.
    Enter an Administrator password.
    Choose to Enable RDS, or not.  I enable this by preference but it is not required.  This allows you to make updates to files using a CFML editor directly vs. having to move/FTP the files over if you’re working remotely.  Opponents to this argue that it’s potentially less secure, but for a lower environment I don’t see this as a major concern.
    Confirm everything to kick off the install.
    If all goes well you should see a message at the end stating that the install was successful.  I recommend you uncheck the box that asks you to open the CF Administrator in the default Web browser after the install.  NOTE: we will open it a different way during the post-installation tasks.  The worst thing that will happen if you forget to uncheck the box is that you might receive an error that the command prompt hung – not a big deal – just close it and move on to the next (final) steps.
    POST-INSTALLATION TASKS
    Verify CF Installation:
    The installation will create a new folder in your program group: Start > Programs > Adobe > Coldfusion 8.  The default “Administrator” link will not work because it points to the wrong path: http://127.0.0.1/CFIDE/administrator/index.cfm. The “127.0.0.1” or “localhost” path as you may recall in IIS, points by default to the “C:\inetpub\wwwroot” directory.  Our CFIDE files, however, are located within: D:\DEV.
    To bring up the CF Administrator logon page, open up a Web browser and replace the “http://127.0.0.1” part of the path with the DNS path name to your CF environment (e.g., http://dev.test-site.com/CFIDE/administrator/index.cfm).
    This should bring up the Coldfusion Administrator Login screen.  Enter in the Administrator password you created during the install to log in and configure your application server.
    Verify that your test-site renders correctly by typing in your test URL into a Web browser (e.g., http://dev.test-site.com).
    Fix Application Pool Defaults to Re-enable SBS Web Applications:
    At this point, Coldfusion Administrator and your test CMFL Web site should be working properly.  The problem is, default SBS Web applications like OWA, RWW and Companyweb will throw errors and fail to start.  Fortunately, this is easily remedied by performing the following steps:
    In IIS Manager, double-click the server instance in the left-hand pane.  Click on “Application Pools” to display the list of server application pools in the center pane.
    In the “Actions” pane on the right-hand side, click “Set Application Pool Defaults”.
    Change “Enable 32-Bit Applications” - the second item from the top – from “True” to “False” this time.  This should re-enable the SBS applications, which would otherwise result in 500 errors (e.g., OWA, RWW, Companyweb, etc.).  There is no need to restart IIS.
    Open a Web browser and test that you can once again connect to OWA, RWW and Companyweb successfully.
    In IIS click to highlight the application pool for your new site (e.g., “test-site”).  In the right-hand pane, click “Advanced Settings”.  Ensure that “Enable 32-Bit Applications” – second item from the top – is set to “True” for this application pool specifically.
    Lastly, jump up and down for joy!  Hopefully now, everything is working.  Best of luck!! ..Paul D (MCP).

    First, it would be a good idea for you to specify what distro of Linux you're using, as not all are supported by Adobe.
    Second, this is probably your problem right here:
    http://askubuntu.com/questions/40416/why-is-lib-libc-so-6-missing
    In a nutshell, CF expects the 32-bit version of libc.so.6 to be in /lib, but it's probably not. You might be able to modify the installer to point to the correct location for that file, or you might be able to create a symlink to the file - but as the above link describes, creating a symlink might have negative consequences.
    As for installing CF 8 64-bit, that's only available with Enterprise, not Standard. If you want CF Standard 64-bit, you need to upgrade to CF 9.
    Dave Watts, CTO, Fig Leaf Software

  • Outlook autocomplete cache stops working for multiple users at the same time

    Hi there
    Ever since we upgraded our Exchange 2010 to Exchange 2013 we have had problems with the autocomplete cache in Outlook 2010.
    We have 700 users and about once per week I get a call about the autocomplete cache. A few users are on cached mode, but most use online mode. The problem appears on both, but it can usually be corrected by /cleanautocompletecache.
    Granted, the autocomplete cache gets corrupted sometimes, but it seems to happen a lot for us. I have noticed that often more than one user experiences the problem at the same time, and, since the problem starting after upgrading Exchange, I suspect that
    the issue is with Exchange and not Outlook. Yesterday three users complained about the cache at the same time.
    I know how to get a broken cache going again - that is not the issue. The issue is keeping this from happening so often.
    Anyone out there able to help?
    Thanks!
    /Anders

    Hi ,
    Based on my knowledge , when you tried to send an email to a recipient in the same exchange organisation then the recipient address will be resolved in to legacy dn value and then that email will be delivered to destination mailbox by pointing towards to
    that legacy dn value.
    For the external recipients exchange user the smtp address to get it delivered.
    For your issue :
    Based upon the NDR message , we need to covert those values in to x500 format and add it to respective recipient mailbox as an x500 address.Then These erorrs will happen if the x500 value of the destination recipient is not available on it's maibox
    and that would be the cause of the NDR for most of the times.Some time as you said autocomplete cache would get corrupted on the client end but it is very rare.
    How to convert NDR to x500 address format :
    http://msexchangeguru.com/2012/03/15/x500/
    How to avoid getting such kind of NDR'S :
    https://www.simple-talk.com/sysadmin/exchange/exchange-e-mail-addresses-and-the-outlook-address-cache/
    In case if you don't want the users to use the autocomplete cache when composing the new emails :
    In group policy we can use the  office templates to disable the below mentioned option.
    1.use autocomplete to suggest the names ---> this option will comes under the advanced settings on the outlook client.
    In case if you don't want the users to use the autocomplete cache when composing the new emails as well as if you wanted to delete that autocomplete then you need to choose one more option along with the first one.
    1.Empty autocomplete cache.
    Please reply me if anyhitng is unclear.
    Thanks & Regards S.Nithyanandham

  • Error  while assigning resultset value to Querytable variable in Coldfusion 10

    We are upgrading from coldfusion 8 to 10. Internally we were using java function to to get the data.
    In java function we have a resultset object, if we assign this resultset value to Querytable variable, we are getting below error. This code was working fine in coldfusion 8.
    Detail    This exception is usually caused by service startup failure. Check your server configuration.
    Message    The Runtime service is not available.
    StackTrace    coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Runtime service is not available. at coldfusion.server.ServiceFactory.getRuntimeService(ServiceFactory.java:117) at coldfusion.runtime.RequestMonitor.<clinit>(RequestMonitor.java:14) at coldfusion.sql.QueryTable.populate(QueryTable.java:358) at coldfusion.sql.QueryTable.populate(QueryTable.java:283) at coldfusion.sql.QueryTable.<init>(QueryTable.java:96) at com.myCompany.myClass.myFunct(myClass.java:627) at
    Here is the function which is causing error.
    static private QueryTable myFunct(String userId, SessionFactory sf) {
            PreparedStatement pStmt = null;
            ResultSet rs = null;
            QueryTable ret = null;
             try{
                Query q = sf.getCurrentSession().getNamedQuery("ListUsers");
                pStmt = sf.getCurrentSession().connection().prepareStatement(q.getQueryString());
                rs = pStmt.executeQuery();// works fine till here
                ret = new QueryTable(rs);  // error line         
                rs.close();
            }catch(Exception e){
                e.printStackTrace();
                throw new RuntimeException(e.getLocalizedMessage());
            return ret;
    Can you provide some help on this. Please let me know if you need any other details.

    We have found this error is logs
    coldfusion.runtime.Encryptor$InvalidParamsForEncryptionException: An error occurred while trying to encrypt or decrypt your input string: The input and output encodings are not same..
        at coldfusion.runtime.Encryptor.decrypt(Encryptor.java:303)
        at coldfusion.runtime.Encryptor.decrypt(Encryptor.java:284)
        at coldfusion.runtime.CFPage.Decrypt(CFPage.java:5353)
        at coldfusion.runtime.CFPage.Decrypt(CFPage.java:5326)
        at coldfusion.runtime.CFPage.Decrypt(CFPage.java:5458)
        at com.vmware.vcp.service.impl.EncryptColdFusionImpl.decrypt(EncryptColdFusionImpl.java:65)
        at com.vmware.vcp.web.servlet.ApplicationConfigServlet.initEmailService(ApplicationConfigSer vlet.java:119)
        at com.vmware.vcp.web.servlet.ApplicationConfigServlet.init(ApplicationConfigServlet.java:51 )
        at javax.servlet.GenericServlet.init(GenericServlet.java:160)
        at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121)
        at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5001)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5278)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1525)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1515)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)

  • Error Occured while processing a Request-openning a another coldfusion page from old page link

    in one page there is dynamic link in that i want to open anather page...
    code is compiled ok and page is at place where i refered a link but it gives error 'error occured while processing a request'
    Error Diagnostic Information
    An error has occurred.
    HTTP/1.0 404 Object Not Found
    this error shows please help me...
    i am new in coldfusion.
    Thanks.

    Hi Salvatore,
    This is a very wide error. You did not provided any other info as specified by Michael. Just a wild guess, this sort of error occurs generally when classpath or java_home properties are not set correctly. But, as i said it is very wide, some more info will be useful.
    Regards
    Chander Kararia

  • ColdFusion 11: cfclient in the context of the CFML language, not the tooling

    G'day:
    I am reposting this from my blog ("ColdFusion 11: <cfclient> in the context of the CFML language, not the tooling") at the suggestion of Adobe support:
    @dacCfml @ColdFusion Can you post your queries at http://t.co/8UF4uCajTC for all cfclient and mobile queries.— Anit Kumar Panda (@anitkumar85) April 29, 2014
    I have edited this in places to remove language that will be deemed inappropriate by the censors here. Changes I have made are in [square brackets]. The forums software here has broken some of the styling, but so be it. There is worthwhile discussion in the comments of the article on my blog: perhaps go have a read.
    G'day:
    This article could end up being a complete waste of space, as I am operating under more real-world re-interpretation of the raison d'être of <cfclient>, as described by Ram:
    ColdFusion [11] has added support for client side CFML (<cfclient>) and this code is translated to JavaScript
    Mike Henke has pointed out that the first part of this "CF11 has added support for client-side CFML" is actually ******** (my wording, not his):
    "ColdFusion Splendor has added support for client side CFML" is probably phrased wrong and gave me flash backs to VBScript or CFML running in the client browser.
    Maybe this is better verbiage. "ColdFusion Splendor has added support for CFML to generate JS".
    Because... there's not such thing as "client-side CFML". That would imply CFML actually running on the client (ie: the browser, or the mobile device, as is the target of <cfclient> as a concept). This is absolutely not true. I know Ram went on to qualify what he meant there, but the messaging from Adobe on <cfclient> has been inaccurate. Possibly I think to the point of actual misrepresentation (in the legal sense, I mean).
    What <cfclient> does is... convert CFML code to JavaScript. So let's look at that idea.
    Why I say this article could be a complete waste of space is that I dunno if this is the intent of <cfclient>; because, really, the messaging from Adobe as to what <cfclient> is for is very muddied. In general the narrative about it is bundled-in with various features of ColdFusion Builder 3.0, in regards to mobile application creation and packaging (and debugging, and all sort of stuff that sounds quite nice but I don't care about as I don't use CFB).
    However <cfclient> has to stand on its own merit in the CFML language, completely decoupled from CFB features. And as far as I can tell, Mike is right: as far as CFML goes, <cfclient> is a tag which tells ColdFusion to - instead of compiling to byte code - compiles the enclosed CFML code to JavaScript instead.
    This of course just sets my alarm klaxons going.  Because Adobe are (I choose my words carefully) [not very good] at converting CFML to client-side code. This has been borne out by <cfform>, <cflayout>, <cfpod> etc. Back in the days of CFMX7 the "CFML-to-client-side" wizards had some merit, because the client-side arena was still immature, and the team at Macromedia actually had some exposure to the idea of "website development", so they knew where the pain points were that they could possible ameliorate. Times have changed, and the client-side of things is probably now more mature an environment than CFML is - Javascript is probably are more coherent language than CFML is, now - and it is very very very clear that the current Adobe ColdFusion Team don't know the first thing about web development (they can't even write decent CFML for their own documentation, before we get onto how they'd be doing web work!), so they are completely out of their depth when it comes to addressing pain points that web devs might have these days. Not only have they not walked a mile in a web dev's shoes, they don't even - as far as I can tell - know what shoes are, or why someone would be wearing them.
    And <cfclient> is a far more "meta" solution than <cfform> or <cfpod> were... at least the CFML-to-client-side solution there had a tangible target in mind. <cfclient> has removed the targets, and is just a tag designed for converting general CFML to general JS. Yikes.
    600-odd words in, here's some code. This is the first-ever code I have written using <cfclient>:
    <cfclient> <cfset msg = "G'day World"> <cfoutput>#message#</cfoutput> </cfclient>
    So I'm off to a false start: I admit I'm sitting in the pub and I've had a few pints (probably four, I guess; this is "having some drinks before deciding to actually drink this evening" sort of level for me), and I inadvertently [messed-up] my variable names here. And this did not yield a compile error. The error just fell through to JS, where it did error
    Uncaught ReferenceError: message is not defined gdayWorld.cfm:4
    If, in contrast, I tried this in CoffeeScript, I'd get this:
    coffee> msg = "G'day world"
    'G\'day world'
    coffee> alert msg
    undefined
    coffee>
    alert message
    ReferenceError: message is not defined
        at eval (eval at  (http://larryng.github.io/coffeescript-repl/js/main.js:96:26), :1:9)
    Important note: I know nothing about CoffeeScript - it seems like a solution to a non-existent problem to me - so I just googled "hello world coffeescript" and REPLed the code on http://larryng.github.io/coffeescript-repl/.
    The point is here is that ColdFusion, during the "compile" process should actually notice I am referencing a variable that doesn't exist. I'm OK with this being a runtime error in the normal CFML-compile process, because there could be many moving parts (and other files) involved in the runtime environment, but I don't think this is a valid notion with <cfclient>? Or maybe it is?
    Update:As Ray points out and Aaron agrees with below: I was being unduly harsh here... it's entirely reasonable for variables to be declared in other JS code elsewhere in the response.
    Anyway, once I actually write my code properly, I get this:
    G'day World
    On the screen. What CF actually sends back in the response is this:
    <script type="text/javascript" src="/CFIDE/cfclient/cfclient_main.js"></script> <script type="text/javascript" src="/CFIDE/cfclient/cffunctions.js"></script> <meta name="viewport" content="width=device-width"> <script type='text/javascript'>globalDivStruct=null;var _$gdayWorld_func=function(){var self=this;var variables={};self.__init=function(){var localdivstruct=globalDivStruct;var __output_var="";var tmpVarArray={};message="G'day World";localdivstruct.outputvar+=message;return""}}; function __startPage__$gdayWorld(){document.write("\x3cdiv id\x3d'__cfclient_0'\x3e\x3c/div\x3e");window.ispgbuild=false;var clientDivStruct={divId:"__cfclient_0",outputvar:""};globalDivStruct=clientDivStruct;try{_$gdayWorld=new _$gdayWorld_func;_$gdayWorld.__init()}catch(__eArg){if(__eArg!=="$$$cfclient_abort$$$")throw __eArg;}__$cf.__flush(clientDivStruct)}__startPage__$gdayWorld(); </script>
    [Blimey]. To output a string variable? Really? That's what you compile my CFML down to?
    Gobsmacked.
    And [forget] emotive things like "gobsmacked"... if one looks at the size of the response, it's 128kB to represent "G'day World" on the screen. 128kB might not be a great deal these days when it comes to a web page, but when it comes to rendering "G'day world", it's lunacy. And on a mobile phone - which intrinsically might be in an area in which one is paying a premium for data - it's just irresponsible. This is before we get to the point that it seriously should not take 128kB of data to render 11 bytes.
    Blimey. To be honest I was gonna try some more tricky CFML and see how it compiled, but I've run out of will to live (and I have to concede the beer is getting the better of me, and my laptop battery is almost dead). I'll continue this, but I will let this article stand or fall on its own merit; something <cfclient> certainly seems to be unable to do, thusfar.
    I'll be back on the case with this tomorrow.
    Adam

    The functions defined in the cffunctions.js are not namespaced. If it is namespaced, you would have to add the namespace while using a function inside cfclient.
    These functions are not namespaced, so that you can use the same syntax for using a function inside and outside the cfclient block.
    This is indicative of everyone's concern that you guys would just implement / encourage poor practice in your <cfclient> implementation.
    How is it - given you're "compiling" the CFML anyway - you cannot translate source code that says "listlen()" into "compiled" JS that is CF.listLen() or something? Thus good CFML can be translated into good JS.
    You seem to think that there's a one-to-one mapping between what the CFML says and what the resultant JS needs to be.
    You've basically written a mechanism for a CFML developer to write bad JavaScript.
    Well done.
    Adam

  • Norton Toolbar does not autocomplete afer sync'ing with Firefox 8.0.1 or 9.0.1

    I recently dl'd all of the Norton 360 v5.0.1.29 Liveupdates and synced everything to expose the latest Norton toolbar add-in. When I try to sign into any saved web page such as my email account, neither of the apps. are auto completing the form with userID and password details!?? Can someone help me ressolve this issue?
    Thanks . . .
    TomJ

    No I am talking about the functionality of using Norton to autocomplete my signin details such as USERID and PASSWORD information that is usually required to access a particular website's forums & subscriber features.
    Thanks . . .
    TomJ

  • Packaged ColdFusion 9 Datasources not importing to ColdFusion 10 64-bit on another computer

    I installed ColdFusion 10 64-bit on my I new 64-bit work computer. To save time and effort; l decide to use Packaging & Deployment option on ColdFusion 9 32-bit on my old computer to archive all my data sources and deploy on the new server. I selected all the Datasources I wanted to archive (26 of them) without selecting any other settings. The archive file was successfully created and I built the backup file 'C:/Projects/ColdFusion/ColdFusionBak24May2013.car' to copy to my machine. Created achieve file is visible in ColdFusion Archives on my old computer, I can modify it and I deploy it on my old computer but nothing happens when I copy ColdFusionBak24May2013.car file to my new computer and try to deploy it there using ColdFusion 10 64-bit.
    Everything seems to work fine with selecting the file but when I click Deploy Achieve; the process goes through the motion but none of the data sources are added to ColdFusion 10 on the new computer.
    Am I doing something wrong or doesn't ColdFusion 9 (32-bit) Achieve file work on ColdFusion 10 (64-bit)?
    PS: XML file called neo-datasource.xml is located in ColdFusion10\cfusion\lib directory listing all datasources. Would it work if I merge neo-datasource.xml file on my new computer with the one on my old computer instead or not? 
    Any assistance will be greatly appreciated.
    Thank you.

    Have you considered using JDBC rather than ODBC?  I suspect that both Adobe and Microsoft view ODBC as a legacy technology.

  • Install coldfusion ent 64 bit in a distributed environment

    Hi,
    What I am trying to achieve :
    Install CF 80 ent 64 bit in windows server 2003. (server 1)
    MY webserver is is anoter system which is running windows xp
    32 bit. ie my iis is 32 bit. (server 2)
    All my web files and websites(IIS stuffs ) wil be in server
    2. and Jrun will in in server 1.
    What i did:
    1. Installed Cf 80 in server 1. with multiple instance
    support.
    2. copied the connector files from jrun folder of server 1 to
    server 2. and changed few config files
    (This was done by following some docs form net)
    But this method is not working. Please let me know if someone
    have a clear way of doing it or any docs are there.
    I will be so thankfull as I am struck up with this.
    Thanks,
    Dev

    devlosh wrote:
    > Install CF 80 ent 64 bit in windows server 2003. (server
    1)
    > MY webserver is is anoter system which is running
    windows xp 32 bit. ie my iis
    > is 32 bit. (server 2)
    >
    > All my web files and websites(IIS stuffs ) wil be in
    server 2. and Jrun will
    > in in server 1.
    This will not work. All your .cfm files must be on the server
    that has
    JRun (server1).
    In order to set this up:
    1. Install JRun / CF on server1. It is highly recommended to
    choose the
    buildin webserver so you can verify your installation is
    correct.
    2. Copy wsconfig.jar to the webserver on server2. Make sure
    you have a
    JDK installed (same version as CF/JRun uses).
    3. Run wsconfig.jar and specify connection parameters to
    connect to
    server1:
    http://livedocs.adobe.com/coldfusion/6.1/htmldocs/websera7.htm
    4. Plcae your .cfm files in the CF wwwroot
    (...\???.ear\cfusion.war\
    folder) on server 1.
    5. Test.
    This should work, but IIRC Adobe will only support a
    configuration where
    you also have your CF code on the webserver and the path to
    your IIS
    wwwroot on server2 is identical to the path to the JRun
    wwwroot on server1.
    Jochem
    Jochem van Dieten
    Adobe Community Expert for ColdFusion

  • Install coldfusion 8 32 bit on 64bit system

    in agreement with docs
    http://kb2.adobe.com/cps/403/kb403277.html#main__Toc193176416
    ("As of ColdFusion 8 Update 1, the Standard Edition can run as a 32-bit application on all supported 64-bit platforms in addition to 32-bit platforms")
    i'm trying to install coldfusion-801-lin.bin on
    a linux 64bit system
    but i receive this error
    [root@lnx1 store]# ./coldfusion-801-lin.bin
    Preparing to install...
    Extracting the JRE from the installer archive...
    Unpacking the JRE...
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...
    strings: '/lib/libc.so.6': No such file
    Launching installer...
    ./coldfusion-801-lin.bin: /tmp/install.dir.9137/Linux/resource/jre/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
    ./coldfusion-801-lin.bin: line 2479: /tmp/install.dir.9137/Linux/resource/jre/bin/java: Success
    =========
    if i tryng to install coldfusion-801 64bit version,
    the serial number is not valid
    (my serial number is CF standard, upg license)
    you can help me?
    many thanks!

    First, it would be a good idea for you to specify what distro of Linux you're using, as not all are supported by Adobe.
    Second, this is probably your problem right here:
    http://askubuntu.com/questions/40416/why-is-lib-libc-so-6-missing
    In a nutshell, CF expects the 32-bit version of libc.so.6 to be in /lib, but it's probably not. You might be able to modify the installer to point to the correct location for that file, or you might be able to create a symlink to the file - but as the above link describes, creating a symlink might have negative consequences.
    As for installing CF 8 64-bit, that's only available with Enterprise, not Standard. If you want CF Standard 64-bit, you need to upgrade to CF 9.
    Dave Watts, CTO, Fig Leaf Software

  • Autocomplete search not working in a visual webpart

    I have a webservice that gives me some data from a sharePoint list.
    I am trying to use that webservice for an autosuggest textbox in a application using jquery.
    i can browse the webservice and invoke the operations directly.
    But i am getting error in the jquery all the time saying 500 internal server error.
    i can browse the web service without any issue if i go to the url.
    here is my code
    **jQUERY**
    $(document).ready(function () {
    $('#<%=txt_search.ClientID%>').autocomplete({
    source: function (request, response) {
    $.ajax({
    url: "/_layouts/service/getdata.asmx/Returndata",
    data: request.term,
    dataType: "json",
    type: "POST",
    contentType: "application/json; charset=utf-8",
    error: function (XMLHttpRequest, textStatus, errorThrown) {
    alert(textStatus);
    minLength:2
    **here is my webservice method code which returns array of strings**
    public string [] Returndata()
    List<String> _data = new List<string>();
    String title = string.Empty;
    String keycontent = string.Empty;
    SPList list = SPContext.Current.Web.Lists.TryGetList("Data");
    foreach (SPListItem _item in list.Items)
    title = (string)_item["Title"];
    _data.Add(title);
    return _data.ToArray();
    if i browse to the method directly like this i can see the array of strings
    http://sharepointsite/_layouts/service/getdata.asmx/Returndata like below
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
    <string>Child Care Assistance</string>
    <string>TANF</string>
    <string>Child Care Subsidies</string>
    <string>Child Care Settings</string>
    <string>Regulation Status</string>
    <string>Family Copayments</string>
    <string>Reasons For Care</string>
    <string>Child Care Development Fund</string>
    <string>ACF-801 Child Care Monthly Case Record Form</string>
    <string>Air Pollutants</string>
    <string>Clean Air Act</string>
    I am struggling why i am having an error any help
    kukdai

    Hi,
    If you only want to get data from list and achieve the
    Autocomplete search function in SharePoint 2013, we can use SharePoint REST API and jQuery to achieve it.
    Here are two blog for your reference:
    Working with SharePoint list data - OData, REST and JavaScript
    http://www.plusconsulting.com/blog/2013/05/crud-on-list-items-using-rest-services-jquery/
    Using jQuery UI autocomplete with the REST API to get search results in the search box
    http://blogs.msdn.com/b/murads/archive/2013/02/20/using-jquery-ui-autocomplete-with-the-rest-api-to-get-search-results-in-the-search-box.aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

Maybe you are looking for

  • IPod Touch will not sync or charge on PC

    Hi, This is the first issue I've ever had with my iPod Touch and I've had it for over three years. When I go to plug in my iPod Touch to the computer, the computer will beep at me saying that something is connected to the USB port but my iTunes won't

  • What is use of Read-Text  command in Sapscript  plz replay

    What is use of Read-Text  command in Sapscript  plz replay i m geting problem with read-text command in sapscript as will as perform and endperform .

  • Cannot run zpool (zfs feature) command in Solaris 10 6/06

    Hi, I couldnt run ZPOOL command in Solaris 10 6/06. It said command not found. May I know what should I do? My Solaris 10 version provide Solaris zoning features, but no ZFS feature provided. How?

  • Problem in opening the pc

    I  could not start my PC at the first attempt. It shows error . A few days ago I contacted HP support sevice ,they solved the problem through remote control. But it occured once again. What to do.

  • Restart the Java-Engine in a dual stack installation (java+abap)

    Hi, how is it possible to restart or start only the j2ee-engine in a dual stack installation. We have a JAVA- and a ABAP-Stack and want only restart the JAVA-Stack. In windows i can use the MMC of SAP but how is it possible in UNIX. regards, sharam