Re: CF8 cfc problem
On Wednesday 10 Sep 2008, erik tom wrote: this code get executed on CF7 , but display blank in cf8 Which bit is blank ? Does any but by itself run ? Do you have error squished by a setting in Application.cfc or the admin ? What happens if you turn robust exception information on, or set a break point ? -- Tom Chiverton Helping to centrally maximize back-end environments This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312563 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CF8 cfc problem
this code get executed on CF7 , but display blank in cf8 cfinvoke component=Erik.navigation method=mainMenu returnvariable=GetMenuHead /cfinvoke cfdump var=#GetMenuHead# sfdds cfoutput query=GetMenuHead a href=?childID=#menuID##label#/abr / /cfoutput PLease help ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312333 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
WSDL CFC Problem
Hi All, Trying to use a cfc to return a list of folders on my server (website folders). The cfc chokes when I point to the cfc with ?wsdl appended at the end, stating Axis can't resolve the cfc datatype. I've tried returntypes of structures, queries, any, all with the same failure. When I run just a cfdirectory command without using a CFC, the results are as expected. What's wrong? cfcomponent cffunction access=remote name=listServerDirectory output=false cfdirectory action=list directory=c:\inetpub\websites\ name=serverWebsites sort=Name cfreturn serverWebsites /cffunction /cfcomponent Thanks, Mark ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212074 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: WSDL CFC Problem
Trying to use a cfc to return a list of folders on my server (website folders). The cfc chokes when I point to the cfc with ?wsdl appended at the end, stating Axis can't resolve the cfc datatype. I've tried returntypes of structures, queries, any, all with the same failure. First, you must use a specific returntype with web services, such as struct or query. Second, it may be the case that the query object returned by CFDIRECTORY isn't the same as a regular query object as far as Axis is concerned. So, you might try taking the data from that CFDIRECTORY and putting it in a regular query object that you create using QueryNew. Finally, it's worth noting that non-CF web services might have trouble consuming a query object from a CFC web service, so you might want to send back the data in a different format. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212075 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: WSDL CFC Problem
We've had this error too; it's a ColdFusion bug with webservices that's been present since CFMX 6.1 Updater 1. See http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid= 7threadid=881689forumid=1 for some possible workarounds. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212081 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: WSDL CFC Problem
We've had this error too; it's a ColdFusion bug with webservices that's been present since CFMX 6.1 Updater 1. Thanks, I'm still battling with this issue. I've even tried Ray Camdens Cfdirectory function from CFLib with the same results. Mark ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212083 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: WSDL CFC Problem
I've created a mapping in CFMX7 called /webservices which points to the dir where the cfc's are located. Regardless if I call webservice directly from the mapping, or use an absolute URL, I get this message (mapping shown): Could not generate stub objects for web service invocation. Name: webservices/SimpleCreditRating.cfc?wsdl. WSDL: webservices/SimpleCreditRating.cfc?wsdl. java.net.MalformedURLException: no protocol: webservices/SimpleCreditRating.cfc?wsdl It is recommended that you use a web browser to retrieve and examine the requested WSDL document for correctness. If the requested WSDL document can't be retrieved or it is dynamically generated, it is likely that the target web service has programming errors. Here's the invocation: cfinvoke webservice=http://www.mysite.com/cf-inf/cfcomponents/SimpleCreditRating.cfc ?wsdl method=getCreditRating returnvariable=creditRating ssn=1 / So how am I supposed to look at the WSDL if it won't work? These tests I'm running from code downloaded from Forta's CFMX7 Advanced Book. (chapter 24, simple credit rating) I'm running out of ideas. Thanks, Mark ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212086 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: WSDL CFC Problem
I've created a mapping in CFMX7 called /webservices which points to the dir where the cfc's are located. Regardless if I call webservice directly from the mapping, or use an absolute URL, I get this message (mapping shown): Could not generate stub objects for web service invocation. Name: webservices/SimpleCreditRating.cfc?wsdl. WSDL: webservices/SimpleCreditRating.cfc?wsdl. java.net.MalformedURLException: no protocol: webservices/SimpleCreditRating.cfc?wsdl It is recommended that you use a web browser to retrieve and examine the requested WSDL document for correctness. If the requested WSDL document can't be retrieved or it is dynamically generated, it is likely that the target web service has programming errors. Here's the invocation: cfinvoke webservice=http://www.mysite.com/cf-inf/cfcomponents/SimpleCr editRating.cfc?wsdl method=getCreditRating returnvariable=creditRating ssn=1 / So how am I supposed to look at the WSDL if it won't work? What happens if you try invoking the WSDL URL (http://www.mysite.com/cf-inf/cfcomponents/SimpleCreditRating.cfc?wsdl) directly from within a browser? That's what the error message suggests you do. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212091 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: WSDL CFC Problem
What happens if you try invoking the WSDL URL (http://www.mysite.com/cf-inf/cfcomponents/SimpleCreditRating.cfc?wsdl) directly from within a browser? That's what the error message suggests you do. I get the message as shown in my previous post (either way of calling the URL a browser, same problem). Mark ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212093 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: WSDL CFC Problem
The mapping and the web path need to read the same. By this I mean that http://www.mysite.com/cf-inf/cfcomponents/SimpleCreditRating.cfc needs to include the mapping in it, so the mapping needs to map /cf-inf/cfcomponents/ to {webroot}/cf-inf/cfcomponents/. If you have more than one site on this server, something unique to that site name needs to be in the mapped path and you component will have to move. Trust me, done it all before and this is necessary. On 7/18/05, Mark Leder [EMAIL PROTECTED] wrote: I've created a mapping in CFMX7 called /webservices which points to the dir where the cfc's are located. Regardless if I call webservice directly from the mapping, or use an absolute URL, I get this message (mapping shown): ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212095 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: WSDL CFC Problem
Should I register as an ordinary mapping or as a webservice in CF admin? Mark ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212097 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: WSDL CFC Problem
The mapping and the web path need to read the same. By this I mean that http://www.mysite.com/cf-inf/cfcomponents/SimpleCreditRating.cfc needs to include the mapping in it, so the mapping needs to map /cf-inf/cfcomponents/ to {webroot}/cf-inf/cfcomponents/. If you have more than one site on this server, something unique to that site name needs to be in the mapped path and you component will have to move. = Your suggestion worked! Thanks for your help!!! Mark ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212098 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: WSDL CFC Problem
I know. This should be part of the documentation or similar, if they aren't going to fix it post-updater. On 7/18/05, Mark Leder [EMAIL PROTECTED] wrote: Your suggestion worked! Thanks for your help!!! ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212099 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
UUID CFC Problem
Hi all, I'm builing an email opt-in function where a user clicks a link passing a uuid to a browser. Trouble is, the CFC refuses to believe that it's a UUID that is being passed (the UUID is CF generated). The first page does correctly display a UUID being passed from the email client. I've tried using URLEncodedFormat, etc. with no luck. Ideas? cfif URL.oi NEQ cfset URL.oi = #URLEncodedFormat(URL.oi)# /cfif cfif Len(URL.oi) cfinvoke component=#REQUEST.prefix#.cf-inf.cfcomponents.email method=optInConfirmation cfinvokeargument name=oi value=URL.oi /cfinvoke /cfif cffunction access=remote name=optInConfirmation output=false hint=Completes the opt-in process for receiving email cfargument name=oi required=yes type=uuid cfquery name=qEmailOptInRecord datasource=#REQUEST.dsnSQL# SELECT userUUID, emailAddress, pollUserOptIn, pollUserOptInUUID FROM #REQUEST.prefix#_Poll_User WHERE pollUserOptInUUID = cfqueryparam cfsqltype=cf_sql_char value=#URLDecode(ARGUMENTS.oi)# /cfquery cfif qEmailOptInRecord.recordcount NEQ 0 cfquery name=qEmailOptInConfirm datasource=#REQUEST.dsnSQL# UPDATE #REQUEST.prefix#_Poll_User SET pollUserOptIn = 1 pollUserOptInDate = #createodbcdatetime(#now()#)# WHERE pollUserOptInUUID = cfqueryparam cfsqltype=cf_sql_char value=#ARGUMENTS.oi# /cfquery /cfif /cffunction Thanks, Mark ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210596 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: UUID CFC Problem
Well that's not where you would normall use urlencodedformat()... You would want to use urlencodedformat() before generating a url for a link or in theory to connect to a webservice via something like cfhttp, although cfhttpparam will urlencode the value for you by default. So... if I'm reading the rest of your message correctly and you're providing a link to your webservice in an outgoing email, you would use urlencodedformat() around the UUID before generating that email. Once the user selects that link from their mail client, the CF Server should convert it back from url-format automatically. Moreover you seem to have a bit of difficulty with knowing when to use (or not use) quotes and pound symbols... example: cfset URL.oi = #URLEncodedFormat(URL.oi)# You don't really need this line, but if you did, you wouldn't need (or want) either the quotes or the pound symbols. cfinvoke component=#REQUEST.prefix#.cf-inf.cfcomponents.email method=optInConfirmation cfinvokeargument name=oi value=URL.oi /cfinvoke This is probably actually causing your problem here... you need the pound symbols around #url.oi# in your cfinvokeargument tag... or better, cfinvoke method=optInConfirmation oi=#URL.oi# component=#request.prefix#.cf_inf.cfcomponents.email hth s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210611 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: UUID CFC Problem
Thanks, I'll give this a whirl this afternoon and let you know. -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 11:28 AM To: CF-Talk Subject: Re: UUID CFC Problem Well that's not where you would normall use urlencodedformat()... You would want to use urlencodedformat() before generating a url for a link or in theory to connect to a webservice via something like cfhttp, although cfhttpparam will urlencode the value for you by default. So... if I'm reading the rest of your message correctly and you're providing a link to your webservice in an outgoing email, you would use urlencodedformat() around the UUID before generating that email. Once the user selects that link from their mail client, the CF Server should convert it back from url-format automatically. Moreover you seem to have a bit of difficulty with knowing when to use (or not use) quotes and pound symbols... example: cfset URL.oi = #URLEncodedFormat(URL.oi)# You don't really need this line, but if you did, you wouldn't need (or want) either the quotes or the pound symbols. cfinvoke component=#REQUEST.prefix#.cf-inf.cfcomponents.email method=optInConfirmation cfinvokeargument name=oi value=URL.oi /cfinvoke This is probably actually causing your problem here... you need the pound symbols around #url.oi# in your cfinvokeargument tag... or better, cfinvoke method=optInConfirmation oi=#URL.oi# component=#request.prefix#.cf_inf.cfcomponents.email hth s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210614 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: UUID CFC Problem
That worked, thanks. -Original Message- From: Mark Leder [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 11:40 AM To: CF-Talk Subject: RE: UUID CFC Problem Thanks, I'll give this a whirl this afternoon and let you know. -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 11:28 AM To: CF-Talk Subject: Re: UUID CFC Problem Well that's not where you would normall use urlencodedformat()... You would want to use urlencodedformat() before generating a url for a link or in theory to connect to a webservice via something like cfhttp, although cfhttpparam will urlencode the value for you by default. So... if I'm reading the rest of your message correctly and you're providing a link to your webservice in an outgoing email, you would use urlencodedformat() around the UUID before generating that email. Once the user selects that link from their mail client, the CF Server should convert it back from url-format automatically. Moreover you seem to have a bit of difficulty with knowing when to use (or not use) quotes and pound symbols... example: cfset URL.oi = #URLEncodedFormat(URL.oi)# You don't really need this line, but if you did, you wouldn't need (or want) either the quotes or the pound symbols. cfinvoke component=#REQUEST.prefix#.cf-inf.cfcomponents.email method=optInConfirmation cfinvokeargument name=oi value=URL.oi /cfinvoke This is probably actually causing your problem here... you need the pound symbols around #url.oi# in your cfinvokeargument tag... or better, cfinvoke method=optInConfirmation oi=#URL.oi# component=#request.prefix#.cf_inf.cfcomponents.email hth s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210645 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: UUID CFC Problem
That worked, thanks. Glad I could help. :) s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210646 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Is it me? or is it CFMX? CFC Problem
Check the cfc attributes, I've seen this before when I had an empty extends attribute. Kola -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: 03 June 2005 18:19 To: CF-Talk Subject: Is it me? or is it CFMX? CFC Problem I'm getting this error on CFMX 6.1: The name is not a valid component name. Component names cannot start or end with dots. The error occurred in *D:\usr\mysite\www\admintools\includes\blog\i_generateRSS.cfm: line 17* 15 : --- 16 : cfscript*17 : BlogObject = CreateObject('component', 'mysite.components.blog');* 18 : RssXML = BlogObject.generateRSSFeed(); with this code: cfscript BlogObject = CreateObject('component', 'mysite.components.blog'); RssXML = BlogObject.generateRSSFeed(); /cfscript cfoutput RssXML = #RssXML#br /cfoutput mysite is a mapping to this website's root folder (d:\usr\mysite\www\ components is a folder in the root (www\components) blog.cfc exists inside of components anyone?? erj ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208593 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Is it me? or is it CFMX? CFC Problem
I'm getting this error on CFMX 6.1: The name is not a valid component name. Component names cannot start or end with dots. The error occurred in *D:\usr\mysite\www\admintools\includes\blog\i_generateRSS.cfm: line 17* 15 : --- 16 : cfscript*17 :BlogObject = CreateObject('component', 'mysite.components.blog');* 18 :RssXML = BlogObject.generateRSSFeed(); with this code: cfscript BlogObject = CreateObject('component', 'mysite.components.blog'); RssXML = BlogObject.generateRSSFeed(); /cfscript cfoutput RssXML = #RssXML#br /cfoutput mysite is a mapping to this website's root folder (d:\usr\mysite\www\ components is a folder in the root (www\components) blog.cfc exists inside of components anyone?? erj ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208551 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
CFC Problem
Hello all, I am having a serious problem with my CFCs in our server environment and was wondering if anyone can shed some light on this for me. Our server environment is set up to be a shared hosting environment for quite a few clients per server. The servers have essentially 2 partitions. The install Drive for apps etc (C:\) which is where Cold Fusion is INSTALLED. The other partition (E:\) is for storing all our sites etc. The IIS webroot is at E:\data\published\wwwroot\ and CF is instructed of this location at install time and works just fine. To get to our CF administrator we simply go to sevrername.ourmaindomainname.com/cfide/administrator. Then we have actual separate web sites setup in IIS to handle other domains. This all seems pretty straight forward to me. However, whenever I try to navigate TO a cfc in a browser to see it's makeup in the CFCExplorer like im supposed to be able to, I get this message. . . File not found: /CFIDE/componentutils/cfcexplorer.cfc Furthermore the remoting project I am currently working on is throwing errors in this environment, I get this error: Remoting Error - flashgateway.adapter.NoSuchServiceException Service threw an exception during method invocation: No service named venue.chapter08 is known to Flash Remoting MX. - I am sure this is related to the same problem. Just for grins I setup CF and IIS on my local machine all with default paths etc and am able to get remoting and the CFC browser to work correctly. However, the way the site is setup on my machine is a bit different. All I did was setup the site as a virtual directory so technically it lives at the same virtual path as the CF Admin and all the CF Utils (such as the CFC Explorer). But, I refuse to believe that there isn't some way around this for shared hosting environments. If anyone can shed some light on this that would be greatly appreciated. I have been wracking my brain trying to get this issue solved to no avail. Someone else out there must have had similar experiences and im hoping will be able to give me the easy answer =) Thanks everyone, -chris.alvarado [ application developer ] 4 Guys Interactive, Inc. 281.807.4344 x1716 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Weird CFC Problem
The only way I know to explain this is to give an example. // THIS STRUCT IS IN SERVER SCOPE (3 simple values and a query) server.myData = structNew(); server.myData.var_1 = ; server.myData.var_2 = ; server.myData.var_3 = ; server.myData.myQuery = queryNew(c1,c2,c3); // THIS IS MY CFC cfcomponent cffunction name=getInfo cfset var data = ""> cfset data.var_2 = some info cfset structAppend(data, server.myData, false) cfset queryAddRow(data.myQuery, 1) cfset querySetCell(data.myQuery, c1, value, 1) cfset data.myQuery = populateQuery(data.myQuery) cfreturn data /cffunction cffunction name=populateQuery cfargument name=q type=query required=true cfset var q = arguments.query !--- POPULATE THE QUERY WITH 20 ROWS OF DATA --- cfreturn q /cffunction /cfcomponent Whenever I invoke the method getInfo, and dump the server scope, server.myData.myQuery is not populated with the new query data.However, the other keys var_1, var_2, etc. are not changed. I think this is a scoping issue, but I can't find it anywhere. -Brad [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Weird CFC Problem
When you run structAppend(a,b) you are appending B onto A. In your case, you appended Server onto Data. If you wanted to update the server scope why didn't you just manipulate it directly? If you prefer using a pointer, you can use data = ""> Note - I do not recommend directly accessing server variables from CFCs. If your intent is to add X to a server variable, you should pass it in as an argument, or save the result, etc: cfset server.myData = someCFC.someMethod() [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Weird CFC Problem
Actually, I DON'T want to update the server struct.It has default data that I use to populate local structures.My problem is that the server struct is being updated somehow, but I don't want it to.Only the query is updated, not the simple values of the struct. Hope that makes sense. -Brad -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 10:09 AM To: CF-Talk Subject: RE: Weird CFC Problem When you run structAppend(a,b) you are appending B onto A. In your case, you appended Server onto Data. If you wanted to update the server scope why didn't you just manipulate it directly? If you prefer using a pointer, you can use data = ""> Note - I do not recommend directly accessing server variables from CFCs. If your intent is to add X to a server variable, you should pass it in as an argument, or save the result, etc: cfset server.myData = someCFC.someMethod() [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Weird CFC Problem
Ah, then change it to: cfset structAppend(data, duplicate(server.myData), false) Notice the use of duplicate. Before you were ending up with a pointer. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Weird CFC Problem
I'll try that.Looks like that will work. Thanks again, Brad -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 11:25 AM To: CF-Talk Subject: RE: Weird CFC Problem Ah, then change it to: cfset structAppend(data, duplicate(server.myData), false) Notice the use of duplicate. Before you were ending up with a pointer. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFC Problem
I have built this CFC to invoke the Verisign Payflow Pro tag and I am getting a strange error. Error Occurred While Processing Request For input string: The error occurred in E:\Data\Published\wwwroot\developmentmx\verisignCFC\processPayment.cfc: line 31 29 :trxtype = #trxtype# 30 :tender = #tender# 31 :partner = #partner# 32 :user = #user# 33 :pwd = #pwd# the variable partner is defined, and a value is specified. I am assuming that is what this error means (that it cant evaluate the variable or something of the like) since the actual error message is very non-descript. anyone have any ideas? -chris.alvarado [ application developer ] 4 Guys Interactive, Inc. http://www.4guys.com http://www.4guys.com/ phone: 281.807.4344 x1716 fax: 281.807.4384 ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
RE: CFC Problem
Can you show us both the call and the code to processPayment? (I mean th emethod in question). === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email: [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Chris Alvarado [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 11:09 AM To: CF-Talk Subject: CFC Problem I have built this CFC to invoke the Verisign Payflow Pro tag and I am getting a strange error. Error Occurred While Processing Request For input string: The error occurred in E:\Data\Published\wwwroot\developmentmx\verisignCFC\processPay ment.cfc: line 31 29 : trxtype = #trxtype# 30 : tender = #tender# 31 : partner = #partner# 32 : user = #user# 33 : pwd = #pwd# the variable partner is defined, and a value is specified. I am assuming that is what this error means (that it cant evaluate the variable or something of the like) since the actual error message is very non-descript. anyone have any ideas? -chris.alvarado [ application developer ] 4 Guys Interactive, Inc. http://www.4guys.com http://www.4guys.com/ phone: 281.807.4344 x1716 fax: 281.807.4384 ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: CFC Problem
Absolutely, Here is the code for the method causing the problem cfcomponent cffunction access=public name=verisignCharge output=true returntype=query hint=Process Credit Card (charge) using verisign. cfargument name=query type=string required=true hint=Name element of the return query from Verisign.br cfargument name=hostaddress type=string required=true hint=Host Address of the Verisign server.br cfargument name=hostport type=string required=false default=443 hint=Host Port of the Verisign server.br cfargument name=timeout type=string required=false default=30 hint=Timeout (in seconds) for the transaction request.br cfargument name=trxtype type=string required=false default=S hint=Transaction Type: S = Sale | C = Creditbr cfargument name=tender type=string required=false default=C hint=The tender type (method of payment). Use only the value 'C' for credit card transactions.br cfargument name=partner type=string required=true hint=The authorized VeriSign Reseller that registered you for the Payflow Pro service provided you with a Partner ID. If you registered yourself, use 'VeriSign'.br cfargument name=user type=string required=true hint=Case-sensitive login ID for the Payflow account that you defined while registering for the account.br cfargument name=pwd type=string required=true hint=Case-sensitive 6- to 32-character password that you defined while registering for the account.br cfargument name=acct type=string required=true hint=The credit card or purchase card number may not contain spaces, non-numeric characters, or dashes.br cfargument name=expdate type=string required=true hint=Expiration date of the credit card in mmyy format. For example, 0308 represents March 2008.br cfargument name=amt type=string required=true hint=Amount (US Dollars) U.S. based currency. Specify the exact amount to the cent using a decimal point-use 34.00, not 34. Do not include comma separators-use 1199.95 not 1,199.95. Your processor and/or internet merchant account provider may stipulate a maximum amount.br cfargument name=parmlist type=string required=false default= hint=Additional parameters specified in name / value pairs. For example, 'trxtype=Stender=C'.br cfargument name=proxyaddress type=string required=false default= hint=Proxy server address. Use the PROXY parameters for servers behind a firewall. Your network administrator can provide the values.br cfargument name=proxyport type=string required=false default= hint=Proxy server portbr cfargument name=proxylogon type=string required=false default= hint=Proxy server logon IDbr cfargument name=proxypassword type=string required=false default= hint=Proxy server logon passwordbr cfargument name=certpath type=string required=false default=C:\CFusionMX\CustomTags\Verisign\certs hint=The physical path to the cert file on your server. For example, 'C:\CFusionMX\CustomTags\Verisign\certs' (also the default).br cfx_payflowpro query = ccprocess hostaddress = #hostaddress# hostport = #hostport# timeout = #timeout# trxtype = #trxtype# tender = #tender# partner = #partner# user = #user# pwd = #pwd# acct = #acct# expdate = #expdate# amt = #amt# parmlist = #parmlist# proxyaddress = #proxyaddress# proxyport = #proxyport# proxylogon = #proxylogon# proxypassword = #proxypassword# certpath = #certpath# /cffunction /cfcomponent AND here is the call, cfset query = thisQuery cfset hostaddress = test-payflow.verisign.com cfset partner = verisign cfset user = username cfset pwd = password cfset acct = 4111 cfset expdate = 1205 cfset amt = 13.50 cfobject component=processPayment name=objProcPay cfset execPayment = objProcPay.verisignCharge(query,hostaddress,'','','','',partner,user,pwd ,acct,expdate,amt) Fairly straight forward unless im missing something. Thanks for the help! -chris.alvarado [ application developer ] 4 Guys Interactive, Inc. http://www.4guys.com phone: 281.807.4344 x1716 fax: 281.807.4384 -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 12:40 PM To: CF-Talk Subject: RE: CFC Problem Can you
RE: CFC Problem
You have a lot of arguments there - you may want to try debugging. Before calling the cfx, output each value, and make sure it is what you think it is. Ie cfoutput parter was passed as #arguments.partner# /cfoutput I'd also add arguments. before the use of arguments - to be anal and 100% safe. === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email: [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Chris Alvarado [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 1:03 PM To: CF-Talk Subject: RE: CFC Problem Absolutely, Here is the code for the method causing the problem cfcomponent cffunction access=public name=verisignCharge output=true returntype=query hint=Process Credit Card (charge) using verisign. ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
RE: CFC Problem
Did that, everything is coming through as expected. Is there a limit to the number of arguments you can have for a given method? Maybe the exceptions portion of the debugging would help: Exceptions 14:46:37.037 - java.lang.NumberFormatException - in E:\Data\Published\wwwroot\developmentmx\verisignCFC\processPayment.cfc : line 31 For input string: Im stumped myself. Thanks for any and all help, -chris.alvarado [ application developer ] 4 Guys Interactive, Inc. http://www.4guys.com phone: 281.807.4344 x1716 fax: 281.807.4384 -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 2:13 PM To: CF-Talk Subject: RE: CFC Problem You have a lot of arguments there - you may want to try debugging. Before calling the cfx, output each value, and make sure it is what you think it is. Ie cfoutput parter was passed as #arguments.partner# /cfoutput I'd also add arguments. before the use of arguments - to be anal and 100% safe. == == === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email: [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Chris Alvarado [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 1:03 PM To: CF-Talk Subject: RE: CFC Problem Absolutely, Here is the code for the method causing the problem cfcomponent cffunction access=public name=verisignCharge output=true returntype=query hint=Process Credit Card (charge) using verisign. ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: CFC Problem
Nope, there shouldn't be a limit. Line 31 was the partner line in the cfx call, right? If you ONLY output the args and comment out the cfx call, does the method call work? === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email: [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Chris Alvarado [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 1:54 PM To: CF-Talk Subject: RE: CFC Problem Did that, everything is coming through as expected. Is there a limit to the number of arguments you can have for a given method? Maybe the exceptions portion of the debugging would help: ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
RE: CFC Problem
Raymond, Thanks for your help. I ended up calling the component a different way and it works. Im not sure if I stumbled on a bug or if I was doing something incorrectly. What I ended up doing was creating the object like normal: cfobject component=processPayment name=objProcPay Then using cfinvoke to call the method. cfinvoke component=#objProcPay# method=verisignCharge hostaddress = #hostaddress# partner = #partner# user = #user# pwd = #pwd# acct = #acct# expdate = #expdate# amt = #amt# returnvariable=ret / I think maybe what was happening is that calling the method as obj.method(args) didn't like receiving empty values as or something along those lines. Thanks again for your help, -chris.alvarado [ application developer ] 4 Guys Interactive, Inc. http://www.4guys.com phone: 281.807.4344 x1716 fax: 281.807.4384 -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 3:09 PM To: CF-Talk Subject: RE: CFC Problem Nope, there shouldn't be a limit. Line 31 was the partner line in the cfx call, right? If you ONLY output the args and comment out the cfx call, does the method call work? == == === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email: [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Chris Alvarado [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 1:54 PM To: CF-Talk Subject: RE: CFC Problem Did that, everything is coming through as expected. Is there a limit to the number of arguments you can have for a given method? Maybe the exceptions portion of the debugging would help: ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Strange CFC problem
I'm using CFINVOKE to call a CFC and I get an error saying that certain arguments are undefined when in fact they are. The error is: Element WATERCHANGE is undefined in ATTRIBUTES cfcomponent cfset DATASOURCENAME = #request.dsn# / cffunction name=addLog access=remote returntype=struct cfargument name=PH type=string required=true cfargument name=KH type=string required=true cfargument name=GH type=string required=true cfargument name=CO2 type=string required=true cfargument name=Ammonia type=string required=true cfargument name=Nitrite type=string required=true cfargument name=Nitrate type=string required=true cfargument name=WComments type=string required=true cfargument name=WaterChange type=string required=true cfargument name=WCComments type=string required=true cfargument name=FilterMediaChange type=string required=true cfargument name=FMCComments type=string required=true cfargument name=CO2Refill type=string required=true cfargument name=CO2Comments type=string required=true cfargument name=TANKS_ID type=string required=true !--- Create new Transaction --- CFQUERY datasource=#DATASOURCENAME# name=trans INSERT INTO AL_TRANS (TransDate ,TANKS_ID) VALUES (#Now()#, #TANKS_ID#) /CFQUERY !--- GET MAX ID --- CFQUERY datasource=#DATASOURCENAME# name=getTrans SELECT max(ID) AS TransID FROM AL_TRANS /CFQUERY !--- INSERT WATER PARAMETERS --- cfquery datasource=#DATASOURCENAME# name=insValues INSERT INTO AL_WATER (PH,KH,GH,CO2,Ammonia,Nitrite,Nitrate,WComments,TRANS_ID) VALUES (#arguments.PH#, #arguments.KH#, #arguments.GH#, #arguments.CO2#, #arguments.Ammonia#, #arguments.Nitrite#, #arguments.Nitrate#, '#arguments.WComments#', #getTrans.TransID# ) /cfquery !--- INSERT MAINTENANCE VALUES --- CFQUERY datasource=#DATASOURCENAME# name=insMaint INSERT INTO MAINTENANCE (TRANSID,WaterChange,WCComments,FilterMediaChange,FMCComments,CO2Refill,CO2C omments) VALUES (#getTrans.TransID#, '#attributes.WaterChange#', '#attributes.WCComments#', '#attributes.FilterMediaChange#', '#attributes.FMCComments#', '#attributes.CO2Refill#', '#attributes.CO2Comments#' /CFQUERY CFSET status = Success cfreturn status /cffunction /cfcomponent ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Strange CFC problem
Arguments!! ;-) -Original Message- From: Frank Mamone [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 March 2003 3:29 p.m. To: CF-Talk Subject: Strange CFC problem I'm using CFINVOKE to call a CFC and I get an error saying that certain arguments are undefined when in fact they are. The error is: Element WATERCHANGE is undefined in ATTRIBUTES cfcomponent cfset DATASOURCENAME = #request.dsn# / cffunction name=addLog access=remote returntype=struct cfargument name=PH type=string required=true cfargument name=KH type=string required=true cfargument name=GH type=string required=true cfargument name=CO2 type=string required=true cfargument name=Ammonia type=string required=true cfargument name=Nitrite type=string required=true cfargument name=Nitrate type=string required=true cfargument name=WComments type=string required=true cfargument name=WaterChange type=string required=true cfargument name=WCComments type=string required=true cfargument name=FilterMediaChange type=string required=true cfargument name=FMCComments type=string required=true cfargument name=CO2Refill type=string required=true cfargument name=CO2Comments type=string required=true cfargument name=TANKS_ID type=string required=true !--- Create new Transaction --- CFQUERY datasource=#DATASOURCENAME# name=trans INSERT INTO AL_TRANS (TransDate ,TANKS_ID) VALUES (#Now()#, #TANKS_ID#) /CFQUERY !--- GET MAX ID --- CFQUERY datasource=#DATASOURCENAME# name=getTrans SELECT max(ID) AS TransID FROM AL_TRANS /CFQUERY !--- INSERT WATER PARAMETERS --- cfquery datasource=#DATASOURCENAME# name=insValues INSERT INTO AL_WATER (PH,KH,GH,CO2,Ammonia,Nitrite,Nitrate,WComments,TRANS_ID) VALUES (#arguments.PH#, #arguments.KH#, #arguments.GH#, #arguments.CO2#, #arguments.Ammonia#, #arguments.Nitrite#, #arguments.Nitrate#, '#arguments.WComments#', #getTrans.TransID# ) /cfquery !--- INSERT MAINTENANCE VALUES --- CFQUERY datasource=#DATASOURCENAME# name=insMaint INSERT INTO MAINTENANCE (TRANSID,WaterChange,WCComments,FilterMediaChange,FMCComments,CO2Refill,CO2C omments) VALUES (#getTrans.TransID#, '#attributes.WaterChange#', '#attributes.WCComments#', '#attributes.FilterMediaChange#', '#attributes.FMCComments#', '#attributes.CO2Refill#', '#attributes.CO2Comments#' /CFQUERY CFSET status = Success cfreturn status /cffunction /cfcomponent ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Strange CFC problem
attributes.WaterChange or arguments.WaterChange Doug -Original Message- From: Frank Mamone [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:29 PM To: CF-Talk Subject: Strange CFC problem I'm using CFINVOKE to call a CFC and I get an error saying that certain arguments are undefined when in fact they are. The error is: Element WATERCHANGE is undefined in ATTRIBUTES cfcomponent cfset DATASOURCENAME = #request.dsn# / cffunction name=addLog access=remote returntype=struct cfargument name=PH type=string required=true cfargument name=KH type=string required=true cfargument name=GH type=string required=true cfargument name=CO2 type=string required=true cfargument name=Ammonia type=string required=true cfargument name=Nitrite type=string required=true cfargument name=Nitrate type=string required=true cfargument name=WComments type=string required=true cfargument name=WaterChange type=string required=true cfargument name=WCComments type=string required=true cfargument name=FilterMediaChange type=string required=true cfargument name=FMCComments type=string required=true cfargument name=CO2Refill type=string required=true cfargument name=CO2Comments type=string required=true cfargument name=TANKS_ID type=string required=true !--- Create new Transaction --- CFQUERY datasource=#DATASOURCENAME# name=trans INSERT INTO AL_TRANS (TransDate ,TANKS_ID) VALUES (#Now()#, #TANKS_ID#) /CFQUERY !--- GET MAX ID --- CFQUERY datasource=#DATASOURCENAME# name=getTrans SELECT max(ID) AS TransID FROM AL_TRANS /CFQUERY !--- INSERT WATER PARAMETERS --- cfquery datasource=#DATASOURCENAME# name=insValues INSERT INTO AL_WATER (PH,KH,GH,CO2,Ammonia,Nitrite,Nitrate,WComments,TRANS_ID) VALUES (#arguments.PH#, #arguments.KH#, #arguments.GH#, #arguments.CO2#, #arguments.Ammonia#, #arguments.Nitrite#, #arguments.Nitrate#, '#arguments.WComments#', #getTrans.TransID# ) /cfquery !--- INSERT MAINTENANCE VALUES --- CFQUERY datasource=#DATASOURCENAME# name=insMaint INSERT INTO MAINTENANCE (TRANSID,WaterChange,WCComments,FilterMediaChange,FMCComments,C O2Refill,CO2C omments) VALUES (#getTrans.TransID#, '#attributes.WaterChange#', '#attributes.WCComments#', '#attributes.FilterMediaChange#', '#attributes.FMCComments#', '#attributes.CO2Refill#', '#attributes.CO2Comments#' /CFQUERY CFSET status = Success cfreturn status /cffunction /cfcomponent ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Strange CFC problem
Doh!Late late night! Thanks guys:) - Original Message - From: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:33 PM Subject: RE: Strange CFC problem attributes.WaterChange or arguments.WaterChange Doug -Original Message- From: Frank Mamone [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:29 PM To: CF-Talk Subject: Strange CFC problem I'm using CFINVOKE to call a CFC and I get an error saying that certain arguments are undefined when in fact they are. The error is: Element WATERCHANGE is undefined in ATTRIBUTES cfcomponent cfset DATASOURCENAME = #request.dsn# / cffunction name=addLog access=remote returntype=struct cfargument name=PH type=string required=true cfargument name=KH type=string required=true cfargument name=GH type=string required=true cfargument name=CO2 type=string required=true cfargument name=Ammonia type=string required=true cfargument name=Nitrite type=string required=true cfargument name=Nitrate type=string required=true cfargument name=WComments type=string required=true cfargument name=WaterChange type=string required=true cfargument name=WCComments type=string required=true cfargument name=FilterMediaChange type=string required=true cfargument name=FMCComments type=string required=true cfargument name=CO2Refill type=string required=true cfargument name=CO2Comments type=string required=true cfargument name=TANKS_ID type=string required=true !--- Create new Transaction --- CFQUERY datasource=#DATASOURCENAME# name=trans INSERT INTO AL_TRANS (TransDate ,TANKS_ID) VALUES (#Now()#, #TANKS_ID#) /CFQUERY !--- GET MAX ID --- CFQUERY datasource=#DATASOURCENAME# name=getTrans SELECT max(ID) AS TransID FROM AL_TRANS /CFQUERY !--- INSERT WATER PARAMETERS --- cfquery datasource=#DATASOURCENAME# name=insValues INSERT INTO AL_WATER (PH,KH,GH,CO2,Ammonia,Nitrite,Nitrate,WComments,TRANS_ID) VALUES (#arguments.PH#, #arguments.KH#, #arguments.GH#, #arguments.CO2#, #arguments.Ammonia#, #arguments.Nitrite#, #arguments.Nitrate#, '#arguments.WComments#', #getTrans.TransID# ) /cfquery !--- INSERT MAINTENANCE VALUES --- CFQUERY datasource=#DATASOURCENAME# name=insMaint INSERT INTO MAINTENANCE (TRANSID,WaterChange,WCComments,FilterMediaChange,FMCComments,C O2Refill,CO2C omments) VALUES (#getTrans.TransID#, '#attributes.WaterChange#', '#attributes.WCComments#', '#attributes.FilterMediaChange#', '#attributes.FMCComments#', '#attributes.CO2Refill#', '#attributes.CO2Comments#' /CFQUERY CFSET status = Success cfreturn status /cffunction /cfcomponent ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
My First CFC - Problem
I've been following BF's articles on MM to create my first CFC.. very easy cfc using cgi variable to determine what browser is being used. I cut and past the code I found from an article and ran it from the CFMX install on my local machine. It runs for about 2 mins and comes back with an Error: any ideas? Error occured while processing request: coldfusion cannot determin the line of the template that cuased this error CFC: !--- Browser id component --- CFCOMPONENT !--- Is the browser IE? --- CFFUNCTION NAME=IsIE !--- Init variable --- CFSET result=No !--- Look for IE identifier --- CFIF FindNoCase(MSIE, CGI.HTTP_USER_AGENT) !--- Yep, got it --- CFSET result=Yes /CFIF !--- Return result --- CFRETURN result /CFFUNCTION /CFCOMPONENT Calling Page CFINVOKE COMPONENT=browser METHOD=IsIE RETURNVARIABLE=result_ie CFOUTPUT Your browser is:BR IE: #YesNoFormat(result_ie)#BR /CFOUTPUT --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com