Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Run the Batch file

    Hi, I am trying to run .bat file using Runtime.getRuntime().exec(command);
    If I run the application in my local mode, I can able to run.
    But If I try to build the war I am getting the compilation error. Please see the error below:


    [ERROR] An internal compiler exception occurred
    [java] com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode
    [java] at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:139)
    [java] at com.google.gwt.dev.jjs.impl.TypeMap.internalGet(TypeMap.java:242)
    [java] at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:137)
    [java] at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:70)
    [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processExpression(GenerateJavaAST.java:1175)
    [java] at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [java] at java.lang.reflect.Method.invoke(Unknown Source)
    [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:591)
    [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessExpression(GenerateJavaAST.java:618)
    [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessStatement(GenerateJavaAST.java:648)
    [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processStatements(GenerateJavaAST.java:1901)
    [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processMethod(GenerateJavaAST.java:1561)
    [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processType(GenerateJavaAST.java:510)
    [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST.exec(GenerateJavaAST.java:3100)
    [java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:568)
    [java] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35)
    [java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:538)
    [java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:492)
    [java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:405)
    [java] at com.google.gwt.dev.Compiler.run(Compiler.java:215)
    [java] at com.google.gwt.dev.Compiler.run(Compiler.java:187)
    [java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
    [java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
    [java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
    [java] at com.google.gwt.dev.Compiler.main(Compiler.java:166)
    [java] [ERROR] <no source info>: public class gwt.RunBatch
    [java] extends java.lang.Object
    [java] /* methods */
    [java] [unresolved] public void <init>()
    [java] public static void runBatch(java.lang.String, java.lang.String, java.lang.String, java.lang.String) throws java.lang.Exception
    [java] org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
    [java] [ERROR] at PlatoBFrame.java(210): RunBatch.runBatch(moduleParam, userID, zeroOut, batchID)
    [java] org.eclipse.jdt.internal.compiler.ast.MessageSend
    [java] [ERROR] at PlatoBFrame.java(192): private void runBatch(String zeroOut, String batchID);
    [java] com.google.gwt.dev.jjs.ast.JMethod
    [java] [ERROR] at PlatoBFrame.java(59): class PlatoBFrame extends NDataComponent
    [java] com.google.gwt.dev.jjs.ast.JClassType

    #2
    Hello vigragha,

    We have no idea what's in this batch file. You will need to troublehsoot it on your own. Please let us know if you believe you have a problem that is related to SmartGWT.

    Comment


      #3
      Hi, It is not related to batch file. GWt unable to compile the Runtime.getRuntime().exec(command);

      Comment


        #4
        If this is client-side code, GWT compiles is to JavaScript. JavaScript is not allowed to execute batch files on user's machine because this would be a security problem.

        Comment

        Working...
        X