Re: Long running process - cflock & cfthread
You could use java to manage this, take a look at creating a "guarded block": http://java.sun.com/docs/books/tutorial/essential/concurrency/guardmeth.html HTH, Rich ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309782 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: writing protected CF with CFStoredProc
In your example you are altering the behavior of the query based upon input which does not affect injection attacks. The idea of protecting against injection attacks is to stop invalid values from being executed within the query/SP. Take for example this query: delete from customer where customerId = 1 if this query were parameterized from CF without cfqueryparam you would have: delete from customer where customerId = #customerId# If someone were trying to inject sql they could inject "1;drop customers;" as the parameter and without the queryparam, it would be executed literally as the following and drop the customers table: delete from customer where lastname = 1; drop customers; To prevent this we utilize cfqueryparam which parameterizes the query that is passed. As I understand it, this informs the database that the value being passed is of a specific datatype. So in the previous example: delete from customer where customerId = In essense, the database sees this as: declare @custId int set @custId = 1 delete from customer where customerId = @custId This has the benefit of not allowing the additional SQL to be injected, and I just learned recently, it also creates a parameterized query which on SQL server creates a cached query execution plan, minimially increasing performance. HTH, Rich ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309467 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Easy way to dump contents of a CFC?
>> Is there an easy way to see the values stored in CFC? In my CFCs I place all instance variables into an "instance" struct. Then I can use: If you place everything in the variables scope, you can use: Keep in mind that this will also display all methods of the CFC as well. >> Does it work recursively, so if a cfc member points to another cfc instance, then that cfc is "dumped" in the same way? Unfortunately, any composite CFCs will display in their 'object' representation, unless you build a recursive getMemento method, and each child object would have to support that interface. HTH, Rich ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309463 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Why do I need getters/setters?
Will, Many of the ideas within OO are to promote encapsulation, easy reuse, and increased maintainabilty. In your example, it may be much easier to submit a form to a page that takes those values and adds them to the database. But for example lets say you are storing a "customer", and that you must ensure that there are no illeagal characters in their name. In your example, this can easily be done inline in the page, but what if you have multiple places where a customer can be entered? What about the SQL necessary to store this customer? Using OO, each of these operations is in exactly one place, and all your other code leverages that single place. This is one of a myrid of problems that OO attempts to solve. You gain flexibility and maintainability but at the cost of an increased learning curve and additional complexity. HTH, Rich ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307978 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFC confusion. please help!
Lori, The reason that some people discourage the use of a query object as a return type is due to the fact that it binds whatever uses that query object directly to the database (more specifically, to the columns in the database). The use of setter/getter beans should be familiar to your boss; under the java design pattern "Transfer Object", and are used as a mechanism to transfer the data in an encapsulated fashion. Return types are used in CFCs to create a strongly typed system. There are many debates on strong typing variables within CF (see duck typing), so you will have decide what best fits your team and development style. "Gateway objects" refer to a design pattern that has grown within the CF community, and refers to an object that manages all aggregate database interaction, while a DAO (data access object) manages persisting a single object. Many of the problems that come up in traditional java OO application development apply directly to CF and many can be solved using the same solutions and design patterns. Conversly, there are also new prolbems that are introduced using CF that must be solved in much different ways. A concrete example would be in java it is typical to create large object graphs (nested sets of objects), where in CF you must limit the depth of the graph as there are high object instantiation costs. Good luck! Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307956 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: SMS Event Gateway - encoding problem?
> > Hi Rich, > > this is coz charactor map supported by carrier > > when i faced such issue wiht other charactor at that time i just ask them > about this only like what exatly charactor map they are supporting > > if they are supporting GSM default then you will need to see if this > charator comes under if yes then they have problem while decoding if it is > not there then you will send to as 8 bit msg > > hope this will help > > regards > > Jignesh Kakkad The character is present under GSM 03.38. Under the existing solution we utilize a java SDK provided from our aggregator and it gets delivered just fine (which from sniffing the traffic is an HTTP POST). When we attempt to submit the same message bound to the aggregator via SMPP, we encounter the problem. >From a CF perspective, we are sending the exact same string using each method with the default encoding. Any Ideas? Rich ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307110 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Asynchronous Web Service Response
> One step in the CFC involves adding a record to a table which will be > processed later during a scheduled batch process. Is there anyway to > send a final response back to the client after this record has been > processed via the batch? If your clients are more technical, you could have the client provide a 'callback' web service when they invoke the original call. So for example, if your web service method signature looked like: updateEmployee(employee_id, first_name, last_name) you could update it to: updateEmployee(employee_id, first_name, last_name, callback_url) It is now possible when you run your batch, to return an xml packet to the callback url (you could include status, etc. in the packet). If this solution is to technical for your clients, then Bryan's suggestion of a getStatus(employeeId) which would allow your clients to poll the application seems to be the best solution. HTH, Rich ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307095 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
SMS Event Gateway - encoding problem?
Hello all, Has anyone run into a problem delivering a US dollar sign through the SMS Event gateway? A coworker is trying to move a legacy app to utilize the SMPP SMS gateway from a proprietary API, and has found that when trying to send a '$' that there is some type of encoding problem. On some carriers the '$' is replace with '?', while on other carriers the message simply cuts off where the '$' was encountered. Is there a different way we need to encode the text to get around this? Thanks for the help! Rich ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307082 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: MMS in ColdFusion?
> I tried adding the project in Eclipse and it shows 100+ errors. So I > have mainly been messing with the standalone folder.. > I tried to compile the .java file using the command javac > MM7MessageSender.java and got this.. > > MM7MessageSender.java:507: cannot find symbol > symbol : class MessagingException > location: class TaskThread > } catch( MessagingException me ) { > ^ > 94 errors > 1 warning > The errors you are seeing is the project dependencies not being found by eclipse. After you create the project, right click > properties > Java Build Path, and select the libraries tab. Add the jars found in the lib directory and the problems should all disappear. The error you are getting above is due to missing dependencies that are required to build the project. The compiler is scanning the classpath and is not finding the class MessagingException, which is located in the mail.jar, which is not by default in your classpath. If you want to do this via the command line, you will need to use the -classpath arg of javac to add the /lib folder to your classpath. HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305613 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: MMS in ColdFusion?
I found it in C:\vaspsdk\src\samples\standalone > Same error.. > http code 500 > > 235 [Thread-0] DEBUG com.openwave.mms.mm7.RelayConnection - [End > Outgoing Requ > est to Relay] > APIException submitting message: http return code: 500(ClientError:2000) > [End Thread[Thread-0,5,main] Iteration 0] > Finished 1 threads each with 1 iterations > 0 iterations succeeded > Messages per sec: 1.8281536 Greg, It depends on how you are executing the classes, if you are within an Eclipse project and running the java from the IDE, executing the jar, or if you are using the examples and send.bat. If you are using the samples, it is executing the class files in the same directory (/examples/standalone), and you will need to edit them and recompile to that directory. If you are attempting to execute the jar file, you will need to edit the source under /src and then export a new jar file to see your changes. HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305607 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: MMS in ColdFusion?
>How can I add to the generated XML? there's not an option for it in >the send.bat file? You will need to modify the java source (MM7SenderAndReceiver.java) and add: request.setVasId(yourVasId); Then recompile, run it again, and you'll see it in the XML packet. HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305606 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: JMS & ActiveMQ
> On Sat, May 17, 2008 at 3:55 AM, Adam Haskell wrote: > > Dependency conflicts are a fact of life as far as I have found. > > These can usually be avoided by getting everything into a classloader > and calling the classes from that. Do you know of any samples / examples on how to do this? This is exactly what I'm trying to determine how to accomplish. Rich ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305605 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: MMS in ColdFusion?
Greg, I did a quick scan of the SDK source, and username / pass are required attributes. You can test and see if you can pass guest / dummy credentials and see if you can connect? I sent you a gtalk contact request, so ping me on IM if you need a hand Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305512 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: MMS in ColdFusion?
> I just spoke with my contact.. and they mention > > MM7 traffic via a VASP > > This is all greek to me.. will an SMS Aggregator still work here? Or > will I need to go the openwave route? > Ok, I'm assuming you spoke with your contact at your SMS aggregator and this is what they told you. That said, here are the basic definitions you will need to remember to find your way out of acronym hell: SMSC - Short Message Service Center (your SMS Aggregator) MMSC - Multimedia Message Service Center (usually provided by your aggregator) MM7 - This is the delivery protocol for the messages VASP - Value Added Service Provider - you ;) ShortCode - the (generally) 6 digit number you were given for your SMS/MMS traffic (phone number) So they are saying that you send them MMS messages via MM7 ;) It sounds like you are in the same boat I was, so I hope the following helps: The first place I started was with the Openwave SDK and its example files. The hardest part there is configuring the correct properties; once configured properly, you can send to your MMSC using the sample files (they do need to be modified slightly). I strongly suggest running them from a shell as you can see encoding for MM7 and will start to get a "feel" for the protocol. I would suggest using the 'MM7MessageSender' as this is the most robust example and shows many of the things you will need to work with. You will need to alter a few parameters in the source code for it to authenticate successfully (namely vaspid, vasid, & sourceAddress - see below). There are a few details you will want to get from the MMSC in order to be able to connect to them successfully: mmscUrl = the url to connect to Username = self explanitory Password = self explanitory MM7 version = what version of the MM7 protocol are they using (REL-5-MM7-1-0, REL-5-MM7-1-1, REL-5-MM7-1-2 or REL-5-MM7-1-3) Vaspid = the VASP id provided by the aggregator, generally required for authorizaion Vasid = the VAS id provided by the aggregator, generally required for authorizaion Sender address = your short code (this was required by our MMSC to deliver YMMV) Once you have these details you can use the MM7MessageSender to deliver messages via the example applications. >From here, your next steps are going to vary depending on the needs of your application. We needed a high volume, scalable solution, so we created supporting java classes that delegated to the SDK for delivery and exposed one java 'service' class to CF to initiate the send. Let me know if I can be of further help. p.s. - It would probably save you endless hours of development if you could find a MMSC that offered a RESTful web service for delivery so you could use Roberts solution. HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305484 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: MMS in ColdFusion?
> I'm getting an error 'Network Error' on that form. Were you able to bypass > that? Sadly, no. I posted to their forums regarding it when I first gained access to their SDK, but the only response I received was that "It should work...". The only reason you would need to sign up with them is if you desire to use their MMSC (Multi media messaging service) to test your application. HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305478 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: MMS in ColdFusion?
Robert, Were you doing a http post to the aggregator, or is there a way to send via MM7 that I completely missed? Rich ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305447 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: MMS in ColdFusion?
Greg, I just completed a project that involved MMS. I don't know of a really simple way to send MMS messages from CF without the use of java. I used the openwave MMS SDK in combination with custom java classes to deliver MMS messages using the MM7 protocol under CF. If you would like I can provide some of the problems / solutions to save you a few steps if you chose to take this road. Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305415 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
JMS & ActiveMQ
Hello all, Does anyone have any experience with CF8 & ActiveMQ integration? I was attempting to set up activeMQ 5.1 and leverage the ActiveMQ event gateway, and when starting the example, received a class not found error for the connection factory. Based upon this, I added the activeMQ jars to the CF classpath so CF could access the dependant classes, only to run into problems with class library versions (i.e. CF8 uses commons-logging v1.0 and ActiveMQ uses 1.1). Because of these dependency problems, I had to downgrade ActiveMQ to version 4.1 and have now successfully delivered and received messages, but really wanted to use 5.1. I expected the CF example gateways to work out of the box, and not for me to have to install jars onto the classpath to get it to work. I did not see any notes in the docs regarding any installation being necessary, so I hope I am just missing something trivial. Can anyone point me in the right direction? Adobe hypes CFs easy integration with Java, yet every time I have attempted to leverage open source software as an integration point, I feel nothing but pain (Quartz and now ActiveMQ). Am I missing something here? Is there some easy way to get a clean classpath, or to manage these dependency conflicts? Rich ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305372 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Avoid multiple form submits.
A client side only solution can not ensure that this problem will not occur. A more robust solution is to use the "Synchronizer Token Pattern" from core J2EE Patterns. Here is an excerpt from http://www.corej2eepatterns.com/Design/PresoDesign.htm: " Synchronizer (or Déjà vu) Token This strategy addresses the problem of duplicate form submissions. A synchronizer token is set in a user's session and included with each form returned to the client. When that form is submitted, the synchronizer token in the form is compared to the synchronizer token in the session. The tokens should match the first time the form is submitted. If the tokens do not match, then the form submission may be disallowed and an error returned to the user. Token mismatch may occur when the user submits a form, then clicks the Back button in the browser and attempts to resubmit the same form. On the other hand, if the two token values match, then we are confident that the flow of control is exactly as expected. At this point, the token value in the session is modified to a new value and the form submission is accepted. " This combined with a client side JS solution will ensure the form is only submitted once. HTH, Rich Kroll Senior Software Engineer NextWeb Media ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304996 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Bulk SMS out.
> Thanks for the info. If you don't mind sharing what is the cost per > message, month, etc? If you would like contact me off list. > > Thanks, > Bryan Bryan, Unfortunately, I can't answer that question as I am not privy to the contract that our company negotiated. I know that we have negotiated lower rates due to our volume, but I do not know the exactly cost per SMS / MMS message. Good luck! Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301739 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Bulk SMS out.
> -Original Message- > From: Bryan Hogan [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 20, 2008 5:38 PM > To: CF-Talk > Subject: SOT: Bulk SMS out. > > All, > > I need to send ~100K SMS messages out a day (No worries, not spam.) I > am looking at two options. The first is buying a server solution and > the second is using a web service. If I chose the server solution I > would have to contract with the carriers and call their APIs directly. > The cost for a web service is too much. > > Has anyone here done this on this scale before? Anyone know of any > server solutions, lower cost web services, or any other resources you > can point out? > > Initial setup resources and monthly fees are not as important as per > message cost; however, both of course are not unlimited. This is > MISSION Critical ENTERPRISE scale and must perform as such. > > Thanks, > B Bryan, I would suggest looking into a SMSC (SMS Aggretagor) to manage connectivity to the carriers. We currently use OpenMarket (www.openmarket.com) as our SMSC. We are currently pushing in the range of ~150k per day and climbing. They offer connectivity via SMPP, which you can utilize the CF Event gateway. HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301706 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CF 8 Performance Problems?
> Trusted cache is ON > Save class files is OFF > Cache web server paths is OFF If you are testing this as a production machine, I would suggest that you turn "Save class files" to ON. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301636 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CF 8 Performance Problems?
We ran into a problem with the bug in the 1.6 JVM related to classloading. Depending on your application and server settings, this could be what is affecting your performance. References: http://corfield.org/entry/Java_6_and_ColdFusion_8 http://www.compoundtheory.com/?action=displayPost&ID=270 http://forum.java.sun.com/thread.jspa?threadID=5218663 If you choose to switch to the 1.5 JVM it is a rather simple procedure: http://kb.adobe.com/selfservice/viewContent.do?externalId=2d547983 Good luck! HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301599 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
OT: Spry validation
Hey all, Does anyone know a way within Spry to invoke the default validations from within a custom validation function? What I am trying to do is verify that the end date is prior to the start date: <!-- var afterStartDate = function(value, options){ var strStartDate = Spry.$("startDateInput").value; //start date form element var stDate = new Date(strStartDate); var currentDate = new Date(value); if (currentDate > stDate) { success = true; } return false; } var startDate = new Spry.Widget.ValidationTextField("startDate","date",{format:"mm/dd/"}); var endDate = new Spry.Widget.ValidationTextField("endDate","date",{format:"mm/dd/",validation: afterStartDate}); --> The problem with the above code is that it does validate that the current date is greater than the end date, but it fails to check that the entered date is valid. For example, if startDateInput.value = '3/18/2008' and the value passed in to this function is '3/39/2008'. Spry's built in validation would flag this value as invalid while JS parses the date as April 8th, 2008. What I'd like to do is to utilize the existing date validation offered by Spry, but to add additional logic for each specific use case. I would like to add something like: if ( endDate.validate() ) { // use spry to test validation first return false; } ⦠continue with custom validation Has anyone found a way to accomplish this? Thanks! Rich ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301494 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Duh question of the day...
Since you var scoped the query name, the variable "q" becomes local to the method. If you were to remove the var scoping, it would leak into the variables scope, and (under load) would have caused strange behavior, and would make it very hard to track down the source of the bug. This is the reason so many of us on this list preach var scoping. HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301014 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Database not found - error message
Dan, Yep, you found it! You have two options: 1. Ask godaddy: "What is the DSN name for my database?" 2. Ask godaddy to update your DSN with the name "spaceexpressions" The string provided to you from godaddy is the actual address of the database server, and is not needed unless they have given you access to the CF administrator to configure your own databases (which I highly doubt). If they give you the DSN name, replace "spaceexpressions" with the name they provide, or if they change the DSN, just reload the page ;) HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300952 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Database not found - error message
Dan, I apologize I did not realize that you were utilizing Dreamweaver (DW) to generate the CF code to power this page. When you connected your database to ColdFusion, you were forced to give it a name to identify that connection. I do not use DW, so I am not sure the exact process used to connect the database to your project, but when you set the project up, I assume you had to select which database to connect. We are trying to see what was generated in the underlying code. The code snipped you are looking for (in the code) will look similar to: SELECT * FROMyourTableInTheDatabase This code is the actual logic that queries your mySQL database to return the records. Most likely it will be contained in the file where you loop over the "rs_christmas" result set. Once you find this code block, you will need to notice the DATASOURCE attribute. This is the value that tells CF which previously configured database connection to use. You will need to ensure that goDaddy has configured your database with that name, or else change your code to match the name goDaddy has configured. Hopefully that clears things up. Good luck! HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300951 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Database not found - error message
Daniel, You need to place the DSN string (Datasource name as defined in the CF administrator by godaddy) in the CFQUERY tag (that you did not show in your code sample). Ex: SELECT * FROM FOO HTH, Rich ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300900 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: What are the Necessary Code Changes for Migrating from 6.1 to 8?
Sorry if this was mentioned already, but what about the Code Analyzer in the CFAdmin? Rich ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300895 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFC Best practices question
> If I have an object loaded in the Application scope and want to use it in > another object/component ,should I pass it in as a variable or should I > call > it directly from the Application scope. Assume that the object will always > be loaded in memory. > > TIA > G I would advise against accessing the component directly. As a general rule, you should not have any CFC access a scope outside of itself. I would suggest one of the following two approaches: 1. Use a façade to the application scope By using a façade, only one component is tied directly to the application scope. 2. Injection Using either constructor or setter injection, pass the object in as a variable. HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300579 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Find/Replace for Eclipse
> Cool, I didn't even know 3.4 was out. Is that europa-winter? > > Are all the plugins working ok with it? CFEclipse/Subclipse, etc? > > Russ It's europa, not sure if it was a part of the winter maintenance though. I've been using Java / J2EE / CFE / Subclipse all without problem. HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300554 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Find/Replace for Eclipse
> can use next/prev to cycle through them. As I have stated more than once, > what I want is something like what DW has where the pane shows me a > preview > of the 6 instances and I can then click on which one I want to go to. I'm currently using eclipse 3.4 and it does exactly what you are requesting. For example, if it found 5 matches within fileA.cfm, I have the ability to expand the matches and jump directly to the 3rd match. HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300546 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Find/Replace for Eclipse
> > > > Actually is more to the Find/Replace differences that I have not > explained > > and like. For example in DW you hit ctrl-f and then window that comes > up > > will let you define a few things like search in just that document or > all > > documents across that site/project and so on. Eclipse works in much the same way, when you use (the default) ctrl-f shortcut, you get a very simple search / replace dialog for only the current document. Using the (again, default) ctrl-h shortcut, you get a more advanced search dialog. This interface will allow you to search (and/or replace) by workspace, project, or even just selected files. The search results pane allows you to drill into the found results and by double clicking an entry, you are taken directly to the line where the search term was found. HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300542 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Find/Replace for Eclipse
> Nothing. I just don't like it. I prefer CFS's search. Mostly for the *.bak > feature. What exactly is the *.bak feature? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300510 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Java Dependencies - CF7 to CF8
Hello all, In our environment, we are using an open source java application to manage some job scheduling (http://www.opensymphony.com/quartz) and are now experiencing problems when upgrading to CF8. The problem revolves around the required dependencies for Quartz (namely the Apache Commons libs). These libraries were not present in CF7, but are in CF8, except that they are an older version than what is required by Quartz. We do not want to upgrade the versions used by coldfusion for obvious reasons. Can anyone recommend an approach to how we can make these libs available to Quartz yet not change the CF install? Is a way to put these classes / libs into a different classloader and still expose them to CF? Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299041 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Java Dependencies - CF7 to CF8
Sorry if this is a duplicate, my post has not appeared after an hour. Hello all, In our environment, we are using an open source java application to manage some job scheduling (http://www.opensymphony.com/quartz) and are now experiencing problems when upgrading to CF8. The problem revolves around the required dependencies for Quartz (namely the Apache Commons libs). These libraries were not present in CF7, but are in CF8, except that they are an older version than what is required by Quartz. We do not want to upgrade the versions used by coldfusion for obvious reasons. Can anyone recommend an approach to how we can make these libs available to Quartz yet not change the CF install? Is a way to put these classes / libs into a different classloader and still expose them to CF? Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299040 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Using JavaLoader with UJAC creates memory leak
> Not explictly. Wouldn't the JRE do this for me when CF disposes the > objects ? The way I understand things is if the streams are still open, the objects cannot be disposed of (garbage collected) by the JVM. I would strongly recommend that you specifically close the streams that you open so they (and any associated objects) can be properly GC'd. Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298704 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Using JavaLoader with UJAC creates memory leak
> documentProperties=createObject('java','java.util.HashMap').init(); > templateStream=createObject('java','java.io.FileInputStream').init(generat > edTemplate); > documentPrinter=variables.loader.create('org.ujac.print.DocumentPrinter'). > init(templateStream,documentProperties); > resourceLoader=variables.loader.create('org.ujac.util.io.FileResourceLoade > r').init(arguments.resPath); > documentPrinter.setResourceLoader(resourceLoader); > pdfStream=createObject('java','java.io.FileOutputStream').init(pdfPath); > documentPrinter.printDocument(pdfStream,true); Are you closing your FileInputStream / FileOutputStream? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298543 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Array Read / Output Help
> I'm creating an array. It's a list of record numbers to be looked up > later. Is the order of the items important? Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296175 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Testing a web service signature?
I've done this, but not in CF. There is a Java framework called WSIF (Web Service Invocation Framework) that allows for stubless, or dynamic invocation of a web service as well as exposes the meta data about a web service. You might be able to leverage concepts, or the library itself to get to the information you need. http://ws.apache.org/wsif/ HTH, Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296177 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Adobe ColdFusion IDE survey
> I am not sure why they would build an IDE on eclipse when we already have > one. My reasoning would be to start from a clean code base designed from the ground up to be interoperable with existing applications, instead of being tied to the legacy code. Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296166 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Adobe ColdFusion IDE survey
It seems that many people step up on their soapbox and proclaim that does not perform . The problem that Adobe is trying to solve is a rather large one. The CF community has a very diverse user base, ranging from seasoned application developers familiar with low level languages requesting tools available in those languages to hobbyists who want a WYSIWYG environment. We are a large and diverse group, both in terms of skills and requirements. I believe that some people need to realize that their personal must have feature is not necessarily even needed by other developers within this community. There is no one "right" answer to this very challenging problem, but I am happy that Adobe is attempting to craft an IDE that will address all of our needs. My personal hope is that Adobe will develop an Eclipse based solution so that we as a community can leverage the existing tools that exist for the platform and do not need to rely on Adobe to provide every tool that we can dream up. Mark has done an amazing job with CFE, but at the end of the day, he is still just one man. With the weight (and money) of Adobe behind an Eclipse based tool, we would all be very much better off IMHO. Rich Kroll ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296128 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: JREE Servers (was Session Management - sticky sessions)
+1 for Mutli-Instance on JRun ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295216 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFMX 7 - Java class reloading
> Do Java classes automatically get reloaded when placed in the default > location of "C:\CFusionMX7\wwwroot\WEB-INF\classes"? No, you must restart the server instance. I don't know if this has been suggested, but another route is to use a URL classloader to avoid having to restart the instance. See Mark Mandel's excellent JavaLoader (http://www.compoundtheory.com/?action=javaloader.index). HTH, Rich Kroll ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294329 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Globalization Question
(1) would the process of managing translations for a db be > that much different than managing translations for resource bundle > properties files? I think the main difference during translation would be in what you provide the translator. Utilizing text based resource bundles you can provide two files, one the local version and the other the English version. The translator will translate directly into the new RB and return that to you. Utilizing a DB backed RB you have to either develop a UI for the RB editing, or export from the DB to a text file to send to the translator. >(2) I'm certainly not trying to re-invent the wheel, IMO there are a few key reasons to use text based RB's. First, using the tools to manipulate RBs make it easy to switch between bundles which would have to be custom developed with your solution (e.g. your 'locale' column that would have to be inserted into every table that contained rb's). A second reason (IMO) is the dependency that is needlessly created between the code and the DB server. Rich Kroll ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293583 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CF7 Verity Issues. Any help/comments would be appreciated
Jayesh, I was able to catch the stacktrace of the error while indexing, That causes this (-1705) error. It seems that this happens whether I have the collection set to englishx or english and is very frustrating. Your help is greatly appreciated. Here is the stack trace. General failure. (-2) The error occurred in F:\wwwroot\cxprod\COM\search.cfc: line 75 73 :Hi Rich/Jenny, > >Can you post the full stackstrace here? that will be more helpful to >investigate it. > >Thanks & Regards, >Jayesh Viradiya >Adobe CF Team > >Hi Rich, > >I'm having the same problem, and it is also causing Jrun to go to 100%. > >If you find a solution, I'd be most grateful if you would let me know. > >Many thanks, > >Jenny >I have a few Verity Collections on a Windows 2003 server running CFMX >7.0.2 >with hotfix 3 installed,that index documents on my site. I set up a >scheduled task to index the documents nightly. This had been working >great, >but now the index fails with the error. >"The collection is not available: >com.verity.coll.VCollectionNotAvailableException: Collection down after >opening. (10)" > >When a user searches the site they get an error: >Error executing the CFSearch Tag > >Collection (Status Code): mycollection(-1705). > >I can not find any doc on Verity error codes on Adobe's site that >explains >this error other than "The Collection is down". No resolutions, nothing. >The >only solution I have found that works is stopping the Search Services, >deleting the collection folder under cfmxroot/verity/collections >restarting >the service and re-creating the collection, then doing a manual index. I >am >pulling out what hair I have left trying to figure out what this issue >is >and how to correct it. Anyone else have any similar issues/advice. > >Thanks, > >Rich Sloan >E-Business Development Specialist >The TriZetto Group, Inc., Naperville ~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293502 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Adding Properties to an Object at Runtime
Jeff, Have a look at the apache commons BeanUtils for inspiration (http://commons.apache.org/beanutils/commons-beanutils-1.7.0/docs/api/). I would suggest looking at the DynaBean, DynaClass, and MutableDynaClass interfaces. HTH, Rich Kroll ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293155 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Image Management
> >>Depends on what the image represents. > > Ah ah, it's funny how much time you can spend just finding details to > contradict me ;-) > Of course, IF you're working with "Binary information in Well Known > Binary (WKB) format", AND you have a database capable of reading details > in that format, > then you better store the image in your database. Well I must say that it's good to know that my gut was 'generally' correct, and also to know a case when it would be appropriate to leverage the database for binary data storage. Thanks for an enlightening conversation guys. Rich Kroll ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292978 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Image Management
Since we're on this topic I usually manage images on disk in a similar fashion. I've recently begun working on a new project, and all binary content in stored in the DB (images, music, etc.). My gut reaction is that this would add overhead, a dependency on the database, network traffic, etc. What are your thoughts? I would really like to hear everyone's thoughts on best practice in relation to disk storage vs. db storage for digital assets. Rich Kroll ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292794 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFC Not acting like I expect
In the code you provided, you set propID as "foo", perform the SP call, and return propID unchanged. You can add an out parameter to the SP call, something similar to the following: ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292780 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF7 Verity Issues. Any help/comments would be appreciated
Jayesh, Here is the stacktrace when we get the error. What I have found that somewhat works though is to change the language to englishx from english. That seems to keep the collection from failing while indexing. "Error","jrpp-279","10/24/07","06:46:05","cxContent","There was a problem executing the CFSearch tag with the following collections.Collection (status code): doc_careadvance (-1705) The specific sequence of files included or processed is: F:\wwwroot\cxprod\Search\index.cfm, line: 110 " coldfusion.tagext.search.SearchTag$SearchAuthenticationException: There was a problem executing the CFSearch tag with the following collections. at coldfusion.tagext.search.SearchTag.doSearch(SearchTag.java:282) at coldfusion.tagext.search.SearchTag.doStartTag(SearchTag.java:159) at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1915) at cfsearch2ecfc553591659$funcGETSEARCH.runFunction(F:\wwwroot\cxprod\COM\search.cfc:110) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:344) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:290) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:254) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:56) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:207) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:169) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:194) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:146) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1634) at cfindex2ecfm1719434478.runPage(F:\wwwroot\cxprod\Search\index.cfm:54) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115) at coldfusion.CfmServlet.service(CfmServlet.java:107) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at com.seefusion.Filter.doFilter(Filter.java:49) at com.seefusion.SeeFusion.doFilter(SeeFusion.java:1494) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292651 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: MX 6.1 and Sending SMS Messages
> 1. How do I "install the jar file on our server"? You need to upload the jar file to the server, and place it on ColdFusion's classpath (/{cfroot}/lib/ will work). > 2. The code you provided looks good and simple (which is what I'm looking > for!). Will it work with the OpenSMPP jar file, or will I need to change > the methods to ones that are in OpenSMPP? The example code I provided was for OpenMarkets / Simplewire's API. If you are using the SMPP.jar you will need to use it's API. There is a sample java application at http://opensmpp.logica.com/CommonPart/Download/javatest_1_1/smpptest_full.zi p that you can look at for reference to what you need to do to utilize it. I have not worked directly with the OpenSMPP API so I can't help to much there, but if I can get some time over the weekend I'll see if I can translate that java test app into CF. Good luck! Rich Kroll ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292529 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: MX 6.1 and Sending SMS Messages
Dave, Do you have a SMSC (SMS Center) or an SMS Gateway? Currently we work with OpenMarkets, which provides a java api that we leverage to send SMS, PSMS, etc. Either using an API provided from your SMSC, or OpenSMPP (which I assume is where you found SMPP.jar) will be rather easy. You need to install the jar file on your server, and then you can access it via createobject. For Simplewire / OpenMarkets here is a sample: sms = createObject('java','com.simplewire.sms.SMS'); sms.setSubscriberID(subscriberID); // SMSC ID sms.setSubscriberPassword(subscriber_password); // SMSC password sms.setDestinationAddr("+#destAddress#"); // user phone number sms.setSourceAddr(SMS.ADDR_TYPE_NETWORK, sourceAddress); // phone number / shortcode sms.setMsgText('Sending you a message!'); sms.submit(); HTH, Rich Kroll ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292504 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Copying a CFC Persisted in Session Scope
> And having references to sessionFacade.getFoo() everywhere is somehow > better than having references to session.foo? I think you are getting stuck on the name 'sessionFacade'; I was attempting to suggest abstracting access to the variable of which his components had no direct knowledge. If my code is calling userService.getFoo() instead of a reference to session.foo then I think that is absolutely a better choice to utilize a facade. The added benefit of using the façade is that you can unit test the service (by using a mock object). > That sort of session facade is not a coherent > object and having "sessionfacade" everywhere means you have not > encapsulated use of session scope at all - you've just required that > people call functions to get at data. It seems as though you are mixing concepts; a well designed object, and how it access an external scope. I believe that within a well designed object, it should not reference a scope it does not directly have access to and should use a façade to get access to that data. > The better solution is to consider what data you have in session scope > in the first place and encapsulate each piece of data in an object > that relates to that data. I agree completely. > You might have a user object in session > scope - encapsulate that knowledge in a userService (singleton). That > way you've encapsulated how the user is stored - none of your > application code knows about session scope (or sessionFacade!). I agree that the application should utilize a service to interact (in your example) a user, but again, I think the service should not access the session directly either, it should use a façade to access the session. > You > ask the service to perform operations on the current user and it knows > how to do that. It can even give you the user object if you want to > operate on it directly. That means your application code is only > dependent on a fully encapsulated service. It also means that you can > change how the user object is stored independent of any other data in > session scope (because that other data is encapsulated elsewhere) and > nothing in your application needs to change. I could not agree more. - Rich Kroll ~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292285 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Copying a CFC Persisted in Session Scope
> I realize this topic may have been covered on this list a while back, but > I'm having problems locating a good answer, so here goes. Typically in our > administrative web sites, on a request, we copy over our session variables > to the request scope so we can have read-access to the information without > having to place locks all over the place. I would suggest that you create a Session Facade and then have all your objects reference the façade. It is generally a bad idea to have an object reference an external scope (session, request, etc.), and this technique hides the implementation from your business objects. Assuming you wanted to return an 'admin' object, your objects would use a sessionFaçade.getAdminObject() and the function within the façade would look like the following (excluding locks, etc. for the sake of simplicity): function getAdminObject() { Return session.adminObject } HTH, Rich Kroll ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292254 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CF7 Verity Issues. Any help/comments would be appreciated
I have a few Verity Collections on a Windows 2003 server running CFMX 7.0.2 with hotfix 3 installed,that index documents on my site. I set up a scheduled task to index the documents nightly. This had been working great, but now the index fails with the error. "The collection is not available: com.verity.coll.VCollectionNotAvailableException: Collection down after opening. (10)" When a user searches the site they get an error: Error executing the CFSearch Tag Collection (Status Code): mycollection(-1705). I can not find any doc on Verity error codes on Adobe's site that explains this error other than "The Collection is down". No resolutions, nothing. The only solution I have found that works is stopping the Search Services, deleting the collection folder under cfmxroot/verity/collections restarting the service and re-creating the collection, then doing a manual index. I am pulling out what hair I have left trying to figure out what this issue is and how to correct it. Anyone else have any similar issues/advice. Thanks, Rich Sloan E-Business Development Specialist The TriZetto Group, Inc., Naperville ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292158 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: 2007 Web Design Survey
> So go ahead, disagree, call me a bonehead, it's just one opinion. I think > developers work very hard for their earnings and have high expectations. > We're the gate keepers to the Web site world and I see us moving towards > becoming a commoditity and it makes me sad. > > I hope you share some similar views and that I'm not just on my own > osolated little planet. 8-) I don't completely disagree with the points you made, but I think your points are based on a survey that is skewed. I believe that the survey was targeting web *design* professionals, not developers / engineers. Design professionals traditionally have lower salaries than engineers. That said, I completely agree with your statement regarding the erosion of web design professionals salary compared to the increase in skills necessary to perform the respective job, not to mention inflation. In regards to engineers, I believe that we are in a great position (both in terms of need and compensation) as most software engagements are utilizing the web to a large degree. Rich Kroll ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291457 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Rollback db changes in CFCUnit/CFUnit tests
Here is the ant script that I was referring to & the properties file that powers it. Also included are the caveats that I gave Janet: A few caveats: 1. It is targeted specifically to MSSQL. 2. I am using the open source JTDS drivers ( http://jtds.sourceforge.net/) to access our databases. One problem I ran into when resetting our database was when constraints existed on existing tables so I use some MSSQL specific SQL to temporarily detach the constraints during the reset process. If you are not using MSSQL, you will need to change the insert operation to CLEAN_INSERT (if i remember correctly) as it is currently using MSSQL_CLEAN_INSERT in addition to updating the constraint code. I hope this helps you with what you are working on. Good luck! HTH, Rich Kroll *** Properties file (db-build.properties) *** db.driver=net.sourceforge.jtds.jdbc.Driver db.urlprefix=jdbc:jtds:sqlserver:// db.server=RKROLL db.port=1433 db.instance= db.database=MYDATABASE db.username=user db.password=password db.exportfile=dataset *** Build file (build.xml) *** MENU Available tasks: export: Exports the database to a flat xml file. (Should only be done on schema changes) export-dtd: Exports the database schema DTD reset: Reset the database to a last known good state disable-constraints:Disable database constraints enable-constraints: Enable database constraints Performing database reset on ${db.server}:${db.port}/${db.database};instance=${db.instance} clean insert beginning... clean insert complete enabling constraints... database reset complete. Accessing DB [jdbc:jtds:sqlserver://${db.server}:${db.port}/${db.database};instance=${db. instance}] disabling constraints... DECLARE @SQL VARCHAR (8000) SET @SQL='EXEC sp_msforeachtable ' + '@command1="ALTER TABLE ? NOCHECK CONSTRAINT all", @command2="ALTER TABLE ? DISABLE TRIGGER all"' SELECT @SQL EXEC(@SQL) constraints disabled. DECLARE @SQL VARCHAR (8000) SET @SQL='EXEC sp_msforeachtable ' + '@command1="ALTER TABLE ? CHECK CONSTRAINT ALL", @command2="ALTER TABLE ? ENABLE TRIGGER ALL"' SELECT @SQL EXEC(@SQL) ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291154 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFC Composition and/or Extention
Exactly what I meant, but put much more elegantly! Rich Kroll > -Original Message- > From: Brian Kotek [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 10, 2007 11:53 AM > To: CF-Talk > Subject: Re: CFC Composition and/or Extention > > I would do something similar as well (though just make sure to purge it > back > out if something goes wrong in the rest of the transaction, since you'll > probably be returning the object back to the view for use in displaying > the > data they entered into the form and you don't want it to have the wrong > ID). > Which means, of course, make sure this whole process is wrapped in a > cftransaction block so that it succeeds or fails as a single unit. The > service layer is often a good place for transaction logic since it usually > applies to multiple domain objects at once. ~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290781 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Splitting UI and Data
> I think I would like to use some kind og MVC (Model-View-Controler). But I > don't want to use a standard framework like fusebox. I think that it is > too complex for my porpose. If you are planning on using MVC I would strongly suggest using an existing framework (Mach-ii, Model-Glue, FuseBox). With the large quantity of tutorials available you can get up to speed quickly on your chosen framework. If you are new to MVC and OO development, using an existing framework will guide you toward best practice development. The learning curve necessary to roll your own MVC framework will be so steep as to be almost impossible. Also remember that there is a large amount of community support, which translates into a large support system for the inevitable questions that will come up. HTH, Rich Kroll ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290742 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFC Composition and/or Extention
> Now I could do > this in my super classes create() method, by having it return the ID for > the > entry it just created, however this does feel a little unusual, mainly > because I'm not used to working with super objects, is that the correct > way At the end of SUPER.create( ARGUMENTS.SubObject ) you can have the parent DAO call ARGUMENTS.SubObject.setID( newlyCreatedId ) which will make it available in the child. Make sure you make this a transaction so you don't end up having orphaned IDs in the parent table. HTH, Rich Kroll ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290741 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: XML Parse
> i am accessing an external API that returns me the following string: > > <wddxPacket > version='1.0'><header/><data><struct><var > name='STATUS'><string>0</string></var></struct> > </data></wddxPacket> > > my question is how can i parse the above so that I get an XML object > in coldfusion. > I tried using XMLParse on this string, but that caused an error. It appears to be a WDDX packet that is being returned. Check out the CFWDDX tag. http://livedocs.adobe.com/coldfusion/7/htmldocs/1523.htm HTH, Rich ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290695 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Scary fun with variables scopes.
> >>I don't think its a structure. Just a variable name with a "." in it. > > But this is unconsistent with the way CF really works: > Try > > > CFDUMP shows that test is a structure with a variable " test", not a > variable "test.test" The way CF "really works" in the example you provided is implicitly creating a structure when you use that syntax. In the previous example, since session is an existing structure CF cannot create it so it treats it as a variable "session.test" that it places into the URL scope. You can test this behavior by running the code below: If you place these in a file (test.cfm) and browse them with the following urls: Test.cfm Test.cfm?tester.test=1 You will see that the exact same phenomenon occurs; when the struct already exists, CF cannot implicitly create it and creates a variable with the name provided. HTH, Rich Kroll ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290399 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: two select lists next to each other
> > function selectAllOptions(obj) { > if (!hasOptions(obj)) { return; } > for (var i=0; i obj.options[i].selected = true; > } > } > > 'obj' is the reference to the field in question, however you want to get > it passed in, i.e. 'document.YourFormName.YourFieldName' where... well, > you know. :P > That's from the same package I directed him to, except that you did not include the hasOptions(obj) function to make this useable. Rich Kroll ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290383 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: two select lists next to each other
> I'm wondering if anyone has any links and/or javascript for working with > two list boxes on a screen. http://www.mattkruse.com/javascript/selectbox/ check out the selectAllOptions() method in the source. HTH, Rich Kroll ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290353 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Rollback db changes in CFCUnit/CFUnit tests
> Rich, > > That would be great. Thanks. > > Janet No problem. It should be on its way. Let me know if I can be of any more help. Rich Kroll ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290350 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Scary fun with variables scopes.
Ian, ColdFusion is evaluating the line and is looking through all known scopes and is finding URL['session.text'], treating it as a variable name, which is evaluating to true. Ben Nadel discussed this type of non-assertive scope reference in a recent blog post (http://www.bennadel.com/blog/957-Code-Assertively.htm). HTH, Rich Kroll ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290355 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Rollback db changes in CFCUnit/CFUnit tests
> Thanks Rich. That is helpful. Off to download and review DBUnit. > > Thanks, > Janet Janet, If you would like, I have a (work in progress) ant build file that uses dbunit's ant task to export / reset my database. I would be happy to email it to you offlist if you think it might be useful. HTH, Rich Kroll ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290301 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Rollback db changes in CFCUnit/CFUnit tests
> Thanks. I'm new to unit testing in general, so sorry if this is a dumb > question :) .. I think I understand the concept of DBUnit, but I can't > visualize where it fits into picture. Are DBUnit tests something separate, > written in java, or do they somehow tie into my CFUnit/CFCUnit tests? Can > you give me a high-level description of how it hooks into the process? > > Janet -- disclaimer -- I am not a DBUnit expert, and am only using a small portion of its features! -- end disclaimer -- With that said...I will give you an overview of how I am using DBUnit. Step 1: I start by seeding my database. Once that is done I use DBUnit to export a snapshot of the database. Step 2: Proceed to develop new features, bug fixes, etc. Step 3: When development is complete and prior to running my unit tests, I use DBUnit to reset the db back to a last known good state to remove any data that was inserted during development. Step 4: I run my unit tests that test functionality with limited / no data and let my unit tests populate the db. This allows for testing of how the system performs with and without expected data. Step 5: I run a cleanup script that includes a DBUnit reset. Step 6: goto step 2 and repeat. HTH, Rich Kroll ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290221 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Rollback db changes in CFCUnit/CFUnit tests
> Does anyone know of an article(s) explaining how to work rollbacks into > unit testing? I want to test a series of DAO's, but am not sure how to > incorporate this into my tests. > > Janet > You can incorporate a tool like DBUnit into your workflow (http://dbunit.sourceforge.net/). HTH, Rich Kroll ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290213 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Instantiating all objects within Application.cfm
> It seems to me, at least with my CFC's design, that there is no reading > of the data into the application memory space, thus no need to reinit > unless I change the CFC itself. This behavior is what I would expect > but having said that, is there a 'better', way? > You are correct. The design that he provided showed a method of caching the results in the CFC's internal memory and a way to refresh that data when changes were made. Rich ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289036 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Instantiating all objects within Application.cfm
Your inventory CFC does not contain any instance data, and thus would be a good candidate for placing in the application scope. To help you understand the difference, consider the following CFC: If this CFC was placed into the application scope, you would run into race conditions. This sequence could happen if this CFC was placed in a shared scope: User A calls setName("Rich"), User B calls setName("Vince"), User A calls getName() and is returned "Vince". Since your CFC does not contain any instance data, it can safely be placed in a shared scope. HTH, Rich ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289017 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: SMS portal
> Poking around in that page and the "Solutions" page, I'm not seeing > anything jumping out at me with regards to cost on this, as far as > per-message - does this thing just crank out SMS messages without a > per-message financial hit? Honestly, I don't work with the financial portions of this. I found pricing on the old simplewire site (http://www.simplewire.com/store/platform/) where they offered both per message pricing as well as dedicated pricing plans so I assume that OpenMarket manages pricing in a similar fashion. The beauty of working with an aggregator is that you don't have to worry about talking to each carrier directly; the aggregator manages getting your SMS onto the carrier's network (including 2-way, MMS, Premium SMS, etc). The problem is that they charge for this service. There are some resources out there for a DIY approach. One such approach is based on email. Most carriers have an email address tagged to each mobile number ([EMAIL PROTECTED] for example), and your application could simply only support carriers that you define and when a user inputs their phone number, they must specify their carrier. Then you simply email alerts to their mobile. HTH, Rich ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288751 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: SMS portal
> > SO YOUR THE ONE! That keeps spamming my phone! ;-) > > -- > Wil Genovese Shhh, I'm trying to keep it all on the "DL" ;) Rich ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288743 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: One more database question - sorry!
> So let's say that my form has 20 hobbies/interests. I would be creating > 20 entries in this middle table, correct? Is this going to create a > problem if I have hundreds of users? I would have one table "hobby": Hobby_id, hobby_desc, etc, etc. And another hobby_lookup: Hobby_id, profile_id This would allow each hobby to be attached to many profiles, and each profile to have many hobbies. This would also allow you to easily add new hobbies as they come up. Your lookup table could get very deep (number of rows), but as it is very narrow (in columns) the filesize should not be a problem. HTH, Rich ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288736 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: SMS portal
> We are working on a site that needs to send bulk SMS messages to cell > phones on all US carriers. > > Anyone know of a portal out there that I can hook into? A free service > would be preferred, obviously, but all recommendations are greatly > appreciated. :) > > -- > Cheers! > Michael David We are doing some heavy SMS work, and currently utilize Openmarket (formerly known as Simplewire), which is a SMS aggregator. We are using their JAVA SDK and are rather happy with the results. HTH, Rich ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288727 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Server hanging. Wierd problems. HELP!
> I have special powers... and I saw their blog about it ;) I E-mailed > them and asked what version of CF the problem had been encountered on > and never heard back. I have always been quite interested in knowing, > and wanted to test CF8 for the same problem. That explains a lot! > I never did find out what version of CF did this though Rich, so I was > hoping you could tell me. > > Thanks. > > ~Brad We experienced the problem on 7 & 7.0.2 Rich ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288686 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: what's the magic version combination: eclipse/cfeclipse/cfunit
> I installed eclipse 3.3, downloaded CFEclipse 1.3.1.5 and it works great. > I just had to tweak my shortcut target so eclipse used jre 1.5 (not 1.4.2) > > eclipse -vm C:\jre1.5.0_11\bin\javaw.exe > > Thanks again Rich Glad you got it working! Welcome to CFE, prepare to become an evangelist ;) Rich Kroll ~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288685 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: what's the magic version combination: eclipse/cfeclipse/cfunit
I am currently running eclipse 3.3 with CFE 1.3.1.5. I installed 3.3 and then used the internal update tools (help > software updates > find & install) to install CFE. I'm using the CFUnit view to run unit tests successfully. HTH, Rich Kroll ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288645 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Server hanging. Wierd problems. HELP!
> Rich, was WebApper by chance the consultant you used? > > ~Brad It was quite a long time, but I do believe it was. Was that just a good guess or do you have special powers? Rich ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288626 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Server hanging. Wierd problems. HELP!
If your server was performing well, and then suddenly began these seemingly random slowdowns I would look at recently deployed code. When we experienced these types of problems, we brought in a 3rd party consultancy to help diagnose the problem. Our problem turned out to be code that was recently deployed which contained a CFSWITCH statement inside of a loop that were evaluating as strings, which when under load caused threads to back up and eventually hang the server. A trick they showed us to diagnose these types of issues was to generate a few thread dumps and compare the results. A thread that was present across the dumps signaled a good place to investigate as a problem area. Here is a tech note on how to capture thread dumps from JRun: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_18250&sliceId=1 In the thread dump look for lines that begin with "jrpp-", these are the currently processing threads and they will contain the underlying java as well as the CF that were being executed at the time of the dump. HTH, Rich ~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288622 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Getting error message on one page only
> You will get a 'method cannot be found' if you are passing invalid > arguments too it, because CF searches for a method with matching > arguments. You could have 2 functions: > > New(int) > > And > > New(int, int) Do you mean one function with two arguments, one of which that is not required? You cannot overload methods in CF, and will encounter an error that you cannot define a method with the same name twice if you attempt it. Rich ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288479 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFQuery wrapper tag to help with poor connections to sql..
> I have an app that has to use a connection that sees a few seconds of > disconnectivity from its SQL server occasionaly. Dan, You can nest CFTRY's to accomplish this. Something like: SELECT user_id FROM users SELECT user_id FROM users HTH, Rich ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288303 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFCs - no need for mappings
>Do you create a COM mapping the same way as any other, i.e. in Coldfusion >administrator? We use hosting and never have access to these things. Sorry, I meant to create one mapping to the com folder, and package your other components under it. >We do also 'package' the components by creating subfolders withing our >components folder where neccessary. Is this what you mean? Exactly. ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287054 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CFCs - no need for mappings
Java style packaging can solves this. Simply map COM and then you can have component paths similar to: com.mysite.util.StringUtil com.mysite.commerce.CommerceUtil com.shared.util.StringUtil com.myOtherSite.commerce.SomeOtherComponent HTH, Rich ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287035 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Report Builder vs. JasperReports/iReport
Chris, Can you clarify what you need a little bit? I read what you are saying as you have an existing web application that you need to integrate reporting service but one of the requirements is that you need a visual report generation interface. Is that correct? If so, what is the existing web application running on? Rich Kroll ~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287002 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Unit Testing & Code Coverage
It looks as though I am going to have to develop a solution for our needs, but I will see if my company will allow me to release our efforts into the public domain. ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286685 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Unit Testing & Code Coverage
> What do you mean by code coverage? Per the wonders of wikipedia: "Code coverage is a measure used in software testing. It describes the degree to which the source code of a program has been tested." I have just joined a new team, and we have quite a bit of legacy code for older products and we are looking to track our progress of unit test implementation. I can "roll my own" code coverage tool to give generic "5% test coverage" type responses from the meta data of the CFCs, but with the (great!) unit testing surge in the CF community I was hoping there was a preexisting solution. I know that test coverage reports can be misleading as even with 100% coverage, the quality of the tests are (generally) a more important metric. That said, we are interested in analyzing the increase in unit tests in relation to developer productivity (ease of refactoring), regression bugs, etc. Rich Kroll ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286674 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Unit Testing & Code Coverage
Is anyone aware of a code coverage tool for CF unit tests? If not, how are the rest of you handling unit test coverage (if at all)? - Rich Kroll ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286637 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: delay sending email
I think when you say "before the event" that you are no longer talking about delaying the email, but scheduling WHEN the email should be sent. In that case you are looking at event scheduling and it could be something as simple as a scheduled task, or you could get rather complex by leveraging Quartz (a java scheduling engine). HTH, Rich Kroll -Original Message- From: Mik Muller [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 3:48 PM To: CF-Talk Subject: delay sending email Hey all, I've been wondering about delayed sending of email. What would the best way to, for example, not send an email at the moment an event is posted to a site, but, say, 12 hours before the event. How would YOU do it, using CF7 and IIS / SMTP. Thanks Mik Michael Muller Admin, MontagueMA.net Website work (413) 863-0030 cell (413) 320-5336 skype: michaelBmuller http://www.MontagueMA.net Eschew Obfuscation ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286630 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Anyone else seen this
We are running CF 7.0.2 on a Windows 2003 server and we are having issues with the mail spooler. When sending a large amount of mail the spooler will stop running and it throws this error. java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:102) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:959) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:197) at javax.mail.Service.connect(Service.java:233) at coldfusion.mail.MailSpooler.getConnection(MailSpooler.java:908) at coldfusion.mail.MailSpooler.deliver(MailSpooler.java:773) at coldfusion.mail.MailSpooler.sendMail(MailSpooler.java:704) at coldfusion.mail.MailSpooler.access$200(MailSpooler.java:66) at coldfusion.mail.MailSpooler$2.run(MailSpooler.java:1050) at java.lang.Thread.run(Thread.java:534) Now my first thought is that it is something with my JVM arguments, since we tweaked it to get better performance. But I am not seeing anything that would cause an out of memory error? Any suggestions/Comments would be greatly appreciated. -- Our JVM Args java.args=-server -DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS -Xms1024m -Xmx1024m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=512m -XX:PermSize=128m -XX:NewSize=64m -XX:+UseConcMarkSweepGC -XX:NewSize=64m -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=28999,suspend=n -Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/cfform/jars,D:\\CF_JARFiles,D:\\CFusionMX7\\cfx\\cfx_Excel2Query.jar,D:\\CFusionMX7\\cfx\\cfx_text2Query.jar ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284746 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Client Lock Issue
Anyone know why we would be getting this issue in CFMX7? Could not unlock the named lock 761328825CLIENTSCOPESERVICE because no lock is known by that name. ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268209 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Verity Issue
Hi dave the code is listed below. This is the only thing in the template. I have tried deleting and recreating the collection and I get the same error. http://cxdev2.trizetto.com"; extensions=".txt, .html, .doc, .xls, .pdf, .ppt" recurse="Yes"> > Rich, > > Can you post your CFINDEX code? Also, have you tried deleting and > re-creating yoru collections? > > Dave > > > Has anyone else seen this error when trying to index a collection. > We > > are on CFMX 7.0.2. > > > > General failure. (-2) The specific sequence of files included or > > processed is: > > \mx7verity.cfm, line: 5. > > > > The only thing on line 5 is the url path. > > > > I can't find any help on Adobe's site for this. > > > > Rich Sloan ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267331 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Verity Issue
Has anyone else seen this error when trying to index a collection. We are on CFMX 7.0.2. General failure. (-2) The specific sequence of files included or processed is: \mx7verity.cfm, line: 5. The only thing on line 5 is the url path. I can't find any help on Adobe's site for this. Rich Sloan ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267156 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Could not unlock the named lock
Was this HotFix ever released? We are having this same issue and are current with all updaters and hotfixes. > This hot fix will hopefully be available in the next 2 - 4 weeks. The > fix is being built for 7.02. Plans for a 7.01 hot fix are not clear > at this point. You can check the current hot fixes at http://www. > adobe.com/go/tn_17883 for this fix. > > Ken > > > Gentlemen, > > We are currently testing a hot fix for this issue. Feel free to > > contact me and I will make it available once testing is completed. > > > > [EMAIL PROTECTED] > > > > >This is a quite late reply, but as of today I can say I've seen > this > > > > >error message. > > > > > >I was about to ask and see if you figured it out, but I just > thought > > > > >of a very reasonable explanation, mine occurred for a few clients > at > > > > >around the same time that I changed my cfapplication name. I > believe > > > > >that coldfusion stores client variables with the appname prepended > to > > > > >them, so that would make it have that error the first time it tries > > > > > >to access them. > > > > > >Does that match up with your scenario at all? > > > > > >Kenton > > > > > > > > >On Oct 19, 2005, at 1:40 PM, Ryan Duckworth wrote: > > > >> ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266981 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Verity Hanging issue
Just so there is a record. I believe I solved this. At the end of both of my cfindex calls I did a cfdump of the records. Well, I removed this dump and everything worked. I also had our IS dept, turn off all Virus scanning of the CFusionMX7 directory. So it was one of those two things. ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264565 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Verity Hanging issue
I should clarify I run one at 4pm the docs and the custom db collection runs at 1am. They are seperate files ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264500 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfprocparam cfsqltype XML ?
If anyone runs into this same issue, here is what i found. XML datatype can not be used currently in an output param of a sproc. This is from the Using Advanced Data Types section of: http://msdn2.microsoft.com/en-US/library/ms378813.aspx Note the last paragraph. XML Data Type SQL Server 2005 provides an XML data type that lets you store XML documents and fragments in a SQL Server database. The XML data type is a built-in data type in SQL Server, and is in some ways similar to other built-in types, such as int and varchar. As with other built-in types, you can use the XML data type as a column type when you create a table; as a variable type, a parameter type, or a function-return type; or in Transact-SQL CAST and CONVERT functions. In the JDBC driver, the XML data type can be mapped as a string, byte array, stream, CLOB, or BLOB object. String is the default representation. The implementation of the XML data type in the JDBC driver provides the following: Supports access to the XML as a standard Java UTF-16 string for most common programming scenarios Supports input of UTF-8 and other 8-bit encoded XML Supports access to the XML as a byte array with a leading BOM when encoded in UTF-16 for interchange with other XML processors and disk files SQL Server requires a leading BOM for UTF-16-encoded XML. The application must provide this when XML parameter values are supplied as byte arrays. SQL Server always outputs XML values as UTF-16 strings with no BOM or embedded encoding declaration. When XML values are retrieved as byte[], BinaryStream or Blob, a UTF-16 BOM is pre-pended to the value. Note: The JDBC driver does not support reading stored procedure output parameters of the XML data type. However, it does support using the XML data type as input parameters. If you have to use the XML data type as an output parameter, you must first convert the XML data type to a VARCHAR or LONGVARCHAR in the stored procedure before it can be read. For more information about the XML data type, see "xml Data Type" in SQL Server Books Online. Rich ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241436 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
cfprocparam cfsqltype XML ?
I have a stored proc that is returning a sql 2005 xml datatype. The sql server docs say to use LONGVARCHAR as the data type but I am getting the same error whether I call the proc from a java class or a coldfusion page. Implicit conversion from data type xml to varchar is not allowed. Anyone else run into this yet? Rich ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241118 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: In totally over my head with OOP and extends (OT?)
I recently ran into a lot of the same head scratching that you are currently tackling. I'm going to preface this with the fact that I am relatively new to OO in CF as well and this is by no means gospel! I started by modeling the domain, that is creating the objects I could easily identify. In your case, I would begin by modeling a single user, then creating the more specific objects like worker and manager, then move on to creating a project and an assignment. After creating each of the specific objects that model "things" in my app, I then created DAO objects. Once you have all the pieces, it then becomes a job of how they fit together. In my case I created two objects to manage aggregate access and another to manage access to that specific object type; a gateway and a service object. The gateway is intended to process all aggregate information on each object, and the service object is used to interact with the individual object. Here is a possible object architecture (indented items are composited objects): project.cfc - Project Bean - ManagerArray (will store the manager object(s) of this project) projectDAO.cfc - Data access object for a project projectService.cfc - Manages access to the project data (an example method would be projectDAO.read(project) - projectDAO - project projectGateway - Manages aggregate access to projects user - Generic user object that contains: - projectArray userDAO - Data Access Object for users userService - generic user access service - user - userDAO userGateway - Manages aggregate access to users manager extends user - more specific manager object - WorkersArray managerDAO extends userDAO - data access object for managers managerService - manages access to manager object managerGateway - Manages aggregate access to managers worker extends user - assignmentArray workerDAO - worker DAO object workerService - manages access to worker object assignment - specific assignment object assignmentDAO - DAO object for assignments assignmentService - manages access to the assignment assignmentGateway - manages aggregate access to assignments With this method, once all objects are created and populated with data, you can access the data in flexible ways. You asked how you could get the following structure: Worker Project1 Assignment1a Assignment1b Project2 Assignment2a Assignment2b Considering the worker has an array of it's project stored internally you can loop over that array, and then use the assignment service to return the assignments for that specific project. Something like: #worker.getName()# project: #projects[i].getName()# assignments: #assignements.name# I hope this gives you some ideas that will help you move forward. If anyone else has any input on this type of an architecture, I'd be glad to hear about it! Rich Kroll Application Developer -Original Message- From: Joelle Tegwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 10:06 AM To: CF-Talk Subject: In totally over my head with OOP and extends (OT?) I'm a (soon to be) former ASP programmer with a little training in Java trying to do OOP as I learn CF and I've got a "how the heck does this work" question. I'm happy to go RTFM if I only knew the question I'm asking. So if there's some FM I should go read just point the way. :) And maybe it's just totally off topic and I should go to some other list with this question (or some kind soul will pity me and help me anyway). I'm learning CF with this little time tracking application. It's got Manager.cfc (extends User) and Worker.cfc (extends User). There are Projects, Managers administer Projects and Workers contribute Effort to meet a given (percent effort) Assignment. So the way I'm looking at this is that Managers have Projects, but so do Workers. But a WorkerProject (extends Project) has Assignments (which have Effort) and a ManagerProject (extends Project) has workers. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240096 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54