Unique ID's in ColdFusion 8?

What tools are available to create UNIQUE ID's for an application?
I know in ColdFusion we can use CreateUUID() but this generates a string that is very long.
What I want to be able to do is create a string of say no more than 6 characters long that can be considered unique for a number of records that could reach the millions.
For example, the website TinyURL seems to do this quite well with a link like the following:
http://tinyurl.com/dlz23k
How do you think they ensure it's uniqu everytime??
Cheers,
Mikey

I've done quite a bit of research on URL shortening due to a customer's desire. After review of 8th grade math (permutations and combinations), there are two solutions to URL shortening. These schemes assume that the URL cannot be recycled and put back into circulation.
Base 36 - a 6 character URL key consisting of letters a-z and 0-9 for a total of 36 characters, and hence base 36. (26 characters (a-z) and 10 digits). This scheme provides  2,238,976,116 unique URL keys ((36^7-36)/35). Notice, this is case-insensitive. For example, http://foo.com/?ItsMagic and http://foo.com/?itsmagic resolve to the same real URL. If over 2 billion URLs is sufficient, this scheme is for you.
Base 62 - a 6 character URL key consisting of letters a-z, A-Z, and 0-9 for a total of 62 characters (26 +26 + 10 = 62). This scheme provides 57,731,386,986 ((62^7-62)/61) unique URLs. For example, http://foo.com/?ItsMagic and http://foo.com/?itsmagic resolve to DIFFERENT real URLs. If over 5 billion URLs is sufficient, this scheme is for you. (ref: http://www.bennadel.com/blog/1540-Converting-Numbers-To-A-Character-Set-Based-Radix-Using- ColdFusion.htm)
Scheme 1 code:
        <!--- number of times to try getting a unique suffix before quiting --->
        <cfset var tries = 10>
        <!--- current number of trys --->
        <cfset var trycnt = 1>
        <!--- flag that suffix is unique --->
        <cfset var isunique = false>
        <!--- try to generate a random url suffix --->
        <cfloop condition="(not isunique and trycnt lte tries)">
            <!--- number of epoch seconds --->
            <cfset epochs = DateDiff("s", "January 1 1970 00:00", Now())>
            <!--- the suffix is a base 36 number --->
            <cfset suffix = FormatBaseN((RandRange(1,100000000) + epochs),36)>
            <!--- make sure this URL key is unique among those already created --->
            <cfset isunique = URLDAO.isURLUnique(this,suffix);
            <cfset trycnt = trycnt + 1>
        </cfloop>
Scheme 2 code:
See http://www.bennadel.com/blog/1540-Converting-Numbers-To-A-Character-Set-Based-Radix-Using- ColdFusion.htm)

