java.io.IOException: CreateProcess: pg\_restore -i -h localhost -p 5432 -U boxline -d openbravo -v -O C:\AppsOpenbravo\backup/DOWNLOAD/TAD.DMP error=2 at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:620) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

openbravo | *anonymous | 1 decade ago
  1. 0

    Show executing post errors in Import order

    openbravo | 1 decade ago | *anonymous
    java.io.IOException: CreateProcess: pg\_restore -i -h localhost -p 5432 -U boxline -d openbravo -v -O C:\AppsOpenbravo\backup/DOWNLOAD/TAD.DMP error=2 at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:620) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  2. 0

    "package javax.xml .rpc does not exist" error when compiling client jar

    objectmix.com | 1 year ago
    java.io.IOException: Compiler failed executable.exec at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Co= mpilerInvoker.java:469) at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInv= oker.java:328) at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInv= oker.java:336) at weblogic.webservice.tools.build.internal.CompilerHelper.com= pileFiles(CompilerHelper.java:80) at weblogic.webservice.tools.build.internal.ClientGenImpl.comp= ileStubs(ClientGenImpl.java:627) at weblogic.webservice.tools.build.internal.ClientGenImpl.gene= rateStub(ClientGenImpl.java:572) at weblogic.webservice.tools.build.internal.ClientGenImpl.doCl= ientGenFromEAR(ClientGenImpl.java:521) at weblogic.webservice.tools.build.internal.ClientGenImpl.run(= ClientGenImpl.java:345) at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask= ..generateClient(ServiceGenTask.java:597) at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask= ..execute(ServiceGenTask.java:195) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.= java:275)
  3. 0

    RE: java.io.IOException: CreateProcess ... error=193

    apache.org | 11 months ago
    java.io.IOException: CreateProcess ... error=193 Does anyone have a possible solution to this problem? I've read quite a few postings with this exception but error=2 instead of 193. I'm aware that there have been issues with slashes when using environment variables. I tried forward slashes, back slashes, double or single slashes as environment variables or hard coded strings. Same results. I don't think slashes are the problem. The syntax as outputed by ant runs fine outside of ant. The syntax appears correct. The VSS executable as specified in the build runs fine. The base VSS task "vssget", runs fine as well. My environment is the following: ======================= 1) Windows 2000 2) Ant 1.5.4 3) Sun jdk 1.3.1_09 4) A Custom VSS Task implementation (code pasted below) 5) Build target using custom task (build code pasted below) Java Source: ========== package org.twia.util; import org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET; import org.apache.tools.ant.types.Commandline; import org.apache.tools.ant.BuildException; public class AntVSSExtensions extends MSVSSGET { public static final String FLAG_COMPARE_DATE_TIME = "-GCD"; private boolean compareDateTime = false; /** * Executes the task. * <p> * Builds a command line to execute ss and then calls Exec's run method * to execute the command line. */ public void execute() throws BuildException { System.out.println("AntVSSExtensions.execute() - begin."); Commandline commandLine = new Commandline(); int result = 0; // first off, make sure that we've got a command and a vssdir ... if (getVsspath() == null) { String msg = "vsspath attribute must be set!"; throw new BuildException(msg, location); } // now look for illegal combinations of things ... // build the command line from what we got the format is // ss Get VSS items [-G] [-H] [-I-] [-N] [-O] [-R] [-V] [-W] [-Y] [-?] // as specified in the SS.EXE help commandLine.setExecutable(getSSCommand()); commandLine.createArgument().setValue(COMMAND_GET); // VSS items commandLine.createArgument().setValue(getVsspath()); // -GL getLocalpathCommand(commandLine); // -GCD getCompareDateTimeCommand(commandLine); // -I- or -I-Y or -I-N getAutoresponse(commandLine); // -O- // getQuietCommand(commandLine); // -R getRecursiveCommand(commandLine); // -V getVersionCommand(commandLine); // -W getWritableCommand(commandLine); // -Y getLoginCommand(commandLine); System.out.println("AntVSSExtensions.execute() - just before run()."); try { result = run(commandLine); } catch (BuildException be) { be.printStackTrace(); throw be; } System.out.println("AntVSSExtensions.execute() - run result code = " + result); System.out.println("AntVSSExtensions.execute() - end."); if (result != 0) { String msg = "Failed executing: " + commandLine.toString(); throw new BuildException(msg, location); } } /** * Extract files using a date/time comparison; optional, default false. */ public final void setCompareDateTime(boolean compareDateTime) { this.compareDateTime = compareDateTime; } /** * Make the 'compare date time' command if the attribute was 'true', otherwise an empty string */ public void getCompareDateTimeCommand(Commandline cmd) { if (!compareDateTime) { return; } else { cmd.createArgument().setValue(FLAG_COMPARE_DATE_TIME); } } } Build File Excerpts: =============== <taskdef name="twiavssget" classname="org.twia.util.AntVSSExtensions" classpath="E:/WorkingDocuments/AntVSSExtractExtensions/antVSSExtensions.jar" /> <!-- ===== TARGET: extract ============================================== --> <target name="extract" if="ss.extract.enabled" description="Clean build tree and extract everything from VSS."> <twiavssget localPath="E:/WorkingTBOT/CI" compareDateTime="true" recursive="true" vsspath="/" ssdir="E:/Program Files/Microsoft Visual Studio/VSS/win32" serverPath="//Tomcat/VSS/TBOT/TBOT Development" writable="true"/> </target> Output: =============== E:\WorkingTBOT\DEV>ant extract Buildfile: build.xml extract: AntVSSExtensions.execute() - begin. AntVSSExtensions.execute() - just before run(). file:E:/WorkingTBOT/DEV/build.xml:449: java.io.IOException: CreateProcess: "E:\Program Files\Microsoft Visu al Studio\VSS\win32\ss" Get $/ -GLE:\WorkingTBOT\CI -GCD -I- -R -W error=193 at org.apache.tools.ant.taskdefs.optional.vss.MSVSS.run(MSVSS.java:195) at org.twia.util.AntVSSExtensions.execute(AntVSSExtensions.java:65)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [Ant-user] java.io.IOException: CreateProcess ... error=193 - Grokbase

    grokbase.com | 7 months ago
    java.io.IOException: CreateProcess ... error=193 Does anyone have a possible solution to this problem? I've read quite a few postings with this exception but error=2 instead of 193. I'm aware that there have been issues with slashes when using environment variables. I tried forward slashes, back slashes, double or single slashes as environment variables or hard coded strings. Same results. I don't think slashes are the problem. The syntax as outputed by ant runs fine outside of ant. The syntax appears correct. The VSS executable as specified in the build runs fine. The base VSS task "vssget", runs fine as well. My environment is the following: ======================= 1) Windows 2000 2) Ant 1.5.4 3) Sun jdk 1.3.1_09 4) A Custom VSS Task implementation (code pasted below) 5) Build target using custom task (build code pasted below) Java Source: ========== package org.twia.util; import org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET; import org.apache.tools.ant.types.Commandline; import org.apache.tools.ant.BuildException; public class AntVSSExtensions extends MSVSSGET { public static final String FLAG_COMPARE_DATE_TIME = "-GCD"; private boolean compareDateTime = false; /** * Executes the task. * <p> * Builds a command line to execute ss and then calls Exec's run method * to execute the command line. */ public void execute() throws BuildException { System.out.println("AntVSSExtensions.execute() - begin."); Commandline commandLine = new Commandline(); int result = 0; // first off, make sure that we've got a command and a vssdir ... if (getVsspath() == null) { String msg = "vsspath attribute must be set!"; throw new BuildException(msg, location); } // now look for illegal combinations of things ... // build the command line from what we got the format is // ss Get VSS items [-G] [-H] [-I-] [-N] [-O] [-R] [-V] [-W] [-Y] [-?] // as specified in the SS.EXE help commandLine.setExecutable(getSSCommand()); commandLine.createArgument().setValue(COMMAND_GET); // VSS items commandLine.createArgument().setValue(getVsspath()); // -GL getLocalpathCommand(commandLine); // -GCD getCompareDateTimeCommand(commandLine); // -I- or -I-Y or -I-N getAutoresponse(commandLine); // -O- // getQuietCommand(commandLine); // -R getRecursiveCommand(commandLine); // -V getVersionCommand(commandLine); // -W getWritableCommand(commandLine); // -Y getLoginCommand(commandLine); System.out.println("AntVSSExtensions.execute() - just before run()."); try { result = run(commandLine); } catch (BuildException be) { be.printStackTrace(); throw be; } System.out.println("AntVSSExtensions.execute() - run result code = " + result); System.out.println("AntVSSExtensions.execute() - end."); if (result != 0) { String msg = "Failed executing: " + commandLine.toString(); throw new BuildException(msg, location); } } /** * Extract files using a date/time comparison; optional, default false. */ public final void setCompareDateTime(boolean compareDateTime) { this.compareDateTime = compareDateTime; } /** * Make the 'compare date time' command if the attribute was 'true', otherwise an empty string */ public void getCompareDateTimeCommand(Commandline cmd) { if (!compareDateTime) { return; } else { cmd.createArgument().setValue(FLAG_COMPARE_DATE_TIME); } } } Build File Excerpts: =============== <taskdef name="twiavssget" classname="org.twia.util.AntVSSExtensions" classpath="E:/WorkingDocuments/AntVSSExtractExtensions/antVSSExtensions.jar" /> <!-- ===== TARGET: extract ============================================== --> <target name="extract" if="ss.extract.enabled" description="Clean build tree and extract everything from VSS."> <twiavssget localPath="E:/WorkingTBOT/CI" compareDateTime="true" recursive="true" vsspath="/" ssdir="E:/Program Files/Microsoft Visual Studio/VSS/win32" serverPath="//Tomcat/VSS/TBOT/TBOT Development" writable="true"/> </target> Output: =============== E:\WorkingTBOT\DEV>ant extract Buildfile: build.xml extract: AntVSSExtensions.execute() - begin. AntVSSExtensions.execute() - just before run(). file:E:/WorkingTBOT/DEV/build.xml:449: java.io.IOException: CreateProcess: "E:\Program Files\Microsoft Visu al Studio\VSS\win32\ss" Get $/ -GLE:\WorkingTBOT\CI -GCD -I- -R -W error=193 at org.apache.tools.ant.taskdefs.optional.vss.MSVSS.run(MSVSS.java:195) at org.twia.util.AntVSSExtensions.execute(AntVSSExtensions.java:65)
  6. 0

    RE: Problems upgrading from 1.2.x to 2.0.8

    ibatis-user-java | 1 decade ago | McCarrier, Alex
    java.io.IOException: Could not find resource com/ibatis/db/sqlmap/upgrade/SqlMap .xsl at com.ibatis.common.resources.Resources.getResourceAsStream(Resources.j ava:101) at com.ibatis.common.resources.Resources.getResourceAsStream(Resources.j ava:86) at com.ibatis.common.resources.Resources.getResourceAsReader(Resources.j ava:150) at com.ibatis.db.sqlmap.upgrade.SqlMapXmlConverter.convertXml(SqlMapXmlC onverter.java:43) at com.ibatis.db.sqlmap.upgrade.SqlMapXmlConverter.convertFile(SqlMapXml Converter.java:71) at com.ibatis.db.sqlmap.upgrade.ConvertTask.doFileOperations(ConvertTask .java:75)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      CreateProcess: pg\_restore -i -h localhost -p 5432 -U boxline -d openbravo -v -O C:\AppsOpenbravo\backup/DOWNLOAD/TAD.DMP error=2 at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:620) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

      at org.apache.tools.ant.Task.perform()
    2. Ant
      Target.performTasks
      1. org.apache.tools.ant.Task.perform(Task.java:364)
      2. org.apache.tools.ant.Target.execute(Target.java:341)
      3. org.apache.tools.ant.Target.performTasks(Target.java:369)
      3 frames