Re: Webservice returning CFC in a different directory

2012-08-02 Thread Les Schmidt

I know this post is over 8 years old, but it is the only one that was "on 
point" to a problem I was having.  I now have a solution so am simply updating 
this in case others stumble upon the same situation. I'm on Coldfusion 9.

My set up is exactly like the original poster's:  webservices in a directory 
under the webroot, components in a directory outside the webroot of the current 
app.

I was getting the same as errors described above. 

What I discovered - after much hair pulling! - was that I had carefully (I 
thought) sculpted a extremely limited subset of the main application.cfc (being 
overly cautious perhaps) and placed it in the web services directory.  In 
CFAdmin, the order for reading application.cfcs was set to "default order".  
Accordingly it was reading the application.cfc in the web services directory.

I also put all my mappings in the application.cfc (vs. manage them in the 
CFAdminstrator).

Well, in my vast wisdom, I discovered that I had excised the mapping to the 
components directory in the web services version of application.cfc.  Once I 
added that back in, I was in heaven.  The components lived outside the app and 
functioned beautifully with the CFCs in the web services directory.

Hope this helps the next soul that stumbles upon this problem. 


>*   Have
>you tried downing your instance and blowing away the contents of both
>your cfclasses and cfc-skeletons directories.
>
> 
>
>Yup - tried it many times, no luck... 


~|
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:352048
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Web Services and file permissions - access.denied

2012-07-22 Thread Les Schmidt

> > Thanks for the reply.  Yes I'm running dev edition of CF on my local 
> machine - which is where I'm having NO trouble getting
> > things to work.  I have trouble when the calling cfm is on Hostek 
> and the cfc (web service) is on a standard copy of CF 9 at
> > home.  Any other thoughts?
> 
> Have you verified that the server at Hostek can access your server at 
> home?
> 
> 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.

UPDATE: Moments after I replied to your suggestion, Hostek responded to my 
ticket and indicated that they had updated the permissions on my security 
sandbox and everything works fine!  Augh - 24 hours of pulling my hair out and 
it was that simple.  

Case closed.



~|
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:351939
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Web Services and file permissions - access.denied

2012-07-22 Thread Les Schmidt

> > Thanks for the reply.  Yes I'm running dev edition of CF on my local 
> machine - which is where I'm having NO trouble getting
> > things to work.  I have trouble when the calling cfm is on Hostek 
> and the cfc (web service) is on a standard copy of CF 9 at
> > home.  Any other thoughts?
> 
> Have you verified that the server at Hostek can access your server at 
> home?
> 
> 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.
Dave,
Thanks Dave. Appreciate you troubleshooting this one with me.
Say more. Are you thinking that Hostek blocks the consumption of web services?  
as for access to the home setup, it hosts my personal site 
(casadiablo.homeip.net) which I can reach just fine from anywhere. Which is 
only to say that I don't think it's an "incoming" firewall issue on the home 
side.

I do have a ticket into Hostek just to see if there is something there.  How 
would you suggest I personally test the ability for Hostek to reach into the 
home server?


~|
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:351938
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Web Services and file permissions - access.denied

2012-07-22 Thread Les Schmidt

>I am presuming you are running dev edition of cf on your local machine,
>which has IP restrictions which is probably the cause.
>
>Regards
>Russ Michaels
>On Jul 22, 2012 3:23 AM, "Les Schmidt"  wrote:
>
>>

Russ,
Thanks for the reply.  Yes I'm running dev edition of CF on my local machine - 
which is where I'm having NO trouble getting things to work.  I have trouble 
when the calling cfm is on Hostek and the cfc (web service) is on a standard 
copy of CF 9 at home.  Any other thoughts? 


~|
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:351936
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Web Services and file permissions - access.denied

2012-07-21 Thread Les Schmidt

I am attempting to access a Coldfusion 9 webservice that I created on one 
system (over which I have total control) by consuming it on another system 
which is hosted.  The pair works fine when both requesting page and the 
webservice are resident on my development server (in separate projects in CF 
Builder), but generate the following error when in their respective production 
environments:  

Error Occurred While Processing Request

Cannot generate stub objects for web service invocation.

