CF10 Server Issues
We have had a lot of issues with CF10 running on our server. We've gotten to the point that we've killed off our old VM Server and have replaced it with a new one. Everything was going okay but last night in the middle of the night the server crashed. My guess is that it has something to do with a nightly task but in reality I don't know that. I've got the error that caused it if anyone can point me in the right direction Sep 9, 2013 6:06:43 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [CfmServlet] in context with path [/] threw exception coldfusion.monitor.event.MonitoringServletFilter$StopThreadException: The request has been canceled by the administrator or by the server. at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:65) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Sep 10, 2013 3:22:19 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [CfmServlet] in context with path [/] threw exception [java.lang.InterruptedException] with root cause java.lang.InterruptedException at edu.emory.mathcs.backport.java.util.concurrent.Semaphore$FairSync.acquire(Semaphore.java:334) at edu.emory.mathcs.backport.java.util.concurrent.Semaphore.acquire(Semaphore.java:474) at coldfusion.CfmServlet.lock(CfmServlet.java:295) at coldfusion.CfmServlet.service(CfmServlet.java:218) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) ----- Patrick Kerley kerl...@yahoo.com --- ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356743 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.c
Re: Iphone app
I've written 4 apps for a non profit in a blend of jquery and jqmobile but mostly jquery with some crazy CSS and using PhoneGap. I was able to do all my development on my pc and then move over the .html files to the mac we use to encode things Then you build the Xcode Phone Gap app and throw in your stuff and your off. My program ended up mostly as JS code and one CFC that got hit to hand off the data. I'm trying to rewrite those apps in Flex to check it out but it has a much stepper learning curve if your Solid in the CF, JS, HTML world Your going to spend more time learning how to upload apps ----- Patrick Kerley kerl...@yahoo.com - From: "Al Musella, DPM" To: cf-talk Sent: Wednesday, June 29, 2011 10:47 AM Subject: Iphone app Hi I need to write either an app for the iphone or at least a website that looks like a app.. I have been looking around for toolkits and there are an overwhelming number of choices that I don't know where to start. I need: 1. easy coldfusion integration (so based on html not coco) 2. Preferably usable on a pc.. I have access to a mac but not easily. I can use it to compile and upload the end result if needed. 3. easy:) 4. Cheap or free. (It is for a nonprofit) I have been playing around with jquery mobile. I love jquery but the jquery mobile docs suck.. Any ideas? Al ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345893 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Regular Expression Help
Thanks that did it. I hate regular expressions (or maybe am in awe of their power) but you're my new best friend. - Patrick Kerley kerl...@yahoo.com - From: Peter Boughton To: cf-talk Sent: Tuesday, June 14, 2011 12:16 PM Subject: Re: Regular Expression Help Give this a go: ).)+(?)' , '$0}~' ) /> It uses the java replaceAll regex function so that it can do the negative lookbehind to ensure existing correct items are not changed, meaning it can be run multiple times. Accepts any character (except newline) until it finds a closing A tag. If newlines are required, that's just a one character change: '~\{(?s:(?!).)+(?)' (Which adds the 's' flag into what was a non-capturing group, meaning '.' also matches newlines.) If there's the possibly of a '~{' appearing outside this context, it may need extra limits applied to work correctly. Assuming there should not be any tags inside the ~{...}~ part, I would change the '.' for a '[^<>]' which makes it a bit 'safer': '~\{(?:(?!)[^<>])+(?)' ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345293 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFPDF Performance Issues
Its still a problem in CF9. We deal with it all the time and it appears to be somewhat random. Other Images will be fine and won't slow things down. Currently I just operate an image repository in a "Safe" place and access them and it works. Pat ----- Patrick Kerley kerl...@yahoo.com - From: Edward Chanter To: cf-talk Sent: Tuesday, June 14, 2011 11:27 AM Subject: RE: CFPDF Performance Issues Using an IP won't work because the IP resolves to multiple virtual hosts :) Yeah I agree it is bizarre. Then again I'm still on CF8 so maybe this has been solved in CF9 > -Original Message- > From: Brook Davies [mailto:cft...@logiforms.com] > Sent: 14 June 2011 16:11 > To: cf-talk > Subject: RE: CFPDF Performance Issues > > > That's bizarre. What happens if you use an IP address instead of a domain? > Is this a bug? > > Brook > > -Original Message- > From: Edward Chanter [mailto:firew...@cc.uk.com] > Sent: June-14-11 7:45 AM > To: cf-talk > Subject: RE: CFPDF Performance Issues > > > I tried a very simple test of using replace() to edit the URL of the images > to our dev box so the image come from a different domain. The loading time > of one 4 page PDF went from 2+ minutes to about 6 seconds so it seems like > this is the problem. I don't understand why it's just started happening; > this code has been live for over a year without anyone complaining. > Regardless, I think I have a fix for it so thanks to everyone for the > assistance :) > > > -Original Message- > > From: Mike Chabot [mailto:mcha...@gmail.com] > > Sent: 14 June 2011 15:19 > > To: cf-talk > > Subject: Re: CFPDF Performance Issues > > > > > > Image handling is the most likely cause of the slowness. The first > > test I > would > > do is to temporarily take out every image, or knock out all HTML tags > > if > you > > are pulling content from CFHTTP, to see how many seconds those tags > > contribute to the creation time. > > > > -Mike Chabot > > > > > > > ~~ > ~~~| > Order the Adobe Coldfusion Anthology now! > http://www.amazon.com/Adobe-Coldfusion- > Anthology/dp/1430272155/?tag=houseoffusion > Archive: http://www.houseoffusion.com/groups/cf- > talk/message.cfm/messageid:345262 > Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm > Unsubscribe: http://www.houseoffusion.com/groups/cf- > talk/unsubscribe.cfm ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345289 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Regular Expression Help
I have a regular expression issue. I have information that says: ~{Test Information That in a series of processing should look like ~{Test Information}~ Any idea in a rereplace how I can replace anything that is ~{* with ~{*}~ Thanks Pat - Patrick Kerley kerl...@yahoo.com ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345259 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFPDF Performance Issues
We've seen that when we have CFPDF's with Images that as ridiculous as this sounds sometimes we need to move the images to different domains (multi domain system on same CF server) or sometimes just different folders. Comment out images (if you have any) and see if that speeds it up? ----- Patrick Kerley kerl...@yahoo.com - From: Edward Chanter To: cf-talk Sent: Tuesday, June 14, 2011 4:48 AM Subject: CFPDF Performance Issues I'm having a bit of a weird issue with the creation of PDFs. The issue is quite simple, we have two servers and one is generating PDFs much faster than the other. The weird thing is that the server which is slow is our 64bit production server running CF 8.0.1 Enterprise and the faster server is the old 32bit CF 8.0.1 standard box. One would logically expect the big fast production server to process the PDF much faster. I'm using the exact same CFML page to generate the PDF including the same data, images, etc. The problem I'm having is trying to get to the bottom of what is causing the difference in speed. To that end does anyone know what might cause the CFPDF service to take a long time to create the PDF? I'm seeing nothing in my logs and the performance monitor only tells me that the page is slow. Any ideas are most welcome because this one has me completely stumped. :) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345254 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: (ot) Find and Replace Help
The source file has errors. I'm trying to work through them. - Patrick Kerley kerl...@yahoo.com - From: Robert Harrison To: cf-talk Sent: Tue, February 8, 2011 4:16:18 PM Subject: RE: (ot) Find and Replace Help the dog is > than the cat This is definitely NOT a valid XML file if you are working with this. Where is this coming from. If it's an XML file the problem is that the source XML file has errors. Robert B. Harrison Director of Interactive Services Austin & Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be &. Plug in to our blog: A&W Unplugged http://www.austin-williams.com/unplugged ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342006 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
(ot) Find and Replace Help
I'm trying to parse XML and I've hit a problem where inbetween my XML of There is occasionally some math values or thing like the dog is > than the cat I've got 3500 of these documents to run through an insert into a DB. Does anyone know how or in what program I could issue a Find and Replace Between the for any instances of >< and replace them with the proper & code. Thanks Pat - Patrick Kerley kerl...@yahoo.com -- ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341998 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF virtual directory
You would have to setup another "virtual directory" pointing to that one with a new name...or you can give it different names like documents2 or something. ----- Patrick Kerley kerl...@yahoo.com - From: Greg Morphis To: cf-talk Sent: Sat, December 18, 2010 5:34:24 PM Subject: CF virtual directory If you have a virtual directory set up for /documents that points to D:\documents\ and a actual folder named "documents" in your webroot: D:\Inetpub\wwwroot\documents\. How would you access the folder documents in the webroot.. http://www.myurl.com/documents takes you to the virtual directory. I didn't set this up, I'm helping with a current website that is configured like this. Thanks ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340130 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
cfpresentation save slide notes to PowerPoint.
In CF9 I want to save a presentation to PPT but I would like to retain the notes so the person who downloads it can see them in PowerPoint. Any suggestions. This code doesn't save the slide notes. Slide #i# Summary Projected Sales Challenges Ahead Long Term Goals ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338295 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm