Remove Jrun Server Instance

2015-02-27 Thread Donnie Carvajal

Hi,

I've removed a Jrun Server Instance by clicking on the Delete Icon in the 
Available Servers list under CF Admin-Enterprise Manager-Instance Manager for 
CF 9, but the c:\Jrun4\Servers\[instancename] folder is still on the C drive.  
Can I remove this folder?  Also, are there any other manual steps that you 
would suggest when deleting a Jrun Server instance?

Thanks,

Donnie Carvajal 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360176
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Java certificate issue

2014-11-26 Thread Donnie Carvajal

Probably due to the poodle vulnerability and the disabling of ssl 3. Update
to Java 1.7 and you should be good.

On Tuesday, November 25, 2014, Donnie Carvajal 
donnie.carva...@transformyx.com wrote:



Thanks for the feedback.  I am having issues updating Java.  I've updated to 
HotFix 3 and I've followed the instructions here 
http://helpx.adobe.com/coldfusion/kb/change-coldfusion-jvm.html but ColdFusion 
will not start up.  It throws a system error The ColdFusion 9 Application 
Server service terminated with service-specific error 2 (0x2)

Any ideas?

Donnie Carvajal 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359713
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Java certificate issue

2014-11-26 Thread Donnie Carvajal

Look at your log files for what the actual error on startup might be.
C:\ColdFusion9\logs\

I would care to guess to look in the server.log file

John Blayter
m: 303.325.1979
http://www.blayter.com/john/

On Wed, Nov 26, 2014 at 8:37 AM, Donnie Carvajal 
donnie.carva...@transformyx.com wrote:



Thanks John,

I already checked there and none of the logs were updated.  I did find a post 
that suggested copying msvcr100.dll from the new jre to 
[ColdFusionHome]\runtime\bin.  That seemed to do the trick.

Donnie Carvajal 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359715
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Java certificate issue

2014-11-25 Thread Donnie Carvajal

Hi,

I just started receiving the following error for a java API that we are using 
to connect to Netsuite.

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: 
PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target

Our server is Windows 2003 SErvice Pack 2 (Version 5.2).  ColdFusion is 
9.0.0.251028 and Java is 1.6.0_14.

This system has been working for years and all of a sudden we are seeing this 
error.

Any ideas of what could be causing the issue?

Donnie Carvajal 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359709
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: XMLRPC Request with CFHTTP

2014-10-15 Thread Donnie Carvajal

  Thanks for the quick response.  I don't believe this is helpful.  I 
 have the correct XML to send and it has
  been confirmed.  The issue is with the web service interpreting my 
 request and processing the XML.  I
  believe the issue is in the header that CFHTTP creates.
 
 Actually, take a look at the code sample included at the link (not 
 the
 CFC itself). There's the answer to your question.
 
 Also, honestly, a good book about HTTP would be useful here. There's 
 a
 really good O'Reilly pocket guide to HTTP that would help you out.
 This isn't intended as a personal criticism - I think every CF
 developer would benefit from rereading this (including me). But
 understanding how HTTP works is fundamental to web programming,
 especially today with all the AJAX etc stuff going on.
 
 In the first line of your HTTP request, there's always something like 
 this:
 
 [VERB] [RELATIVE URL FROM SERVER ROOT] [PROTOCOL]
 
 For example, when your browser requests the page
 http://training.figleaf.com/courses/acfd9.cfm, the first line of its
 request will look like this:
 
 GET /courses/acfd9.cfm HTTP/1.1
 
 In your case, you want to send an XMLRPC request, so you have to POST
 to http://yourserver.com/XMLRPC.
 
 I don't think it will matter whether you specify HTTP/1.1 or HTTP/1.0.
 
 It shouldn't matter, anyway - that just tells the server what version
 of HTTP the client supports. I'm also not sure if there's a way to
 specify HTTP/1.0 support with CFHTTP. I suspect there is, but I don't
 know what it is offhand because again it generally doesn't matter.
 
 Dave Watts, CTO, Fig Leaf Software
 1-202-527-9569
 http://www.figleaf.com/
 http://training.figleaf.com/
 
 Fig Leaf Software is a Service-Disabled Veteran-Owned Small Business
 (SDVOSB) on GSA Schedule, and provides the highest caliber vendor-
 authorized instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359474
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: XMLRPC Request with CFHTTP

2014-10-15 Thread Donnie Carvajal

Hi Dave,

Thanks for the response.  I did add the /XMLRPC to the url in cfhttp and that 
did the trick.

Donnie Carvajal

  Thanks for the quick response.  I don't believe this is helpful.  I 
 have the correct XML to send and it has
  been confirmed.  The issue is with the web service interpreting my 
 request and processing the XML.  I
  believe the issue is in the header that CFHTTP creates.
 
 Actually, take a look at the code sample included at the link (not 
 the
 CFC itself). There's the answer to your question.
 
 Also, honestly, a good book about HTTP would be useful here. There's 
 a
 really good O'Reilly pocket guide to HTTP that would help you out.
 This isn't intended as a personal criticism - I think every CF
 developer would benefit from rereading this (including me). But
 understanding how HTTP works is fundamental to web programming,
 especially today with all the AJAX etc stuff going on.
 
 In the first line of your HTTP request, there's always something like 
 this:
 
 [VERB] [RELATIVE URL FROM SERVER ROOT] [PROTOCOL]
 
 For example, when your browser requests the page
 http://training.figleaf.com/courses/acfd9.cfm, the first line of its
 request will look like this:
 
 GET /courses/acfd9.cfm HTTP/1.1
 
 In your case, you want to send an XMLRPC request, so you have to POST
 to http://yourserver.com/XMLRPC.
 
 I don't think it will matter whether you specify HTTP/1.1 or HTTP/1.0.
 
 It shouldn't matter, anyway - that just tells the server what version
 of HTTP the client supports. I'm also not sure if there's a way to
 specify HTTP/1.0 support with CFHTTP. I suspect there is, but I don't
 know what it is offhand because again it generally doesn't matter.
 
 Dave Watts, CTO, Fig Leaf Software
 1-202-527-9569
 http://www.figleaf.com/
 http://training.figleaf.com/
 
 Fig Leaf Software is a Service-Disabled Veteran-Owned Small Business
 (SDVOSB) on GSA Schedule, and provides the highest caliber vendor-
 authorized instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359475
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFHTTP Raw Request

2014-10-14 Thread Donnie Carvajal

Hi Steve,

Thanks for the suggestion.  I've never used Fiddler before.  Are there any 
special configurations to watch a cfhttp request?

Thanks,

Donnie Carvajal

 If you are doing this on a developer machine, install fiddler. Then 
 you can watch everything the request and response and look at the raw 
 outputs.  It has saved me multiple times from pulling my hair out.
 
 Steve
 
 -Original Message-
 From: Donnie Carvajal [mailto:donnie.carva...@transformyx.com] 
 Sent: Wednesday, October 08, 2014 12:17 PM
 To: cf-talk
 Subject: CFHTTP Raw Request
 
 
 I have a process that is sending xml via cfhttp and I am not getting 
 the anticipated response from the web service.  I would like to see 
 the actual headers and the body of the request.
 
 Does anyone know if there is a way to track the raw request that is 
 created by a cfhttp post?
 
 Thanks,
 
 Donnie Carvajal 
 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359462
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFHTTP Raw Request

2014-10-14 Thread Donnie Carvajal

I think I may be confused.  I need to see the raw headers that CFHTTP is 
creating.  I installed Fiddler on the development and ran it. When I call the 
CF page that includes the CFHTTP, I am not seeing any new requests in Fiddler.  
I'm not sure how a browser would show me CFHTTP headers that are created.  Am I 
missing something?

Thanks,

Donnie Carvajal

 It's just a program that when run will sit between the browser and the 
 world outside the computer (internet, intranet, etc).  It displays 
 what is going in and out.
 
 It's an easy install and adds piece to IE/Chrome/Firefox as well as 
 installing the App.  You just run it and use your web browser.  If you 
 are working with HTTPS/SSL/TLS then there is a way to set it up to 
 track that data as well (Technically a man in the middle, but you are 
 doing it to yourself so it's ok).
 
 Steve
 -Original Message-
 From: Donnie Carvajal [mailto:donnie.carva...@transformyx.com] 
 Sent: Tuesday, October 14, 2014 11:21 AM
 To: cf-talk
 Subject: Re: CFHTTP Raw Request
 
 
 Hi Steve,
 
 Thanks for the suggestion.  I've never used Fiddler before.  Are there 
 any special configurations to watch a cfhttp request?
 
 Thanks,
 
 Donnie Carvajal

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359465
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


XMLRPC Request with CFHTTP

2014-10-14 Thread Donnie Carvajal

I'm having an issue with a XMLRPC webservice using CFHTTP.  I am getting 
text/html responses instead of xml.  A successful non-CFHTTP request's raw 
header are sends as POST /XMLRPC HTTP/1.0.  The CFHTTP request's header sends 
as POST / HTTP/1.1.  I believe the issue is the missing /XMLRPC.  Does 
anyone know how to get CFHTTP to include this in the POST request?

Thanks,

Donnie Carvajal 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359470
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: XMLRPC Request with CFHTTP

2014-10-14 Thread Donnie Carvajal

Hi John,

Thanks for the quick response.  I don't believe this is helpful.  I have the 
correct XML to send and it has been confirmed.  The issue is with the web 
service interpreting my request and processing the XML.  I believe the issue is 
in the header that CFHTTP creates.

Donnie Carvajal

Helpful...?  http://www.houseoffusion.com/groups/xml/thread.cfm/threadid:108

On Tue, Oct 14, 2014 at 4:08 PM, Donnie Carvajal 
donnie.carva...@transformyx.com wrote:

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359472
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFHTTP Raw Request

2014-10-08 Thread Donnie Carvajal

I have a process that is sending xml via cfhttp and I am not getting the 
anticipated response from the web service.  I would like to see the actual 
headers and the body of the request.

Does anyone know if there is a way to track the raw request that is created by 
a cfhttp post?

Thanks,

Donnie Carvajal 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359412
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFHTTP Host Header Issue

2014-10-07 Thread Donnie Carvajal

Hi All,

I have a project that requires me to connect to a web server that requires a 
request header host value that is different from the URL of the request.  For 
example...

cfhttp url=http//www.domain1.com method=post
chttpparam type=header name=Host value=www.domain2.com
...
/cfhttpparam

Does anyone know if cfhttp can send a separate Host in the header from the 
cfhttp url attribute?

Thanks,

Donnie Carvajal 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359410
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


AJAX request returning 304

2014-08-27 Thread Donnie Carvajal

I have an ajax request calling a ColdFusion template.  Each time the ajax 
function is called, the ColdFusion template should return the next 20 rows of a 
query.  I am running into an issue where the browser thinks the ColdFusion 
template hasn't changed since a 304 http status code is returned.  I don't have 
an html or head tag in the CF template, so I don't believe a cfheader tag will 
work.  Does anyone know how to prevent a CF template from returning a 304 http 
status code?

Thanks,

Donnie Carvajal 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359200
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Template request runs twice

2014-07-16 Thread Donnie Carvajal

Hi Russ,

Thanks for the response.  

We have not updated the JVM.  I did have a cftransaction rollback in the code 
for testing.  I removed this line and it only ran once.  Do you think a 
cftransaction rollback would run the request again?

one cause for this is if you have updated to a newer JVM. Try switching
back to the original jvm and see if it still occurs.


On Tue, Jul 15, 2014 at 9:40 PM, Donnie Carvajal 
donnie.carva...@transformyx.com wrote:

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358879
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Template request runs twice

2014-07-15 Thread Donnie Carvajal

I have a template in ColdFusion 9 that I am running.  I have several lines in 
the file that write to a log file so that I can track the progress.  My log 
file indicates another thread has begun running the same request at 1 minute 
after my request.  Does anyone know what may be causing this?

Thanks,

Donnie Carvajal 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358871
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Template request runs twice

2014-07-15 Thread Donnie Carvajal

I have an update to this.  I checked my IIS 7 log file and there is only 1 
request coming through IIS, so it appears CF is starting the 2nd request.

 I have a template in ColdFusion 9 that I am running.  I have several 
 lines in the file that write to a log file so that I can track the 
 progress.  My log file indicates another thread has begun running the 
 same request at 1 minute after my request.  Does anyone know what may 
 be causing this?
 
 Thanks,
 
 Donnie Carvajal 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358872
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Extending Application.CFC

2014-04-11 Thread Donnie Carvajal

Hi,

I have an application with a root application.cfc and a subfolder for IVR 
access that also has an application.cfc which extends the root application.cfc. 
 There are certain Application variables that I only need in the IVR subfolder, 
so I added an onApplicationStart method to the subfolder application.cfc.  I'm 
running into an issue in my IVR access indicating that the IVR specific 
variables are not available.  This is because the root application.cfc ran 
before the sub and the onApplicationStart method in the sub application.cfc did 
not.

Would you suggest putting all application variables in the Root 
onApplicationStart method or add a check in subfolder onRequest method for 
variables and call subfolder onApplicationStart if missing?

Any best practices I'm missing?

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358317
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Extending Application.CFC

2014-04-11 Thread Donnie Carvajal

Hi Byron,

IVR stands for Interactive Voice Response.  This particular app allows users to 
login via phone, so I want the same logic as the web app for logging in.

Hi Russ,

Currently, both application.cfc's have the same application name.

Donnie

does each of your application.cfc have a different application name ?


On Fri, Apr 11, 2014 at 5:58 PM, Donnie Carvajal 
donnie.carva...@transformyx.com wrote:

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358320
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Extending Application.CFC

2014-04-11 Thread Donnie Carvajal

Hi Russ,

To be more specific, I am not setting the application name in the sub 
application.cfc.

Donnie

 Hi Byron,
 
 IVR stands for Interactive Voice Response.  This particular app allows 
 users to login via phone, so I want the same logic as the web app for 
 logging in.
 
 Hi Russ,
 
 Currently, both application.cfc's have the same application name.
 
 Donnie
 
 does each of your application.cfc have a different application name 
 ?
 
 
 On Fri, Apr 11, 2014 at 5:58 PM, Donnie Carvajal 
 donnie.carva...@transformyx.com wrote:
 
  

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358321
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Extending Application.CFC

2014-04-11 Thread Donnie Carvajal

Thanks Cameron,

I would like to set different application names, but I've had issues in the 
past.  I don't remember exactly, but I think there were some application 
variables not accessible.  What are the pros and cons for using separate 
application names?  Are there any caveats I should be aware of if I decide to 
use separate application names?

Donnie


Assuming that both App.cfc files share the same Application name, it's
really all one application regardless of which fires first. So you aren't
really getting much benefit from what it sounds like you are trying to do,
unless App.cfc is doing some other things too.

A few ways you could do this. Here are some ideas:

1) Use some sort of BeanFactory/Parent SubFactories to populate these
beans. DI/1 is a good one...

https://github.com/framework-one/di1

2) You could pull out some of the Application.cfc code and abstract it into
other files. Then you have the option to include things your IRV needs or
not, without extending. Mura CMS does this. Start at line 48/67/79 here to
see a few examples of how:

https://github.com/blueriver/MuraCMS/blob/develop/Application.cfc

3) I've used a very lightweight SingletonFactory.cfc before to create files
on demand. This is similar to some things DI/1 does but super dumbed down
and without the Dependency Injection part. you ask it for a CFC and it
optionally creates it if needed and stores it in the application scope. If
it's already in Application scope it just returns it.

A quick example is here:

https://gist.github.com/cameroncf/10487348

You call it something like this:

ivrSettings = createObject('component','path.to.model.SingletonFactory')
  .init()
  .getObject('path.to.model.IVR.Settings');

You can obviously abstract out some of that init code but that's
essentially how it's used in a one line example.

-Cameron

-- 
Cameron Childress
--
p:   678.637.5072
im: cameroncf
facebook http://www.facebook.com/cameroncf |
twitterhttp://twitter.com/cameronc |
google+ https://profiles.google.com/u/0/117829379451708140985 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358324
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Strange Error

2014-03-26 Thread Donnie Carvajal

I have a ColdFusion template that is used for a form action using post method.  
The page loads correctly except for my confirmation output and displays POST as 
the CGI.request_method and displays all of the Form fields in the debug info 
and displays all of the queries that are supposed to run; however, an error is 
thrown in the CF error logs indicating that a form field is missing.  I turned 
on my site wide error handler and the email message I get for the error is 
showing the page loaded via GET and there are no Form fields.

Has anyone ever experienced this before?

One more oddity that may help solve this, there is a blank template in the 
execution time table and by blank I mean there is nothing in the template 
column for this entry, but it does indicate the count=1 and the total time also 
has a value.

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358130
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Query of Queries Empty String Issue

2011-08-02 Thread Donnie Carvajal

I have the following query of queries query

SELECT code, title
FROM Nav
WHERE nav = 'Calendar'
AND order = ''

It has recently stopped returning results when upgrading to CF9.  If I change 
the where clause to the following it returns the record

WHERE nav = 'Calendar'
AND order IS NULL

Any ideas why the original where clause stopped working?  I thought CF treated 
all NULL value fields in a record set as an empty string.

Donnie

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346455
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


ColdFusion 9 64-bit Image Manipulation

2011-07-28 Thread Donnie Carvajal

We are upgrading our system to CF9 64-bit and our CFX tags we use for image 
resizing and info gathering are not working.  We get an unable to load 
library error.  Since these tags have been in this application for over 10 
years, I will assume that they were compiled for 16-bit and 64-bit CF on 
Windows 2008 can not process them.  Does anyone know of any CFX tags that will 
run on 64-bit for image manipulation?  Is there anything native to CF 9 that I 
can use?

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346394
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CDN and Coldfusion

2011-06-15 Thread Donnie Carvajal

Hi,

Thanks for all of the responses. We are indeed trying to find another solution 
for having mirrored sites that we would have to manage.  We have 5,000 CMS 
clients on the system and that is a ton of files (images, documents, css, etc.) 
to mirror, so a CDN seems like a better fit, but then that leaves the 
Coldfusion generated content.  We are trying to determine if it would be better 
(cost vs. management headaches) to use the CDN to distribute the ColdFusion 
content as well or mirror.

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345333
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Resizing a PNG with CFX_Image returns a blank image

2011-06-15 Thread Donnie Carvajal

Hi Steve,

I am having the same problem.  Did you ever find a solution to this?

Donnie

 Hey Guys,
 
 I'm trying to resize images using the CFX_image tag.
 
 Everything works great for GIFs and JPGs, but when I try and resize a 
 PNG image, all that is returned is a completely blank white image.
 
 The code I'm using is:
 
 CFX_IMAGE ACTION=RESIZE 
FILE=#ExpandPath('Documents/#Trim(Site_ 
ID)#/Profile_Picture/ProfilePic_Origional_#PhotoID#_#Trim(mod_userID)#.
 #fileext#')# 
OUTPUT=#ExpandPath('Documents/# 
Trim(Site_ID)#/Profile_Picture/ProfilePic_#PhotoID#_#Trim(mod_userID)#.
 #fileext#')# X=150 
 
 and it's running on CF9, Windows Server 2008.
 
 Has anyone else run into this problem before, and maybe come across a 
 solution?
 
 Thanks
 
 Steve 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345355
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CDN and Coldfusion

2011-06-14 Thread Donnie Carvajal

Has anyone ever worked with a CDN like Akamai with Coldfusion where the actual 
content is distributed, not just images and documents?

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345309
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFX_PCRegEx in CF 9

2011-05-17 Thread Donnie Carvajal

I have an app that we are upgrading to CF9 from CF 5.  We were using 
CFX_PCRegEx instead of the built in regex functionality because it was way 
faster.  It is throwing errors in CF9.  The exception.log entry states...

Something bad happened in CFX_PCRegEx.

Has anyone had any success running CFX_PCregEx in ColdFusion 9?  Does anyone 
know if the regex functionality in CF 9 is more efficient than before?

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344572
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Custom tags in CF 9

2011-04-12 Thread Donnie Carvajal

Hi,

I recently installed an enterprise version of CF9 and the default directory is 
c:\jrun4 and there is no CustomTags directory.  I added my customtags directory 
from my MX7 server and the custom tags calls are returning errors that they 
can't be found.  Does anyone know where the CustomTags default directory is?  
BTW, this is a library of tags that all of the apps on the server will use, 
so placing them in the root of the web app is not an option.

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343677
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Custom tags in CF 9

2011-04-12 Thread Donnie Carvajal

Thanks for the feedback.

The intention is to set up a multi-server instance.  I did find the customtags 
and the cfx directories for this instance; however, the customtags are more of 
a library that we use across servers.  Is there a generic place that i can put 
these files so that all instances that I will install on this server will see 
them?  I would like to put the CFX tags and components in a common place as 
well.

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343681
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFHTTP Question

2011-03-22 Thread Donnie Carvajal

Were CARs available in CF5? If so and the servers' configs are supposed to
be the same, id go that route first.

Maybe a setting was just missed somewhere in the cf admin.

.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


Unfortunately, the last server is dead and even if CARs were available, not 
sure if they actually were, I can't get to the old server.

Thanks. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343213
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFHTTP Question

2011-03-21 Thread Donnie Carvajal

I recently moved an app to a new server and for some reason, when I run a 
CFHTTP post request to a page on the new server, the form fields are being 
interpreted as one field and the value of the field is a query string.  The 
file that is running the CFHTTP is on a differnt server.  For example, if the 
form fields are 

FirstName: John
MiddleName: James
LastName: Smith

the Coldfusion debug shows the following for Form fields

FirstName :JohnMiddleName=JamesLastName=Smith

Does anyone know why one server would work correctly and see all 3 fields and 
another server won't parse the fields correctly?

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343174
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFHTTP Question

2011-03-21 Thread Donnie Carvajal

 Is the space and colon between FirstName and John a typo? Because if
 not, that's your problem right there, it should be
 FirstName=JohnMiddleName=JamesLastName=Smith.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/
 
 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or 
onsit

Yes, it's a typo.  I was tying to reproduce what debug shows which is a 
variable name : value, in this case the value is 
JohnMiddleName=JamesLastName=Smith.  These values are being passed via 3 
separate httpparams with type of formfield.  I've tested the action page on 
another server and it works correctly.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343176
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFHTTP Question

2011-03-21 Thread Donnie Carvajal

Are you sure the form hasn't somehow changed method from POST to GET ?

On Mon, Mar 21, 2011 at 8:53 PM, Donnie Carvajal 
donnie.carva...@transformyx.com wrote:



The code hasn't been touched in 4 years, besides, if the CFHTTP method was set 
to Get, Form Variables wouldn't be available in the debug info and URL 
Variables would be present.

Thanks for replying 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343179
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFHTTP Question

2011-03-21 Thread Donnie Carvajal

 There are two things I can think of off the top of my head, that you 
 might do.
 
 First, you might just take a shot in the dark and play with encoding.
 You can specify the appropriate encoding for your form post from
 CFHTTP using the CHARSET attribute.
 
 Second, you might want to compare a good request with a bad one - you
 can capture HTTP requests on the client using various tools that
 record and/or proxy HTTP traffic. You could make a request from a
 browser on the same server that's running the CFHTTP tag.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/
 
 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or 
onsi

Thanks Dave.  This code hasn't changed in 4 years and it only started 
misparsing the form data when the action page was moved to another server, so 
this seems like there is an issue with the Coldfusion service on the server.  I 
have the same action page on several different servers.  I can change the URL 
in my CFHTTP and it will work on certain servers and it won't work on other 
servers.  There is no encoding changes or anything, just the URL that the 
CFHTTP is posting too.

This is a CF 5.5 server.  Do you think there is a patch that needs to be 
applied? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343182
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFHTTP Question

2011-03-21 Thread Donnie Carvajal

If it is a charset issue, do you know how to configure CF for the correct 
charset.  I have clients that are hitting this page by posting straight to it.  
It would be much easier to change my server since it is on my network.

Thanks. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343184
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion Builder: Plug-In vs. Standalone

2011-02-11 Thread Donnie Carvajal

Thanks for the feedback.  I decided to go with standalone and it seems very 
solid so far.  BTW, I figured out my problem with the tag completion.  There 
are 2 settings that need to be set to get this to work.  If you go to 
Preferences-ColdFusion-Editor Profiles-Editor, under Code Assist, you have 
to check Automatically Insert a Closing Tag and under Typing something other 
than Never needs to be chosen under Auto-close tags.  This is very strange 
that the settings are on 2 different pages, I've been fighting with this for at 
least a year now and posted several threads to no avail.  I'm glad I found it.

Thanks again,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342146
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


ColdFusion Builder: Plug-In vs. Standalone

2011-02-03 Thread Donnie Carvajal

I am getting a new machine and we are installing all of the software.  I am 
running Builder as a plug-in now and it is very flaky and a lot of features 
don't work (i.e. tag completion, code coloring is sporadic, etc.).

Would you suggest I do this new install standalone? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341826
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Insert without checking existance

2011-01-28 Thread Donnie Carvajal

Is exists() more efficient than this?

Yes. I use it all of the time. Exists() will look for until it finds a record 
and as soon as it finds it, it stops because the criteria is met.  A normal 
Select statement will look at all records and finish once all records have been 
parsed.  It's really more efficient when the possibility of multiple records 
returned is there.

Hope this helps. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341635
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFCs for AJAX

2010-11-16 Thread Donnie Carvajal

I have several CFCs that I am accessing for AJAX calls.  Since the calls load a 
method directly, what is the best practice for instantiating the object?  For 
example, I want to insure the user is logged in, so there are Client variables 
to check, I don't want to pass user credentials in the URL.  Typically, I tried 
to avoid accessing Client variables directly in my CFCs and I would have an 
Init() method that I would pass the Client variables to and then I would set 
local variables to the CFC for them, but the Init method would be bipassed on 
an AJAX call.

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339287
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


ODBC Data Source for Client Variables

2010-11-16 Thread Donnie Carvajal

Has anyone tried setting up Client Variables though an ODBC datasource on 2 
different servers running 2 different versions of ColdFusion and they both 
point to the same datasource?  Can this be done?

I have an app running CF 5.5 that needs changes before it can be upgraded to 
any version of MX and I would like to make AJAX calls to a CF MX server.  I 
need to access a web service so the AJAX calls need to run an MX version of 
ColdFusion.  I would like to use Client variables to authenticate the AJAX 
calls instead of passing credentials in the URL.

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339289
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFCs for AJAX

2010-11-16 Thread Donnie Carvajal

I thought the onRequest method caused issues with calling CFCs remotely.  I 
heard CF 9 fixed, but I'm not using CF 9.  I guess this would work in the 
onRequestStart method though.  Is this correct?

 I would do user checks in a component from onRequest and then use a 
 proxy cfc for your ajax requests. Using onRequest, you can check the 
 url and if it is the proxy cfc, then do your user credential checks 
 before allowing access. Otherwise, you'll need to use the client scope 
 in your cfc directly. 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339293
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFCs for AJAX

2010-11-16 Thread Donnie Carvajal

I figured it was a typo.  I get the credential check in the onRequestStart(), 
makes sense.

The other issue I'm having is that I need to access the user object that would 
be created in onRequestStart().  
Basically, CF based objects can't be passed to remote methods, correct?  So 
either way, I will have to access some variable (singular or object) that was 
created outside the component.  Not a big deal, just go against some standards 
we are trying to follow.

Shoot. Sorry, I meant to say onRequestStart() not onRequest. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339296
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: JQuery Ajax Error issue with Site-wide Error Handler

2010-11-11 Thread Donnie Carvajal

Thanks Tony!  Will the cfheader statusCode=500 work with the site-wide 
error handler on?  I tried adding this tag to my ajax code, but it is still 
returning as success.

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339117
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: JQuery Ajax Error issue with Site-wide Error Handler

2010-11-11 Thread Donnie Carvajal

Hi Tony,

Thanks again.  I should mention that I want the site-wide error handler to run. 
 It writes to log files, sends email notification as well as some other bug 
tracking pieces we have in place.  If I put a cfabort in the code, the 
site-wide error handler won't run.  Are you suggesting the code you sent over 
be placed in the site-wide error handler or should it be placed in the code 
that is called via AJAX?

Thanks,

Donnie

 Check firebug (how many times do people say this?)
 
 If you throw a 500 and abort after, the client should treat the 
 response as an error. You need to configure the client too, not just 
 put in cfheader statusCode=500. Use ALL of my code, not just a 
 fragment.
 
 
 
  Thanks Tony!  Will the cfheader statusCode=500 work with the 
  site-wide error handler on?  I tried adding this tag to my ajax code, 
 
  but it is still returning as success.
  
  Thanks,
  
  Donnie 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339124
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: JQuery Ajax Error issue with Site-wide Error Handler

2010-11-11 Thread Donnie Carvajal

Hi Tony,

I just realized you were intending for the code to go in the site-wide error 
handler and not the custom error handling of the AJAX code.  I got it working.  
This was a great help!!

Thanks again,

Donnie

 Check firebug (how many times do people say this?)
 
 If you throw a 500 and abort after, the client should treat the 
 response as an error. You need to configure the client too, not just 
 put in cfheader statusCode=500. Use ALL of my code, not just a 
 fragment.
 
 
 
  Thanks Tony!  Will the cfheader statusCode=500 work with the 
  site-wide error handler on?  I tried adding this tag to my ajax code, 
 
  but it is still returning as success.
  
  Thanks,
  
  Donnie 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339125
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


JQuery Ajax Error issue with Site-wide Error Handler

2010-11-10 Thread Donnie Carvajal

I have some Ajax running via jQuery and I also have a site-wide error handler 
running for ColdFusion.  When the coldfusion template is called via ajax and an 
error is thrown via cfthrow, the ajax error handler is not triggered, instead 
the ajax success handler is.  If I remove the site-wide error handler, the 
ajax error handler is triggered.  This particular system is on CF 5.5.

What is the status code that CF sets the requests to when the site-wide error 
handler is triggered?  I believe the ajax success handler looks for a 200 
status code.  Is there someway to set the status code in the site-wide error 
handler?

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339084
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


SOAP Output for Object

2010-10-29 Thread Donnie Carvajal

I am working with a web service and have been working with the web service 
support to try to work through some of the bugs.  They asked what the SOAP 
requests were.  Can any instatiated object in ColdFusion be output as a SOAP 
request or would this possibly be a built in method of the web service?

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338668
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


JavaCast Problem

2010-10-27 Thread Donnie Carvajal

When I run JavaCast to set a ColdFusion Array to an array of Netsuite Java 
objects, 
com.netsuite.webservices.lists.relationships_2010_1.CustomerAddressbook[], when 
I dump the array and output the GetClass().GetName(), the array length is 
correct and the GetClass().GetName() value is 
[Lcom.netsuite.webservices.lists.relationships_2010_1.CustomerAddressbook 
indicating it is indeed an array of objects, each element in the cfdump for the 
array has the following:

[undefined array element] Element 1 is undefined in a Java object of type class 
coldfusion.runtime.Cast$1.

Any idea why this is?  If I try this with a string array, and JavaCast to 
String[], the cfdump displays the correct values for each element in the 
array.

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338627
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Test

2010-10-27 Thread Donnie Carvajal

My last post never showed up, so I am testing the system 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338629
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


JavaCast Wierdness

2010-10-27 Thread Donnie Carvajal

In ColdFusion 9, when I JavaCast a Coldfusion array to an array of objects, 
specifically 
com.netsuite.webservices.lists.relationships_2010_1.CustomerAddressbook[], and 
I dump the array, the correct number of elements is displayed; however, each 
element has the followinf for a value...

[undefined array element] Element 1 is undefined in a Java object of type class 
coldfusion.runtime.Cast$1.

If I create the array using the java.lang.reflect.Array object, the dump is 
correct.

Also, if I JavaCast to a string[] it works fine.  Any ideas?

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338630
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Does Not Generate All Classes of Web Service

2010-10-21 Thread Donnie Carvajal

OK.  I finally got all of the files to generate.  I had to run wsdl2java from a 
command line and make sure the the flags -a and -w were included.  The version 
of Apache Axis that I ran from the command line create .java files instead of 
.class files and now my CreateObject calls are returning a class not found 
error.  How can I get ColdFusion 9 to recognize the classes from the .java 
files? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338436
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Does Not Generate All Classes of Web Service

2010-10-21 Thread Donnie Carvajal

  I had to run wsdl2java from a command line and make sure the


I looked up CreateOject and it does allow wsdl2java parameters to be passed.  
I'm going to try it out.  Thanks for the lead.

-Donnie 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338441
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Apache Axis Does Not Generate All Classes of Web Service

2010-10-20 Thread Donnie Carvajal

I am having a problem with the NetSuite wsdl.  There are stub class files that 
are missing.  I've seen some posts in some other forums indicating that when 
the web service is setup through Coldfusion, there are class files missing, but 
when wsdl2java is run from the command line, it works just fine.

Is anyone else experiencing this problem with any other web services? If so, is 
there a fix or do I need to compile all wsdl classes from the command line from 
here on out?

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338371
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Upgrade

2010-10-20 Thread Donnie Carvajal

Are there any special intructions for upgrading Axis in ColdFusion?  It seems 
the webservices.jar file also has a wsdl2java class that maybe being called 
over the class in the upgrades Axis jar files.

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338373
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Upgrade

2010-10-20 Thread Donnie Carvajal

Which jar file are you talking about opening and what am I looking for?  If 
this determines that the webservices.jar has the wsdl2java class, how do I get 
ColdFusion to use the upgraded Axis jar?

Thanks. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338376
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Does Not Generate All Classes of Web Service

2010-10-20 Thread Donnie Carvajal

The problem is that there are class files missing from the intitial generation. 
 I'm trying to figure out how to get either ColdFusion or Apache Axis to 
generate all of the files. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338383
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Does Not Generate All Classes of Web Service

2010-10-20 Thread Donnie Carvajal

No.  I never got it to work.  When I run wsdl2java from the command line, it 
times out trying to access the wsdl. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338385
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Apache Axis Version

2010-10-18 Thread Donnie Carvajal

Does anyone know how to determine which version of Apache Axis an installation 
of CF 9 is using?

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338284
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Version

2010-10-18 Thread Donnie Carvajal

Thanks.  Exactly what I needed. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338286
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Apache Axis Upgrade

2010-10-18 Thread Donnie Carvajal

I'm running CF 9 and the default version of Apache Axis is 1.2.  I would like 
to 
upgrade Apache Axis to 1.4.  Does anyone know of any potential issues with 
upgrading the version of Apache Axis and CF 9?

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338299
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Accessing a webservice question

2010-10-15 Thread Donnie Carvajal

I've successfully created an object using CreateObject(webservice, 
https://webservices.netsuite.com/wsdl/v2010_1_0/netsuite.wsdl;) for NetSuite.  
There are a ton of classes that were created in the Stubs folder.  The NetSuite 
documentation indicates that I need some of these classes to create objects 
that will be used in the NetSuite object I created from the WebService.

The question I have is what is the correct way to create these objects.  It 
seems I should be using a CreateObject(java, some path to class), but all 
of the paths that I have tried return a class can not be found error.  Is 
there a special setting I need to add to CF Administrator for these classes?  
Do I need to move these classes somewhere?

I'm not well versed in Java, so any help is appreciated.

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338234
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Accessing a webservice question

2010-10-15 Thread Donnie Carvajal

Thanks Scott.  I did dump the variable and the functions parameters are looking 
for things like com.netsuite.webservices.platform.core_2010_1.Passport.  When I 
createObject(java, com.netsuite.webservices.platform.core_2010_1.Passport), 
that's when I get the class can not be found error.

Donnie,

When you instantiate the webservice ie: cfset nsws =
CreateObject(webservice,
https://webservices.netsuite.com/wsdl/v2010_1_0/netsuite.wsdl;)

you should be able to access the methods via cfset nsws.functionName()

the first thing I would do is dump the variable that you used to
instantiate, that will show you what's available to you:

cfset nsws = CreateObject(webservice,
https://webservices.netsuite.com/wsdl/v2010_1_0/netsuite.wsdl;)

cfdump var=#nsws#


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338236
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Accessing a webservice question

2010-10-15 Thread Donnie Carvajal

Hi Russ,

Thanks for the response.  The problem that I am running into is that there is a 
Login() method under the NSWS that accepts a parameter of dataType 
com.netsuite.webservices.platform.core_2010_1.Passport.  There is a class file 
under the stubs directory for this dataType.  Do I need to run a 
createObject(java, com.netsuite.webservices.platform.core_2010_1.Passport) 
to run the Login() method correctly?

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338243
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Accessing a webservice question

2010-10-15 Thread Donnie Carvajal

I think I figured out setting up the objects correctly.  The next issue that 
I'm running into sending the Login request through the webservice which returns 
com.netsuite.webservices.platform.messages_2010_1.SessionResponse.  Obviously, 
an object will not be passed back.  The return values is something like 
com.netsuite.webservices.platform.messages_2010_1.sessionrespo...@123456.  Am I 
supposed to create an object of type 
com.netsuite.webservices.platform.messages_2010_1.SessionResponse and run the 
Init(123456)?

Hope this makes sense.

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338244
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Error accessing 3rd Party Web Service

2010-10-14 Thread Donnie Carvajal

I am trying to CreateObject for the NetSuite WSDL 
https://webservices.netsuite.com/wsdl/v2010_1_0/netsuite.wsdl and I am getting 
the Error accessing 3rd Party Web Service.

Any ideas?

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338185
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Error accessing 3rd Party Web Service - Repost

2010-10-14 Thread Donnie Carvajal

 I am trying to CreateObject for the NetSuite WSDL https://webservices.
 netsuite.com/wsdl/v2010_1_0/netsuite.wsdl and I am getting the Could not 
 generate stub objects for web service invocation. .
 
 Any ideas?
 
 Thanks,
 
 Donnie 

U 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338186
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Fake URLS

2010-10-01 Thread Donnie Carvajal

I am trying to make my e-Commerce item links for efficient.  For example, I 
would like the link for an IPod Tocuh 32 GB to be 
http://www.domain.com/ipod_touch_32_gb instead of 
http://www.domain.com/store.cfm?i=123456s=789456p=654321.  You get the point. 
 I'm assuming that the url http://www.domain.com/ipod_touch_32_gb will throw 
some kind of 404 error and I will need to change the web server custom error 
for this 404 error to run some kind of script.

Has anyone implemented URLs like this before?  If so, how?  Are there any 
scripts out there that I can use?

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337741
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


SMTP Relay

2010-07-29 Thread Donnie Carvajal

We are getting rid of our internal email server and I will be losing my SMTP 
relay that Coldfusion is using for the server attribute in the CFMAIL tag.  
Rest assured, the CFMAIL tag is pulling the SMTP server from ColdFusion 
Administrator.  What is everyone using for SMTP relay if you aren't running an 
SMTP server?

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335874
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


NetSuite Single Sign-On

2010-07-06 Thread Donnie Carvajal

I am trying to implement a single sign-on to NetSuite.  The user will log into 
my CF app and get access to the secure section of my app.  There will be a link 
to NetSuite that will automatically login to NetSuite.  Has anyone ever dealt 
with this before?  I am using CF 5.5 and it the provided SSOUrl class is in 
java.

Thanks. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335130
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


ColdFusion Builder Code Color Problem

2010-07-02 Thread Donnie Carvajal

When I loaded CF Builder this morning.  All of my files are black and white 
with no coloring at all.  Does anyone know how to fix this?  I've restarted my 
computer and reloaded CF Builder.  I have also reimported my color file and 
still nothing.

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335025
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion Builder Code Color Problem

2010-07-02 Thread Donnie Carvajal

Thanks Adam,

I'm running a bought license of Version: 1.0.0.274293-8PAxQ5t6E8qAd8c6JDc85JD. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335027
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Redirect question

2010-06-02 Thread Donnie Carvajal

I have a client that would like to send out URLs without .cfm.  For example, 
there is a page in the website called acme.cfm.  To access the page, a visitor 
would go to http://www.domain.com/acme.cfm.  The client would like to also 
access acme.cfm by the following URL: http://www.domain.com/acme.  We are on 
Windows and IIS 6.  Has anybody ever done anything like this before?  It seems 
that there would need to be an ISAPI filter or maybe have a custom error 
redirect or some setting change in IIS.  I can write Coldfusion code for this, 
but that means I would have to create folder for every page and drop this CF 
code in the folder as the default and redirect to the acme.cfm page.  I would 
like to avoid creating thousands of folders, just for this redirect.

All help is appreciated.

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334234
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


ColdFusion MX 7 Configuration Transfer

2010-05-18 Thread Donnie Carvajal

We are setting up another server to add to the server farm for one of our apps 
for load balancing.  Needless to say, all of the configuration needs to be the 
same as the current live servers.  Is there a way to transfer the ColdFusion 
Configuration from one of the current live servers to the new server.  We 
figured it would be easier than pulling up both servers and going through each 
page of the CF Admin and setting everything up, especially the Custom Tags and 
Java settings.

Your help is greatly appreciated.

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333778
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion MX 7 Configuration Transfer

2010-05-18 Thread Donnie Carvajal

 On Tue, May 18, 2010 at 4:47 PM, Donnie Carvajal wrote:
 
  We are setting up another server to add to the server farm for one 
 of our apps for load balancing.  Needless to say, all of the 
 configuration needs to be the same as the current live servers.  Is 
 there a way to transfer the ColdFusion Configuration from one of the 
 current live servers to the new server.  We figured it would be easier 
 than pulling up both servers and going through each page of the CF 
 Admin and setting everything up, especially the Custom Tags and Java 
 settings.
 
 ColdFusion stores its configuration in the various neo-*.xml files in
 the lib folder so if you copy those to the new server the system will
 have an identical configuration. If you have Enterprise Edition, you
 can also export a CAR on the old server and import it on the new
 server.
 
 Jochem
 
 
 -- 
 Jochem van Dieten
 http://jochem.vandieten.
net/

Thanks Jochem.

Do I need to add the entire CFusionMX7 directory to the archive file or just 
the CustomTags and any other directories we added?  Also, do I need to go check 
all of the settings, or does it default to pull everything?

Donnie

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333782
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Force SSL

2010-05-18 Thread Donnie Carvajal

Does anyone know of a way to force SSL for all files in a web site?  This 
solution should handle non-Coldfusion pages such as PDF files as well.  I am 
using Windows 2003 with IIS.

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333789
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


ColdFusion Session Variables in Distributed Config

2010-05-12 Thread Donnie Carvajal

Does anyone know where the session variables are stored if Coldfusion is 
running in a distributed configuration?  My assumption is the session variables 
are stored on the server running ColdFusion and not the web server, but you 
know what they say about assuming.

Thanks,

Donnie 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333608
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Data Imports

2010-04-20 Thread Donnie Carvajal

I have a question about preferences for importing data and filtering the data 
through CFCs.  We have functionality in our app to upload a csv file to make 
mass adds/updates.  From the file, we are loading the data into a database 
table.  The app has many great CFCs that create beans and DAOs that manage all 
of the business logic for adding/updating through the GUI of the app.  Would 
you suggest taking each record in the table the data was imported to and 
creating an object for each record and using the normal add/update logic that 
the CFCs already handle or would you suggest writing a single UPDATE query and 
an INSERT with SELECT query to get the data into the system?  It seems the 
greatest reason for using CFCs is to encapsulate all of the business logic in 
one spot to avoid having to change code in many different places, so creating 
objects would be the wiser choice; however, some of these imports will have 
thousands if not tens of thousands of records and CF is very slow at creating 
objects, so it seems it would be more beneficial to simply write queries to 
translate the data and duplicate the logic.

Thoughts?

Thanks,

Donnie

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333032
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Auto-Login to Google Analytics

2010-03-09 Thread Donnie Carvajal

We want to add single login access to Google Analytics from our Content 
Management System for our clients.  I know there is an API for grabbing the 
Analytics data, but we are not interested in reproducing the reports.  We like 
the UI provided by Google.  We just want to give our clients a link inside of 
the Administrative portion of the Content Management System that will open up 
the Analytics Profile reports.

Is it possible to authenticate to Google using the AuthSub and then pass the 
token in a GET/POST to Analytics?  If so, does anyone know the syntax?  Should 
I be looking at using OpenID instead?  I have found tons of articles explaining 
how to log in to everything but Google using OpenID.  It seems to me if Google 
has already authorized the login, then accessing the services should be allowed.

I realize that this problem is the same trying to access any Google services 
and this is not just Analytics specific.  So if anyone has had luck linking to 
any Google services from inside a password protected app, changing the service 
should be simple.

Any help is appreciated,

Donnie 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331501
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Prevent Cross-Site Scripting in ColdFusion 5

2010-03-02 Thread Donnie Carvajal

I have an app that is written in ColdFusion 5 and there are several places in 
the app where CGI.query_string is used to set the query string on the href of 
an anchor tag.  I need a clean way to scrub the CGI.query_string variable.  I 
can't use URLEncodedFormat because all of the ampersands and equal signs will 
be encoded and then there won't be any query string variables.  I can't use the 
application.scriptProtect variable because the app is in ColdFusion 5 and it 
can't be upgrade to any version of ColdFusion MX without some major work to fix 
errors.  Does anyone know of a UDF, custom tag, CFX, etc. that I can use.

Thanks,

Donnie 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331269
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Prevent Cross-Site Scripting in ColdFusion 5

2010-03-02 Thread Donnie Carvajal

I have checked CFLib.org.  They have a couple of UDF's for handling URL 
variables, but nothing that appeared like it would parse through 
CGI.query_string or use some sort of regular expression to encode or remove 
unwanted vars without losing the variables by encoding the ampersand and equal 
signs. 

 Have you checked CFLib.org yet? Great collection of UDF's. Maybe 
 something there that can help you.
 
 Steve Cutter Blades
 Adobe Community Professional - ColdFusion
 Adobe Certified Professional
 Advanced Macromedia ColdFusion MX 7 Developer
 
 Co-Author of Learning Ext JS
 http://www.packtpub.com/learning-ext-js/book
 _
 http://blog.cutterscrossing.com
 
 
 
 Donnie Carvajal wrote:
  I have an app that is written in ColdFusion 5 and there are several 
 places in the app where CGI.query_string is used to set the query 
 string on the href of an anchor tag.  I need a clean way to scrub the 
 CGI.query_string variable.  I can't use URLEncodedFormat because all 
 of the ampersands and equal signs will be encoded and then there won't 
 be any query string variables.  I can't use the application.
 scriptProtect variable because the app is in ColdFusion 5 and it can't 
 be upgrade to any version of ColdFusion MX without some major work to 
 fix errors.  Does anyone know of a UDF, custom tag, CFX, etc. that I 
 can use.
 
  Thanks,
 
  Donnie 
 
  


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331272
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF5 Site-wide Error Handler

2009-12-16 Thread Donnie Carvajal

I wanted to repost this.  See below.  Any help is appreciated.

 I have a site-wide error handler setup for a CF 5 server.  I also have 
 one setup for an MX7 server.  The MX7 server will still display the 
 standard debug information even if the site-wide error handler is 
 triggered.  The CF 5 server will not.  Is this a limitation with CF 5 
 or am I missing a setting?
 
 Thanks,
 Donnie 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329178
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cftransaction

2009-12-11 Thread Donnie Carvajal

The way the code is written, the cfif will never be true because it will always 
have br in so the length will never be below 4.

 Hi all, I understand the gist of cftransaction, but I've tried using 
 it with a conditional rollback on an action page in the below example 
 and it doesn't seem to work. saveDataToDatabase() submits data to a 
 stored procedure, which always returns a string: empty string if the 
 data was saved, or a message stating what the problem was if not.
 
 cfset allReturnMessages = 
 cftransaction
  
 cfloop
  
 cfset returnMessage = someCFC.saveDataToDatabase()
  
 cfset allReturnMessages = allReturnMessages  returnMessage  
 br
  
 /cfloop
  
 cfif len(trim(allReturnMessages))
 
 cftransaction action=rollback /
  
 /cfif
 /cftransaction
 
 I'm not including cftry in this example, just to illustrate that I'm 
 not looking for a database or other type of CF error per se - rather, 
 I'm looking for any return message from the stored proc that isn't an 
 empty string, such as sorry - everything is otherwise kosher, but 
 this stored proc is coded not to save the data if field x is above 
 value y. That's not a database error as far as CF is concerned, so 
 cftry wouldn't catch it. But in testing this code, I've found that the 
 rollback doesn't take place, even when the cfif statement is true. Am 
 I not using cftransaction correctly? 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329097
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cftransaction

2009-12-11 Thread Donnie Carvajal

Nevermind, I read the cfif backwards.  I was thinking it was looking for an 
empty string.  In that case, the cfif will always be true.  This doesn't 
explain the rollback issue, but once the rollback is fixed, it will always 
rollback.

Do you have any commits in your stored procedure?  If so, the rollback will be 
after the commit and won't matter?  I beleive a GO statement will also commit 
and the rollback will be too late.

 The way the code is written, the cfif will never be true because it 
 will always have br in so the length will never be below 4.
 
  Hi all, I understand the gist of cftransaction, but I've tried using 
 
  it with a conditional rollback on an action page in the below 
 example 
  and it doesn't seem to work. saveDataToDatabase() submits data to a 
 
  stored procedure, which always returns a string: empty string if the 
 
  data was saved, or a message stating what the problem was if not.
  
  cfset allReturnMessages = 
  cftransaction
  
 
  cfloop
  
 
  cfset returnMessage = someCFC.saveDataToDatabase()
  
 
  cfset allReturnMessages = allReturnMessages  returnMessage  
  br
  
 
  /cfloop
  
 
  cfif len(trim(allReturnMessages))
 
 
  cftransaction action=rollback /
  
 
  /cfif
  /cftransaction
  
  I'm not including cftry in this example, just to illustrate that I'm 
 
  not looking for a database or other type of CF error per se - rather, 
 
  I'm looking for any return message from the stored proc that isn't 
 an 
  empty string, such as sorry - everything is otherwise kosher, but 
  this stored proc is coded not to save the data if field x is above 
  value y. That's not a database error as far as CF is concerned, so 
 
  cftry wouldn't catch it. But in testing this code, I've found that 
 the 
  rollback doesn't take place, even when the cfif statement is true. 
 Am 
  I not using cftransaction correctly? 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329099
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cftransaction

2009-12-11 Thread Donnie Carvajal

The way the CFTransaction tag works is CF is putting the TRANSACTION statements 
in the T-SQL it sends to the server.  So the rollback tag will rollback any 
transactions that haven't been committed.  You could have 100's of queries 
running with Inserts/deletes/updates and everything will rollback.  It's the 
same if you wrote a T-SQL and started it with BEGIN TRANSACTION and ended it 
with ROLLBACK TRANSACTION.  This is great way to test stuff, because nothing 
gets committed, but all of the steps occur.


 Good catch - you're right; I would normally include a cfif to append 
 the return string and the br to allReturnMessages only if the 
 return string isn't empty.
 
 The stored proc was written by someone else, so I'm not 100% sure 
 what's happening with it, which is part of the problem.  I suppose 
 what I should be asking is - is it even possible to do what I'm trying 
 to do? Which is, loop over a variable number of records to be saved or 
 updated, and after the loop has finished, test to see if ANY of them 
 have gotten a positive-length string back from the proc, and if so, 
 rol lback ALL of them? 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329109
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CF5 Site-wide Error Handler

2009-12-10 Thread Donnie Carvajal

I have a site-wide error handler setup for a CF 5 server.  I also have one 
setup for an MX7 server.  The MX7 server will still display the standard debug 
information even if the site-wide error handler is triggered.  The CF 5 server 
will not.  Is this a limitation with CF 5 or am I missing a setting?

Thanks,
Donnie 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329074
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


JavascriptEncodedFormat?

2009-11-18 Thread Donnie Carvajal

Hi,

I was looking for a function for encoding javascript output text that would be 
similar to the URLEncodedFormat() built in function.  I have an app that users 
can type in javascript warning messages and there are several characters that 
are causing the javascript to break (i.e. CR-LF, double quotes, etc.).  I 
looked on CFLib and there were only a handful of javascript functions.  Does 
anyone know of a function that that will change CR-LF to \n as well as all 
other characters that need to be escaped?

I am envisioning something like JavascriptEncodedFormat(Variables.jsWarning).

Thanks,

Donnie 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328490
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: JavascriptEncodedFormat?

2009-11-18 Thread Donnie Carvajal

jsstringformat()

Azadi Saryev



On 19/11/2009 00:16, Donnie Carvajal wrote:


Thanks Azadi.  I was very confused that nobody wrote anything for this and 
that's because they didn't have to.

Thanks again. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328493
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


FKCEditor URL Vars

2009-10-30 Thread Donnie Carvajal

Is there any way to pass URL variables into the FCKeditor either through the 
cftextarea tag or the custom tag fckeditor.cfm that comes with CF 9?  I have a 
popup window that needs certain variables to determine what information to 
display.  I am trying to avoid using session/client variables for this; 
although, I think this may be my only choice.

Thanks,

Donnie Carvajal 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327850
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Excel File Parser for ColdFusion

2009-08-07 Thread Donnie Carvajal

We have an application that excepts a CSV file for data imports, but as I am 
sure you know, editing CSV files in notepad is a pain and since Excel loves to 
change your data the process can be very cumbersome and painful.  So, I was 
thinking, if there was an Excel file parser that I could run in ColdFusion, we 
could avoid all of the data issues that Excel creates.  Does anyone know of 
anything out there that would allow my users to upload an Excel file and the 
data could be parsed as if it were uploaded as a flat file?  You know, 1st 
column has fields names, every other column is data. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325268
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Excel File Parser for ColdFusion

2009-08-07 Thread Donnie Carvajal

Hi Dan,

Yes.  Currently I am reading the uploaded CSV file with CFHTTP which returns 
the data in a query.

Thanks,

Donnie

The end goal is to convert the file into a query-like struct that you can
loop through taking action on the contents of each line?

On Fri, Aug 7, 2009 at 10:41 AM, Donnie Carvajal 
donnie.carva...@transformyx.com wrote:

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325274
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFBuilder Code Coloring

2009-07-30 Thread Donnie Carvajal

Hi Richard,

Thanks for the directions.  I checked those settings out before and there does 
not appear to be a place to set the tag colors.  They come defaulted as a dark 
red and there is not a color setting in the preferences that matches.

Were you successful in changing the colors of the html, head, and body tags?

Donnie

You can do some color changes in the prefrences.

select Window then prefrences

+HTML+Editors+CSS+Colors
+HTML+Editors+HTML+Colors
+HTML+Editors+JavaScript+Colors
+HTML+Editors+ScriptDoc+Colors
+HTML+Editors+SQL+Colors
+HTML+Editors+XML+Colors
+ColdFusion+Editor Profiles+Editor+Colors

On Wed, Jul 29, 2009 at 2:53 PM, Jas

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325111
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFBuilder Code Coloring

2009-07-29 Thread Donnie Carvajal

Does anyone know how to set colors for the HTML tags in CF Builder?  I have 
been using HomeSite and I like how the HTML tags, anchor tags, table tags, form 
tags, etc. are all different colors. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325091
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Setting Server Variables

2009-06-26 Thread Donnie Carvajal

Almost all of my applications are running on multiple machines and i would like 
to use server variables to save things like IP addresses and server names that 
can be used for CFHTTP requests or error reporting.  These variables would 
basically be static and would almost always have the same value for that 
particular server.  For example, WebServer1 will most likely always be named 
WebServer1, so Server.serverName will never change values on WebServer1.  I 
would like to avoid adding code to every app that always checks to see if the 
server variables are set.  I would prefer to set the server variables after 
ColdFusion restarts.

Any ideas? 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324006
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Deploying to a server farm

2009-06-17 Thread Donnie Carvajal

My applications are hosted on multiple servers and I am storing several DAO 
components in the Application scope.  Basically, whenever a change is made to 
any component that is stored in the Application scope and we deploy to the 
server farm, I have to restart the application on each server (basically run a 
web page for a URL specific to each server).

What is the common practice out there for updating an application on a server 
farm and restarting the application to refresh the application scope 
components? 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323580
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Validate Object's Component Type

2009-04-01 Thread Donnie Carvajal

I am trying to write a CFC that will handle the population of an array of 
components.  The CFC is very simple, it has the following properties:

array //Will hold the array of components
componentType //Will hold the type of component the array will hold

Since the returnType for CFFunction and the type for CFArgument can not be 
dynamic values, I don't have a built in way to validate that every element in 
the array is the same type of object (i.e. array[1] may be an Address and 
array[2] may be a phone number).

1. Does anyone know if there is built in functionality to ColdFusion that will 
validate if a variable is an object of a certain CFC?

2. If not, does anyone know of a good method to validate a variable to insure 
it is the object type it needs to be?

Thanks,
Donnie 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321183
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Validate Object's Component Type

2009-04-01 Thread Donnie Carvajal

Using type=any will allow each element in the array to be a different type.  
Let me give you an example.

I have a Person CFC that has a property addresses.  I also have an Address 
CFC. A person can have more than 1 address, so the property addresses is an 
array of CFC.Address and I don't want any other type in the array.  So if I use 
any, array position 1 may be an Address CFC object and array position 2 may 
be a Phone CFC object.

Ideally I would put Address[] as a type, but the Component Array CFC could be 
of any type and ColdFusion does not allow variables for the returntype argument 
or the type argument.  So I need to add a cfif somewhere to validate that the 
object being passed in to be added to the array is the same type as my property 
component.  This way I can insure every element in the array is of the same 
type.

type=any

On Wed, Apr 1, 2009 at 10:24 AM, Donnie Carvajal 
donnie.carva...@transformyx.com wrote:

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321185
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SQL server - Order totals by month, even without month data

2009-03-25 Thread Donnie Carvajal

The only way to get data into a query is to have data in a table.  So there are 
a couple of options.

1.  Create a months table that has 12 records
2.  Create a temp table with 12 records

You may also need to create a years table as well.

Then your query would be something like

SELECT year, month, SUM(total)
FROM (SELECT * FROM Years CROSS JOIN Months) AS Months
LEFT OUTER JOIN
tblOrders
ON Month(orderDate) = month
GROUP BY year, month
ORDER BY year, month

The cross join will give you a record in your query for every year that you 
would like to account for and every month of that year.

You can of course add any other criteria you would like to the WHERE clause.


 I have your typical tblorders. I'm trying to query it to get order 
 totals by month, and I'm outputting them in cfchart 
 
 All goes fine, except in 2009. We have no order data for 
 April-December of course, so the query returns just three rows (Jan, 
 Feb, March).
 
 I need it to return all 12 months, with 0 for the months with no 
 orders (April-Dec)
 
 I've played with this query and can't get anything to work for me. Any 
 ideas? 
 
 Thanks!
 
 Will
 
 select year(orderdate) as orderYear,
 month(orderdate) as monthOrdered,
 sum(ordertotal) as totalOrders,
 dateName(month, orderdate) as monthName
 from tblorders
 where orderpaid = 1
 and year(orderdate) = 2009
 group by year(orderdate),
 month(orderdate),
 dateName(month, orderdate)
 order by  year(orderdate) asc,
 month(orderdate) asc 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320916
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Multiple Record Queries and CFCs

2009-03-25 Thread Donnie Carvajal

I have been trying to write my applications using the 3 tiered method of 
development, presentation layer, business logic layer and data access layer.  I 
am having trouble coming up with an efficient method of displaying information 
returned in a query that has multiple records.  Correct me if I'm wrong, but 
shouldn't all data be placed into an object based on a component so that the 
business logic can massage the data and return valid inforamtion based on 
business rules.  If I am correct that that means that I should create an object 
for every record of the query before I display the data.  Doing this slows down 
my web pages by 100-200% going from fractions of a second to around 20 seconds 
for a query that returns 100 records.  All of the examples that I have come 
across on the web run the query in the data application layer and then in the 
presentation layer, loop over the query and output the data straight from the 
query (i.e. #qEmployees.firstName#).  The problem I have with outputting the 
data straight from the query is that I will have to have business logic in 2 
places.  In the business logic component and the data access component.

How are you (anyone who would like to reply) handling this scenario and keeping 
the integrity of the business logic?

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320956
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Multiple Record Queries and CFCs

2009-03-25 Thread Donnie Carvajal

Brad,

Thanks for the quick reply!  This is kind of difficult to search for on Google 
and I have found nothing.  Up until now, I have been creating an object outside 
of the loop and then setting the data to the object inside the loop.  At the 
end of each iteration, I call a Reset() function.  My components have 2 
stuctures as proerties, Variables.default and Variables.instance.  I set the 
Variables.default keys in the Constructor, code at the top of the component, 
and then I set all of the Variables.instance keys to the corresponding key 
values from Variables.default.  The Reset() function sets all of the 
Variables.instance keys back to the corresponding key values from 
Variables.default.  This method is faster than instantiating everytime, but it 
is still slower than desired.

I will check out the links you sent and see what I can find.  Thanks again.

-Donnie

 Welcome to the Object Instantiation Penalty.  :)
 ColdFusion is much slower at object creation than Java or C++ when 
 you
 are dealing with thousands of object.
 http://www.codersrevolution.com/index.
 cfm/2008/9/22/ColdFusions-Object-Instantiation-Penalty-How-Bad-Is-It
 
 This got better in CF8 and is supposed to get better in CF9. In the 
 mean
 time, look into a CF-specific design pattern called IBO or Iterating
 Business Object.
 It is a single object that contains a result set and gives you
 programattic access to the data on each row via getters and setters.
 
 http://www.pbell.com/index.
cfm/2007 /6/20/IBO-20--Return-of-the-Iterating-Business-Object-Now-on-RIAForge
 http://ibo.riaforge.org/
 
 It is not without it's own problems, but it directly addresses your
 problem.
 
 ~Brad
 
  Original Message 
 Subject: Multiple Record Queries and CFCs
 From: Donnie Carvajal donnie.carva...@transformyx.com
 Date: Wed, March 25, 2009 2:55 pm
 To: cf-talk cf-talk@houseoffusion.com
 
 
 I have been trying to write my applications using the 3 tiered method 
 of
 development, presentation layer, business logic layer and data access
 layer. I am having trouble coming up with an efficient method of
 displaying information returned in a query that has multiple records.
 Correct me if I'm wrong, but shouldn't all data be placed into an 
 object
 based on a component so that the business logic can massage the data 
 and
 return valid inforamtion based on business rules. If I am correct 
 that
 that means that I should create an object for every record of the 
 query
 before I display the data. Doing this slows down my web pages by
 100-200% going from fractions of a second to around 20 seconds for a
 query that returns 100 records. All of the examples that I have come
 across on the web run the query in the data application layer and 
 then
 in the presentation layer, loop over the query and output the data
 straight from the query (i.e. #qEmployees.firstName#). The problem I
 have with outputting the data straight from the query is that I will
 have to have business logic in 2 places. In the business logic 
 component
 and the data access component.
 
 How are you (anyone who would like to reply) handling this scenario 
 and
 keeping the integrity of the business logic?
 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320963
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: SQL Syntax error

2009-03-16 Thread Donnie Carvajal

COUNT(DISTINCT [fieldName] is very important to remember when using JOINS.  For 
example, if you have the query...

SELECT COUNT(A.code) AS total
FROM TableA A INNER JOIN TableB ON A.code = B.code

And you wanted to know how many records in TableA have records in TableB.

If this query returns 10 records, there may only be 3 DISTINCT records returned 
from TableA.  If you use COUNT(A.code) as written above, the result will be 10. 
 If you change it to COUNT(DISTINCT A.code), you will get your desired answer 
of 3.

Interesting ... COUNT(DISTINCT prodcode) will work, huh?  That may come in 
handy some day.  Thanks! 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320558
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


  1   2   >