Similar Messages

  • How to put a background image in coldfusion page?

    Hi all,
    I have created number of coldfusion pages,i would like to have a background image for them either unique or different images.
    So i have created a style.css and added a line for background image like
                        background-image: url(/images/nature.jpg);
    But it doesn't works.
    Even i tried this by giving in head section of all my cfm pages but it doesn't work.
    Also i have used
    <head>
         <style type="text/css">
              html {overflow-y:hidden;}
              body {overflow-y:auto;}
              #page-background {position:absolute; z-index:-1;}
              #content {position:static;padding:10px;}
         </style>
    </head>
    <body>
         <div id="page-background"><img src="images/sri.jpg" alt="Smile"></div>
             <div id="content">
                  This is body content
             </div>
    </body>
    but the alt value 'smile' only appearing not the image.
    I'm working on CFBuilder.
    Both firefox and IE not displaying the image
    Any help appreciated,
    Chandru P

    The fact that this is in a CF template is neither here nor there (other than the caveat about # as the other person said).
    All CF does is generate mark-up.  The mark-up is sent to the browser, and the browser renders it.  So if your browser isn't rendering your image assets, it's because it can't find them.
    I suspect your URLs are wrong.  Are you getting 404s for the image URLs?
    One thing to bear in mind is that URLs to resources are not relative to the CFM template they're in, they're relative to the URL the client requested, which are not necessarily (indeed very infrequently ~) the same.
    Adam

  • Issue modeling data from Coldfusion cfc

    Problem:  Configure return type in  Flash Builder  (using with Coldfusion) Mysql 5 driver (testing using localhost with CF also acting as the web server)
    I have tried going thru the steps presented in the video presentations for hooking Flash Builder to Coldfusion query data.  I provide a name for a Custom data type, provide variables (that are optionally required by the CFC), and then proceed.  The operation comes back with the following message.
    The operation returned a response of the type "Object"
    You may either update server code to fix the return data or CLICK OK to set "Objecdt" as the returntype of this operation
    In all of the videos I have watched, Flash Builder auto-magically introspected the table that was being called and knew the data types of  each piece of the data returned by the  query. In my case, I get the above message and cannot proceed.
    CFM Testing
    I have tested the query by calling the CFC method via a coldfusion page and dumping the result.  Everything is works with that.
    Action:
    I would like to get past the problem and learn what if anything I am doing wrong with this.  Your input is appreciated.  I have been learning CF and am getting pretty comfortable with that product. I would like to move forward with Flash Builder. I have some basic knowledge of Flex 3.
    Thanks for your help
    Background:
    CFC signature
        <cffunction name="getJewels" access="remote" returntype="any">
            <cfargument name="jType" type="string" required="no" />
            <cfargument name="jActive" type="boolean" required="no" />
            <cfargument name="jOrder" type="boolean" required="no" />
    Server Settings > Settings Summary
    Report generated on Jul 08, 2009 11:07 AM
    This report shows the status of all ColdFusion configuration settings. To display the area of the ColdFusion Administrator where you can edit the group settings, click any of the groups in the report.
    Version Information
    Server Details
    Server Product
    ColdFusion
    Version
    8,0,0,176276
    Edition
    Developer
    Serial Number
    Operating System
    Windows XP
    OS Version
    5.1
    Adobe Driver Version
    3.6 (Build 0017)
    JVM Details
    Java Version
    1.6.0_01
    Java Vendor
    Sun Microsystems Inc.
    Java Vendor URL
    http://java.sun.com/
    Java Home
    C:\ColdFusion8\runtime\jre
    Java File Encoding
    Cp1252
    Java Default Locale
    en_US
    File Separator
    Path Separator
    Line Separator
    Chr(13)
    User Name
    SYSTEM
    User Home
    C:\
    User Dir
    C:\ColdFusion8\runtime\bin
    Java VM Specification Version
    1.0
    Java VM Specification Vendor
    Sun Microsystems Inc.
    Java VM Specification Name
    Java Virtual Machine Specification
    Java VM Version
    1.6.0_01-b06
    Java VM Vendor
    Sun Microsystems Inc.
    Java VM Name
    Java HotSpot(TM) Server VM
    Java Specification Version
    1.6
    Java Specification Vendor
    Sun Microsystems Inc.
    Java Specification Name
    Java Platform API Specification
    Java Class Version
    50.0
    This is the dataset I am trying to get at.
    dstones
    CF data source name
    dstones
    Description
    Dancing stones databases
    Driver
    MySQL5
    JDBC URL
    jdbc:mysql://localhost:3306/hmsollie?
    Username
    root
    Login timeout
    30  seconds
    Long text buffer size
    64000
    Timeout
    1200  seconds
    Maintain connections
    Yes
    Interval
    420  seconds
    Restricted SQL operations
    Disable connections
    No
    Data & Services > Flex Integration
    Enable Flash Remoting support
    Lets a Flash client connect to this ColdFusion server and invoke ColdFusion Components (CFCs).                NOTE: Disabling this feature also disables ColdFusion server monitoring and multiserver monitoring.
    Enable Remote Adobe LiveCycle Data Management access
    Lets LiveCycle Data Services ES connect to this ColdFusion server through RMI                and use CFCs to read and update data that supports a                Flex application. If you are not using this feature, disable it.                This does not affect LiveCycle Data Services ES integrated in to the ColdFusion installation.
    Server Identity:
    If you are running more than one instance of ColdFusion on this machine, you must           configure each instance with a unique ID.
    Enable RMI over SSL for Data Management
    Lets you use Secure Socket Layer (SSL) encryption for the RMI communication between Flex and ColdFusion.                This is not required unless you are transmitting authentication information or confidential                data between Flex and ColdFusion over an unsecured network. You must provide a keystore file and keystore password.                For instructions on how to create a keystore file, see the online Help.
    Full path to keystore:
    Keystore password:
    Select IP addresses where LiveCycle Data Services are running
    To secure the LiveCycle Data Services ES integration point, the hosts that are allowed to perform Data Management operations are restricted. If you are running LiveCycle Data Services ES on a different computer, specify its IP address here. By default, only the local computer can perform Data Management operations in ColdFusion.
    IP Address
    View or Remove selected IP addresses where LiveCycle Data Services ES are running

    Sunil,
         I have found the problem. When initialy given the arguments list to fill in "Configure Return Type", I filled in a string argument as "E".  This gives a return of object.  To accurately use the Configure Return Type, I needed to just fill in a string as E.
    See the Screen Prints on the error
    I have tested the following functionality and it appears to work ok
    1.  I have tested with no parms to the CFC query method
    2. I have tested  using Dynamic SQL based on variables set before the query in a  CFC method
    3. I have tested passing one string argument in from Flash Builder  to a CFC method
    4. I have tested passing a string and boolean argument From Flash Builder to a CFC method
    For 3 and 4, I had make some slight changes o set the arguments that were being sent to CFC in Flash Builder before the call
    It all worked.
    **** New Issue ***
    I have another runtime issue involving states that I uncovered in my testing where buttons are the screen were being covered up when I used some of the DataGrid Controls.  If I can repeat it, I will post it and then let you guys let me know how to work around this.
    I am a Flex/AS Novice, so I may be mis-understanding something on this new issue.
    Thanks.

  • What do I need to build & deploy a Flex/Coldfusion standalone app?

    I have been a CF developer for almost 10 years, but have no experience with Flex. I have a new opportunity to create Windows-based standalone applications. I have investigated .NET and I am not impressed as it just seems to be needlessly complex and bloated. Instead, I am considering leveraging my CF experience and taking a serious look at Flex with ColdFusion.
    My application needs to run on PCs that are located on boats at sea. Their only connection to the Internet is via a satellite modem. The standalone app. needs to have data entered, which is stored in a local database. When the skipper is ready, he/she will switch the modem on, transmit the saved data (takes about 10 seconds) and switch the modem off. This means that the application code, runtime environment, database, and services (e.g. ColdFusion cfcs) must all be loaded on the PC. Also, I do not want the application to run in a web browser (many boats have old versions of Windows and IE).
    I understand that I should be able to do this by using the AIR runtime.
    Here are my questions/challenges:
    1.) The application itself must be provided free of charge. Would I be required to purchase a ColdFusion licence for each installed copy of the application?
    2.) If I would have to pay a licensing fee for each CF installation, will Flex 4 work with an open source CF engine such as Open BlueDragon or Ralio instead?
    3.) Any suggestions regarding the database that I should use (e.g. Derby, H2, SQL Server Express)?
    4.) Installation must be simple. Skippers must be able to download an installation file (e.g. an .exe) and run it. The install program must install the database, the latest Flash player for Windows, the CF engine, and the generated .swf files, cfc files, etc. Can all of this be bundled up when FlashBuilder and/or AIR prepares an application for deployment? When the application is run, it must start the database engine and the CF engine in addition to the Flash front-end.
    I'm eagerly await your answers with fingers crossed. This project has the potential to create a very cool, unique application!

    Hi Paul, thanks for the quick reply.
    We have created the onboard app., but not in Flex. It is written in ColdFusion (version 8) with AJAX and uses an Apache Derby database and Open BlueDragon as the CF engine. The whole thing runs in a browser onboard. We had a custom Java launcher written. It starts the database and Open BlueDragon and then launches the PC's default browser with the localhost URL of the application home page. The biggest drawback with this whole approach has been browser compatibility. Some boats still use IE version 6. Our application simply won't work on versions IE prior to 7.0. It also takes quite a while for the launcher to start up all of the related applications, etc. The application runs more slowly than it would as a desktop application since web pages have to load as the user moves from one screen to another.
    I am investigating whether we should re-write our application from scratch using Flex/AIR. My hope is that that we can put together all of the parts of the application in a single, standalone environment. Through some investigation, I have just realized that AIR includes SQLLite, so we won't need a separate database/launcher. We also won't need to use AJAX since the Flash will provide a UI that has all of the flexibility that we'll need. I also assume that the AIR runtime will include a standalone Windows Flash Player, so we don't need to use whatever web browser is on the boats.
    So far, everything sounds great. My only remaining question is whether I could create the data access services as ColdFusion CFCs without having to install ColdFusion on the onboard PCs. I've been looking through the Adobe literature and it seems to imply that AIR can use ColdFusion 9 CFCs without CF being installed, but I cannot find a definitive statement on this. If this is the case, I will download CF 9, CF Builder, Flash Builder, and AIR and start learning and building right away.

  • How to Generate Unique Cache Keys?

    I'm trying to improve the performance of my ColdFusion 10 application by making better use of caching.  I have a particular DAO/Gateway CFC that queries a particular database.  I added query caching to the query in this CFC and it made a huge difference.
    Since this database is outside my control for edits/updates, I need to be able to initiate flushing of the cached queries for this database only.  I don't believe the built-in ColdFusion ehcache query cache allows for granular control of flushing - in CF Administrator you pretty much can only flush the entire cache.
    So I figured the only solution was to create my own cache region that would be associated with just this database, and manually cache the queries into that region.  Then I can flush just that region without impacting any other cached queries.
    So here's my difficulty:  I believe that Internally, ColdFusion caches queries using a hash of the generated SQL.  I'm thinking I'll store my queries in cache with a key that hashes the input parameters.  Would the built-in Hash() function be the appropriate mechanism to create cache keys that are unique for each parameter combination?  Does it matter what algorithm I use with Hash()?
    Thanks,
    -Carl V.

    Sorry, didn't see your original question! You might be better asking this on StackOverflow, as there's more people who have more experience with CF keeping an eye on the questions there.
    What I can offer is that MD5 hashes are not guaranteed unique for different input strings. It's unlikely to happen, but it can happen. I think - but am not sure - more "thorough" hashing algorithms might be more likely to have a higher degree of uniqueness.
    That said, the general approach is how these things are generally done.  And it's very very unlikely that you'll ever come to use a combination of elements contributing to the key that will generate a hash that you've already used for something else.
    Adam

  • Unique Identifier Variables

    I am calling a coldfusion remote object, and I wish to take a variable that is stored as a unique identifier and pass it in my flex app. Here is the error I presently get, attempting to store it as a string.
    [Macromedia][SQLServer JDBC Driver][SQLServer]Syntax error converting from a character string to uniqueidentifier.

    That's definitively an error regarding a SQL query. Do you use 
    cfqueyparam?
    Sincerely,
    Michael
    Sent from my iPhone
    El 10/07/2009, a las 11:28, Leonard Rockstein MD <[email protected]
    escribió:
    >
    I am calling a coldfusion remote object, and I wish to take a 
    variable that is stored as a unique identifier and pass it in my 
    flex app. Here is the error I presently get, attempting to store it 
    as a string.
    >
    [SQLServer JDBC Driver][SQLServer]Syntax error 
    converting from a character string to uniqueidentifier.
    >

  • Coldfusion 9 Standard w/Multiple Websites and Rackspace

    Can I host multiple websites (i.e., with unique IP addresses) on 1 install of CF9 Standard?
    I plan to purchase CF9 standard and install it on a Rackspace Cloud Server.
    I have about 5 websites I want to port over from a shared hosting environment.
    Thanks In Advance,
    BlueSpoon

    Josh, Carl, and Adam,
    Thanks for trying to answer my question.
    My question boils down to this: Can I host multiple websites (i.e., each with their own unique IP addresses) on 1 install of CF9 Standard on a single Cloud Site?
    According to Carl, this can be configured in IIS so I believe the technical issue is resolved.  So my next issue is if this would be ok with Adobe? Would I be breaking their licensing terms by having 5 (or even 20) sites using 1 install of CF9 Standard on a single cloud site?
    My question arrose b/c reading this: http://www.adobe.com/products/coldfusion/pdfs/cf9_feature_comparison_matrix_ue.pdf . I interpreted this as multiple sites can only be done wiith CF 9 Enterprise edition.
    Thanks in advance for the advice.
    Bluespoon
    Slighty Off Topic But Relevant:
    @Josh.. Not sure if you're an Adobe employee, but my questions are valid and legitimate pre-sales questions. I'm just an individual not a large corporation. So before I plunk down $2,000 for CF9,  I need to know if I can legally (and technically) host multiple websites on 1 CF9 Standard license. I'm sure Adobe can afford to hire at least 2 guys to answer questions from budding entrepreneurs and small busineses. At the very least it's good customer service. Even Cisco has a dedicated support team for small business. It's ridiculous that I can't even speak (or even email) someone at Adobe to get at least "yes" or "no" answer.
    Individual developers are the lifeblood of coldfusion. If it weren't for guys like Charlie Arehart, Dan Vega, Ray Camden, Ben Nadel, etc I assure you that the CF developer community would be much smaller. Last I checked, Univeristy of Wisconsin has not posted any CF tutorials or trips and tricks.
    I've been a Coldfusion fan since 2005. And I've been familiar with it since 1998 while doing contract work with the Fed. So it's like a smack in the face that I am ignored once I'm ready to take the financial risk and pay $2,000 for my own copy of their server software. Developers have other options. Ignoring the devloper base is not the way to go. And that plain sucks. Adobe has really disppointed me. They've let me down.

  • Need help on struts configuration with ColdFusion 10 using IIS

    We need help on struts configuration with ColdFusion 10 using IIS.
    Earlier we were using ColdFusion 8 with IIS 6 for one of our application.  This application internally calls struts. After upgrading to ColdFusion 10 struts calls are not loading. We get 404 error.
    In ColdFusion 8 struts were configured using  actions extension .do in IIS from this file-
    C:\ColdFusion8\runtime\lib\wsconfig\jrun_iis6.dll.
    But in ColdFusion 10 this file is not present as ColdFusion 10 uses Tomcat in place of Jrun.
    Also there is no information in ColdFusion log file.

    Duane wrote:
    doctormirabilis, Welcome to the discussion area!
    1) how can i configure the time capsule in order to operate as a remote base station synchronizing with the relay using the ethernet port?
    Configure the Time Capsule to act as a bridge (not distributing IP addresses). Also configure the Time Capsule to create an 802.11n wireless network with a unique network name (SSID). That's it.
    2) how can i avoid that my powerbook while accessing my wireless network does connect through the relay station instead of using the time capsule?
    Configure the Time Capsule to use a different network name than the WDS link between the 2 AirPort Express (AX). Configure the PowerBook to use the Time Capsule network.
    There are 2 pieces of information that you should be aware of...
    (1) None of the PowerBooks are capable of 802.11n.
    (2) The WDS link cuts your available bandwidth in half. So the wireless link to your neighbor's has a maximum potential of 27 Mbps.
    Let's for a minute assume that you have a Mac compatible with 802.11n. In your configuration the time you could take advantage of the 802.11n speed is when the Mac is sending/recieving data directly from/to the Time Capsule.
    There would be NO speed increase in Internet access. The speed of Internet access is going to be controlled by the slowest link in the path to the Internet. That is probably the connection to the ISP. The next slowest path is the WDS link to your neighbor's.
    Duane,
    I am in a similar situation, sharing internet with my neighbor. Do you think it would be plausible to hook up a vonage phone adapter to time capsule's ethernet port if time capsule is bridging from my neighbor's router in the configuration you have described? A check of my upload speed shows 1.67Mbps (powerbookG4 w/ airport extreme). Vonage reccommends 90kbps minimum upload speed. Am I going to lose some speed putting the Vonag adapter behind time capsule?
    Thank you

  • Need to encrypt string in ColdFusion and Decrypt in Flex

    My company is developing a standalone, offline Flex/AIR application. When users of the Flex/AIR app. want to activate the application, we will send them an activation file that contains an encrypted string. The string will hold the unique set-up data for the specific copy of the Flex/AIR app. The activation file will need to be generated on our central system which is written in ColdFusion. The Flex/AIR application must read the file and decrypt the string.
    Are there any encryption/decryption options that are compatible with ColdFusion 8 and Flex 4?
    Thanks.
    P.S. The Flex/AIR app. runs offline, so I am not referring to encryption of communications between a ColdFusion server and Flex.

    srikanth n wrote:
    > Can anybody help me to resolve this issue.
    >
    > Thanks in advance.
    >
    >
    My first thought is CF's list functions. You can declare any
    character(s) you want to be a list delimiter. In you example
    I would
    use '-' and 'x' as the delimiter. A couple of examples.
    <cfset phoneString = '123-456-7890 x1234'>
    <cfset delimList = '-x '>
    <cfoutput>
    Areacode: #listFirst(phoneString,delimList)#<br/>
    Exchange: #listGetAt(phoneString,2,delimList)#<br/>
    Number: #listGetAt(phoneString,3,delimList)#<br/>
    Extension: #listLast(phoneString,delimList)#
    </cfoutput>

  • ColdFusion 9 ODBC Server crashes when talking to Sybase over SQL Anywhere 11

    We have recently upgraded our database from Sybase 6 to Sybase 11.  We are also hoping to move from ColdFusion MX 6.1 to ColdFusion 9 in the near future.  In both environments, the ColdFusion ODBC Server enters a state where it is hung and the ColdFusion Application Server needs to restart.  I have been testing in CF9 since it actually gives an error message, where CF6.1 just boots me out to the login page.  Connections are setup using the ODBC Socket in CF Administrator.
    In the ColdFusion 9 ODBC Server debug log we see the following warnings as it is trying to run GetDescribe.
    It appears that it is unable to retrieve Catalog Name, but I don’t know why this would cause the ODBC Server to die.  In Sybase 6, the Catalog Name is blank as well, but there are no warnings either.
    This statement is doing a select * and returning 155 columns.  Following is a successful example where only 4 columns are retrieved.  I could (and have) gone through and chop my select statements, but since this worked in Sybase 6 I wonder if there is a handshaking problem?  I would appreciate any advice on setting up my DSN or ODBC server that may help this issue.
    Thank you for your help!
    Holly Ackerman
    Applications Programmer
    Survey Research Operations – University of Michigan
    ** ColdFusion 9 ODBC Server debug log failure **
    Tue May 11 13:41:58 2010:           SWSOC_CursorVar_DescribeCol entry descIx = 155
    Tue May 11 13:41:58 2010:SQLColAttribute SQL_DESC_CATALOG_NAME sqlRc = 1
    Tue May 11 13:41:58 2010:           SWANDBSRVC_OdbcError entry
    Tue May 11 13:41:58 2010:           SWSOC_OdbcErrorWithState entry
    Tue May 11 13:41:58 2010:Diagnostics (Warning) added: message:[01004][ODBC Socket][Sybase][ODBC Driver]Data truncated;code:0;component:6;function:10;row:0;column:0
    Tue May 11 13:41:58 2010:           SWSOC_OdbcErrorWithState exit
    Tue May 11 13:41:58 2010:           SWANDBSRVC_OdbcError exit
    Tue May 11 13:41:58 2010:           SWSOC_CursorVar_DescribeCol exit
    Tue May 11 13:41:58 2010:SWANDB_GetDescribe exit
    Tue May 11 13:41:58 2010:The active request for session 8 is interrupted due to an unexpected exception
    Tue May 11 13:41:59 2010:SWANDB_FreeVariables entry
    Tue May 11 13:41:59 2010:SWANDB_FreeVariables exit
    Tue May 11 13:41:59 2010:SWANDB_Close entry
    Tue May 11 13:41:59 2010:SWANDB_Close exit
    Tue May 11 13:41:59 2010:SWANDB_Logoff entry
    Tue May 11 13:41:59 2010:Abnormal logoff detected (caused by crash, kill, ...)
    Tue May 11 13:41:59 2010:Logoff behaviour not set, using database default
    Tue May 11 13:41:59 2010:SWANDB_Logoff exit
    ColdFusion 9 ODBC Server dump file:
    //=====================================================
    Tuesday, May 11, 2010 1:41:58 PM ACCESS_VIOLATION
    Stack Dump:
    PC:7C82CAC2-Seg:1;Off:0002BAC2-RtlDeleteCriticalSection+11A
    PC:7C833A52-Seg:1;Off:00032A52-RtlGetFullPathName_UstrEx+16D
    PC:7C82B61B-Seg:1;Off:0002A61B-wcscpy+180
    PC:0046F5AB-Seg:1;Off:0006E5AB
    PC:0046F5CD-Seg:1;Off:0006E5CD
    //=====================================================
    When I look at the ODBC Server debug log for other GetDescribe statements on the same table, the same warnings appear, and the catalog name is blank, but it seems to proceed fine from there.  In the example below, I limit the select to 4 columns.
    ** ColdFusion 9 ODBC Server debug log success **
    Tue May 11 13:41:37 2010:           SWSOC_CursorVar_DescribeCol entry descIx = 4
    Tue May 11 13:41:37 2010:SQLColAttribute SQL_DESC_CATALOG_NAME sqlRc = 1
    Tue May 11 13:41:37 2010:           SWANDBSRVC_OdbcError entry
    Tue May 11 13:41:37 2010:           SWSOC_OdbcErrorWithState entry
    Tue May 11 13:41:37 2010:Diagnostics (Warning) added: message:[01004][ODBC Socket][Sybase][ODBC Driver]Data truncated;code:0;component:6;function:10;row:0;column:0
    Tue May 11 13:41:37 2010:           SWSOC_OdbcErrorWithState exit
    Tue May 11 13:41:37 2010:           SWANDBSRVC_OdbcError exit
    Tue May 11 13:41:37 2010:           SWSOC_CursorVar_DescribeCol exit
    Tue May 11 13:41:37 2010:SWANDB_GetDescribe exit
    Tue May 11 13:41:37 2010:SSP OUTPUT
    ===================================
      sspVersion:9
      error     :1
      CHAIN
        num:4
        subPacketError:0
      OPEN
        stmtRefnum:3
      EXECDIRECT
        row count        :-1
        result available :1
        transaction     
        output available :no
      GETDESCRIBE
        numDescs:4
        (logging describe cursorvar:1)
        auto unique   :no
        case sensitive:no
        catalog name  :
        money         :no
        label         :npreferenceid
        length        :5
        name          :npreferenceid
        nullable      :no
        scale        
        schema name   :DBA
        searchable    :searchable
        table name    :<table name successfully displayed here>
        type          :numeric
        type name     :numeric
        unsigned      :no
        updatable     :yes
        encoding      :

    Thank you for your help.
    Unfortunately, we can't use the Sybase DSN that is bundled with ColdFusion.  We had a Sybase expert in house, and that connection is to a different type of server.  We need a SQL Anywhere DSN.  We did speak with him about using the native driver, but he thinks that may not work correctly for us.  I am at the stage where I want to try everything though, so I will give this a try.

  • Installing coldfusion with jrun4 and Apache2

    Hi everyone,
    I want to install Cold Fusion 7.02 within Jrun 4 (already
    installed) and with apache 2 (already installed)
    basically I want all my cold fusion files (like cfide and my
    websites) to be in the apache 2 htdocs folder (/opt/apache2/htdocs)
    I am using Solaris 10 (Sparc edition)
    I am unable to find any documentation on how to do this. the
    one good documentation I found places the htdocs somewhere that I
    do not want to use.
    Can anyone point me into the correct area?
    I have already installed cold fusion and created the WAR
    file.
    Thank you
    Luc

    Assume a website name Test1 that is on Apache2 and you want to run it with CF 10 standard and a website name Test2 that is present in IIS which you also want to run with this CF 10 standard.
    So yes, it is possible. Every website that you configure individually with IIS has  a unique folder name (say 1, 2, 3 and so on.)
    You need to run the Web Server Configuration Tool (wsconfig.exe) and add the IIS website/Websites one by one  that you want to add. Every website will run with it's connector files present in the number folder 1,2,3 and so on (C:\ColdFusion10\config\wsconfig)
    After 5th minute in this video the same is happening : https://www.youtube.com/watch?v=iHhSPTmRozM
    Now you will need to run the wsconfig.exe and this time choose Apache and add the connector. Follow this video : http://blogs.coldfusion.com/post.cfm/video-configuring-coldfusion-10-connector-with-apache -virtual-hosts
    HTH
    Thanks
    VJ

  • ColdFusion.navigate with POST form submission

    I need to refresh the entire page, so I am not using any div
    on my javascript, I am using the following line.
    ColdFusion.navigate(AjaxFormAction, null, callback,
    errorHandler, 'post', 'LocCondByQtr')
    there is no error but, the whole form is being submit as GET
    not POST.
    I see my form variables in the url, I need those in the form
    scope, any idea where I am doing wrong?
    My form name is "LocCondByQtr" and the action for that page
    is save in "AjaxFormAction" variable.
    I am also using the grid on my form as well.
    Please advise.
    Thanks,

    I believe the answer is that the JSP page after put together with other jsp pages via 'includes' should contain only one <form> tag. The outer most JSP should have the form tag. The inner jsp pages should not. Note all tags on the completed jsp page need to have unique names (to avoid name collisions).

  • 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

  • Unique ID to long

    Hi,
    When trying to access SAP Netweaver Administration, I’m getting the following error message “com.sap.sql.log.OpenSQLException: Cannot assign a java.lang.String object of length 93 to host variable 1 which has JDBC type VARCHAR(50).”
    What I have concluded is, the Unique ID that identifies the user in AD, is to long, it contains 93 characters, and portal application is only expecting 50 maximum. Is this a limitation?
    Thanks & Regards,
    John

    You should find another extranal system id in order to mantain uniqueness, but you could also use the name field (that supports 50 characters), but it deppends of which entity you are using.
    Which is the entity? and...if the only way to insert data is by web services the you could use more than one field to verify uniqueness since you can query more than one field at the time.
    Hope it helps
    Kim.

  • HT202213 I have 3 users on one computer with 3 unique user accounts.  Each have unique ITunes accounts.  How do we share our music libraries using home sharing?

    I have 3 users on one computer with 3 unique user accounts.  Each of us have separate and unique ITunes accounts.  How do we share our music libraries using Home Sharing?  Everything that I can find talks about sharing between networked computers, but this is all on the same computer.  I just want to share between ITunes accounts.  Thanks!

    Hi b noir, I also have two users on one pc with two different iTunes libraries.  But I also want to put them onto an external hard drive so that I can free up some memory on the pc.  So I figure I need to consolidate the two users iTunes libraries first before moving to hard drive?  But not quite sure how to do that on the iTunes 11?  Thanking you in advance!!

