Solved

cfexecute problem

Posted on 2003-12-01
3
1,982 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
Comment Utility
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
Comment Utility
0
 

Author Comment

by:liltyga
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

772 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now