Name: http://casadiablo.homeip.net/WebServices/WebSvcs.cfc?wsdl. WSDL: 
http://casadiablo.homeip.net/WebServices/WebSvcs.cfc?wsdl. 
java.security.AccessControlException: access denied ("java.io.FilePermission" 
"C:/Program Files/Java/jdk1.7.0_04/jre/lib/wsdl.properties" "read") It is 
recommended that you use a web browser to retrieve and examine the requested 
WSDL document to ensure it is correct. If the requested WSDL document cannot be 
retrieved or is dynamically generated, it is likely that the target web service 
has programming errors.

 

The error occurred in D:/home/casadiablo.net/wwwroot/indexCDNet.cfm: line 10

Called from "java.io.FilePermission" "C: line -1

Called from "java.io.FilePermission" "C: line -1

Called from D:/home/casadiablo.net/wwwroot/indexCDNet.cfm: line 10

---

Note: the wsdl renders just fine in a browser, so it's not a "can't find it" or 
location issue.  I'm no expert in reading wsdl files, though, so the displayed 
wsdl file could be rendering some clues if I knew what to look for.   

For context:
When I go from my development environment to production, the consuming page is 
on casadiablo.net/indexCDnet.cfm (hosted by Hostek).  The webservice is on a PC 
in my home that has a dedicated IP address. 

I've tried all kinds of combinations of usernames and passwords that might be 
prohibiting file access and submitting these during invocation or registering 
them in the CF Administrator Web Services panel.  All to no avail.

I've searched all over for an "access denied" java error (related to CF web 
services) discussion and have found nothing.  Any ideas as to how to 
troubleshoot where in this chain a java.io.FilePermission error might be 
triggered would be greatly appreciated!! 


~|
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:351934
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Coldfusion 10 and Sqlite - can it work?

2012-05-29 Thread Les Schmidt

>> 
>onsite
>
>Thanks Dave!  I'll give that a try!

Got it working by installing the driver in C:\Coldfusion10\cfusion\lib.  

The documentation would have you believe that I should have installed it in 
cf_root/lib.  Translated literally for me that would have been:  
C:\Coldfusion\lib\[driver].  In the CF10 default file structure, however, there 
is no cf_root/lib directory. The top level directories under cf_root are: 
cfusion, jre, config and uninstalll. 

~|
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:351349
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Coldfusion 10 and Sqlite - can it work?

2012-05-29 Thread Les Schmidt

> 
> I haven't actually tried it, but CF 10 supports adding database
> drivers just like CF 9 did. You can read the exact steps in the 
> online
> documentation:
> 
> http://help.adobe.com/en_US/ColdFusion/10.
> 0/Admin/WSc3ff6d0ea77859461172e0811cbf3639b1-7fe6.html
> 
> 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

Thanks Dave!  I'll give that a try! 

~|
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:351348
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Coldfusion 10 and Sqlite - can it work?

2012-05-27 Thread Les Schmidt

I have a current CF9 app that uses sqlite for some small database interactions. 
 To get this working, the latest sqlite driver (sqlitejdbc-v056.jar) had to be 
put in the Jrun/lib directory.

In CF10, with Tomcat replacing JRun (and there's still no "SQLite" datasource 
type in the admin), I'm trying to find out:
a) if I can still use the SQLite databases with CF10 and 
b) what's needed to get the datasources connected in CF10

Any help/insight at all would be greatly appreciated.   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:351335
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFLayout

2009-06-06 Thread Les Schmidt

> Hi all,
> 
> I have started a project utilizing the ajax commands in cf8 and I have 
> come across a situation.  I want to pull the data inside of the tabbed 
> areas of a cflayout 'only' when the tab is initiated (clicked on).  
> 
> I was wondering if anyone has any ideas of how to do it.  I was 
> attempting to determine the name of the tab that had been clicked, 
> however I can't seem to get that to work.  My original intention was 
> to get the name and then do a ColdFusion.Refresh style command to load 
> the data into the tab (I will probably put that data into a cfdiv 
> tag)
> 
> Any ideas?
> 
> William 
William, did you try using the 'refreshonactivate' attribute (along with 
'source') of the cflayout tag? Les 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323223
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Javascript and Cfform/Layout with tabs

2009-06-06 Thread Les Schmidt

