Re: JVM Memory Errors

2009-07-24 Thread Dave Watts
A few of our clients have started getting errors over the past few days that stop them from starting the ColdFusion service. The errors are: Error occurred during initialization of VM. Could not reserve enough space for object heap. java.lang.OutOfMemoryError So far the only way we

Re: Coldbox and ColdSpring How to?

2009-07-24 Thread Sean Corfield
On Thu, Jul 23, 2009 at 2:59 PM, Glyn Jacksonglyn.jack...@newebia.co.uk wrote: I think I have it now in my handler...  variables.oUserService = getPlugin(ioc).getBean(UserService).getUserGateway(); and i now see all common.cfc methods is this right? If it has autowire by name enabled.

Coldfusion9 ORM

2009-07-24 Thread Gavin Stewart
Hello there, I have a question about cf9 orm. I am trying to add a postInsert() event on a persistent cfc which basically logs the action in an audit table. My code looks like this. public void function postInsert(){ //log the action Audit=entitynew('Audit'); Audit.setItem_type('Art');

Re: Coldbox and ColdSpring How to?

2009-07-24 Thread Glyn Jackson
Thanks Mr Corfield, perfect. last question I promise (fingers crossed). I am just playing with ColdSpring, however maybe I am missing the point with what I have done in the example so far. this could have been all done in the init() method or I could have extended the CFC or I could have

Re: Coldfusion9 ORM

2009-07-24 Thread Kumar Shah
Be sure to turn on event handling in Application.cfc, this.ormsettins.eventhandling = true; On Fri, Jul 24, 2009 at 4:27 AM, Gavin Stewart gavin.stew...@gmail.comwrote: Hello there, I have a question about cf9 orm. I am trying to add a postInsert() event on a persistent cfc which basically

Re: Coldfusion9 ORM

2009-07-24 Thread Gavin Stewart
Be sure to turn on event handling in Application.cfc, this.ormsettins.eventhandling = true; I have done this and it does definatley trigger the event. I can dump out the Audit object in the event handler and I see it there. It just doesnt save to the database. There are no errors, logs or any

Converting Year to Integer

2009-07-24 Thread N K
I am looping the records starting from the Year 2000 to current year. But some how the the CFLOOP gives me an error stating Can not convert into number I tried the following ,any idea how to fix the issue:-- cfset currYear= Year((now)) cfset currYear=int(currYear) table CFLOOP index=yearCnt

Re: Converting Year to Integer

2009-07-24 Thread Francois Levesque
You'll need some hash signs around that currYear variable in your cfloop: CFLOOP index=yearCnt from='2000' to='#currYear#' tr tdCFOUTPUT#yearCnt#/CFOUTPUT/td /tr /cfloop Francois Levesque http://blog.critical-web.com/ On Fri, Jul 24, 2009 at 9:31 AM, N K neetukais...@gmail.com wrote: I am

Re: Converting Year to Integer

2009-07-24 Thread N K
## Sign does not help either. NK You'll need some hash signs around that currYear variable in your cfloop: CFLOOP index=yearCnt from='2000' to='#currYear#' tr tdCFOUTPUT#yearCnt#/CFOUTPUT/td /tr /cfloop Francois Levesque http://blog.critical-web.com/

RE: Converting Year to Integer

2009-07-24 Thread Adrian Lynch
Is Year((now)) a typo in your email? If not, try Year(Now()) and you will need the #'s in the to attribute of cfloop. Adrian -Original Message- From: N K [mailto:neetukais...@gmail.com] Sent: 24 July 2009 14:31 To: cf-talk Subject: Converting Year to Integer I am looping the

RE: Coldfusion9 ORM

2009-07-24 Thread brad
1) Are you sure you are looking at the correct data source? 2) Have you run a trace on the database while the page execute to confirm if _any_ SQL is being run? ~Brad Original Message Subject: Re: Coldfusion9 ORM From: Gavin Stewart gavin.stew...@gmail.com Date: Fri, July

Re: Converting Year to Integer

2009-07-24 Thread N K
Yes thats a typo in my email.Adding ## sign does not help The error coming up is Attribute validation error for the CFLOOP tag. The value of the TO attribute is invalid. The value cannot be converted to a numeric because it is not a simple value.Simple values are booleans, numbers,

Re: Converting Year to Integer

2009-07-24 Thread Francois Levesque
cfset currYear= Year((now())) cfset currYear=int(currYear) CFLOOP index=yearCnt from='2000' to='#currYear#' tr tdCFOUTPUT#yearCnt#/CFOUTPUT/td /tr /cfloop is working fine on my end. If you're still getting an error there must be a typo somewhere. Francois Levesque

Re: Converting Year to Integer

2009-07-24 Thread Dave Sueltenfuss
Have you tried outputing your currYear variable, to make sure it is what you expect? On Fri, Jul 24, 2009 at 9:47 AM, N K neetukais...@gmail.com wrote: Yes thats a typo in my email.Adding ## sign does not help The error coming up is Attribute validation error for the CFLOOP tag. The

Re: Coldfusion9 ORM

2009-07-24 Thread Gavin Stewart
1) Are you sure you are looking at the correct data source? 2) Have you run a trace on the database while the page execute to confirm if _any_ SQL is being run? 1) Yes as far as i know you can only use one data source in orm. 2) The insert statement gets executed in the object but the Audit

RE: Converting Year to Integer

2009-07-24 Thread Adrian Lynch
And failing that, post all your code... -Original Message- From: Dave Sueltenfuss [mailto:dsueltenf...@gmail.com] Sent: 24 July 2009 14:56 To: cf-talk Subject: Re: Converting Year to Integer Have you tried outputing your currYear variable, to make sure it is what you expect?

Re: Converting Year to Integer

2009-07-24 Thread Gavin Stewart
Yes thats a typo in my email.Adding ## sign does not help you need to remove the quotes araound 2000 ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing

Re: Converting Year to Integer

2009-07-24 Thread Azadi Saryev
simple CFLOOP index=yearCnt from='2000' to='#year(now())#' should work just fine. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 24/07/2009 21:31, N K wrote: CFLOOP index=yearCnt from='2000' to='currYear' ~| Want

Re: Converting Year to Integer

2009-07-24 Thread N K
Solved , finally works , not sure what was wrong though. NK Have you tried outputing your currYear variable, to make sure it is what you expect? ~| Want to reach the ColdFusion community with something they want? Let them

Re: Converting Year to Integer

2009-07-24 Thread N K
currYear with out codes and inside ## sign WORKS !!! CFLOOP index=yearCnt from='2000' to=#currYear# NK simple CFLOOP index=yearCnt from='2000' to='#year(now())#' should work just fine. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ On 24/07/2009 21:31, N K wrote: CFLOOP

Re: JVM Memory Errors

2009-07-24 Thread Wil Genovese
I guess more information is needed. What OS, 32 or 64 bit? Which JVM version are you running? What are your other JVM config settings? Have you read any of the very helpful blog posts on tuning the JVM? http://www.trunkful.com/index.cfm/JVM-Tuning

RE: JVM Memory Errors

2009-07-24 Thread Mark Kruger
You should probably post the contents of the JVM.config file. What has changed recently? -Mark Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Wil Genovese [mailto:jugg...@visi.com] Sent: Friday,

RE: Converting Year to Integer

2009-07-24 Thread Adrian Lynch
Right but something else is wrong. Azadi's example is about as simple as it gets. Something else in your code is causing the problem. -Original Message- From: N K [mailto:neetukais...@gmail.com] Sent: 24 July 2009 15:09 To: cf-talk Subject: Re: Converting Year to Integer

RE: Converting Year to Integer

2009-07-24 Thread Billy Cox
Try this: CFLOOP index=yearCnt from='2000' to='#currYear#' -Original Message- From: Adrian Lynch [mailto:cont...@adrianlynch.co.uk] Sent: Friday, July 24, 2009 9:44 AM To: cf-talk Subject: RE: Converting Year to Integer Right but something else is wrong. Azadi's example is about

Re: Converting Year to Integer

2009-07-24 Thread N K
This is the who;e code which I had to do in order for it work cfset currYear= Year(now()) cfset currYear=int(currYear) cfoutputcfset currYear=#currYear#/cfoutput CFLOOP index=yearCnt from='2000' to=#currYear# !---Query /CFLOOP And I do understand that every thing else listed on this

Re: Converting Year to Integer

2009-07-24 Thread Azadi Saryev
1) year(now()) returns an integer - there is no need to call int() function on it. 2) the cfoutput... line in your code is totally useless and unnecessary. 3) is this code of yours in a cfm page or in a cfc function? 4) again, the simple cfloop from=2000 to=#year(now())# index=yearCnt ALWAYS

Re: Long running ColdFusion process and JVM Garbage collection.

2009-07-24 Thread Randy cfedge
You can run Garbage Collection like this: cfset runtime = CreateObject(java, java.lang.Runtime).getRuntime() cfset runtime.gc() YMMV ~Brad Is there anyway to encourage a ColdFusion server to run garbage collection during a long running, memory intensive process? Does this run Garbage

CFregistry and creating a branch

2009-07-24 Thread Don L
Hi, I'm wondering if cfregistry under cf8 is able to create a branch with its set method, I tried, it does not seem to be able to do that, or was I not doing it right? Thanks. ~| Want to reach the ColdFusion community with

Anyone here good with Event Gateways?

