Cfloop issue cf9 to cf10

i have a loop setup on an insert that was running fine on cf9, but on cf10 it is erroring with an "expressions error"
code is:
<cfloop index="x" from="1" to="#cc#" step="1">
<cfif IsDefined("FORM.["Interest" & #x#]") AND FORM.["Interest" & #x#] is 1>
    1
      <cfelse>
      0
  </cfif>
  </cfloop>
it is looping through a form field "Interest1, Interest2, Interest3", etc
cc is the number of form fields
any suggestions appreciated.
thanks.

thanks, but isn't the period necessary to separate the input type from the name of the form, e.g. FORM.Interest1 vs FORMInterest1
If written without the loop, it would be:
<cfif IsDefined("FORM.Interest1") AND FORM.Interest1 is 1>
    1
      <cfelse>
      0
  </cfif>
<cfif IsDefined("FORM.Interest2") AND FORM.Interest2 is 1>
    1
      <cfelse>
      0
  </cfif>
<cfif IsDefined("FORM.Interest3") AND FORM.Interest3 is 1>
    1
      <cfelse>
      0
  </cfif>

Similar Messages

  • Running CF9 and CF10 together on Mac with Snow Leopard

    This may be a very basic question, but I am trying to set up CF10 to run alongside CF9 on a developer installation on my Macbook with Snow Leopard. I can see both administrators, CF9 on localhost and CF10 on 127.0.0.1:8500. It seems that both are runing on JRUN because I can't run CF10 without having CF9 running.
    How do I set up a site to run on CF10 only? I can't figure out how to set up the virtual host files to have the site determine which version to run. If I set up the virtual host in Apache2 httpd-vhosts.conf file, it seems to run the site using CF9 and it breaks because it has to run on CF10. If I set up the server.xml file as if it was using Tomcat, then it seems to break the ability to get to the administrator app in either CF9 or CF10 to run.
    Any ideas out there to help me?

    Do you mean like this? First, copy the URL. Next, open up TextEdit. Here, you can paste the URL. Next, highlight the URL, right click it and select "Make Link". After that, press the arrow key or click in a blank spot on TextEdit. Select the link, and type in the new name of the link. You have now successfully created a hyperlink.

  • Problem installing cf9 or cf10

    I have cf8 installed on windows7 using the built-in sever. I have tried to install cf9 and cf10 using both the built-in server on port 8501 and using my installed apache web sever. I always get the result, can't connect.  I have installed and uninstalled many times to try all the different possibilities.  I have uninstalled cf8 and tried the installs using the built-in server on port 8500.  I have re-installed cf8 and it works fine.  Every log I look at says that everything is fine.  I have tired the services to start automatically and manually.  I do not know what to try next.  Any suggestions would be greatly appreciated.

    After I have uninstalled Apache and all coldfusion and rebooted, I have installed cf10 using the built in server.  When I click on administrator on the start menu and  try to go to http://localhost:8500/CFIDE/administrator/index.cfm, get a response of Firefox can't establish a connection to the server at localhost:8500.  It will do this whether I stop or start the coldfusion server.  None of the logs show any errors.  If I uninstall cf10 and reinstall cf8, cf8 works correctly.  Anybody have any ideas what to try next?

  • Simultaneously running CF9 and CF10

    I am currently runing an application which is not supported in CF10.  I would like to continue to use this product, but I woulkd also like to begin developing in CF10.  I understand that it is possible to run both CF10 and CF9 on the same machine.  Is this true?  If so can I achieve this with Standard, or is this only available at the Enterprise level.? Also are there licensing issues when running both versions simultaneously?

    As i can see problem is in hosting both the coldfusion server on webserver.If you are hosting your website in ubuntu. Then you can flollow this link http://ashishtondon.blogspot.in/2012/05/how-to-host-more-then-one-coldfusion.html
    If it is a Windows OS then first create different two local websites on different ports then while installing coldfusion 10 it will ask for selection of localhosts now give port 81 to the cf 10 if your cf 9 is on default port 80. 
    then check , for CF9 - localhost:80/cfide/administrator/index.cfm
                        for CF10 -  localhost:81/cfide/administrator/index.cfm

  • Java object instantiation exception after upgrade from CF9 to CF10

    I have some custom Java classes placed within the C:\ColdFusion10\cfusion\wwwroot\WEB-INF\classes directory of my CF10 install. Although these worked in CF9, I am now getting the following error:
    Error Occurred While Processing Request
    Object instantiation exception.
    An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. Error: javax/mail/Store.
    The exception log entry is similar:
    "Error","ajp-bio-8012-exec-1","01/28/13","21:51:08",,"Object instantiation exception.An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. Error: javax/mail/Store. The specific sequence of files included or processed is: sample\path\to\document\index.cfm, line: 1 "
    coldfusion.runtime.java.JavaObjectInstantiationException: Object instantiation exception.
    I created a simple sample that attempts to instantiate the object that throws the above exception:
    <cfscript>m = createObject( "Java", "sample.namespace.MBoxReader" );</script>
    I can create the same object in Java without error, e.g.:
    MBoxReader m = new MBoxReader();
    I checked, but as far as I can nothing attempts to instantiate the Store class, only subclasses of store. I have read in other posts that this may be due to missing classes or duplicate classes, so I'm not ruling that out, but haven't had much luck in identifying anything yet. Any tips on troubleshooting this issue?
    EDIT: I started with a much simpler Java class and started adding methods back to it. It appears to break when I attempt to instantiate a mail session:
    "Error","ajp-bio-8012-exec-1","01/29/13","10:17:22",,"javax/mail/Session The specific sequence of files included or processed is: sample\path\to\document\index.cfm, line: 3 "
    java.lang.NoClassDefFoundError: javax/mail/Session
    I built the project using the mail.jar file in C:\ColdFusion10\cfusion\lib, which contains a Session class. However, the Session class does not have a public constructor--maybe that's why CF has an issue.
    For example, calling this Java method via CF causes the error:
    public void mboxTest() {
       Properties props = new Properties();
       Session session = Session.getDefaultInstance( props );

    Hi,
    Can you please roll back the Security patch and the reason is because you have missed some files  when you were applying the patch. So after you roll back check if the admin in working then re-apply the patch once again.
    Regards,
    Priyank

  • Confusing collection issue - CF9/*nix

    Hello, everyone.
    Production environment is *nix running CF 9.0.0, with both Verity and Solr collections.
    Trying to list collections is breaking - one collection in particular is breaking the CFCOLLECTION action="list": Error message states that the solrconfig.xml file cannot be found.
    I unregistered this collection via CFAdmin, then went into the file system and deleted the folders for this collection and restarted both Application and Solr services. Ran the script, again, and still getting the same error message for the collection that we just completely removed.
    This is working fine in development (Windows environment, CF9.0.1). Thoughts/suggestions greatly appreciated.
    ^_^

    Has anyone running CF on Unix/Linux ever had an error message regarding a collection that doesn't exist in both CFAdmin and the filesystem?
    Is there some way that a collection could be cached on the server?  It's not browser caching, I'm sure.
    ^_^

  • Coldfusion 10 install issue

    I have been dumped into the deep end here and could use some help.
    I have googled this like crazy so any advice would be helpful.
    Environment / background
    a vmware winx64 server clone of a cf9 box we have. We want to do some testing of the cf10 so i was tasked with upgrading the cf9 to cf10 developer and if after some testing we would role into a full cf 10 box.
    What's the issue
    I can't get the fing installer to popup to install.
    checked temp/tmp paths for spaces
    uped the vspace
    turned off IE ESC
    restared
    uninstalled cf9
    restarted
    restarted
    googled
    restarted
    Nothing seems to be working my only thought is it's behind a firewall, i tried to install in on another dev box (not vm) and had the same issue.

    Hi,
    Can you share the error logs with us.
    Regards,
    Anit Kumar

  • Web service issues in migrating from ColdFusion 9 to 10

    I'm troubleshooting a problem a client is having with their migration from CF9 to CF10. A webservice call that previously worked, no longer is working. When I call it from my CF10 server, I get this error:
    C:...\cfusion\stubs\WS-853189522_2...\service.java:10: class, interface, or enum expected package ...;
    The ellipses are to replace proprietary files paths and names.
    When I add the cfinvoke attributes wsversion and refreshwsdl, I get a "Unable to read WSDL from URL: .../service.asmx?WSDL" error instead of the above error. I also changed the default ws version from 2 to 1 in the CF Administrator, with no change. Are there any other known issues with CF10 that would interfere with a webservice call that worked in an earlier version?

    I found the answer, and it turned out to be quite simple. After making the change to the default webservice version in CF Admin, I needed to restart the server. It now works, although I am curious as to why adding the wsversion attribute to the cfinvoke tag calling the webservice didn't work. My concern now is that if they add an Axis 2 webservice call in the future that they may run into this problem again.

  • APSB13-03 authentication bypass issue

    I see hotfixes for version 9 and 10, but how can I fix this vulnerability in Cold Fusion version 8.0.1?

    Because CF8 has reached end of life period Adobe only provides security patches for CF9 and up currently. I'd recommend upgrading to CF9 or CF10 so you can get security patches.
    My best guess on how to secure yourself from this particular issue would be to block /CFIDE and make sure you don't use cflogin in your applications.
    Pete Freitag
    Foundeo Inc. - Makers of HackMyCF & FuseGuard

  • CF10 Can't Verify Mail Server

    So I've been running CF9 on Linux for a while and using CFMail to send email through a client's Exchange 2010 server.
    We're attempting to migrate to CF10 on Win2008, IIS7.5.  Everything is set and ready to go except I can't get CF10 to verify the mail connection?  I've got both mail settings (CF9 and CF10) set the exact same way and can view them open side by side and verify they're identical.  However, while the CF9 verifies successfully the CF10 system fails??
    I tried sending through CFMail tags while specifying the server credentials and see this in the CF10 log:
    "javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client"
    What does this mean?  I know my authentication credentials are correct because I'm able to connect in CF9.
    I've turned off all firewalls and still nothing.  So, I then tried installing CF10 on my Mac laptop.  It, too, will not verify the mail connection!
    Is there a known problem with CF10 connecting to an Exchange mail server?
    Any ideas?

    I "solved" this. 
    I could find little online and received no comments to this thread.  No combination of settings I tried would work and I have no access to the client's mail server.  The person who runs that server couldn't run a lemonade stand so no help there.
    Then I stumbled across this page:
    https://confluence.atlassian.com/display/JIRAKB/No+authentication+mechansims+supported+by+ both+server+and+client+when+Configuring+Microsoft+Exchange+SMTP+Server
    Nothing to do with ColdFusion but seemed like a similar issue.  I'd never put much thought into CFMail because it was always drop dead simple and simply worked.  Focusing on this link's Resolution 2 I wondered if CF used JavaMail and if I could downgrade CFMail?  I cracked open CF's 'mail.jar' file and found that CFMail does, indeed, use the  JavaMail API.  So, I then checked the ColdFusion docs to see if any new features were added to CFMail between CF9 and CF10.  None.
    So, I swapped out the 'mail.jar' file from my CF9 install to CF10 and restarted.  Boom!  Everything worked immediately.  As far as I can tell I've had no compatibility issues to report. 

  • XmlParse CF10 vs. CF11

    I'm having a problem with xmlParse and CF11. I have a site running perfectly under either CF9 or CF10. It uses xml files for various site settings and static content. Under CF11 I'm receiving the following:
    An error occurred while Parsing an XML document. Invalid byte 2 of 2-byte UTF-8 sequence.
    I've sent the document through various xml validators, no issues. Like I said, the exact same document parsed fine under CF9 & CF10 -- in fact it was created by CF9 and/or CF10.
    Any ideas on what might be causing this (other than a CF11 bug) and a possible work around. (it's hard to create a work around when I'm not even sure the issue)
    BTW, I downloaded and installed the latest CF11 yesterday. A check for updates does not show any available.

    Hmmm, I found the issue. I found a post on another forum that suggested opening the xml document in Firefox as it's xml parser is very sensitive (as is CF11 apparently). It pointed right to the offending text -- a high byte character (actually a few). It still baffles me that CF9 & 10 created these XML documents and parsed them without issue all this time.

  • CF10: 2 major problems

    I've upgraded from CF9 to CF10 on a Windows IIS6 box.
    CF seems to run, however:
    1. the default document is not working (an url without "/index.cfm" is not working, adding "/index.cfm" solves the problem).
    2. all url's seems to have become case sensitive, which breaks almost every single app I've build.
    I already have re-applied the IIS connector and I've installed all the latest patches.
    What now?

    Not sure about the second issue.. but your first issue (not working unless document specified.).. did you go into IIS and make sure that index.cfm and index.cfml are part of the default documents?
    ^_^

  • After upgrading to CF10, the selected row of my cfgrid is no longer passed on form post.

    I have a cfform which contains a cfgrid and prior to the 9 to 10 update, upon submission of the cfform, the selected row of the grid was passed/posted to my form action page as:
    __CFGRID__gridForm__renewalGrid
    This contained all the data from the selected row, I.e.:
    __CFGRID__COLUMN__=PROJECTID; __CFGRID__DATA__=T01081002AP; __CFGRID__COLUMN__=APPLICATIONS; __CFGRID__DATA__=PQFD; __CFGRID__COLUMN__=OWNERUID; __CFGRID__DATA__=HT2008; __CFGRID__COLUMN__=TEAM; __CFGRID__DATA__=Roberts; __CFGRID__COLUMN__=ROLE; __CFGRID__DATA__=AASBOAPMX; __CFGRID__COLUMN__=REGION; __CFGRID__DATA__=Southwest; __CFGRID__COLUMN__=EXISTING; __CFGRID__DATA__=K8045F; __CFGRID__COLUMN__=SOD; __CFGRID__DATA__=0; __CFGRID__COLUMN__=INITIALEMAILDATE; __CFGRID__DATA__=01/28/2013; __CFGRID__COLUMN__=MESSAGEDATE; __CFGRID__DATA__=; __CFGRID__COLUMN__=SECONDEMAILDATE; __CFGRID__DATA__=; __CFGRID__COLUMN__=ESCALATIONDATE; __CFGRID__DATA__=; __CFGRID__COLUMN__=COMPLETEDBY; __CFGRID__DATA__=TH2878; __CFGRID__COLUMN__=COMPLETIONDATE; __CFGRID__DATA__=02/06/2013; __CFGRID__COLUMN__=MONTHPULLED; __CFGRID__DATA__=Jan2013; __CFGRID__COLUMN__=TOTALITEMS; __CFGRID__DATA__=2; __CFGRID__COLUMN__=RELIEVINGPSA; __CFGRID__DATA__=; __CFGRID__COLUMN__=MODIFIEDBYTS; __CFGRID__DATA__=02/06/2013; __CFGRID__COLUMN__=MODIFIEDBY; __CFGRID__DATA__=T228Y8; __CFGRID__COLUMN__=CREATEDBY; __CFGRID__DATA__=KV3M36; __CFGRID__COLUMN__=CREATEDTS; __CFGRID__DATA__=01/28/2013; __CFGRID__COLUMN__=NEWSA; __CFGRID__DATA__=; __CFGRID__COLUMN__=DELEGATESTATUSNOTE; __CFGRID__DATA__=Access; __CFGRID__COLUMN__=STATUS; __CFGRID__DATA__=Completed; __CFGRID__COLUMN__=DATATYPE; __CFGRID__DATA__=Appl New
    After upgrading to CF10, and with no changes to the code, performing this same process, __CFGRID__gridForm__renewalGrid is still passed in the form scope to my action page, but now it is empty.
    I have not yet uninstalled CF9, so I brought it up on a different port, and I can run the same code as CF9 or CF10 and watch... in 9 the selected row is passed, in 10 it is empty.
    Is this a bug? Is there a work around? Please help.

    appears that apple has changed SMB code, and now its not possible login from windows on mac.
    i installed snow leopard and now works fine.
    apple is capable to make it run paying new license of smb code, but isnted of this, apple has created new protocol smbx and now, all others need to adapt your code to apple..
    bad movement.. i am thinking sell imac and no back to apple anymore..

  • CF10 Some pages render blank, No configured web servers

    I'm moving from CF8 to CF10 and having some issues. My CF10 install is a clean install on brand new server running Windows Server 2008 R2 64bit IIS 7.5. I've upgraded to CF version 10,0,11,285437. Out of the 50 or so Apps on the server almost everything works, but there are a few pages that just don't render at all. No error, nothing. Viewing the source for the page just shows an empty HTML page. Coldfusion logs are empty and there's 500 null error in the IIS logs.
    While researching that issue I found many people recommending I rerun wsconfig after patching CF, so I tried that and it looks like my sites aren't configured correctly. During install I configured the sites individually (2 of them run in 32 bit while the cfadmin site runs in 64.) Now when I run the Web Server Configuration Tool as administrator I just get a Configured Web Servers box that is empty. When I click add the next window shows IIS, but the drop down for IIS Web Sites is disabled. Checking the Configure 32 bit web server option doesn't change anything. 99 out of a 100 pages work just fine, so it seems odd that the tool is telling me the server isn't configured. I'm not even sure where to start at this point.
    EDIT: I've read most of the posts related to the wsconfig and none of the solutions presented yet make any difference. ASP.NET, .NET Extensibility, CGI, ISAPI Extensions, ISAPI Filters are all already installed. I've tried reinstalling CF, IIS, even going back to a clean snapshot of he OS several times and the result is always the same. I've even tried it with and without IIS Compatability.
    Edit2: I've figured out the problem with wsconfig (McAfee IPS was preventing it from working.) Unfortunately, even after reconfiguring the servers I'm still getting the blank page problem. Nothing in any of the CF logs and a 500 null error in the IIS logs.

    Hi
    Out of 20, if there are 10 coldfusion (.cfm) pages which are working fine and rest of the 10 are not working fine then you must run the code analyzer to check the error on those pages as you mentioned that you have moved to CF 10 from CF 8.
    Run wsconfig as Run as Admin and then see how many connector showing up there? Like if you have configure webserver with All option, then it will display on 1.
    Thanks
    VJ

  • Cert issue with Java 1.7 vs Java 1.6?

    As part of our Java Update process, I’ve been updating the Java version that our ColdFusion servers (9.0.1 Cumulative Hotfix 4) use from Java 1.6_xx to 1.7_17. Overall, no issues, except… when trying to connect to a couple of internal servers via cfhttp (https).
    I have imported the existing certs, (that we have been using successfully with Java 1.6_xx) into the 1.7_17 keystore, and yet I get an  “I/O Exception: peer not authenticated” error. This in most cases, implies that the certificate is not valid. However, if I point ColdFusion back to Java 1.6_xx , it the cfhttp call works fine.
    My theory is that, for some reason, the certs are not “quite right” and whereas Java 1.6 accepted them, Java 1.7 is more strict in regards to certs.
    Has anyone else experienced this, or have some advice?
    Thanks in advance...

    We had the same issue, albeit with CF10 with Java 1.7. The local_policy and US_export_policy JAR files need replacing. You can get them from Oracle (http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html). Our JARs are installed at C:\ColdFusion10\jre\lib\security - yours will be different, but the \lib\security folder is where they'll reside.  We stopped ColdFusion, backed up the security folder, and then overwrote the files in that folder with the ones from Oracle, and restarted. CFHTTP with https:// then started to work. Is your certificate a 2048 bit variety btw?
    If you can't get it to work try the CFX_HTTP custom tag as a workaround. This worked for us too until we changed the JARs. I'd actually stick with CFX_HTTP if I had the issue again - great custom tag with lots of features and works straight away.

Maybe you are looking for

  • 'bobj.crv.params.FlexParameterUI' is null or not an object

    I'm having a problem getting my report to display in the DHTML viewer.<br> <br> My test environment:<br> - Windows XP SP3<br> - Tomcat 5.5 with JDK 1.6.0_17<br> - PostgreSQL 8.4 (Windows version)<br> - Report designed using JDBC driver - postgresql-8

  • Is green screen possible with Mini DV?

    Hi. I have a Canon XL2. I want to use some green screen effects in my next doco to liven up some talking heads I am to record. Is MiniDV even an option for this? I have heard the mini dv compression causes too many artifacts. Please assume I have rea

  • Premiere Basic Settings for MTS

    A bit new to Premiere but coming up to speed fast.  I have scoured the forums and docs for the following basic questions but have come up empty.  However, I am still unclear on what to use for the basic settings for my project to get me the best resu

  • Aperture 3 will only sync 5-star library to iPhone, all to iPad

    It's crazytime in Cincinnati. Recently changed computers from a 17" MBP to a 15" MBP i7. Shifted the bits from one to another. Loaded the aperture library from the vault. Re-synced the iPhone 4 and iPad 3G. iPad has all the photos. iPhone 4 has only

  • "Automatically play movies when opened" preference broken

    I recently upgraded from QT player to QT Pro 7.5. It all works just fine, but the Preferences setting "Automatically play movies when opened" appears to have broken in the process. Movies and audio all open properly, but I must click the "Play" butto