ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 10th, 2005, 02:13 PM
FALCONSEYE FALCONSEYE is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 377 FALCONSEYE Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 16 h 57 m 14 sec
Warnings Level: 15
Number of bans: 1
Reputation Power: 0
Question java.io.IOException

i am using the following

<cfexecute name="...\somthing.exe"></cfexecute>

and getting an error

An exception occurred when invoking an external process.
The cause of this exception was that: java.io.IOException: CreateProcess: \...\something.exe error=3.

ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem.

does anyone have any idea?

Reply With Quote
  #2  
Old May 10th, 2005, 02:17 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,682 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 15 h 25 m 55 sec
Reputation Power: 53
First guess is that either cfexecute is disabled (as it almost always is on shared hosts), or that the account that ColdFusion is running under does not have permission to execute the target file.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old May 10th, 2005, 02:38 PM
FALCONSEYE FALCONSEYE is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 377 FALCONSEYE Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 16 h 57 m 14 sec
Warnings Level: 15
Number of bans: 1
Reputation Power: 0
thanks kiteless,
but how do i make sure that it's not disabled? we use cf mx 6. i went thru cf admin and couldn't find anything. thanks for the help,...

Reply With Quote
  #4  
Old May 10th, 2005, 02:46 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,682 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 15 h 25 m 55 sec
Reputation Power: 53
If you control the server then it is probably not disabled (it is a CF administrator setting). In that case I'd consider the permissions issue.

It could also be related to 6.0. You've probably heard this a million times but it bears repeating: CF 6.0 sucks. It was horrible. It should never have been released. 6.1 is like a whole new product compared to 6.0, there were so many enhancements and bug fixes that it isn't even funny. And the upgrade is FREE. You should consider doing this immediately.

Reply With Quote
  #5  
Old May 10th, 2005, 02:57 PM
FALCONSEYE FALCONSEYE is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 377 FALCONSEYE Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 16 h 57 m 14 sec
Warnings Level: 15
Number of bans: 1
Reputation Power: 0
hmm, i just did a rightclick on the file to see the permissions and it says to everyone. by the way, the CF is 6.1. my mistake...

Reply With Quote
  #6  
Old May 10th, 2005, 03:19 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,682 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 15 h 25 m 55 sec
Reputation Power: 53
Actually I just noticed, this is the problem I think:

<cfexecute name="...\somthing.exe"></cfexecute>

You can't do "..\something.exe"....cfexecute runs at the command line so if you need to move to a specific directory, run a batch file with commands like

cd c:\
cd temp
something.exe

in other words you have to run it exactly as if you were at the command line.

Reply With Quote
  #7  
Old May 10th, 2005, 04:53 PM
FALCONSEYE FALCONSEYE is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 377 FALCONSEYE Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 16 h 57 m 14 sec
Warnings Level: 15
Number of bans: 1
Reputation Power: 0
o crappy. i just did pcanywhere and got it 'partially' work.
my next question is how to invoke an application.
i used <cfexecute name="...\something.exe"></cfexecute>
what i expected is to launch an application. but it didn't happen. just like you go C:\winnt\system32\ and click on calc it will launch the calculator application. is there a way to accomplish this?

Reply With Quote
  #8  
Old May 10th, 2005, 06:10 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,682 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 15 h 25 m 55 sec
Reputation Power: 53
Well first, what good would that do, it would be running on the server not on the client. But second, I believe cfexecute just kicks off processes and batch files, I don't think it will actually run applications on the server.

In other words, if you are trying to run an application on the CLIENT'S computer, no, there is no way to do this unless you go to ActiveX controls or Java applets.

Last edited by kiteless : May 10th, 2005 at 06:23 PM.

Reply With Quote
  #9  
Old May 11th, 2005, 09:04 AM
Bastion Bastion is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 181 Bastion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 4 h 25 m 11 sec
Reputation Power: 5
According to my ColdFusion book, "cfexecute enables you to execute processes on the ColdFusion server machine." The example has name="c:\utility\program.exe"

I've used this command once to run an exe file that unencoded a key into a game score.

Reply With Quote
  #10  
Old May 11th, 2005, 09:10 AM
FALCONSEYE FALCONSEYE is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 377 FALCONSEYE Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 16 h 57 m 14 sec
Warnings Level: 15
Number of bans: 1
Reputation Power: 0
this will be for internal use only. there is an application, a web archiving tool, that will be used by the QA. I thought i could put the application on the serverA and every QA member would use a cf page to launch the application. so, i have to write a java applet?

Reply With Quote
  #11  
Old May 11th, 2005, 09:40 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,682 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 15 h 25 m 55 sec
Reputation Power: 53
I'm still not clear on what you actually want. Do you want this QA appliction to run on the USER'S computer, or on the ColdFusion server?

If you want it to run on the user's computer there is no way to do this other than ActiveX or Java (anything else would be a gigantic security vulnerability).

Reply With Quote
  #12  
Old May 11th, 2005, 10:18 AM
FALCONSEYE FALCONSEYE is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 377 FALCONSEYE Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 16 h 57 m 14 sec
Warnings Level: 15
Number of bans: 1
Reputation Power: 0
thanks Kiteless,
it will be running on the server.

Reply With Quote
  #13  
Old May 11th, 2005, 11:43 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,682 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 15 h 25 m 55 sec
Reputation Power: 53
Then cfexecute would run it (if it can be run from the command line). But in that case, no one else would be able to use it unless they were sitting at the server's console or using remote desktop to the server. And at that point you wouldn't need to run it via CF anyway, the user would just run it the same way they would run any other desktop application.

Has any of this answered your question? If you're still not sure, maybe you could explain further exactly what you're trying to do?

We use cfexecute fairly often to fire off batch files, execute ANT scripts, etc., and it works well for this.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > java.io.IOException


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |