Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
> If you have removed apache you should not see this error message > > *An error occurred when performing a file operation exists on file > /serverpdfs/130kPDFs/137485.pdf. > The cause of this exception was: org.apache.commons.vfs.FileSystemException: > Could not determine the type of file " > http://www.mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf";.. * Actually, no. Apache Commons VFS is included in CF 9.x. It has nothing to do with Apache HTTPD. It's a Java library, and CF uses it to talk to ... filesystems (big surprise there, I guess!) Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| 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:350949 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
If you have removed apache you should not see this error message *An error occurred when performing a file operation exists on file /serverpdfs/130kPDFs/137485.pdf. The cause of this exception was: org.apache.commons.vfs.FileSystemException: Could not determine the type of file " http://www.mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf";.. * Which means you must now be getting a different error now. I would be looking at the mime types and see if they are all correctly set up. Normally when one sees the message can't determine file type is a mime issue. But it also might be something to do with PHP, the exception that is being thrown is to do with the VFS or Virtual File System so if you say you removed Apache then I am betting that PHP is screwed up. But as you said you tried with cfcontent I am guessing it might be a mime issue or even a permission issue. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Wed, May 2, 2012 at 4:08 AM, Curt Carpenter wrote: > > Hi - > > I have an application that has been working fine for over a year and now > anything that references Virtual Directories no longer functions. Here are > the details: > > Coldfusion is running on Windows Server 2003 Enterprise. > Using IIS6 for the web server on the same box. > I have several virtual directories setup that reference files on another > server on the same network. > > What I did to break things... I installed Apache (the latest release) > along with PHP - but I set Apache up to listen on a different port (8080). > Suddently any part of my code that tries to reference a file that is found > through a virtual directory generates the following error: > > An error occurred when performing a file operation exists on file > /serverpdfs/130kPDFs/137485.pdf. > The cause of this exception was: > org.apache.commons.vfs.FileSystemException: Could not determine the type of > file "http://www.mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf";.. > > Here's the actual code that generated that error: > > http://www.mybp-graphics.com/serverpdfs/130kPDFs\137485.pdf";> > > > then within a table... > >Yes File > >No file > > > The "serverpdfs" is the virtual directory inside the website " > mybp-graphics.com". If I look in IIS the directory is there, I can see > all the files in it - it seems to be working fine. > > I first experienced the problem when we tried to open a PDF for viewing by > using - the same type error occurs. > > What is especially suspicious is that the exception was was > "org.apache.commons.cfs.FileSystemException" - This error still persists > even though I have done the following: > > 1. Completely de-installed Apache and hid the PHP directory. > 2. Re-installed ColdFusion from scratch. > > Any direction would be greatly appreciated - this error is affecting > multiple modules of a website that is used constantly by both our customers > and our internal employees. > > Thanks > > Curt > > ~| 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:350948 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone see anything wrong with this code?
The other thing to Rick, is if you are able to duplicate it on your development server, you might want to look into line debugging to help narrow it down. I swear by the line debugger to find hard to find problems like this. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Wed, May 2, 2012 at 6:36 AM, Rick Faircloth wrote: > > Thanks for the info, Andrew! > > > ~| 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:350947 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
If the error says can't determine type then perhaps Apache is missing that setting telling it how to handle pdf's? On May 1, 2012 11:08 AM, "Curt Carpenter" wrote: > > Hi - > > I have an application that has been working fine for over a year and now > anything that references Virtual Directories no longer functions. Here are > the details: > > Coldfusion is running on Windows Server 2003 Enterprise. > Using IIS6 for the web server on the same box. > I have several virtual directories setup that reference files on another > server on the same network. > > What I did to break things... I installed Apache (the latest release) > along with PHP - but I set Apache up to listen on a different port (8080). > Suddently any part of my code that tries to reference a file that is found > through a virtual directory generates the following error: > > An error occurred when performing a file operation exists on file > /serverpdfs/130kPDFs/137485.pdf. > The cause of this exception was: > org.apache.commons.vfs.FileSystemException: Could not determine the type of > file "http://www.mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf";.. > > Here's the actual code that generated that error: > > http://www.mybp-graphics.com/serverpdfs/130kPDFs\137485.pdf";> > > > then within a table... > >Yes File > >No file > > > The "serverpdfs" is the virtual directory inside the website " > mybp-graphics.com". If I look in IIS the directory is there, I can see > all the files in it - it seems to be working fine. > > I first experienced the problem when we tried to open a PDF for viewing by > using - the same type error occurs. > > What is especially suspicious is that the exception was was > "org.apache.commons.cfs.FileSystemException" - This error still persists > even though I have done the following: > > 1. Completely de-installed Apache and hid the PHP directory. > 2. Re-installed ColdFusion from scratch. > > Any direction would be greatly appreciated - this error is affecting > multiple modules of a website that is used constantly by both our customers > and our internal employees. > > Thanks > > Curt > > ~| 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:350946 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
also check that the user CF is running under still has access to the network paths. check the coldfusion service and see what user it runs as. now login as as that user and make sure he can access the network paths you point to in the vdirs. Russ ~| 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:350945 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
> Thanks for your thoughts. I am pretty sure that the IIS virtual directories > must be the problem. I can go into IIS and browse > to the virtual directories and see all of the files in them but IIS does not > seem to want to serve them up. I can access the > other server directly by setting the file name through the other server name > and everything works fine. Do you have multiple virtual servers on the same machine? If so, maybe traffic is going to the wrong one. > Any thoughts would be greatly appreciated. I am afraid my next option is > going to be to re-install the server from a backup > from last week. The data is on another drive so I won't lose anything except > a lot of down time and hours spent doing it. I doubt you'll have to do that - IIS problems are usually pretty easy to fix. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| 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:350944 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
Whoops. That was supposed to be directed to Curt, not Dave. My bad. -Carl > Dave, > > Have you checked the permissions on the folder the Virtual Directory > points to? Is directory security in IIS on the Virtual Directory set > to "Enable anonymous access" with an account that has Windows > permissions on that remote folder, or does each user that connects to > your site use NT permissions that grant them access to that remote > folder? > > -Carl > > > Dave, > > > > Thanks for your thoughts. I am pretty sure that the IIS virtual > > directories must be the problem. I can go into IIS and browse to the > > > virtual directories and see all of the files in them but IIS does > not > > seem to want to serve them up. I can access the other server > directly > > by setting the file name through the other server name and > everything > > works fine. > > > > & > > "kPDFs\" & "#URL.fn#" & ".pdf"> > > > > The problem with changing everything over to this method is that on > > > some pages I also use the tag to directly embed the PDF in > the > > page so it shows along with some other text and form buttons, etc. > > When I use the tag with the file name built using a direct > > reference to the server it does not display. > > > > Any thoughts would be greatly appreciated. I am afraid my next > option > > is going to be to re-install the server from a backup from last week. > > > The data is on another drive so I won't lose anything except a lot > of > > down time and hours spent doing it. > > > > Thanks > > > > Curt > > ~| 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:350943 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
Dave, Have you checked the permissions on the folder the Virtual Directory points to? Is directory security in IIS on the Virtual Directory set to "Enable anonymous access" with an account that has Windows permissions on that remote folder, or does each user that connects to your site use NT permissions that grant them access to that remote folder? -Carl > Dave, > > Thanks for your thoughts. I am pretty sure that the IIS virtual > directories must be the problem. I can go into IIS and browse to the > virtual directories and see all of the files in them but IIS does not > seem to want to serve them up. I can access the other server directly > by setting the file name through the other server name and everything > works fine. > > "kPDFs\" & "#URL.fn#" & ".pdf"> > > The problem with changing everything over to this method is that on > some pages I also use the tag to directly embed the PDF in the > page so it shows along with some other text and form buttons, etc. > When I use the tag with the file name built using a direct > reference to the server it does not display. > > Any thoughts would be greatly appreciated. I am afraid my next option > is going to be to re-install the server from a backup from last week. > The data is on another drive so I won't lose anything except a lot of > down time and hours spent doing it. > > Thanks > > Curt > ~| 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:350942 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
Dave, Thanks for your thoughts. I am pretty sure that the IIS virtual directories must be the problem. I can go into IIS and browse to the virtual directories and see all of the files in them but IIS does not seem to want to serve them up. I can access the other server directly by setting the file name through the other server name and everything works fine. The problem with changing everything over to this method is that on some pages I also use the tag to directly embed the PDF in the page so it shows along with some other text and form buttons, etc. When I use the tag with the file name built using a direct reference to the server it does not display. Any thoughts would be greatly appreciated. I am afraid my next option is going to be to re-install the server from a backup from last week. The data is on another drive so I won't lose anything except a lot of down time and hours spent doing it. Thanks Curt > > I have an application that has been working fine for over a year and > now anything that references Virtual Directories > > no longer functions. Here are the details: > > > > Coldfusion is running on Windows Server 2003 Enterprise. > > Using IIS6 for the web server on the same box. > > I have several virtual directories setup that reference files on > another server on the same network. > > > > What I did to break things... I installed Apache (the latest > release) along with PHP - but I set Apache up to listen on a > > different port (8080). Suddently any part of my code that tries to > reference a file that is found through a virtual directory > > generates the following error: > > > > An error occurred when performing a file operation exists on file > /serverpdfs/130kPDFs/137485.pdf. > > The cause of this exception was: org.apache.commons.vfs. > FileSystemException: Could not determine the type of file "http://www. > mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf".. > > > > Here's the actual code that generated that error: > > > > http://www.mybp-graphics. > com/serverpdfs/130kPDFs\137485.pdf"> > > > > then within a table... > > > > Yes File > > > > No file > > > > > > The "serverpdfs" is the virtual directory inside the website > "mybp-graphics.com". If I look in IIS the directory is there, I can > > see all the files in it - it seems to be working fine. > > Have you verified that the URL in question still works? Have you > tried > fetching that URL using a browser on the same machine as the web > server? > > > What is especially suspicious is that the exception was was "org. > apache.commons.cfs.FileSystemException" - This > > error still persists even though I have done the following: > > > > 1. Completely de-installed Apache and hid the PHP directory. > > 2. Re-installed ColdFusion from scratch. > > Well, if there's a problem with name resolution or IIS virtual > directories on the machine in question, those changes won't make a > difference. > > As for the "suspicious" exception - there's nothing suspicious about > it at all. CF includes quite a bit of code from Apache Java projects. > That has nothing to do with the Apache web server except that it's > also managed by the nonprofit Apache foundation. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > http://training.figleaf.com/ > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on > GSA Schedule, and provides the highest caliber vendor-authorized > instruction at our training centers, onl ~| 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:350941 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Anyone see anything wrong with this code?
I think I understand what you're saying, Brian. I understand the index value, but I'm using a loopCounter (a bad choice of variable name, since it's not an actual count of loops) to be able to add a number to a photo filename that will make it distinct from another photo with the same name. (At least for the ones uploaded...come to think of it, I need to make the photo name distinct from all photos in the "user-images" directory, not just when compared to other photos being uploaded for a specific property. I'll need to look into that. Anyway, the loopCounter variable isn't actually serving the function of appending a numeric value equal to the number of loops through the code. Am I understanding you correctly? Rick -Original Message- From: Brian Thornton [mailto:br...@cfdeveloper.com] Sent: Tuesday, May 01, 2012 3:17 PM To: cf-talk Subject: Re: Anyone see anything wrong with this code? Correct. There is a x of how many exist. On Tue, May 1, 2012 at 2:23 PM, Rick Faircloth wrote: > > Do you mean that I should use the "imageNumber" index variable > in place of the loopCounter variable? > > > -Original Message- > From: Brian Thornton [mailto:br...@cfdeveloper.com] > Sent: Tuesday, May 01, 2012 2:07 PM > To: cf-talk > Subject: Re: Anyone see anything wrong with this code? > > > You are refrencing as 1 and need to refrence as the index. > > On Tue, May 1, 2012 at 1:48 PM, Rick Faircloth > wrote: >> >> Looks like a good solution for getting some error clues >> back from AJAX calls. I'll have to work on translating >> this into jQuery. Usually, I can find some CF error code >> in the iFrame used to process the file uploads, but nothing >> is appearing there, or in the JSON reply. >> >> Thanks for the tip! >> >> Rick >> >> -Original Message- >> From: Claude Schnéegans >> [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans > =?ISO-8859-1?Q?ue.com=3E?=] >> Sent: Tuesday, May 01, 2012 1:13 PM >> To: cf-talk >> Subject: Re: Anyone see anything wrong with this code? >> >> >> »>>I can't give any clues on error messages, because this >> is part of a cfc on the back end of an ajax call. >> No errors show up in firebug or elsewhere. >> >> This is a problem with Ajax calls. >> If the template called by Ajax throws an error, the text returned by the > CF >> server is not compatible with Ajax and it causes an Ajax error. This error >> will not help, what one is intersted in is the error in the CF error. >> >> I've developped my own Ajax call function, and in case of error, it will >> open a new window with the whole text returned in it. Generally, it is the >> error generated by CF. >> This one is for POST method, but I have the equivalent for GET: >> If there is anything wrong, the function calls displayError to displat the >> text actually received. >> >> function ajaxPOST (url, sendText) >> { >> var XMLHttp = null; >> if (window.XMLHttpRequest)XMLHttp = new XMLHttpRequest(); >> // code for MSIE >> else if (window.ActiveXObject)XMLHttp = new >> ActiveXObject("Microsoft.XMLHttp"); >> if(XMLHttp) >> { >> XMLHttp.open("POST", url, false); >> XMLHttp.setRequestHeader("Content-Type", >> "application/x-www-form-urlencoded; charset=iso-8859-1"); >> XMLHttp.send(sendText); >> if (XMLHttp.status == 200)return XMLHttp.responseText; >> displayError("" + XMLHttp.statusText + "" + >> XMLHttp.responseText) >> return null; >> } >> else return null; >> } >> function displayError(text) >> { >> var errorWin = open >> ("","Error","scrollbars=yes,resizable,width=900,height=600"); >> errorWin.document.open(); >> errorWin.document.write(text); >> errorWin.document.close(); >> errorWin.focus() >> } >> >> >> >> >> > > > > ~| 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:350940 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
> I have an application that has been working fine for over a year and now > anything that references Virtual Directories > no longer functions. Here are the details: > > Coldfusion is running on Windows Server 2003 Enterprise. > Using IIS6 for the web server on the same box. > I have several virtual directories setup that reference files on another > server on the same network. > > What I did to break things... I installed Apache (the latest release) along > with PHP - but I set Apache up to listen on a > different port (8080). Suddently any part of my code that tries to reference > a file that is found through a virtual directory > generates the following error: > > An error occurred when performing a file operation exists on file > /serverpdfs/130kPDFs/137485.pdf. > The cause of this exception was: org.apache.commons.vfs.FileSystemException: > Could not determine the type of file > "http://www.mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf";.. > > Here's the actual code that generated that error: > > "http://www.mybp-graphics.com/serverpdfs/130kPDFs\137485.pdf";> > > then within a table... > > Yes File > > No file > > > The "serverpdfs" is the virtual directory inside the website > "mybp-graphics.com". If I look in IIS the directory is there, I can > see all the files in it - it seems to be working fine. Have you verified that the URL in question still works? Have you tried fetching that URL using a browser on the same machine as the web server? > What is especially suspicious is that the exception was was > "org.apache.commons.cfs.FileSystemException" - This > error still persists even though I have done the following: > > 1. Completely de-installed Apache and hid the PHP directory. > 2. Re-installed ColdFusion from scratch. Well, if there's a problem with name resolution or IIS virtual directories on the machine in question, those changes won't make a difference. As for the "suspicious" exception - there's nothing suspicious about it at all. CF includes quite a bit of code from Apache Java projects. That has nothing to do with the Apache web server except that it's also managed by the nonprofit Apache foundation. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, onl ~| 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:350939 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Anyone see anything wrong with this code?
True, true... :o) -Original Message- From: Claude Schnéegans [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans >I'll have to work on translating this into jQuery. ... or simply use my function it as is. It has been working fine for years, long before jQuery was on the market. ~| 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:350938 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Anyone see anything wrong with this code?
Thanks for the info, Andrew! -Original Message- From: Andrew Scott [mailto:andr...@andyscott.id.au] Sent: Tuesday, May 01, 2012 3:42 PM To: cf-talk Subject: Re: Anyone see anything wrong with this code? Rick if there is an error being thrown then the log files are important here. An other thing to note is that it might pay to look at something like this. http://www.andyscott.id.au/2011/8/27/ColdFusion-and-Remote-Calls-and-notifyi ng-the-caller-of-the-problem This is how I handle all Ajax calls, so that the client can then decide on what to do if it succeeds or fails. So in the case of a failure you could then display a human readable error or notification that could be reported to you, but the biggest part of this entire equation will be error logging using the or even emails for sending important information if need be. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Wed, May 2, 2012 at 3:48 AM, Rick Faircloth wrote: > > Looks like a good solution for getting some error clues > back from AJAX calls. I'll have to work on translating > this into jQuery. Usually, I can find some CF error code > in the iFrame used to process the file uploads, but nothing > is appearing there, or in the JSON reply. > > Thanks for the tip! > > Rick > > -Original Message- > From: Claude Schnéegans > [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans =?ISO-8859-1?Q?ue.com=3E?=] > Sent: Tuesday, May 01, 2012 1:13 PM > To: cf-talk > Subject: Re: Anyone see anything wrong with this code? > > > »>>I can't give any clues on error messages, because this > is part of a cfc on the back end of an ajax call. > No errors show up in firebug or elsewhere. > > This is a problem with Ajax calls. > If the template called by Ajax throws an error, the text returned by the CF > server is not compatible with Ajax and it causes an Ajax error. This error > will not help, what one is intersted in is the error in the CF error. > > I've developped my own Ajax call function, and in case of error, it will > open a new window with the whole text returned in it. Generally, it is the > error generated by CF. > This one is for POST method, but I have the equivalent for GET: > If there is anything wrong, the function calls displayError to displat the > text actually received. > > function ajaxPOST (url, sendText) > { > var XMLHttp = null; > if (window.XMLHttpRequest)XMLHttp = new XMLHttpRequest(); > // code for MSIE > else if (window.ActiveXObject)XMLHttp = new > ActiveXObject("Microsoft.XMLHttp"); > if(XMLHttp) > { > XMLHttp.open("POST", url, false); > XMLHttp.setRequestHeader("Content-Type", > "application/x-www-form-urlencoded; charset=iso-8859-1"); > XMLHttp.send(sendText); > if (XMLHttp.status == 200)return XMLHttp.responseText; > displayError("" + XMLHttp.statusText + "" + > XMLHttp.responseText) > return null; > } > else return null; > } > function displayError(text) > { > var errorWin = open > ("","Error","scrollbars=yes,resizable,width=900,height=600"); > errorWin.document.open(); > errorWin.document.write(text); > errorWin.document.close(); > errorWin.focus() > } > > > > > ~| 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:350937 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
I have had Apave and IIs and CF all running together without issue,so can;t think of any other cause. If you have removed both CF and apache then that only leaves IIS itself as the cause. So you next step would be to remove and reinstall that. You can backup the IIS metabase so that you do not lose all your sites and then restore the metabase after you reinstall IIS, this is a lot easier with IIS7. On Tue, May 1, 2012 at 8:41 PM, Curt Carpenter wrote: > > Russ, > > I didn't make any other config changes like that - other than to Apache - > but I've since completely removed Apache from the system. > > Thanks > > Curt > > > > >did you make any other changes in order to get Apache and IIS working > >together ? > >e.g. > >httpcfg set iplisten -i XXX.XX.XXX.X > > > >I can't imagine why that would cause vDir issues, but worth undoing if you > >did it just to be sure. > > > > > > > >> > > ~| 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:350936 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone see anything wrong with this code?
>>I'll have to work on translating this into jQuery. ... or simply use my function it as is. It has been working fine for years, long before jQuery was on the market. ~| 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:350935 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone see anything wrong with this code?
Rick if there is an error being thrown then the log files are important here. An other thing to note is that it might pay to look at something like this. http://www.andyscott.id.au/2011/8/27/ColdFusion-and-Remote-Calls-and-notifying-the-caller-of-the-problem This is how I handle all Ajax calls, so that the client can then decide on what to do if it succeeds or fails. So in the case of a failure you could then display a human readable error or notification that could be reported to you, but the biggest part of this entire equation will be error logging using the or even emails for sending important information if need be. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Wed, May 2, 2012 at 3:48 AM, Rick Faircloth wrote: > > Looks like a good solution for getting some error clues > back from AJAX calls. I'll have to work on translating > this into jQuery. Usually, I can find some CF error code > in the iFrame used to process the file uploads, but nothing > is appearing there, or in the JSON reply. > > Thanks for the tip! > > Rick > > -Original Message- > From: Claude Schnéegans > [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans =?ISO-8859-1?Q?ue.com=3E?=] > Sent: Tuesday, May 01, 2012 1:13 PM > To: cf-talk > Subject: Re: Anyone see anything wrong with this code? > > > »>>I can't give any clues on error messages, because this > is part of a cfc on the back end of an ajax call. > No errors show up in firebug or elsewhere. > > This is a problem with Ajax calls. > If the template called by Ajax throws an error, the text returned by the CF > server is not compatible with Ajax and it causes an Ajax error. This error > will not help, what one is intersted in is the error in the CF error. > > I've developped my own Ajax call function, and in case of error, it will > open a new window with the whole text returned in it. Generally, it is the > error generated by CF. > This one is for POST method, but I have the equivalent for GET: > If there is anything wrong, the function calls displayError to displat the > text actually received. > > function ajaxPOST (url, sendText) > { > var XMLHttp = null; > if (window.XMLHttpRequest)XMLHttp = new XMLHttpRequest(); > // code for MSIE > else if (window.ActiveXObject)XMLHttp = new > ActiveXObject("Microsoft.XMLHttp"); > if(XMLHttp) > { > XMLHttp.open("POST", url, false); > XMLHttp.setRequestHeader("Content-Type", > "application/x-www-form-urlencoded; charset=iso-8859-1"); > XMLHttp.send(sendText); > if (XMLHttp.status == 200)return XMLHttp.responseText; > displayError("" + XMLHttp.statusText + "" + > XMLHttp.responseText) > return null; > } > else return null; > } > function displayError(text) > { > var errorWin = open > ("","Error","scrollbars=yes,resizable,width=900,height=600"); > errorWin.document.open(); > errorWin.document.write(text); > errorWin.document.close(); > errorWin.focus() > } > > > > > ~| 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:350934 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
Russ, I didn't make any other config changes like that - other than to Apache - but I've since completely removed Apache from the system. Thanks Curt >did you make any other changes in order to get Apache and IIS working >together ? >e.g. >httpcfg set iplisten -i XXX.XX.XXX.X > >I can't imagine why that would cause vDir issues, but worth undoing if you >did it just to be sure. > > > >> ~| 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:350933 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone see anything wrong with this code?
Correct. There is a x of how many exist. On Tue, May 1, 2012 at 2:23 PM, Rick Faircloth wrote: > > Do you mean that I should use the "imageNumber" index variable > in place of the loopCounter variable? > > > -Original Message- > From: Brian Thornton [mailto:br...@cfdeveloper.com] > Sent: Tuesday, May 01, 2012 2:07 PM > To: cf-talk > Subject: Re: Anyone see anything wrong with this code? > > > You are refrencing as 1 and need to refrence as the index. > > On Tue, May 1, 2012 at 1:48 PM, Rick Faircloth > wrote: >> >> Looks like a good solution for getting some error clues >> back from AJAX calls. I'll have to work on translating >> this into jQuery. Usually, I can find some CF error code >> in the iFrame used to process the file uploads, but nothing >> is appearing there, or in the JSON reply. >> >> Thanks for the tip! >> >> Rick >> >> -Original Message- >> From: Claude Schnéegans >> [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans > =?ISO-8859-1?Q?ue.com=3E?=] >> Sent: Tuesday, May 01, 2012 1:13 PM >> To: cf-talk >> Subject: Re: Anyone see anything wrong with this code? >> >> >> »>>I can't give any clues on error messages, because this >> is part of a cfc on the back end of an ajax call. >> No errors show up in firebug or elsewhere. >> >> This is a problem with Ajax calls. >> If the template called by Ajax throws an error, the text returned by the > CF >> server is not compatible with Ajax and it causes an Ajax error. This error >> will not help, what one is intersted in is the error in the CF error. >> >> I've developped my own Ajax call function, and in case of error, it will >> open a new window with the whole text returned in it. Generally, it is the >> error generated by CF. >> This one is for POST method, but I have the equivalent for GET: >> If there is anything wrong, the function calls displayError to displat the >> text actually received. >> >> function ajaxPOST (url, sendText) >> { >> var XMLHttp = null; >> if (window.XMLHttpRequest)XMLHttp = new XMLHttpRequest(); >> // code for MSIE >> else if (window.ActiveXObject)XMLHttp = new >> ActiveXObject("Microsoft.XMLHttp"); >> if(XMLHttp) >> { >> XMLHttp.open("POST", url, false); >> XMLHttp.setRequestHeader("Content-Type", >> "application/x-www-form-urlencoded; charset=iso-8859-1"); >> XMLHttp.send(sendText); >> if (XMLHttp.status == 200)return XMLHttp.responseText; >> displayError("" + XMLHttp.statusText + "" + >> XMLHttp.responseText) >> return null; >> } >> else return null; >> } >> function displayError(text) >> { >> var errorWin = open >> ("","Error","scrollbars=yes,resizable,width=900,height=600"); >> errorWin.document.open(); >> errorWin.document.write(text); >> errorWin.document.close(); >> errorWin.focus() >> } >> >> >> >> >> > > > > ~| 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:350932 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF9 no longer recognizes virtual directories on IIS after install of Apache
did you make any other changes in order to get Apache and IIS working together ? e.g. httpcfg set iplisten -i XXX.XX.XXX.X I can't imagine why that would cause vDir issues, but worth undoing if you did it just to be sure. On Tue, May 1, 2012 at 7:08 PM, Curt Carpenter wrote: > > Hi - > > I have an application that has been working fine for over a year and now > anything that references Virtual Directories no longer functions. Here are > the details: > > Coldfusion is running on Windows Server 2003 Enterprise. > Using IIS6 for the web server on the same box. > I have several virtual directories setup that reference files on another > server on the same network. > > What I did to break things... I installed Apache (the latest release) > along with PHP - but I set Apache up to listen on a different port (8080). > Suddently any part of my code that tries to reference a file that is found > through a virtual directory generates the following error: > > An error occurred when performing a file operation exists on file > /serverpdfs/130kPDFs/137485.pdf. > The cause of this exception was: > org.apache.commons.vfs.FileSystemException: Could not determine the type of > file "http://www.mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf";.. > > Here's the actual code that generated that error: > > http://www.mybp-graphics.com/serverpdfs/130kPDFs\137485.pdf";> > > > then within a table... > >Yes File > >No file > > > The "serverpdfs" is the virtual directory inside the website " > mybp-graphics.com". If I look in IIS the directory is there, I can see > all the files in it - it seems to be working fine. > > I first experienced the problem when we tried to open a PDF for viewing by > using - the same type error occurs. > > What is especially suspicious is that the exception was was > "org.apache.commons.cfs.FileSystemException" - This error still persists > even though I have done the following: > > 1. Completely de-installed Apache and hid the PHP directory. > 2. Re-installed ColdFusion from scratch. > > Any direction would be greatly appreciated - this error is affecting > multiple modules of a website that is used constantly by both our customers > and our internal employees. > > Thanks > > Curt > > ~| 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:350931 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone see anything wrong with this code?
You can always add some tracing or logging to the function and output it to a file to study offline. You can also create a dummy html form and post it to the cfc instead of using ajax. that way you can see whatever errors and debugging come back. On 5/1/12 10:48 AM, Rick Faircloth wrote: > Looks like a good solution for getting some error clues > back from AJAX calls. I'll have to work on translating > this into jQuery. Usually, I can find some CF error code > in the iFrame used to process the file uploads, but nothing > is appearing there, or in the JSON reply. > > Thanks for the tip! > > Rick > > -Original Message- > From: Claude Schnéegans > [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans =?ISO-8859-1?Q?ue.com=3E?=] > Sent: Tuesday, May 01, 2012 1:13 PM > To: cf-talk > Subject: Re: Anyone see anything wrong with this code? > > > »>>I can't give any clues on error messages, because this > is part of a cfc on the back end of an ajax call. > No errors show up in firebug or elsewhere. > > This is a problem with Ajax calls. > If the template called by Ajax throws an error, the text returned by the CF > server is not compatible with Ajax and it causes an Ajax error. This error > will not help, what one is intersted in is the error in the CF error. > > I've developped my own Ajax call function, and in case of error, it will > open a new window with the whole text returned in it. Generally, it is the > error generated by CF. > This one is for POST method, but I have the equivalent for GET: > If there is anything wrong, the function calls displayError to displat the > text actually received. > > function ajaxPOST (url, sendText) > { > var XMLHttp = null; > if (window.XMLHttpRequest)XMLHttp = new XMLHttpRequest(); > // code for MSIE > else if (window.ActiveXObject)XMLHttp = new > ActiveXObject("Microsoft.XMLHttp"); > if(XMLHttp) > { > XMLHttp.open("POST", url, false); > XMLHttp.setRequestHeader("Content-Type", > "application/x-www-form-urlencoded; charset=iso-8859-1"); > XMLHttp.send(sendText); > if (XMLHttp.status == 200)return XMLHttp.responseText; > displayError("" + XMLHttp.statusText +"" + > XMLHttp.responseText) > return null; > } > else return null; > } > function displayError(text) > { > var errorWin = open > ("","Error","scrollbars=yes,resizable,width=900,height=600"); > errorWin.document.open(); > errorWin.document.write(text); > errorWin.document.close(); > errorWin.focus() > } > > > > > ~| 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:350930 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Application Scoped CFC's and the Request Scope
Hey Guys, While I know its not best practice, I am setting some variables in the request scope that are then referenced by several application scoped CFCs. Can this lead to collisions? I am seeing some strange errors that only happen when I run multiple requests at the same time and seem to involve the request scoped data. Could this potentially be the issue? Brook ~| 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:350929 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Anyone see anything wrong with this code?
Do you mean that I should use the "imageNumber" index variable in place of the loopCounter variable? -Original Message- From: Brian Thornton [mailto:br...@cfdeveloper.com] Sent: Tuesday, May 01, 2012 2:07 PM To: cf-talk Subject: Re: Anyone see anything wrong with this code? You are refrencing as 1 and need to refrence as the index. On Tue, May 1, 2012 at 1:48 PM, Rick Faircloth wrote: > > Looks like a good solution for getting some error clues > back from AJAX calls. I'll have to work on translating > this into jQuery. Usually, I can find some CF error code > in the iFrame used to process the file uploads, but nothing > is appearing there, or in the JSON reply. > > Thanks for the tip! > > Rick > > -Original Message- > From: Claude Schnéegans > [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans =?ISO-8859-1?Q?ue.com=3E?=] > Sent: Tuesday, May 01, 2012 1:13 PM > To: cf-talk > Subject: Re: Anyone see anything wrong with this code? > > > »>>I can't give any clues on error messages, because this > is part of a cfc on the back end of an ajax call. > No errors show up in firebug or elsewhere. > > This is a problem with Ajax calls. > If the template called by Ajax throws an error, the text returned by the CF > server is not compatible with Ajax and it causes an Ajax error. This error > will not help, what one is intersted in is the error in the CF error. > > I've developped my own Ajax call function, and in case of error, it will > open a new window with the whole text returned in it. Generally, it is the > error generated by CF. > This one is for POST method, but I have the equivalent for GET: > If there is anything wrong, the function calls displayError to displat the > text actually received. > > function ajaxPOST (url, sendText) > { > var XMLHttp = null; > if (window.XMLHttpRequest)XMLHttp = new XMLHttpRequest(); > // code for MSIE > else if (window.ActiveXObject)XMLHttp = new > ActiveXObject("Microsoft.XMLHttp"); > if(XMLHttp) > { > XMLHttp.open("POST", url, false); > XMLHttp.setRequestHeader("Content-Type", > "application/x-www-form-urlencoded; charset=iso-8859-1"); > XMLHttp.send(sendText); > if (XMLHttp.status == 200)return XMLHttp.responseText; > displayError("" + XMLHttp.statusText + "" + > XMLHttp.responseText) > return null; > } > else return null; > } > function displayError(text) > { > var errorWin = open > ("","Error","scrollbars=yes,resizable,width=900,height=600"); > errorWin.document.open(); > errorWin.document.write(text); > errorWin.document.close(); > errorWin.focus() > } > > > > > ~| 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:350928 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CF9 no longer recognizes virtual directories on IIS after install of Apache
Hi - I have an application that has been working fine for over a year and now anything that references Virtual Directories no longer functions. Here are the details: Coldfusion is running on Windows Server 2003 Enterprise. Using IIS6 for the web server on the same box. I have several virtual directories setup that reference files on another server on the same network. What I did to break things... I installed Apache (the latest release) along with PHP - but I set Apache up to listen on a different port (8080). Suddently any part of my code that tries to reference a file that is found through a virtual directory generates the following error: An error occurred when performing a file operation exists on file /serverpdfs/130kPDFs/137485.pdf. The cause of this exception was: org.apache.commons.vfs.FileSystemException: Could not determine the type of file "http://www.mybp-graphics.com/serverpdfs/130kPDFs/137485.pdf";.. Here's the actual code that generated that error: http://www.mybp-graphics.com/serverpdfs/130kPDFs\137485.pdf";> then within a table... Yes File No file The "serverpdfs" is the virtual directory inside the website "mybp-graphics.com". If I look in IIS the directory is there, I can see all the files in it - it seems to be working fine. I first experienced the problem when we tried to open a PDF for viewing by using - the same type error occurs. What is especially suspicious is that the exception was was "org.apache.commons.cfs.FileSystemException" - This error still persists even though I have done the following: 1. Completely de-installed Apache and hid the PHP directory. 2. Re-installed ColdFusion from scratch. Any direction would be greatly appreciated - this error is affecting multiple modules of a website that is used constantly by both our customers and our internal employees. Thanks Curt ~| 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:350927 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone see anything wrong with this code?
You are refrencing as 1 and need to refrence as the index. On Tue, May 1, 2012 at 1:48 PM, Rick Faircloth wrote: > > Looks like a good solution for getting some error clues > back from AJAX calls. I'll have to work on translating > this into jQuery. Usually, I can find some CF error code > in the iFrame used to process the file uploads, but nothing > is appearing there, or in the JSON reply. > > Thanks for the tip! > > Rick > > -Original Message- > From: Claude Schnéegans > [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans =?ISO-8859-1?Q?ue.com=3E?=] > Sent: Tuesday, May 01, 2012 1:13 PM > To: cf-talk > Subject: Re: Anyone see anything wrong with this code? > > > »>>I can't give any clues on error messages, because this > is part of a cfc on the back end of an ajax call. > No errors show up in firebug or elsewhere. > > This is a problem with Ajax calls. > If the template called by Ajax throws an error, the text returned by the CF > server is not compatible with Ajax and it causes an Ajax error. This error > will not help, what one is intersted in is the error in the CF error. > > I've developped my own Ajax call function, and in case of error, it will > open a new window with the whole text returned in it. Generally, it is the > error generated by CF. > This one is for POST method, but I have the equivalent for GET: > If there is anything wrong, the function calls displayError to displat the > text actually received. > > function ajaxPOST (url, sendText) > { > var XMLHttp = null; > if (window.XMLHttpRequest)XMLHttp = new XMLHttpRequest(); > // code for MSIE > else if (window.ActiveXObject)XMLHttp = new > ActiveXObject("Microsoft.XMLHttp"); > if(XMLHttp) > { > XMLHttp.open("POST", url, false); > XMLHttp.setRequestHeader("Content-Type", > "application/x-www-form-urlencoded; charset=iso-8859-1"); > XMLHttp.send(sendText); > if (XMLHttp.status == 200)return XMLHttp.responseText; > displayError("" + XMLHttp.statusText + "" + > XMLHttp.responseText) > return null; > } > else return null; > } > function displayError(text) > { > var errorWin = open > ("","Error","scrollbars=yes,resizable,width=900,height=600"); > errorWin.document.open(); > errorWin.document.write(text); > errorWin.document.close(); > errorWin.focus() > } > > > > > ~| 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:350926 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Anyone see anything wrong with this code?
Looks like a good solution for getting some error clues back from AJAX calls. I'll have to work on translating this into jQuery. Usually, I can find some CF error code in the iFrame used to process the file uploads, but nothing is appearing there, or in the JSON reply. Thanks for the tip! Rick -Original Message- From: Claude Schnéegans [mailto:=?ISO-8859-1?Q?Claude_Schn=E9egans >I can't give any clues on error messages, because this is part of a cfc on the back end of an ajax call. No errors show up in firebug or elsewhere. This is a problem with Ajax calls. If the template called by Ajax throws an error, the text returned by the CF server is not compatible with Ajax and it causes an Ajax error. This error will not help, what one is intersted in is the error in the CF error. I've developped my own Ajax call function, and in case of error, it will open a new window with the whole text returned in it. Generally, it is the error generated by CF. This one is for POST method, but I have the equivalent for GET: If there is anything wrong, the function calls displayError to displat the text actually received. function ajaxPOST (url, sendText) { var XMLHttp = null; if (window.XMLHttpRequest)XMLHttp = new XMLHttpRequest(); // code for MSIE else if (window.ActiveXObject)XMLHttp = new ActiveXObject("Microsoft.XMLHttp"); if(XMLHttp) { XMLHttp.open("POST", url, false); XMLHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=iso-8859-1"); XMLHttp.send(sendText); if (XMLHttp.status == 200)return XMLHttp.responseText; displayError("" + XMLHttp.statusText + "" + XMLHttp.responseText) return null; } else return null; } function displayError(text) { var errorWin = open ("","Error","scrollbars=yes,resizable,width=900,height=600"); errorWin.document.open(); errorWin.document.write(text); errorWin.document.close(); errorWin.focus() } ~| 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:350925 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Anyone see anything wrong with this code?
Hi, Brian, and thanks for the feedback... What, in particular, do you think is wrong with the loopCounter variable? I moved it over the last few days thinking that might be the problem. And, concerning the imagenumberindex... same question as above. And how were you able to test the code? Did you set up some file fields in a form and submit them to the cfc method? My client has been patient with this problem, but I may have to re-write this code as a plain-old, "submit the form to a .cfm processing page for the data, and repeat for the photos" solution. I haven't been able to find the problem while using HTML, AJAX, IFrame, and a CFC method. Usually, I can troubleshoot this setup without any problem. But I just can't seem to get a handle on this one. Rick -Original Message- From: Brian Thornton [mailto:br...@cfdeveloper.com] Sent: Tuesday, May 01, 2012 1:00 PM To: cf-talk Subject: Re: Anyone see anything wrong with this code? The problem seems to be the loopCounter and the imagenumberindex on my end. On Tue, May 1, 2012 at 12:57 PM, Rick Faircloth wrote: > > Hi, all... > > I've just moved onto a new server and it seems > that ever since that time, I've had problems getting > this code to work. > > The code has been tweaked a lot, here, there, and > everywhere over the last several days trying to figure > out why it won't work. > > I can't give any clues on error messages, because this > is part of a cfc on the back end of an ajax call. > No errors show up in firebug or elsewhere. > > The breakdown the method occurs where this code begins. > Prior to this code, data for a properly listing is inserted > into a MySQL database...no problem. > > And, I should say that the code works through line 20, where > the images are first written to the temp-images directory. > The problem is that no files are written to the final directory > and no entries are made into the table for the photos. > This code has been running on another server for the last couple > of years. (Plus the tweaks!) I had the temp directory outside > the web root, but brought it inside the web root thinking that > might be the problem, but it didn't help. > > I broke out the individual functions of this code and ran them > locally and everything checked out locally, but combined and on > the server, no go... > > Thanks for any feedback! > > Rick > > > > select LAST_INSERT_ID() as propertyID > from rentalProperties > > > > > > > > > > Len(FORM[imageFileField]))> > > filefield = "#imageFileField#" > destination = > "e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images" > accept = "image/jpg, image/pjpg, image/jpeg, > image/pjpeg, image/png" > nameConflict = "makeUnique" /> > > > > [^a-zA-Z0-9_\-.], '', 'all') /> > > '#newImageFileName##originalImageExt#' /> > > > directory = > "e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images" > name = "image_list" /> > > > > > > > > source = > "e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images\#newFileNameCompl > ete#" > destination = > "e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images\#newImageFileName > #_#loopCounter##originalImageExt#"> > > '#newImageFileName#_#loopCounter##originalImageExt#'/> > > > > '#newFileNameComplete#' /> > > > > > isImageFile('e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images\#rena > medNewFileNameComplete#') > > > width = "200" > height = "" > source = > "e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images\#renamedNewFileNa > meComplete#" > destination = > "e:\inetpub\webroot\holtzmanRentals\user_images\photo200_#renamedNewFileName > Complete#" > overwrite = "true" /> > > "photo200_#renamedNewFileNameComplete#"> > > width = "75" > height = "50" > source = > "e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images\#renamedNewFileNa > meComplete#" > destination = > "e:\inetpub\webroot\holtzmanRentals\user_images\photo75x50_#renamedNewFileNa > meComplete#" > overwrite = "true" /> > > "photo75x50_#renamedNewFileNameComplete#" /> > > width = "458" > height = "306" > source = > "e:\inetpub\we
Re: CF9 ODBC Service standalone install
> I must have unchecked to install the ODBC service when I installed CF > last week. Are there any standalone installs out there for it? Nevermind. Found how... http://helpx.adobe.com/coldfusion/kb/coldfusion-odbc-services-corrupt-or.html ~| 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:350923 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CF9 ODBC Service standalone install
I must have unchecked to install the ODBC service when I installed CF last week. Are there any standalone installs out there for it? ~| 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:350922 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone see anything wrong with this code?
»>>I can't give any clues on error messages, because this is part of a cfc on the back end of an ajax call. No errors show up in firebug or elsewhere. This is a problem with Ajax calls. If the template called by Ajax throws an error, the text returned by the CF server is not compatible with Ajax and it causes an Ajax error. This error will not help, what one is intersted in is the error in the CF error. I've developped my own Ajax call function, and in case of error, it will open a new window with the whole text returned in it. Generally, it is the error generated by CF. This one is for POST method, but I have the equivalent for GET: If there is anything wrong, the function calls displayError to displat the text actually received. function ajaxPOST (url, sendText) { var XMLHttp = null; if (window.XMLHttpRequest)XMLHttp = new XMLHttpRequest(); // code for MSIE else if (window.ActiveXObject)XMLHttp = new ActiveXObject("Microsoft.XMLHttp"); if(XMLHttp) { XMLHttp.open("POST", url, false); XMLHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=iso-8859-1"); XMLHttp.send(sendText); if (XMLHttp.status == 200)return XMLHttp.responseText; displayError("" + XMLHttp.statusText + "" + XMLHttp.responseText) return null; } else return null; } function displayError(text) { var errorWin = open ("","Error","scrollbars=yes,resizable,width=900,height=600"); errorWin.document.open(); errorWin.document.write(text); errorWin.document.close(); errorWin.focus() } ~| 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:350921 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How big is your CF JVM?
>Quick poll... How much memory have you allocated to CF on your production >servers? > >We are running Win 2008 R2, CF 9.0.1x Enterprise, w/ 3GB of RAM allocated to >the CF/JVM > >How say you? Our production has 8GB of RAM allocated ~| 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:350920 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Anyone see anything wrong with this code?
The problem seems to be the loopCounter and the imagenumberindex on my end. On Tue, May 1, 2012 at 12:57 PM, Rick Faircloth wrote: > > Hi, all... > > I've just moved onto a new server and it seems > that ever since that time, I've had problems getting > this code to work. > > The code has been tweaked a lot, here, there, and > everywhere over the last several days trying to figure > out why it won't work. > > I can't give any clues on error messages, because this > is part of a cfc on the back end of an ajax call. > No errors show up in firebug or elsewhere. > > The breakdown the method occurs where this code begins. > Prior to this code, data for a properly listing is inserted > into a MySQL database...no problem. > > And, I should say that the code works through line 20, where > the images are first written to the temp-images directory. > The problem is that no files are written to the final directory > and no entries are made into the table for the photos. > This code has been running on another server for the last couple > of years. (Plus the tweaks!) I had the temp directory outside > the web root, but brought it inside the web root thinking that > might be the problem, but it didn't help. > > I broke out the individual functions of this code and ran them > locally and everything checked out locally, but combined and on > the server, no go... > > Thanks for any feedback! > > Rick > > > > select LAST_INSERT_ID() as propertyID > from rentalProperties > > > > > > > > > > Len(FORM[imageFileField]))> > > filefield = "#imageFileField#" > destination = > "e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images" > accept = "image/jpg, image/pjpg, image/jpeg, > image/pjpeg, image/png" > nameConflict = "makeUnique" /> > > > > [^a-zA-Z0-9_\-.], '', 'all') /> > > '#newImageFileName##originalImageExt#' /> > > > directory = > "e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images" > name = "image_list" /> > > > > > > > > source = > "e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images\#newFileNameCompl > ete#" > destination = > "e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images\#newImageFileName > #_#loopCounter##originalImageExt#"> > > '#newImageFileName#_#loopCounter##originalImageExt#'/> > > > > '#newFileNameComplete#' /> > > > > > isImageFile('e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images\#rena > medNewFileNameComplete#') > > > width = "200" > height = "" > source = > "e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images\#renamedNewFileNa > meComplete#" > destination = > "e:\inetpub\webroot\holtzmanRentals\user_images\photo200_#renamedNewFileName > Complete#" > overwrite = "true" /> > > "photo200_#renamedNewFileNameComplete#"> > > width = "75" > height = "50" > source = > "e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images\#renamedNewFileNa > meComplete#" > destination = > "e:\inetpub\webroot\holtzmanRentals\user_images\photo75x50_#renamedNewFileNa > meComplete#" > overwrite = "true" /> > > "photo75x50_#renamedNewFileNameComplete#" /> > > width = "458" > height = "306" > source = > "e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images\#renamedNewFileNa > meComplete#" > destination = > "e:\inetpub\webroot\holtzmanRentals\user_images\photo458x306_#renamedNewFile > NameComplete#" > overwrite = "true" /> > > "photo458x306_#renamedNewFileNameComplete#" /> > > file = > "e:\inetpub\webroot\holtzmanRentalsSiteManager\temp-images\#renamedNewFileNa > meComplete#" /> > > > datasource="myDatasource"> > > insert > into rentalPhotos > > ( propertyID, photo200, photo75x50, > photo458x306, photoOrder ) > > > values ( "cf_sql_int" value = "#qGetLastInsertID.propertyID#" >, > "cf_sql_varchar" value
Anyone see anything wrong with this code?
Hi, all... I've just moved onto a new server and it seems that ever since that time, I've had problems getting this code to work. The code has been tweaked a lot, here, there, and everywhere over the last several days trying to figure out why it won't work. I can't give any clues on error messages, because this is part of a cfc on the back end of an ajax call. No errors show up in firebug or elsewhere. The breakdown the method occurs where this code begins. Prior to this code, data for a properly listing is inserted into a MySQL database...no problem. And, I should say that the code works through line 20, where the images are first written to the temp-images directory. The problem is that no files are written to the final directory and no entries are made into the table for the photos. This code has been running on another server for the last couple of years. (Plus the tweaks!) I had the temp directory outside the web root, but brought it inside the web root thinking that might be the problem, but it didn't help. I broke out the individual functions of this code and ran them locally and everything checked out locally, but combined and on the server, no go... Thanks for any feedback! Rick select LAST_INSERT_ID() as propertyID from rentalProperties insert into rentalPhotos ( propertyID, photo200, photo75x50, photo458x306, photoOrder ) values ( , , , , ) ~| 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:350918 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How big is your CF JVM?
On Tue, May 1, 2012 at 4:10 PM, Justin Hansen wrote: > Quick poll... How much memory have you allocated to CF on your production > servers? That ranges from 384 tot 3072 MB depending on the app. and workload. Jochem -- Jochem van Dieten http://jochem.vandieten.net/ ~| 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:350917 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How big is your CF JVM?
Win 2003 32bit / ACF 9.0.1 1GB / jdk1.6.0_32 and Win 2008 64bit / ACF 9.0.1 3GB / jdk1.6.0_32 On 5/1/12 7:29 AM, John M Bliss wrote: > Windows Server 2003 R2, ACF 8.0.1 Standard, w/ 1GB of RAM allocated to the > CF/JVM. > > On Tue, May 1, 2012 at 9:10 AM, Justin Hansen wrote: > >> Quick poll... How much memory have you allocated to CF on your production >> servers? >> >> We are running Win 2008 R2, CF 9.0.1x Enterprise, w/ 3GB of RAM allocated >> to the CF/JVM >> >> How say you? >> >> > ~| 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:350916 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How big is your CF JVM?
Windows Server 2003 R2, ACF 8.0.1 Standard, w/ 1GB of RAM allocated to the CF/JVM. On Tue, May 1, 2012 at 9:10 AM, Justin Hansen wrote: > > Quick poll... How much memory have you allocated to CF on your production > servers? > > We are running Win 2008 R2, CF 9.0.1x Enterprise, w/ 3GB of RAM allocated > to the CF/JVM > > How say you? > > ~| 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:350915 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
How big is your CF JVM?
Quick poll... How much memory have you allocated to CF on your production servers? We are running Win 2008 R2, CF 9.0.1x Enterprise, w/ 3GB of RAM allocated to the CF/JVM How say you? ~| 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:350914 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Pinterest
Interesting in that this other report is that their users are declining. http://www.sfgate.com/cgi-bin/article.cgi?f=/g/a/2012/04/20/businessinsiderpinterests-hype-bubb.DTL Of course, they're measuring two different things. The SF Gate one talks about monthly active users using it via Facebook, while the CNET one talks about daily unique users, so the two don't necessarily contradict each other. Scott On Mon, Apr 30, 2012 at 8:25 PM, Brian Thornton wrote: > > If you don't know it's coming, here's your sign... > > > http://news.cnet.com/8301-1023_3-57423858-93/pinterest-sees-user-base-double-in-three-months/?tag=mncol;cnetRiver > > ~| 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:350913 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm