Re: Code Design help

2013-05-09 Thread Marty Franklin
Hello, It appears my posts do not appear on this list? I am curious why? Martin Franklin ma...@assetresearch.com Thanks On 5/6/2013 2:50 PM, Russ Michaels wrote: It seems form what you have said that any user can have multiple invoices with payments due, in which case would it not be better

Re: Code Design help

2013-05-09 Thread Bruce Sorge
I see it just fine. On May 9, 2013, at 10:51 AM, Marty Franklin ma...@assetresearch.com wrote: Hello, It appears my posts do not appear on this list? I am curious why? Martin Franklin ma...@assetresearch.com Thanks

Re: Code Design help

2013-05-09 Thread Nathan Strutz
Marty, Depending on your mail provider and client, often you will not get a copy of the message you sent. I got one email on this thread from you that started If this application is multi-user consider that the [...] and of course this one that I am replying to. If you reply to a large thread,

Coldfusion 10 on Amazon?

2013-05-09 Thread Richard Steele
Is anyone using Amazon's Coldfusion 10 AMI? If so, how are you liking it? Can I load balance between instances within the one AMI? Thanks! Rick ~| Order the Adobe Coldfusion Anthology now!

Easy CFC question (I hope)

2013-05-09 Thread Bruce Sorge
Hey, I am doing a project for my CF class in college. I admit that I have not played with CFC's in a while, but I cannot figure out why this is not working: cffunction name=adduser hint=Adds a new user to the database returntype=query cfargument name=fname required=true

Re: Coldfusion 10 on Amazon?

2013-05-09 Thread Dave Watts
Is anyone using Amazon's Coldfusion 10 AMI? If so, how are you liking it? Can I load balance between instances within the one AMI? I'm not using their AMI, but am running CF 10 on AWS using my own images. That works pretty well. The packaged AMI comes with a single instance of CF, and I

Re: Easy CFC question (I hope)

2013-05-09 Thread morgan lindley
Change your return to: cfretun qUserEmail As you have it, it's attempting to return a reference to the adduser method. ~| Order the Adobe Coldfusion Anthology now!

Re: Easy CFC question (I hope)

2013-05-09 Thread Dave Watts
cffunction name=adduser hint=Adds a new user to the database returntype=query ... cfquery name=qUserEmail SELECT fname, lname, email, secureHash FROM users WHERE userid = #newID#

Re: Easy CFC question (I hope)

2013-05-09 Thread Bruce Sorge
Damn it. Stupid rookie mistake. Sent from my iPhone 4S. On May 9, 2013, at 11:55 AM, morgan lindley greyk...@gmail.com wrote: Change your return to: cfretun qUserEmail As you have it, it's attempting to return a reference to the adduser method.

RE: Easy CFC question (I hope)

2013-05-09 Thread DURETTE, STEVEN J
Actually up higher he does a cfset var adduser = / so he is actually returning a variable. He can solve it either using your way or by doing a cfset adduser = qUserEmail / before the cfreturn. I just mention this because if he inspected the results he wouldn't get back that he was returning

Re: Coldfusion 10 on Amazon?

2013-05-09 Thread Russ Michaels
Couldn't you just do your own install and use the same license key ? Regards Russ Michaels www.michaels.me.uk www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com - CF search engine On 9 May 2013 16:54, Dave Watts dwa...@figleaf.com wrote: Is anyone using Amazon's

Re: Easy CFC question (I hope)

2013-05-09 Thread Bruce Sorge
I just did what dave and morgan suggested and it worked like a charm. Embarrassed that I made this beginner mistake. I have about six or so more functions above this one that all work fine, just didn't pay attention to details on this one. Bruce On May 9, 2013, at 12:02 PM, DURETTE, STEVEN J

Re: Easy CFC question (I hope)

2013-05-09 Thread Dave Watts
Actually up higher he does a cfset var adduser = / so he is actually returning a variable. He can solve it either using your way or by doing a cfset adduser = qUserEmail / before the cfreturn. I didn't see that. I would recommend against creating a variable with the same name as the

RE: Easy CFC question (I hope)

2013-05-09 Thread DURETTE, STEVEN J
You might want to remove the cfset var adduser = / since it isn't used then. Clean code is easier to troubleshoot. That's just my .01 (I'm too cheap to give 2 cents!) LOL. -Original Message- From: Bruce Sorge [mailto:sor...@gmail.com] Sent: Thursday, May 09, 2013 12:06 PM To: cf-talk

RE: Easy CFC question (I hope)

2013-05-09 Thread Ian Chapman
Chnage to cfreturn qUserEmail -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: 09 May 2013 16:57 To: cf-talk Subject: Re: Easy CFC question (I hope) cffunction name=adduser hint=Adds a new user to the database returntype=query ... cfquery

Re: Easy CFC question (I hope)

2013-05-09 Thread Bruce Sorge
Already done. And I'm stepping away from the computer or a bit. Heh. Sent from my iPhone 4S. On May 9, 2013, at 12:10 PM, DURETTE, STEVEN J sd1...@att.com wrote: You might want to remove the cfset var adduser = / since it isn't used then. Clean code is easier to troubleshoot. That's

Re: Easy CFC question (I hope)

2013-05-09 Thread Mike K
Bruce I wouldn't sweat about making a rookie mistake.We all do. Mine is usually confusing 'eq' and '='. as in ... cfif variable1 eq variable2 /cfif and cfset variable1 = something I usually find out I've got them the wrong way round when I get an error message. You'd think

Re: Easy CFC question (I hope)

2013-05-09 Thread Eric Roberts
adduser is set to ...unless i missed it, i do't see it being assigned the return value of the query. If you are supposed to be returning the new ID then you would want cfreturn qUserEmail Eric On Thu, May 9, 2013 at 10:49 AM, Bruce Sorge sor...@gmail.com wrote: Hey, I am doing a project

Parsing XML response from web services with ColdFusion DeserializeJSON

2013-05-09 Thread Sasha Hirenko
Hi everyone, I'm working with ColdFusion 9.0 trying to communicate with web services that our state has set up. I use cfhttp tag to submit SOAP request which looks like this: cfhttp method=POST url=http://167.21.60.200/Delaware.ICIS.XmlFiling..Services/Service.svc; useragent=gSOAP/2.8

Re: Code Design help

2013-05-09 Thread Marty Franklin
Thanks guys appreciate responses. I recalled a different behavior so I assumed I was blocked. As always thanks for the education. Marty On 5/9/2013 7:59 AM, Nathan Strutz wrote: Marty, Depending on your mail provider and client, often you will not get a copy of the message you sent. I got

RE: Parsing XML response from web services with ColdFusion DeserializeJSON

2013-05-09 Thread Che Vilnonis
Hello Sasha. Try this... cfset results = reReplace(httpReponse.FileContent, ^[^]*, , ALL) cfset results = xmlParse(results) cfdump var=#results# Hope this helps... Che ~| Order the Adobe Coldfusion Anthology now!

Slow-starting jrun service

2013-05-09 Thread Patti, Michael
I have two production and one staging webservers, all of them Windows 2003 32-bit, running Coldfusion Standard 9.0.1.274733 (hf901-8). All servers are using JDK 1.6.0_39, which is located at C:\Java\jdk1.6.0_39. Under that same Java directory, I also have the _12, _23, and _24 jdks, and

Re: Parsing XML response from web services with ColdFusion DeserializeJSON

2013-05-09 Thread Dave Watts
I'm working with ColdFusion 9.0 trying to communicate with web services that our state has set up. I use cfhttp tag to submit SOAP request which looks like this: cfhttp method=POST url=http://167.21.60.200/Delaware.ICIS.XmlFiling..Services/Service.svc; useragent=gSOAP/2.8

RE: Parsing XML response from web services with ColdFusion DeserializeJSON

2013-05-09 Thread Harvard Sasha Hirenko
Hi Che, Thank you for your advice, but unfortunately it didn't help. Here is an error I got: An error occured while Parsing an XML document. Element or attribute do not match QName production: QName::=(NCName':')?NCName. Sincerely, Sasha. -Original Message- From: Che Vilnonis

Re: Slow-starting jrun service

2013-05-09 Thread Dave Watts
On two of these servers (one production and one staging) whenever I have to restart Coldfusion, it usually takes no more than a minute to restart. But on the third server, it will invariably take up to 30 minutes for jrun to restart, and it usually hangs at around 38MB for several

RE: Slow-starting jrun service

2013-05-09 Thread Patti, Michael
Here's what I have under Coldfusion9\runtime\bin\jvm.config on the server that is having problems: # Arguments to VM java.args=-server -Xmx1024m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Dcoldfusion.rootDir={application.home}/../

Re: Parsing XML response from web services with ColdFusion DeserializeJSON

2013-05-09 Thread Sasha Hirenko
I'm working with ColdFusion 9.0 trying to communicate with web services that our state has set up. I use cfhttp tag to submit SOAP request which looks like this: cfhttp method=POST url=http://167.21.60.200/Delaware.ICIS. XmlFiling..Services/Service.svc useragent=gSOAP/2.8

RE: Slow-starting jrun service

2013-05-09 Thread Patti, Michael
One other thing I am noticing in the archived log files for the server that's having problems. Lots of entries that look like this: 04/30 11:05:59 error Error while reading header S_DATE_TIME 04/30 11:06:00 error Error while reading header SERVER_SOFTWARE 04/30 11:06:00 error Error while

Re: Parsing XML response from web services with ColdFusion DeserializeJSON

2013-05-09 Thread Dave Watts
Next, I do realize that I need to remove the two lines at the very top and bottom that contain --uuid ...) and the first three lines after the first boundary marker which are part of the response header. The problem here is that simply using Replace() function to replace those lines with

RE: Parsing XML response from web services with ColdFusion DeserializeJSON

2013-05-09 Thread Matthew S Blatchley
I had very similar problems with the BING AdCenter API which I and several others never could get working. Almost identical errors. I even sent over the raw responses from Fiddler and Microsoft technical support response to me was the same thing. It's one of CF's downfalls. Now I'm going to

Re: Slow-starting jrun service

2013-05-09 Thread Dave Watts
Here's what I have under Coldfusion9\runtime\bin\jvm.config on the server that is having problems: # Arguments to VM java.args=-server -Xmx1024m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m - ... Are you using the onServerStart method in server.cfc to do anything? You could

Re: Coldfusion 10 on Amazon?

2013-05-09 Thread Alan Rother
Which instances are you talking about? Multiple AWS EC2 instances or multiple instances of CF running on 1 AWS EC2 instance? If as Dave mentioned you mean multiple CF instances on one EC2, then I'm not entirely sure, we are going to be testing that today. As for Multiple EC2 instances, Yes, we

Re: Slow-starting jrun service

2013-05-09 Thread Russ Michaels
common causes are. BIG log files, delete/archive them so a new one is created. Thousandsof class files having to load into memory, try clearing them out. You can disable saving class files to disk too, it does do anything except avoid initial compile after a restart. Cf Tmp folders full of

Re: Slow-starting jrun service

2013-05-09 Thread Gonzo Rock
Reading this thread my gut feeling is hardware. Are you sure all 4 gig is available? On Thu, May 9, 2013 at 12:49 PM, Russ Michaels r...@michaels.me.uk wrote: common causes are. BIG log files, delete/archive them so a new one is created. Thousandsof class files having to load into memory,

Re: Slow-starting jrun service

2013-05-09 Thread Byron Mann
You could try starting cf from the command line, may give you a bit more insight as to where things are lagging at startup. Kill anything else running like anti virus, and etc that may be getting in the way. Check c:/windows/temp, had a machine with obscene number of files in there one time and

Re: Coldfusion 10 on Amazon?

2013-05-09 Thread Richard Steele
We have 4 different websites running on CF8 Enterprise. Each website has 2 instances that are load balanced. Thus there are 8 instances on the CF8 Enterprise dedicated server which has 16 gb of memory. ~| Order the Adobe