Maybe you are looking for

  • Revaluation in stock transfer to Sales Order stock from unrestricted

    User is trying to do a stock transfer posting from unrestricted to Sales order stock.  Now the system is throwing an error saying that account setting has not been done for UMB (OBYC setting).  I have given the GL for this UMB transaction type in OBY

  • ALV Grid throwing dump in total function

    Hi,   My ALV grid program, is working fine in development server, for the total and subtotal function. However, the same program is throwing a short dump in Quality server when we try to get the total.Please help! Regards, Anita Jeyan

  • TS1717 "ApplePhotoStream.exe has stopped working."

    These days when I started my computer, it always appear the message "ApplePhotoStream.exe has stopped working." Even I restart or terminate the program and reopen it, it couldn't help. What should I do to bring it back? Thanks

  • Kernel Panic only at night

    The last four nights I have awoken to a kernel panic attack. I have had none during the day or while running any apps. It only seems to happen sometime in the night while no one is using the computer. I can leave it for hours during the day, and it d

  • Add Header Footer page will NOT show 100% horizontally

    Using Acobat X ver 10.1.13 on WIN 8.1 - new install when trying to use Add Headers Footers , the page will not show the Right side of the HeadersFooters page (pls see image attached) That is as wide as it will go, even on a large external monitor - s