Solved

cfexecute problem

Posted on 2003-12-01
3
1,994 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SCCM vs Windows server 5 90
Problem to go to page 12 115
CFFILE upload help 98 208
Nameserver and MX Record 2 84
What You Need to Know when Searching for a Webhost Provider
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

739 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