Solved

cfexecute problem

Posted on 2003-12-01
3
1,987 Views
Last Modified: 2013-12-20
hi, can anyone decipher what may be the problem with the error code below?  The problem is coming when trying to call a batch file, but the whole objective is to dynamically zip files while retaining their file structures.  If this is not the right approach, can you please give an example/suggestion of how best to do it?

-tia

: An exception occurred when invoking an external process.  
The cause of this exception was that: java.io.IOException: CreateProcess: 'c:\program files\winzip\wzzip' -rP 'D:\WebSites\IETM_DevSite\tempZips\component_20031201_153721.zip' 'D:\WebSites\IETM_DevSite\data\EA-6B\ICAP III\Controls and Indicat\Aft Advisory Panel\*.*' error=2.  
 
The error occurred in D:\WebSites\IETM_DevSite\dnldComponents\getFile.cfm: line 22
 
20 :       <!--- <cfx_ZipMan action="add" zipfile="#zipFile#" input_files="#lstFiles#"> --->
21 :       <cfexecute name="'c:\program files\winzip\wzzip'"
22 :         arguments="-rP '#zipFile#' 'D:\WebSites\IETM_DevSite\data\EA-6B\ICAP III\Controls and Indicat\Aft Advisory Panel\*.*'" timeOut="10">
23 :       </cfexecute>
24 :       <cfexecute name="D:\WebSites\IETM_DevSite\dnldComponents\execWinZip.bat" ></cfexecute>

 

--------------------------------------------------------------------------------
 
Please try the following:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.

 
Browser   Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
Remote Address   192.168.74.90
Referrer    
Date/Time   01-Dec-03 03:37 PM
 
Stack Trace (click to expand)  
at cfgetFile2ecfm2018900984.runPage(D:\WebSites\IETM_DevSite\dnldComponents\getFile.cfm:22) at cfgetFile2ecfm2018900984.runPage(D:\WebSites\IETM_DevSite\dnldComponents\getFile.cfm:22)


java.io.IOException: CreateProcess: &apos;c:\program files\winzip\wzzip&apos; -rP &apos;D:\WebSites\IETM_DevSite\tempZips\component_20031201_153721.zip&apos; &apos;D:\WebSites\IETM_DevSite\data\EA-6B\ICAP III\Controls and Indicat\Aft Advisory Panel\*.*&apos; error=2
      at java.lang.Win32Process.create(Native Method)
      at java.lang.Win32Process.<init>(Win32Process.java:66)
      at java.lang.Runtime.execInternal(Native Method)
      at java.lang.Runtime.exec(Runtime.java:566)
      at java.lang.Runtime.exec(Runtime.java:428)
      at java.lang.Runtime.exec(Runtime.java:364)
      at java.lang.Runtime.exec(Runtime.java:326)
      at coldfusion.tagext.lang.ExecuteTag.doStartTag(ExecuteTag.java:138)
      at cfgetFile2ecfm2018900984.runPage(D:\WebSites\IETM_DevSite\dnldComponents\getFile.cfm:22)
      at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
      at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
      at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
      at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
      at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
      at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
      at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
      at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
      at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
      at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
      at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
      at coldfusion.CfmServlet.service(CfmServlet.java:105)
      at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
      at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
      at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252)
      at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
      at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
      at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
      at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

 
0
Comment
Question by:liltyga
3 Comments
 
LVL 10

Expert Comment

by:Mause
ID: 9853091
Hi there,

Does your attribute NAME start (and end) width an " and a ' ???? if so remove the ' at the begin and end like this:

<cfexecute name="c:\program files\winzip\wzzip" arguments="-rP '#zipFile#' 'D:\WebSites\IETM_DevSite\data\EA-6B\ICAP III\Controls and Indicat\Aft Advisory Panel\*.*'" timeOut="10">

Mause
0
 
LVL 17

Accepted Solution

by:
anandkp earned 125 total points
ID: 9855861
0
 

Author Comment

by:liltyga
ID: 9858184
Thanks for the post references Anand - since they pointed me in the right direction, I'm accepting your comments as the answer.  The solution I found was to use the ZipFileNew UDF, which is free and can be found here: http://www.cflib.org/udf.cfm?id=744&enable=1  (Thanks to Nathan Dintenfass for the code contribution!)

Later,
liltyga
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Reverse Proxy Server 6 83
How to solve ssl error handshake failure alert on IE 1 206
ColdFusion Rereplace 3 80
Web Site Hosting 10 87
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question