IOException: CreateProcess: dir error=2

Hi
I want to run a simple shell command "dir" on cygwin thru java class. My code is as follows :-
public class CygJava {
public static void main (String args[]){
File workDir = new File("c:/cygwin/bin");
try {
Runtime systemShell = Runtime.getRuntime();
Process shellOutput = systemShell.exec("dir", null, workDir);
InputStreamReader isr = new InputStreamReader(shellOutput.getInputStream());
BufferedReader br = new BufferedReader (isr);
String line = null;
System.out.println("<OUTPUT>");
while((line = br.readLine()) != null ) {
System.out.println(line);
System.out.println("</OUTPUT>");
int exitVal = shellOutput.waitFor();
System.out.println("Process Exit Value : "+exitVal);
}catch (IOException ioe) {
System.err.println(ioe);
} catch (Throwable t) {
t.printStackTrace();
On running this program , i get the error as :-
java.io.IOException: CreateProcess: dir error=2
Could anyone tell me as to why is this error occuring ?
Thanks

I think this might be useful:
http://forum.java.sun.com/thread.jspa?threadID=416069&tstart=120
If not I would suggest searching the forum for others

Similar Messages

  • IOException--CreateProcess!!!!

    Hi every body.
    Does someone know the meaning of this error?
    java.io.IOException: CreateProcess: prueba error=2
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:63)
    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 org.apache.jsp.ChangeDirBajaRCXX_jsp._jspService(ChangeDirBaja
    p.java:185)....................................
    It's the result of this code:
    cmd="prueba.bat";
    exec(cmd);
    and the prueba.bat is really simple:
    @echo off
    lejos HelloWorld
    'lejos' is an exe file.
    If i try 'lejos HelloWorld' from the MS-DOS it runs ok.
    Thanks!!

    Hi!
    Hi Stevejluke.
    The file 'prueba.bat' is in the current working directory and in the PATH environmental variable and 'prueba.bat' runs from the command line.
    I'm afraid is something wrong with the Runtime.exec method. In fact in this link:
    http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Process.html
    i've found this:
    "The Runtime.exec methods may not work well for special processes on certain native platforms, such as native windowing processes, daemon processes, Win16/DOS processes on Win32, or shell scripts."
    But i'm using j2sdk1.4.1_01, not 1.2. i don't understand very well this information so i don't know how to resolve the problem.
    Thanks very much!!

  • IOException--CreateProcess HELP!!!

    Hi every body.
    Does someone know the meaning of this error?
    java.io.IOException: CreateProcess: prueba error=2
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:63)
    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 org.apache.jsp.ChangeDirBajaRCXX_jsp._jspService(ChangeDirBaja
    p.java:185)....................................
    It's the result of this code:
    cmd="prueba.bat";
    exec(cmd);
    and the prueba.bat is really simple:
    @echo off
    lejos HelloWorld
    'lejos' is an exe file.
    If i try 'lejos HelloWorld' from the MS-DOS it runs ok.
    Thanks!!

    Hi,
    I'm facing the same problem. The only diference is that I need to execute only 1 command but because I have to execute it in a Network folder (that comes from a database, so it is configurable). I tried to enable the UNC support from the Command Shell of Windows XP but without success.
    Now I'm trying to use the pushd popd commands so that I can execute my command remotely.
    Here is the commands I'm trying to execute (that works with the command):
    pushd \\brserver\transaction && try.bat && popd
    When I execute that in the CMD, it works but with the Runtime.exec, it gives me the IOException error.
    Here is my code:
    String command = "pushd \\brserver\transaction && try.bat && popd";
    Process process - Runtime.getRuntime().exec(command);
    I've also tried that:
    String[] commands = new String[]{"pushd \\brserver\transaction", "try.bat", "popd"};
    Process process - Runtime.getRuntime().exec(commands);
    But without success. If I could only make the UNC works, it would probably resolve my problem.
    Is somebody can help me please?
    Thanks,
    M. Jalbert

  • IOException--CreateProcess--Win32Process!!!!

    Hi every body.
    Does someone know the meaning of this error?
    java.io.IOException: CreateProcess: prueba error=2
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:63)
    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 org.apache.jsp.ChangeDirBajaRCXX_jsp._jspService(ChangeDirBaja
    p.java:185)....................................
    It's the result of this code:
    cmd="prueba.bat";
    exec(cmd);
    and the prueba.bat is really simple:
    @echo off
    lejos HelloWorld
    'lejos' is an exe file.
    If i try 'lejos HelloWorld' from the MS-DOS it runs ok.
    Thanks!!

    I'm getting a simular problem... did you get it resolved. My coworkers are not having this problem, we are using the same JDK, Weblogic Server version, and same code base. Only difference is I just got a laptop which has windows 2000 Pro Service Pack 3 they are on service pack 2...
    Here is the message.
    [java] java.io.IOException: CreateProcess: javac -g -nowarn -classpath C:\f
    mac\dev\res\modeling\shl\ejbcgen;C:\jdk1.3.1_02\jre\lib\rt.jar;C:\jdk1.3.1_02\jr
    e\lib\i18n.jar;C:\jdk1.3.1_02\jre\lib\sunrsasign.jar;C:\jdk1.3.1_02\jre\classes;
    C:\fmac\dev\res\modeling\shl;C:\fmac\dev\res\common\lib\dom.jar;C:\fmac\dev\res\
    common\lib\F1J7Swing.jar;C:\fmac\dev\res\common\lib\jakarta-poi-1.5.1-final-2002
    0615.jar;C:\fmac\dev\res\common\lib\jax-qname.jar;C:\fmac\dev\res\common\lib\jax
    b-api.jar;C:\fmac\dev\res\common\lib\jaxb-libs.jar;C:\fmac\dev\res\common\lib\ja
    xb-ri.jar;C:\fmac\dev\res\common\lib\jaxb-xjc.jar;C:\fmac\dev\res\common\lib\jax
    p-api.jar;C:\fmac\dev\res\common\lib\jconn2.jar;C:\fmac\dev\res\common\lib\junit
    .jar;C:\fmac\dev\res\common\lib\log4j-1.2.3.jar;C:\fmac\dev\res\common\lib\log4j
    -1.2rc1.jar;C:\fmac\dev\res\common\lib\logkit.jar;C:\fmac\dev\res\common\lib\nam
    espace.jar;C:\fmac\dev\res\common\lib\sax.jar;C:\fmac\dev\res\common\lib\struts.
    jar;C:\fmac\dev\res\common\lib\xalan.jar;C:\fmac\dev\res\common\lib\xercesImpl.j
    ar;C:\fmac\dev\reD
    [java] at java.lang.Win32Process.create(Native Method)
    [java] at java.lang.Win32Process.<init>(Win32Process.java:66)
    [java] at java.lang.Runtime.execInternal(Native Method)
    [java] at java.lang.Runtime.exec(Runtime.java:551)
    [java] at java.lang.Runtime.exec(Runtime.java:477)
    [java] at java.lang.Runtime.exec(Runtime.java:443)
    [java] at weblogic.utils.Executable.exec(Executable.java:200)
    [java] at weblogic.utils.Executable.exec(Executable.java:125)
    [java] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
    ilerInvoker.java:545)
    [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
    er.java:372)
    [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
    er.java:363)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:2
    45)
    [java] at weblogic.ejbc20.runBody(ejbc20.java:360)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:79)
    [java] at weblogic.ejbc.main(ejbc.java:21)
    [java] Exec failed .. exiting

  • HELP !...getting ERROR: java.io.IOException: CreateProcess: ... error=3

    I use stand alone "XMLBeans survival kit" ( which I downloaded on 11/1/03 from
    BEA site ). I use its xmlbean.jar and it works fine. I did not use its "scomp"
    utility until today ( I used BEA's on-line compiler and it worked just great ).
    When I tried to use the stand alone "scomp" , I've got into trouble. Here is the
    trace of the error I receive for all schemas including the example schema ( I
    have followed the instructions described in the attached README file for the environment
    configuration) :
    C:\WSAD_Workspaces\dc_xml_beans\xml_to_java\test>scomp -out myeasypo.jar C:\XMLBeanToolkit\xkit\schemas\easypo
    Loading schema file C:\XMLBeanToolkit\xkit\schemas\easypo\easypo.xsd
    Loading config file C:\XMLBeanToolkit\xkit\schemas\easypo\easypo.xsdconfig
    Time to build schema type system: 1.297 seconds
    java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.1_05\..\bin\javac.exe"
    -J-Xmx256M @C:\DOCUME~1\a337335\LOCALS~1\Temp\javac31952 error=3
    null
    java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.1_05\..\bin\javac.exe"
    -J-Xmx256M @C:\DOCUME~1\a337335\LOCALS~1\Temp\javac31952 error=3
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:67)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:491)
    at java.lang.Runtime.exec(Runtime.java:457)
    at com.bea.xbean.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:167)
    at com.bea.xbean.tool.SchemaCodeGenerator.compileTypeSystem(SchemaCodeGenerator.java:178)
    at com.bea.xbean.tool.SchemaCompiler.compileImpl(SchemaCompiler.java:547)
    at com.bea.xbean.tool.SchemaCompiler.main(SchemaCompiler.java:141)
    BUILD FAILED
    Please, help me to find what is wrong here !!!
    Thank you,
    - Michael P.
    [README.txt]

    Sorry, folks, the answer was quite simple: the default scomp script has pointed
    to "wrong" location for java.exe. In particular, the scrip has specified compilation
    command like this:
    java -classpath %cp% com.bea.xbean.tool.SchemaCompiler %*
    while it had to specify path to the java.exe based on JAVA_HOME env. variable
    ( I am saying "had" because README instructions state that the JAVA_HOME has to
    be properly configured ). So, the solution looks like:
    %JAVA_HOME%\bin\java -classpath %cp% com.bea.xbean.tool.SchemaCompiler %*
    - Michael P.
    "Michael P." <[email protected]> wrote:
    >
    >
    >
    I use stand alone "XMLBeans survival kit" ( which I downloaded on 11/1/03
    from
    BEA site ). I use its xmlbean.jar and it works fine. I did not use its
    "scomp"
    utility until today ( I used BEA's on-line compiler and it worked just
    great ).
    When I tried to use the stand alone "scomp" , I've got into trouble.
    Here is the
    trace of the error I receive for all schemas including the example schema
    ( I
    have followed the instructions described in the attached README file
    for the environment
    configuration) :
    C:\WSAD_Workspaces\dc_xml_beans\xml_to_java\test>scomp -out myeasypo.jar
    C:\XMLBeanToolkit\xkit\schemas\easypo
    Loading schema file C:\XMLBeanToolkit\xkit\schemas\easypo\easypo.xsd
    Loading config file C:\XMLBeanToolkit\xkit\schemas\easypo\easypo.xsdconfig
    Time to build schema type system: 1.297 seconds
    java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.1_05\..\bin\javac.exe"
    -J-Xmx256M @C:\DOCUME~1\a337335\LOCALS~1\Temp\javac31952 error=3
    null
    java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.1_05\..\bin\javac.exe"
    -J-Xmx256M @C:\DOCUME~1\a337335\LOCALS~1\Temp\javac31952 error=3
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:67)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:491)
    at java.lang.Runtime.exec(Runtime.java:457)
    at com.bea.xbean.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:167)
    at com.bea.xbean.tool.SchemaCodeGenerator.compileTypeSystem(SchemaCodeGenerator.java:178)
    at com.bea.xbean.tool.SchemaCompiler.compileImpl(SchemaCompiler.java:547)
    at com.bea.xbean.tool.SchemaCompiler.main(SchemaCompiler.java:141)
    BUILD FAILED
    Please, help me to find what is wrong here !!!
    Thank you,
    - Michael P.

  • Java.io.IOException: CreateProcess............

    Hello,
    I got this exception when I ran my build file on Eclipse. If I ran it outside
    Eclipse,
    everything works fine.
    java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.2\..\bin\javac.exe"
    -J-Xmx256M @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\javac53402 error=3
    The error comes from the following place:
    [xmlbean]      at com.bea.xbean.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:167)
    It seems the above method is not getting the correct "java.home", it should get
    jdk/bin/javac.
    Can anyone give a pointer on this?
    thanks,

    Hello,
    I got this exception when I ran my build file on Eclipse. If I ran it outside
    Eclipse,
    everything works fine.
    java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.2\..\bin\javac.exe"
    -J-Xmx256M @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\javac53402 error=3
    The error comes from the following place:
    [xmlbean]      at com.bea.xbean.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:167)
    It seems the above method is not getting the correct "java.home", it should get
    jdk/bin/javac.
    Can anyone give a pointer on this?
    thanks,

  • Build Failed: java.io.IOException: CreateProcess

    Hi,
    Would someone help me on my problem. I had encountered a "java.io.IOException: CreateProcess" when the ant script was about to execute the lines below:
    <java classname="AllTests" fork="true" failonerror="yes">
         <classpath>
              <path refid="all.classpath" />
              <path refid="emma.coverage.classes" />
              <pathelement location="${emma.instr}" />
              <pathelement location="${classes.temp}" />
         </classpath>
         <jvmarg
              value="-Demma.coverage.out.file=${emma.coverage}/coverage.emma" />
         <jvmarg value="-Demma.coverage.out.merge=true" />
    </java>
    The result and the message was stated below.
    BUILD FAILED
    C:\RAD901\build\emma-build.xml:89: java.io.IOException: CreateProcess: "C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v6\java\
    jre\bin\java.exe" -Demma.coverage.out.file=C:\RAD901\build/temp/emma/coverage/coverage.emma -Demma.coverage.out.merge=true -classpat
    h "C:\RAD901\build\libs\XmlWriter.jar;C:\RAD901\build\libs\cactus1-6\aspectjrt-1.1.1.jar;C:\RAD901\build\libs\cactus1-6\cactus-1.6.1
    .jar;C:\RAD901\build\libs\cactus1-6\cactus-ant-1.6.1.modified.jar;C:\RAD901\build\libs\cactus1-6\commons-codec-1.3.jar;C:\RAD901\bui
    ld\libs\cactus1-6\commons-httpclient-3.0.1.jar;C:\RAD901\build\libs\cactus1-6\commons-logging-1.0.3.jar;C:\RAD901\build\libs\cactus1
    -6\httpunit-1.5.4.jar;C:\RAD901\build\libs\cactus1-6\nekohtml-0.7.4.jar;C:\RAD901\build\libs\catalina.jar;C:\RAD901\build\libs\com-d
    arwinsys-util.jar;C:\RAD901\build\libs\commons-pool-1.4.jar;C:\RAD901\build\libs\db2jcc.jar;C:\RAD901\build\libs\db2jcc_license_cu.j
    ar;C:\RAD901\build\libs\emma.jar;C:\RAD901\build\libs\hapi-0.5.1.jar;C:\RAD901\build\libs\jboss-common.jar;C:\RAD901\build\libs\jstl
    -1.0.jar;C:\RAD901\buil
    The result was incomplete. I don't know why, but I would like to know the cause of my exception. I hope somebody could help me.
    Thank you so much in advance.

    Hello all,
    I'm having almost the same issue related to error message when I hit a button on my manufacturing software.
    *"ScriptException: Error in exec: java.io.IOException: CreateProcess*
    *exec(C:\\progra~1\\intern~1\\iexplore.exe http://cbweb4:81/barcode/CMbombyorder.asp\u003FR2=P&T2=12875424-P")*
    This is when I hit a button that works for us to show this webpage I wrote previously. Last week we didnt have this issue, this just started this morning and I dont know what do to, it shows something about JAVA, that's why I'm asking to you guys, I dont know if you could please enlight me a little bit.
    Thanks in advance.

  • Java.security.InvalidKeyException IOException  algid parse error

    Hi
    i am trying to encrypt message using private key (RSA), when i try to get the private key, for the given key spec, I get error (java.security.InvalidKeyException: IOException : algid parse error, not a sequence
    below is he code snippet, error occurs at line no 4
    KeyFactory keyFactory;
    keyFactory = KeyFactory.getInstance(RSA);
    PKCS8EncodedKeySpec privSpec = new PKCS8EncodedKeySpec(encryptionKeyBytes);
    privKey = (RSAPrivateKey) keyFactory.generatePrivate(privSpec);
    cf = Cipher.getInstance(RSA);
    cf.init(Cipher.ENCRYPT_MODE, privKey);
    let me know if i am missing something, the key is provide by 3rd party,
    Thanks in advance

    Hi,
    glennlasrado wrote:
    Its a valid private key, the same key is used by PHP client and it works,This may be due to PHP handling different key formats for you where your Java code is trying to decode a specific key format. You should try decoding the DER encoded key to see what format it is in.
    Here is an example CRT private key from Java. You could pass this through a DER dump tool to see the tags if you are not familiar with DER encoding.
    <pre>
    30 820155
    02 01 00
    30 0D
    06 09 2A864886F70D010101
    05 00
    04 82013F
    30 82013B
    02 01 00
    02 41 00917ACA34E71863DDD2A6E9FF52850D88EB2EFF7BA936FF079ECBA0576B412388D12E76C31C09C136A041A7145043470606B7E4CC045BD343739181E1C380DB81
    02 03 010001
    02 40 7EFFEE9E1850167E8372EB3BD55209EAC945120B66417889B27A98D337F2798D9118564F1B4DB704A0BB2B589F8491D3B4AEA74512031AAEFB3BAB34C5AA0341
    02 21 00F2B6B08C77C9100C914BD43E71D514CE52DC9CAF431C679D4274C58E2B0D6205
    02 21 0099717E9F6020C0428FF8F002BA29BF339C4AB2F777860FE92D40933ADFBEE04D
    02 21 00CF2088D9D6FF86EAB2B3FB94AEA020F9524D62894EC456C82586717139DC59E1
    02 20 60E97DBFCB46E427262763EF5504E8EDFFD86E103E3D3DEF57D56127DE090041
    02 21 008AEC6D299EAAF5378EEFAAF0043093A47CC0EE336745033225E071EE2393F172
    </pre>
    Your key file may look like this (the inner sequence of the above):
    <pre>
    30 82013B
    02 01 00
    02 41 00917ACA34E71863DDD2A6E9FF52850D88EB2EFF7BA936FF079ECBA0576B412388D12E76C31C09C136A041A7145043470606B7E4CC045BD343739181E1C380DB81
    02 03 010001
    02 40 7EFFEE9E1850167E8372EB3BD55209EAC945120B66417889B27A98D337F2798D9118564F1B4DB704A0BB2B589F8491D3B4AEA74512031AAEFB3BAB34C5AA0341
    02 21 00F2B6B08C77C9100C914BD43E71D514CE52DC9CAF431C679D4274C58E2B0D6205
    02 21 0099717E9F6020C0428FF8F002BA29BF339C4AB2F777860FE92D40933ADFBEE04D
    02 21 00CF2088D9D6FF86EAB2B3FB94AEA020F9524D62894EC456C82586717139DC59E1
    02 20 60E97DBFCB46E427262763EF5504E8EDFFD86E103E3D3DEF57D56127DE090041
    02 21 008AEC6D299EAAF5378EEFAAF0043093A47CC0EE336745033225E071EE2393F172
    </pre>
    These are just the Hex string representations of the key formatted for your readability. There are several Eclipse plugins that can help you view DER encoded streams.
    Cheers,
    Shane
    Edited by: safarmer on Oct 11, 2010 4:55 PM

  • Java.io.IOException: JDT compilation error!

    Dear All,
    I am trying to deploy my ejb 3.0 jar application into Weblogic 10.3 server. I getting the following exception.
    An error occurred during activation of changes, please see the log for details.
    Exception preparing module: EJBModule(JDOL_DOLServerAdmin) Unable to deploy EJB: JDOL_DOLServerAdmin.jar from JDOL_DOLServerAdmin.jar: There are 1 nested errors: java.io.IOException: JDT compilation error! at
    weblogic.ejb.container.ejbc.CompilerForJDT.compile(CompilerForJDT.java:66) at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:357) at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:552) at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:519) at weblogic.ejb.container.deployer.EJBDeployer.runEJBC(EJBDeployer.java:393) at weblogic.ejb.container.deployer.EJBDeployer.compileJar(EJBDeployer.java:715) at weblogic.ejb.container.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:618) at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1154) at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:425) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:16) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    JDT compilation error!
    My working environment :
    Eclipse with Weblogic server 10.3 / XP
    Please help me to solve these issue.
    regards
    Muruganandam.n

    Maybe your EJB have static methods. Remove the 'static' modifier and retry.

  • Java.io.IOException: Broken pipe error in R12 oacore log

    All,
    Very frequently my R12 login page is going to blank screen at the same time oacore application log has below,
    20:02:27.606 html: Servlet error
    java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:41)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
    at sun.nio.ch.IOUtil.write(IOUtil.java:75)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
    at java.nio.channels.Channels.write(Channels.java:71)
    at java.nio.channels.Channels.access$000(Channels.java:58)
    at java.nio.channels.Channels$1.write(Channels.java:145)
    at com.evermind.server.http.AJPOutputStream.endRequest(AJPOutputStream.java:117)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:317)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:735)
    Application - 12.1.3
    DB - 11.2.0.3
    OS - AIX 6.1
    Has anyone faced this before ? Any note-id/suggestions pls ?

    Hi;
    Very frequently my R12 login page is going to blank screen at the same time oacore application log has below,
    20:02:27.606 html: Servlet error
    java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcher.write0(Native Method)Please review:
         How to resolve Broken Pipe errors in E-Business Suite R12 ? [ID 1480156.1]
    Regard
    Helios

  • What is "Launcher Error: startup dir error - ]:- No such file or directory"

                       I have the latsest version up for my UNIX Tidal Agent....

    Assuming this is a job definition issue
    (usually error on launch = issue with command line)
    your job definition must have an illegal character or non-existant path in the "working dir" on the Program tab
    Does the command works from the actual agent.?

  • IOException Throw/Catch error. Makes no sense.

    This is the error I'm getting:
    unreported exception java.io.IOException; must be caught or declared to be thrown
    The problem is, it IS being caught AND declared to be thrown by the class using it.
    Here's my Main class:
    package Main;
    import java.net.*;
    import java.io.*;
    public class Main {
        static String GameName = "[gamename]";
        static Integer Port = 1234;
        public static void main(String[] args) {
            // Non-Static Vars
            String PrintMsg;      
            PrintMsg = "Welcome to the "+GameName+" server application.\n";
            System.out.println(PrintMsg);
            Server serv = new Server(Port);
            serv.Init();
    }The line displaying the error is the "serv.Init();" line.
    Here's my Server class:
    package Main;
    import java.net.*;
    import java.io.*;
    public class Server {
        private String PrintMsg;
        private Integer Port;
        Server(int Port) {
            System.out.println("Server class created.\n");
            this.Port = Port;
        public void Init() throws IOException {
            ServerSocket serverSocket = null;
            // Create new socket on port 1234
            try {
                serverSocket = new ServerSocket(Port);
            } catch (IOException e) {
                System.err.println("Could not create socket.");
                System.exit(1);
            PrintMsg = "Socket created on port "+Port+".\nListening...";
            System.out.println(PrintMsg);
            Socket clientSocket = null;
            try {
                clientSocket = serverSocket.accept();
            } catch (IOException e) {
                System.err.println("Accept failed.");
                System.exit(1);
            PrintMsg = "Client accepted.";
            System.out.println(PrintMsg);
            PrintWriter out = new PrintWriter(clientSocket.getOutputStream(), true);
            BufferedReader in = new BufferedReader(
                        new InputStreamReader(
                        clientSocket.getInputStream()));
            String inputLine, outputLine;
            Protocols.Login kkp = new Protocols.Login();
            outputLine = kkp.processInput(null);
            out.println(outputLine);
            while ((inputLine = in.readLine()) != null) {
                 outputLine = kkp.processInput(inputLine);
                 out.println(outputLine);
                 if (outputLine.equals("Bye."))
                    break;
            out.close();
            in.close();
            clientSocket.close();
            serverSocket.close();
    }It is indeed strange because it's based on a tutorial from Sun. This is my first time programming in Java, but I have a strong C++ background.
    Any idea what's going on? This error is not displayed when I try and build, only in the code editor. When I try and run the application, it freezes.

    For your Server class Init() method, it declares to throw IOException.
    So in your Main class, you should have a try catch block to wrap serv.Init();
    i.e.
    Server serv = new Server(Port);
            try {
                serv.Init()
            } catch (IOException e) {
                // do some exception handling here
            }

  • 'OS X needs to repair...' - Creative Cloud dir error

    I have recently updated to Mavericks (dreading the response now!) and my MacPro is now in a constant cycle of error messages stating:
    'OS X needs to repair your library to run applications. Type in password to allow this,'
    - which I do and nothing happens.
    I also have an error:
    'Error starting Creative Cloud
    cookies dir: cannot make folder /cookies: Permission denied (error 13)'
    Please can someone advise. And of course, it's ridiculously urgent.

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click anywhere in the following line on this page to select it:
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password dialog will open. You’re not going to reset a password.
    In the dialog, select the startup volume ("Macintosh HD," unless you gave it a different name) if it's not already selected.
    Select your username from the menu labeled Select the user account if it's not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Java.io.ioexception :Symbian OS error=-5105

    Hello friends...
    I encountered above error when i run my application on mobile device. I develop program that connect to remote server. When i run program it takes lots of time to connect and then Symbian OS Error -5105(about route not available) is occured. Any one can tell me,what should i do to solve this probelm.
    Thanks in advance.

    There is no need to double post!
    http://forum.java.sun.com/thread.jspa?threadID=704340&messageID=4083594#4083594
    te means (and you'd know if it you would have searched with google):
    -5105      IPv6: No route available
    So apparently you are using IPv6 and it can't find a route to the host you are connecting to.

  • Error in creating a process using runtime class - please help

    Hi,
    I am experimenting with the following piece of code. I tried to run it in one windows machine and it works fine. But i tried to run it in a different windows machine i get error in creating a process. The error is attached below the code. I don't understand why i couldn't create a process with the 'exec' command in the second machine. Can anyone please help?
    CODE:
    import java.io.*;
    class test{
    public static void main(String[] args){
    try{
    Runtime r = Runtime.getRuntime();
         Process p = null;
         p= r.exec("dir");
         BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
         System.out.println(br.readLine());
    catch(Exception e){e.printStackTrace();}
    ERROR (when run in the dos prompt):
    java.io.IOException: CreateProcess: dir error=2
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:63)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:550)
    at java.lang.Runtime.exec(Runtime.java:416)
    at java.lang.Runtime.exec(Runtime.java:358)
    at java.lang.Runtime.exec(Runtime.java:322)
    at test.main(test.java:16)
    thanks,
    Divya

    As much as I understand from the readings in the forums, Runtime.exec can only run commands that are in files, not native commands.
    Hmm how do I explain that again?
    Here:
    Assuming a command is an executable program
    Under the Windows operating system, many new programmers stumble upon Runtime.exec() when trying to use it for nonexecutable commands like dir and copy. Subsequently, they run into Runtime.exec()'s third pitfall. Listing 4.4 demonstrates exactly that:
    Listing 4.4 BadExecWinDir.java
    import java.util.*;
    import java.io.*;
    public class BadExecWinDir
    public static void main(String args[])
    try
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec("dir");
    InputStream stdin = proc.getInputStream();
    InputStreamReader isr = new InputStreamReader(stdin);
    BufferedReader br = new BufferedReader(isr);
    String line = null;
    System.out.println("<OUTPUT>");
    while ( (line = br.readLine()) != null)
    System.out.println(line);
    System.out.println("</OUTPUT>");
    int exitVal = proc.waitFor();
    System.out.println("Process exitValue: " + exitVal);
    } catch (Throwable t)
    t.printStackTrace();
    A run of BadExecWinDir produces:
    E:\classes\com\javaworld\jpitfalls\article2>java BadExecWinDir
    java.io.IOException: CreateProcess: dir error=2
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Unknown Source)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at BadExecWinDir.main(BadExecWinDir.java:12)
    As stated earlier, the error value of 2 means "file not found," which, in this case, means that the executable named dir.exe could not be found. That's because the directory command is part of the Windows command interpreter and not a separate executable. To run the Windows command interpreter, execute either command.com or cmd.exe, depending on the Windows operating system you use. Listing 4.5 runs a copy of the Windows command interpreter and then executes the user-supplied command (e.g., dir).
    Taken from:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

Maybe you are looking for

  • Purchase Order Change (ME22N)

    Hi Experts, I am facing a problem. Someone has blocked for GR and delivery completed one PO. But the problem is that three MIGO are still pending for MIRO against that PO. When I am unblocking the PO line the message comes "*Quantity delivered differ

  • How do i change the email dates to UK style

    I have my emails coming in with American style dates - how can I change to UK style ie change 2/6/08 to 6/2/08

  • Changing public instance attribute

    Hi all, i'm a newbie in programming OO. So i have a little Problem with my Coding. i have to change a value vom a structure. It an public instance attribute from the superclass. So how can i change it? coding it like this: go_busobj_created-ms_detail

  • Transaction cache VS Session cache

    Hi, Some one please help me to understand the concepts of ttransaction cache VS Session cache. In the user guide its given that For AM : Any data stored on the transaction is accessible to all pages that share the same root application module instanc

  • Difference b/t BI APPS 7.9.6.3 and OBIA 11.1.1.7.1

    Could you explain me the difference b/t BI APPS 7.9.6.3 and OBIA 11.1.1.7.1, is both are same or different?