Does anyone have any experience with how Javascript (coded between the 'head' 
tags) works with forms that appear on cflayout tabs?  My application gets email 
from numerous email accounts and displays each account's emails neatly in a 
separate table.  I have a javascript function that "selects all" (each email 
has a checkbox) for easy mass deletion.  This function works just fine in tab1 
(regardless of how much I go to other tabs), but doesn't work in any of the 
other tabs.  So I'm confident that the javascript works, but I can't get it to 
work in more than the first tab.  Any assistance greatly appreciated.  Here's 
the javascript: 
//for check all/uncheck all function
function checkall(formname,checkname,thestate){
var el_collection=eval("document.forms."+formname+"."+checkname)
for (c=0;c

Re: iPhone Development

2009-01-04 Thread Les Schmidt
>Web apps, you mean?  Go grab the meta tag you need to lock the screen
>size, and the develop as normal. HTML, JS and CSS are virtually
>identical to the normal browser, mouse events are the biggest
>difference to deal with.
>
>cheers,
>barneyb
>
>
>>

Barney,
Can you expand/explain further please on what you mean by "go grab the meta tag 
you need to lock the screen size"?  Haven't dealt with meta tags previously... 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317358
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 Process completes then Firefox opens multiple tabs by itself

2008-12-28 Thread Les Schmidt
>View the source from the browser, and compare the one on your dev 
>machine to the live server.  There is always the chance of a virus on 
>the server putting something extra into the output

Al, Thanks for the suggestion.   The problem is that the page never really 
"completes" in the tab that it's running in so there's never a chance to view 
source in that tab.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317187
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 Process completes then Firefox opens multiple tabs by itself

2008-12-28 Thread Les Schmidt
>View the source from the browser, and compare the one on your dev 
>machine to the live server.  There is always the chance of a virus on 
>the server putting something extra into the output 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317186
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 Process completes then Firefox opens multiple tabs by itself

2008-12-28 Thread Les Schmidt
> > I have a CF template that updates a database of music file info from 
> disk directory info. I
> > can say more about the template, but the problem seems to be 
> somewhat unrelated.
> >
> > On my development machine, the template runs perfectly.  It takes 
> about 12 minutes to
> > do all of the disk read, comparisons to existing data and insertion 
> of new records.  The
> > start and finish are recorded in a log file along with notations of 
> changes made.
> >
> > When I transfer the info to the production machine, it "works" fine 
> in that the beginning
> > and ending times and changes are recorded in the log file and it 
> takes about the same 12
> > minutes.  The problem is that when running on the production machine, 
> the template never
> > completes (i.e. Browser reports "done").  Instead, it appears to 
> continue processing for
> > another 12-15 minutes and then two things happen.  First the browser 
> opens a download
> > window and attempts to download the template that it is running.  
> Second, it starts
> > opening multiple tabs, rapidly.  Left to its own devices, this 
> ultimately chokes the client
> > system.
> >
> > I have diligently compared the setup on both machines (dev and 
> production) and they are
> >  identical: Windows XP (SP3), Firefox 3.0.5, CF 8 (8.0.1.195765), 
> java 1.6.0_11, Apache
> > 2.2.  The settings in the CF administrator are identical because I 
> packaged up the settings
> > from the production machine and installed them on the dev machine to 
> ensure sameness.
> >
> > I've also tried commenting out sections of the code to see if that 
> were the cause, but since
> > the code completes and writes the final log entry in both cases I'm 
> hard pressed to see
> > why the code is the problem.
> 
> Unless this also happens with all your other CF files, the code has
> something to do with the problem. So, I suggest you provide the code,
> and URLs where we can see the code running, etc.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> 
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more 
information!

Dave,
Thanks for the reply!  I see your point re: the code being involved, except for 
the fact that it gets to the end and writes the final log entry just fine (even 
on production).  This is the only template that this happens to.
I'm posting the code here.  Here's hoping you see something!!






  starttime = now();
writeoutput("start: " & timeformat(startTime,'HH:mm:ss') & "");
  newMusic = arraynew(1);
  newMusicCount = 0;
  //itunesRootDir defined in application.cfc
  logFilePath = application.XferFile ;
// check if log file exists, write initial string to log file 
// log start of process
startCopyPhrase = "#chr(13)##chr(10)#***  #dateformat(startTime,'ddd 
mm/dd/yy')# #timeformat(startTime,'HH:MM:ss')# - start refresh of iTunes Master 
Index. - ***#chr(13)##chr(10)#";
// fileTest = fileExists(logFilePath);
if (fileExists(logFilePath)) {
existingFile = fileopen(logFilePath, "append");
filewrite(existingFile, startCopyPhrase);
}
else {
filewrite(logFilePath, startCopyPhrase);
existingFile = fileopen(logFilePath, "append");
}
 

// process directories
  FilePath = "#application.itunesRootDir#" ;
ArtistDirs = 
createObject("java","java.io.File").init(Trim(FilePath)).list();
aArtists = arraynew(1);

// the following block gets the top level directories
for (i=1;i lte arraylen(ArtistDirs); i=i+1){
 a_name = ArtistDirs[i];
 path=Filepath & '\' & a_name;

 if(directoryexists(path) and not(findnocase("Album 
Artwork",path))) {
arrayAppend(aArtists,a_name);   
 }

}

//following block gets album names (level 2 directory) then song names
AAS=arraynew(1); // Artist/Album/Song = AAS
for (x=1;x lte arraylen(aArtists); x=x+1) {
oneAlbum = structnew();
oneAlbum.artist = aArtists[x];
artistpath=Filepath & aArtists[x] &  '\';
oneAlbum.album = 
createObject("java","java.io.File").init(Trim(artistPath)).list();
for (y=1; y lte arraylen(oneAlbum.album); y=y+1) {
albumPath = artistpath & oneAlbum.album[y] & '\';
oneAlbum.songs[y] = 
createObject("java","java.io.File").init(Trim(AlbumPath)).list();
oneAlbum.albumCount = arraylen(oneAlbum.album);
AAS[x] = oneAlbum;
}
}
writeoutput("arraylen of AAS: " & arr

CF 8 Process completes then Firefox opens multiple tabs by itself

2008-12-28 Thread Les Schmidt
Hoping someone can help me out here.
I have a CF template that updates a database of music file info from disk 
directory info. I can say more about the template, but the problem seems to be 
somewhat unrelated.

On my development machine, the template runs perfectly.  It takes about 12 
minutes to do all of the disk read, comparisons to existing data and insertion 
of new records.  The start and finish are recorded in a log file along with 
notations of changes made.

When I transfer the info to the production machine, it "works" fine in that the 
beginning and ending times and changes are recorded in the log file and it 
takes about the same 12 minutes.  The problem is that when running on the 
production machine, the template never completes (i.e. Browser reports "done"). 
 Instead, it appears to continue processing for another 12-15 minutes and then 
two things happen.  First the browser opens a download window and attempts to 
download the template that it is running.  Second, it starts opening multiple 
tabs, rapidly.  Left to its own devices, this ultimately chokes the client 
system.

I have diligently compared the setup on both machines (dev and production) and 
they are identical: Windows XP (SP3), Firefox 3.0.5, CF 8 (8.0.1.195765), java 
1.6.0_11, Apache 2.2.  The settings in the CF administrator are identical 
because I packaged up the settings from the production machine and installed 
them on the dev machine to ensure sameness.

I've also tried commenting out sections of the code to see if that were the 
cause, but since the code completes and writes the final log entry in both 
cases I'm hard pressed to see why the code is the problem.

I am at a complete and utter loss.  I've spent days setting up test cases and 
checking consistency and have come up empty handed.  Has any one encountered 
anything like this?  All suggestions welcome!!! 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317171
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFFTP CF8.01 timeout and connection property bug/issues

2008-06-13 Thread Les Schmidt
Paul, I have exactly the same problem.  You are not alone.  
Here's an additional dimension of the cfftp problem. 
I back up some files of various sizes to a remote site using an automated cf 
task. The page essentially loops through an array of files that it determines 
need to be ftp'd (backed up).  In the loop is the cfftp tag and attributes to 
put the file. [Note that I discovered (through some back and forth with the 
Adobe team) that a "dummy" connection name is *required* for the timeout 
variable to be effective.]

In the looped cfftp tag, I set the timeout attribute for each putFile action 
dynamically, allowing 15 secs per MB of filesize, with a minimum of 31 seconds 
per file.  "small" files ftp just fine.  The first "big" file ftp attempt 
completes just fine (i.e., the file transfer is complete), but then CF seems to 
lose its place.  The evidence for this is that not a single line of code is 
executed after the big file transfer...the page simply dies (although it says 
'done').  

I've tried everything [or so it seems].  I've set the cfsetting requesttimeout 
to 3600 (60 minutes). No effect.  I've tried setting up and using a cfftp 
connection with a 3600 timeout. The connection gets killed after the first 
reuse of the connection.

Any suggestions welcome!

I use "small" and "big" here in quotes only because I haven't iterated enough 
to find the dividing line.  60MB and up files definitely cause the problem and 
2MB files don't cause the problem.

LMK if you've discovered any work arounds to this very annoying problem.



~|
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:307476
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFFTP CF8.01 timeout and connection property bug/issues

2008-06-13 Thread Les Schmidt
Paul, I have exactly the same problem.  You are not alone.  
Here's an additional dimension of the cfftp problem. 
I back up some files of various sizes to a remote site using an automated cf 
task. The page essentially loops through an array of files that it determines 
need to be ftp'd (backed up).  In the loop is the cfftp tag and attributes to 
put the file. [Note that I discovered (through some back and forth with the 
Adobe team) that a "dummy" connection name is *required* for the timeout 
variable to be effective.]

In the looped cfftp tag, I set the timeout attribute for each putFile action 
dynamically, allowing 15 secs per MB of filesize, with a minimum of 31 seconds 
per file.  "small" files ftp just fine.  The first "big" file ftp attempt 
completes just fine (i.e., the file transfer is complete), but then CF seems to 
lose its place.  The evidence for this is that not a single line of code is 
executed after the big file transfer...the page simply dies (although it says 
'done').  

I've tried everything [or so it seems].  I've set the cfsetting requesttimeout 
to 3600 (60 minutes). No effect.  I've tried setting up and using a cfftp 
connection with a 3600 timeout. The connection gets killed after the first 
reuse of the connection.

Any suggestions welcome!

I use "small" and "big" here in quotes only because I haven't iterated enough 
to find the dividing line.  60MB and up files definitely cause the problem and 
2MB files don't cause the problem.

LMK if you've discovered any work arounds to this very annoying problem.

> Hi All,
> 
> It's been a long time since I've had to use CFFTP (CF5) so I may well 
> be missing something but I seem to have come across a couple of things 
> one of which, I consider to be a bug.
> 
> Firstly, the bug.
> 
> I need to download a large (600Mb) file, if I set the timeout value to 
> something like 5 seconds for my connection then the tag times out 
> after 5 seconds rather than after 5 seconds of inactivity. There is a 
> major difference here.
> 
> If I set the timeout to 30 seconds, I get about 45Mb down before the 
> tag times out.
> If I set the timeout to 300 seconds, I get about 450Mb down before the 
> tag times out.
> 
> If I set the timeout to something silly, say 12 seconds, the tag 
> just hangs (I assume until the timeout is reached). (I know why this 
> is).
> 
> If I set the timeout to something more reasonable, say 900 seconds, 
> the tag does not return until the 900 seconds are up and I get the 
> file :-).
> 
> CFFTP is hanging until timeout because of the config of the FTP server 
> (something I cannot change as it's a 3rd party server). I've double 
> checked the connection with standard FTP clients and they too hang at 
> the end until their timeout is reached.
> 
> The difference between CFFTP and other FTP clients is that other FTP 
> clients can have timeouts of say 5 seconds and only timeout after the 
> entire file has been downloaded. Ideally this is what CFFTP should do 
> and I'd consider it to be a bug if it did otherwise which it does.
> 
> Secondly, the annoying problem.
> 
> The server I'm connecting to requires a PASV connection from where I 
> am. Ideally, I would like set this on the first connection and have CF 
> track this in the connection structure that is created. It isn't. 
> Every CFFTP call I make, I have to set passive="Yes". Until I dumped 
> out the connection structure, I couldn't figure out why I wasn't even 
> able to list a set of directories after the initial connection as I'd 
> assumed that passive being an attribute of the connection would be 
> carried through in the connection struct. This is not so. Annoying, 
> fixable but shouldn't be there.
> 
> Paul
> 


~|
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:307475
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFFTP CF8.01 timeout and connection property bug/issues

2008-06-13 Thread Les Schmidt
> Hi All,
> 
> It's been a long time since I've had to use CFFTP (CF5) so I may well 
> be missing something but I seem to have come across a couple of things 
> one of which, I consider to be a bug.
> 
> Firstly, the bug.
> 
> I need to download a large (600Mb) file, if I set the timeout value to 
> something like 5 seconds for my connection then the tag times out 
> after 5 seconds rather than after 5 seconds of inactivity. There is a 
> major difference here.
> 
> If I set the timeout to 30 seconds, I get about 45Mb down before the 
> tag times out.
> If I set the timeout to 300 seconds, I get about 450Mb down before the 
> tag times out.
> 
> If I set the timeout to something silly, say 12 seconds, the tag 
> just hangs (I assume until the timeout is reached). (I know why this 
> is).
> 
> If I set the timeout to something more reasonable, say 900 seconds, 
> the tag does not return until the 900 seconds are up and I get the 
> file :-).
> 
> CFFTP is hanging until timeout because of the config of the FTP server 
> (something I cannot change as it's a 3rd party server). I've double 
> checked the connection with standard FTP clients and they too hang at 
> the end until their timeout is reached.
> 
> The difference between CFFTP and other FTP clients is that other FTP 
> clients can have timeouts of say 5 seconds and only timeout after the 
> entire file has been downloaded. Ideally this is what CFFTP should do 
> and I'd consider it to be a bug if it did otherwise which it does.
> 
> Secondly, the annoying problem.
> 
> The server I'm connecting to requires a PASV connection from where I 
> am. Ideally, I would like set this on the first connection and have CF 
> track this in the connection structure that is created. It isn't. 
> Every CFFTP call I make, I have to set passive="Yes". Until I dumped 
> out the connection structure, I couldn't figure out why I wasn't even 
> able to list a set of directories after the initial connection as I'd 
> assumed that passive being an attribute of the connection would be 
> carried through in the connection struct. This is not so. Annoying, 
> fixable but shouldn't be there.
> 
> Paul
> 


~|
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:307474
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cffile misbehaving?

2008-03-03 Thread Les Schmidt
Claude/James - thanks for your posts... the explanations are much appreciated.  
I also received a great reference to william seiters blog post on cffile: 
http://wsoncf.blogspot.com/2008/02/knowledgebase-file-uploading.html

case closed...on to other challenges 

~|
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:300305
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cffile misbehaving?

2008-03-02 Thread Les Schmidt
Well I would agree with you except that the information is only available after 
the server has uploaded the file.  Hence it seems that it would have had to 
know where to get the file from (i.e. the client's directory and file path).

Furthermore, the good folks on the ColdFusion team seem to have clearly 
intended it to render the directory information as the documentation for the 
upload results state:  "clientDirectory: Directory location of the file 
uploaded from the client's system"



~|
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:300286
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cffile misbehaving?

2008-03-02 Thread Les Schmidt
Anyone encounter this?

Use cffile to upload a file to a server.  Then dump #cffile#.  attributes 
listed include cffile.clientFile and cffile.clientDirectory.

When I run this (on three different systems), clientFile eq 
clientDirectory...they both have the file name and no directory information can 
be found.  

~|
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:300283
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFGrid data not showing

2007-03-17 Thread Les Schmidt
> >> Technically you don't you have to.  If you specify just the query 
> attribute
> >> in the cfgrid tag, and no cfgridcolumns it defaults to creating a 
> column for
> >> column in the result set of the query.
> >
> >Hmm, didn't know that.  Still stabbing in the dark...maybe you need 
> to
> >select real columns in your query, instead of 'select * from'?  If
> >that still doesn't work, you should look in your CF logs to see if 
> you
> >find any errors.  I can't remember which log, but I've found flash
> >form errors in one log one day, and then in another one another day.
> >
> >Kind of off topic, there are a lot of really cool examples and
> >articles on flash forms at this site:
> >http://www.asfusion.com/
> >
> >-- 
> >My Sites:
> 
> 
> Finally figured it out the help of our admin. The problem was the 
> mapping to CFIDE folder.  The mapping was wrong and therefore could 
> not find all of the proper files.  Hence not working correctly but 
> also not creating an error. 
Michael,
I've been experiencing the exact same problem that you encountered: cfquery 
produces data, but the flash grid produced by cfform contains no data.  I 
checked the mapping of the CFIDE in the CF administrator and indeed it is 
pointing to the CFusionMX7\wwwroot\CFIDE directory whereas I need it to report 
to the ...Apache2\htdocs\CFIDE directory.  
How does one change the mapping in CFAdministrator?  Can't seem to find a way 
to do that.  Any help at all greatly appreciated.

~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272907
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4