Re: Possible thread issue?

2009-12-16 Thread Leigh
> After changing/updating/fixing/etc the code now runs 100% > reliable and fast! Code put into production yesterday and > looking good! That is good to hear! -Leigh ~| Want to reach the ColdFusion community with someth

CF/Java assistance; Path questions

2009-12-16 Thread Seth Stone
Hello, I've just installed CF9 Enterprise on RHEL 5 and am trying to understand the Java paths. I've created an instance called myinstance1. In the admin for myinstance1 under Settings Summary there are a couple of Java path listings. CF Server Java Class Path - seems to contain every jar in /

Re: Possible thread issue?

2009-12-16 Thread Andre Kapp
> I'v now come across a code problem that I simply cannot understand > what is happending here. > > > > The code is part of a cfc module that is behind a web-service. > This is not inside a loop - just a normal cfc with a function that > enter, process and returns data... > > > The prob

Re: Null Pointers are another name for undefined values

2009-12-16 Thread Jessica Kennedy
I've gotten this error before. I don't know if this is the same thing or not, but in my case, I got the null pointers error only on the application start, a refresh would make it work. anyway, it took me a few weeks, but the solution (at least in my case) was either checking or unchecking (i

Re: EntityLoadByExample

2009-12-16 Thread Charlie Stell
Man... I was getting excited at the prospect that CF would read the DB structure, see the unique constraints on a table, realizes all the needed properties were defined and try to identify it. Afterall, I just realized the docs say "ColdFusion automatically tries to find if a new record should be

Re: EntityLoadByExample

2009-12-16 Thread Andrew Scott
Sorry I just reread your question. Not in the state it is in no, what you will need to do is write a method to do a search for that email first. The assumption then would be that if you do something along the lines of this. What you could do is replace the new Domain() and new Email() with Entit

Re: EntityLoadByExample

2009-12-16 Thread Andrew Scott
That depends on how you are setup, if I recall right it will if it exists update the records rather than insert them. I haven't done it in this manner, but if it was me I would be rather be try/catch around the block and not deal with updating or inserting. The question needed to know here is wh

Re: EntityLoadByExample

2009-12-16 Thread Charlie Stell
Maybe ORM will do more than I originally thought... If I start with two empty tables - domain and email, and get an email from x...@gmail.com(curDomain-gmail.com, curUser-xyz), and the code below runs, two records will be inserted (one in each table). And then later on, I get an email form a...@gm

Re: EntityLoadByExample

2009-12-16 Thread Andrew Scott
Yeah first your right I missed the IsNull all together, but yeah you don't need to call it twice. Ok, I see what you are trying to do. But I stand by the fact you don't need to read the thing in again. For example domain = entityNew("domain"); domain.setName(curDomain) email = entityNew("email")

Re: EntityLoadByExample

2009-12-16 Thread Charlie Stell
> > First I used your example posted, so your eample has that IsNULL error to > begin with. > My example: if(isNUll(EntityLoadByExample(x))) x.save() //If it's not found, save it - this will cause an insert without problem else x = EntityLoadByExample(x) //if it was found, use it I think I see

Re: EntityLoadByExample

2009-12-16 Thread Andrew Scott
First I used your example posted, so your eample has that IsNULL error to begin with. Secondly, I am not sure why you need to retrieve the record again? When you create an Entity, and then populate it and after saving there is no need to retrieve it again as everything that is in the DB is popula

Re: EntityLoadByExample

2009-12-16 Thread Charlie Stell
Thanks for the reply Andrew, I'm not sure I follow where your going with your suggestion of :" x = EntityLoadByExample(x) if(isNUll(x)) x.save()" "x.save()" would throw in error in the case that x is null. In the majority of cases where this check is needed, it's a case of "create if needed, r

Re: EntityLoadByExample

2009-12-16 Thread Andrew Scott
Wouldn't throwing it in a try catch block be better than what your doing here? And I would refactor this if(isNUll(EntityLoadByExample(x))) x.save() else x = EntityLoadByExample(x) as x = EntityLoadByExample(x) if(isNUll(x)) x.save() But I think for better understanding to what the code is

Re: Two Column Select Box?

2009-12-16 Thread ColdFusion Developer
Thanks! Its ugly looking to use Courier but it works... On Wed, Dec 16, 2009 at 5:08 PM, Charlie Griefer wrote: > > You'd need to style the option to use a fixed-width font. > > On Wed, Dec 16, 2009 at 2:03 PM, ColdFusion Developer > wrote: > > > > > Tried that as well. Does not line up. > > >

Re: Two Column Select Box?

2009-12-16 Thread Won Lee
On Wed, Dec 16, 2009 at 5:03 PM, ColdFusion Developer wrote: > > Tried that as well. Does not line up. > > Ex: > > 3M | XYZ Corporation > ABCDY | AB Corporation of Delaware > > The first one is 2 characters and 5 spaces > The second one if 5 characters and 2 spaces > > Both equal 7 spa

Re: Two Column Select Box?

2009-12-16 Thread Charlie Griefer
You'd need to style the option to use a fixed-width font. On Wed, Dec 16, 2009 at 2:03 PM, ColdFusion Developer wrote: > > Tried that as well. Does not line up. > > Ex: > > 3M | XYZ Corporation > ABCDY | AB Corporation of Delaware > > The first one is 2 characters and 5 spaces > The s

Re: Two Column Select Box?

2009-12-16 Thread ColdFusion Developer
Tried that as well. Does not line up. Ex: 3M | XYZ Corporation ABCDY | AB Corporation of Delaware The first one is 2 characters and 5 spaces The second one if 5 characters and 2 spaces Both equal 7 spaces :-( I am wondering if the is a CSS way to do it. On Wed, Dec 16, 2009 at 4:3

RE: CF 9 - cfparam problem - ORM function

2009-12-16 Thread Susan Gallegos
Thanks Dan. Ray sent me the answer so I will clarify here. I had made all the modifications in the entity from person.cfc to user.cfc as required to generate the proper getters/setters but I had not set the defaults in the cfproperty defs - so I got the error in cfparam because the values were nu

RE: Two Column Select Box?

2009-12-16 Thread DURETTE, STEVEN J (ATTASIAIT)
Search through the data to get the largest length for the item in the first column. Then when you are doing your loop, do Then output #Variables.myTempFirstCol#|#Variables.mySecondCol# Since the first column will now be a fixed length everything should line up. Steve -Original Message--

Two Column Select Box?

2009-12-16 Thread ColdFusion Developer
Anyone develop a selectbox that shows two columns of data but only one value? Example: XYZ | XYZ Corporation ABCD | AB Corporation of Delaware Goal is to still have the two columns aligned as well. TIA! ~| Want

Re: CF 9 - cfparam problem - ORM function

2009-12-16 Thread Dan Vega
The properties and their generated getters/setters are based on the Entity that was created. He most likely has a person Entity (person.cfc) that represents a person. In that file he has properties for each attribute of person. property firstname proeprty lastname property email When you change

EntityLoadByExample

2009-12-16 Thread Charlie Stell
I was using EntityLoadByExample today and the behavior wasn't what I was expecting. I expected it would be able to replace the query I always do right before insert (the "check" query) - to make sure that the insert wont conflict with unique constraints. Ive bee using it like this: x = entityNe

RE: CF MX 6.1 - zipping files

2009-12-16 Thread DURETTE, STEVEN J (ATTASIAIT)
If CF is on a Windows box and you have access to cfexecute, Windows servers come with a built in command line version of Zip. If you can get to a command prompt just type zip /? And you should get the available commands. Then cfexecute what you need to. Steve -Original Message- From:

CF 9 - cfparam problem - ORM function

2009-12-16 Thread Susan Gallegos
I am just starting with ORM so I downloaded samples from a talk by Ray Camden - his code works but when I make small changes I get an error for cfparam: Ray's code: Edit Person My code:

Re: CF MX 6.1 - zipping files

2009-12-16 Thread Gerald Guido
>>Haven't used it, so can't vouch for it... I have. Works fine on CF 7. At least I have not had any problems with it. The doc header sez that it works on 6.x: "Support: ColdFusion MX 6.0, ColdFusion MX 6.1, ColdFusion MX 7" HTH G! On Wed, Dec 16, 2009 at 12:59 PM, Charlie Griefer wrote: > >

Re: CF MX 6.1 - zipping files

2009-12-16 Thread Charlie Griefer
http://www.newsight.de/2005/06/28/finished-work-on-zip-cfc/ Haven't used it, so can't vouch for it... but I do have a CFMX7 gig I'm working on, and will be looking to implement this in the next few days myself. On Wed, Dec 16, 2009 at 9:54 AM, wrote: > > I'm stuck with CFMX6.1 for our Intrane

Re: CF MX 6.1 - zipping files

2009-12-16 Thread Alan Rother
Java http://cflib.org/udf/ZipFileNew =] On Wed, Dec 16, 2009 at 10:54 AM, wrote: > > I'm stuck with CFMX6.1 for our Intranet and need to zip up a csv file after > I created it from a query output. Anyone have any ideas how zip functions > were done back in th

CF MX 6.1 - zipping files

2009-12-16 Thread coldfusion . developer
I'm stuck with CFMX6.1 for our Intranet and need to zip up a csv file after I created it from a query output. Anyone have any ideas how zip functions were done back in the day? 8-) Thanks D ~| Want to reach the ColdFusion c

Re: Random errors from CFHTTP sending XML documents

2009-12-16 Thread Ben Nadel
I am also just getting this error on CF7. Starts happening after a random number of records that are sent. Did you ever get to the bottom of this? -Ben > I have a couple of CF scripts that send out an XML doc to various > webservices (Google AdWords, for example). Usually they all run just

Re: Null Pointers are another name for undefined values

2009-12-16 Thread Steve Logan
I submitted a ticket but I don't have much hope for it. It took 7 days to get a simple DSN setup >Might want to ping NSI and see if they can do anything for you. > >I had a shared host once that disabled createObject() by default, but upon >request they would enable it for whatever sandbox

Re: Null Pointers are another name for undefined values

2009-12-16 Thread Charlie Griefer
Might want to ping NSI and see if they can do anything for you. I had a shared host once that disabled createObject() by default, but upon request they would enable it for whatever sandbox your site is in. On Wed, Dec 16, 2009 at 9:08 AM, Steve Logan wrote: > > Nope. Both CreateObject and cfi

Re: Null Pointers are another name for undefined values

2009-12-16 Thread Steve Logan
Nope. Both CreateObject and cfinvoke both throw the same null pointer errors. Dammit! I can hear it now "I KNEW we should have just rewritten it from scratch in ASP" - which is EXACTLY what they're going to say even though the site ran fine for years on the old host (that was charging them $2

Re: Null Pointers are another name for undefined values

2009-12-16 Thread Charlie Griefer
Not a clue... but I'm wondering if it has anything to do with restrictions enforced by NSI. Can you manually instantiate any other CFCs? On Wed, Dec 16, 2009 at 8:40 AM, Steve Logan wrote: > > Application.cfm DOES work. > > Appserver: JRun4 > ProductLevel: Enterprise > ProductVersion: 7,0,1,1

Re: Null Pointers are another name for undefined values

2009-12-16 Thread Steve Logan
Application.cfm DOES work. Appserver: JRun4 ProductLevel: Enterprise ProductVersion: 7,0,1,116466 x86 Windows 2003 version 5.2 So why would Application.cfm work and not application.cfc on CF7? >... and you're sure that the hosting environment is CF7? does an >Application.cfm work? can you

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

Re: Null Pointers are another name for undefined values

2009-12-16 Thread Charlie Griefer
... and you're sure that the hosting environment is CF7? does an Application.cfm work? can you dump the server scope to verify the CF version? On Wed, Dec 16, 2009 at 8:24 AM, Steve Logan wrote: > > Yes - removing the application.cfc file and just putting up a simple > index.cfm file works fi

Re: Null Pointers are another name for undefined values

2009-12-16 Thread Steve Logan
Yes - removing the application.cfc file and just putting up a simple index.cfm file works fine. I have literally stripped everything out of the application.cfc file and except for onApplicationStart and onApplicationEnd. I also changed the this.name="myapp" to and still getting that error.

Re: Null Pointers are another name for undefined values

2009-12-16 Thread Charlie Griefer
Can you upload just a "hello world" index.cfm without an Application.cfc (or Application.cfm)? Just curious as to whether or not the issue is definitely in the Application.cfc. On Wed, Dec 16, 2009 at 7:49 AM, Steve Logan wrote: > > I have a friend who came to me a while ago with a site that w

Null Pointers are another name for undefined values

2009-12-16 Thread Steve Logan
I have a friend who came to me a while ago with a site that wanted to change hosts and have a new "look and feel". He would handle the look and feel and I'd take care of the backend. Originally he wanted to rewrite from CF to ASP, but I told him keep it CF and I can do it a lot faster and cheape

Re: [Macromedia][SequeLink JDBC Driver]Network problem, session aborted due to internal error in remote procedure call, connection closed

2009-12-16 Thread Gabriela Palombi
Hi. Did you solve this problem? Iam getting this error...CF 8 and Oracle 11. > Hi > > I am getting the following error everytime i try to run the query > below from the coldfusion page. > > [Macromedia][SequeLink JDBC Driver]Network problem, session aborted > due to internal error in remote p