2009-07-24 Thread Phillip B
I'm having issues with a directory watcher event gateway. I just tried uploading 10 files to a server via FTP. The first and the last file were noticed and handled. The 2-9 files were ignored. Any idea why and how I should handle this? I have the interval set to 500. Should I try a longer

Re: Long running ColdFusion process and JVM Garbage collection.

2009-07-24 Thread Dave Watts
Does this run Garbage Collection for the whole coldfusion server? Yes. This doesn't sound like a good idea but I am going to ask,  What would the ramifications be of putting that code in a scheduled task and running it every so often?  I think I read before that too much garbage collection

Re: Long running ColdFusion process and JVM Garbage collection.

2009-07-24 Thread Wil Genovese
Because Garbage Collection can be resource intensive is why there are different types of GC methods and many settings for each. It's best to research the GC types and experiment with the ones that make the most sense for your hardware and CF Applications. I provide a cursory description of GC

Re: Converting Year to Integer

2009-07-24 Thread N K
The whole idea of not using to=#year(now())# and declaring it is because the currYear variable is used at more than one place. So if the variable is set used CFSET then there are couple of modifications required. NK 1) year(now()) returns an integer - there is no need to call int()

FW: Calling .ASPX.VB from .CFM

2009-07-24 Thread Jason Neidert
I figured out a way and will try to explain below so others can try to benefit from it. I needed to call a .NET web service passing it a complex structure of data. It would then in turn return a complex object that had the search results for room availability. I then had to do alot of CFDUMPS of

CFMX 8 install problems

2009-07-24 Thread Timothy Laureska
Hello: Very frustrated... install doesn't create a CFDocs directory AND when I try to open administrator i get Open or save dialog box Any help would be appreciated Tim ~| Want to reach the ColdFusion community with

RE: Long running ColdFusion process and JVM Garbage collection.

2009-07-24 Thread Mark Kruger
Just remember this should be done as a short term fix. If you are having GC problems it is best to sort them out so that Java is running smoothly without frequent stop-the-world' type pauses engendered by a full GC. -mark Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com

CFMX 8 install problems sidebyside error?

2009-07-24 Thread Timothy Laureska
Follow-up - I'm seeing errors in the event viewer with the source being sidebyside - this must be the source of the problem... message like: Anyone ever since this? Event Type:Error Event Source:SideBySide Event Category:None Event ID:59 Resolve Partial Assembly failed for

Re: CFMX 8 install problems sidebyside error?

2009-07-24 Thread Dave Watts
Follow-up - I'm seeing errors in the event viewer with the source being sidebyside - this must be the source of the problem... message like:  Anyone ever since this? Event Type:    Error Event Source:    SideBySide Event Category:    None Event ID:    59 Resolve Partial Assembly failed

WTF? Re: Anyone here good with Event Gateways?

2009-07-24 Thread Phillip B
I just found this. http://forums.adobe.com/message/60801#60801 Well, the directory watcher is supplied as an *example* and is not really intended to be production-quality code. The source is supplied so you are free to modify it yourself as needed. -- Sean A Corfield So I guess I spent all

cfdoc to pdf displays one blank page

2009-07-24 Thread Orlini, Robert
How do I prevent the cfdocument code below from displaying an extra blank page in pdf format? For example, instead of going to page two it displayed page two as blank and continued top page three. Is my code below at fault? Thanks. RO HWW cfdocument format=pdf scale = 90 cfoutput html My

SQL get the next successful transaction after a failed transaction

2009-07-24 Thread Casey Dougall
Yup... one of those random Friday afternoon stumpers If I have a table of transactions like this little thing here. With SQL how would I grab ID 2 based on the face that ID 3 is 0 I need to get the next successful transaction after a failed transaction but not sure how to go about it. ID

Re: SQL get the next successful transaction after a failed transaction

2009-07-24 Thread Judah McAuley
Do you want the most recent transaction that occurred after the most recent failure? Or do you want a list of the most recent transactions after every failed transaction? For case number 1 above, you could do something along the lines of: SELECT TOP 1 id, approved, date FROM mytable WHERE date

Re: WTF? Re: Anyone here good with Event Gateways?

2009-07-24 Thread Sean Corfield
On Fri, Jul 24, 2009 at 12:22 PM, Phillip Bphilthylab...@gmail.com wrote: So I guess I spent all this time trying to get something to work that isn't meant to be used in production or anywhere else for that matter. Well that is just great. I'm trying to make ColdFusion important to the

Re: Coldbox and ColdSpring How to?

2009-07-24 Thread Sean Corfield
On Fri, Jul 24, 2009 at 1:36 AM, Glyn Jacksonglyn.jack...@newebia.co.uk wrote: what are the benefits of working this way, am just ignorant having never used it or AOP before in CF. Any docs online you can point me to (I dont know what I would be looking for) As the number of CFCs being