|
#1
|
|||
|
|||
|
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.ja va:139) [java] at com.google.gwt.dev.jjs.impl.TypeMap.internalGet(Ty peMap.java:242) [java] at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.ja va:137) [java] at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.ja va:70) [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaAS TGenerationVisitor.processExpression(GenerateJavaA ST.java:1175) [java] at sun.reflect.GeneratedMethodAccessor16.invoke(Unkno wn Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source) [java] at java.lang.reflect.Method.invoke(Unknown Source) [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaAS TGenerationVisitor.dispatch(GenerateJavaAST.java:5 91) [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaAS TGenerationVisitor.dispProcessExpression(GenerateJ avaAST.java:618) [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaAS TGenerationVisitor.dispProcessStatement(GenerateJa vaAST.java:648) [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaAS TGenerationVisitor.processStatements(GenerateJavaA ST.java:1901) [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaAS TGenerationVisitor.processMethod(GenerateJavaAST.j ava:1561) [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaAS TGenerationVisitor.processType(GenerateJavaAST.jav a:510) [java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST.exec(G enerateJavaAST.java:3100) [java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.pr ecompile(JavaToJavaScriptCompiler.java:568) [java] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompi le(JavaScriptCompiler.java:35) [java] at com.google.gwt.dev.Precompile.precompile(Precompil e.java:538) [java] at com.google.gwt.dev.Precompile.precompile(Precompil e.java:492) [java] at com.google.gwt.dev.Precompile.precompile(Precompil e.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:15 9) [java] at com.google.gwt.dev.CompileTaskRunner.doRun(Compile TaskRunner.java:87) [java] at com.google.gwt.dev.CompileTaskRunner.runWithApprop riateLogger(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.BinaryTyp eBinding [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. |
|
#3
|
|||
|
|||
|
Hi, It is not related to batch file. GWt unable to compile the Runtime.getRuntime().exec(command);
|
|
#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.
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 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 |
| FileDownload question | acarur01 | Technical Q&A | 11 | 18th Mar 2010 13:33 |
| 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 |