Go Back   SmartClient Forums > Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 19th Apr 2012, 20:35
vijragha vijragha is offline
Registered Developer
 
Join Date: Apr 2012
Posts: 21
Default 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
Reply With Quote
  #2  
Old 19th Apr 2012, 22:07
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 38,393
Default

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.
Reply With Quote
  #3  
Old 20th Apr 2012, 01:39
vijragha vijragha is offline
Registered Developer
 
Join Date: Apr 2012
Posts: 21
Default

Hi, It is not related to batch file. GWt unable to compile the Runtime.getRuntime().exec(command);
Reply With Quote
  #4  
Old 20th Apr 2012, 05:07
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 38,393
Default

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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
FileDownload question acarur01 Technical Q&A 12 18th Nov 2013 03:32
Visual Builder hanging p27939 Installation 11 7th Mar 2012 11:08
Launching Visual Builder in samples RevMen Smart GWT Technical Q&A 10 9th Sep 2011 10:05
The Smart GWT FAQ Isomorphic Smart GWT Technical Q&A 0 27th Oct 2009 17:41
Batch File Uploader hangs IE7 brett_baudin Smart GWT Technical Q&A 2 14th Aug 2009 03:47

© 2010,2011 Isomorphic Software. All Rights Reserved