Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Failed to load the widgetset error

Bingu Shim
1 decade ago Jul 17, 2011 8:25am
Charles Anthony
1 decade ago Jul 18, 2011 6:34am
Bingu Shim
1 decade ago Jul 20, 2011 3:59am
Henri Sara
1 decade ago Jul 20, 2011 5:51am
1 decade ago May 24, 2012 7:52am
Henri Sara
1 decade ago May 24, 2012 8:05am

Umut ISIK: I created a hello world vaadin project name Test1. When i tried compile vaadin widgets i have same problem. I tried to change web.xml to

    <servlet-name>Vaadin_test Application</servlet-name>

This setting in web.xml only affects execution, not GWT compilation.

If you map /VAADIN/*, you also need to map your application to the same servlet. Alternatively, you can just map /* to your servlet - that way, also requests to /VAADIN/* go to your servlet.

[ERROR] Unexpected internal compiler error
java.lang.IllegalArgumentException: No enum constant com.google.gwt.dev.js.JsStackEmulator.StackMode.NATİVE
	at java.lang.Enum.valueOf(Enum.java:236)
	at com.google.gwt.dev.js.JsStackEmulator$StackMode.valueOf(JsStackEmulator.java:801)
	at com.google.gwt.dev.js.JsStackEmulator.getStackMode(JsStackEmulator.java:824)
	at com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST.<init>(GenerateJavaScriptAST.java:2097)
	at com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST.exec(GenerateJavaScriptAST.java:2000)
	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:310)
	at com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(UnifiedAst.java:136)
	at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:192)
	at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:49)
	at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:73)
	at java.lang.Thread.run(Thread.java:722)
      [ERROR] Unrecoverable exception, shutting down


Ubuntu 12.04 LTS
JDK 1.7.0
Eclipse Indigo
Vaadin Plug-in 2.0.1

I don't recall having seen this before. I would recommend checking if using Oracle JDK 1.6 for widgetset compilation helps. Widgetsets are compiled by the plug-in with the project or workspace JDK as long as it meets minimum requirements for the GWT version used, so you can change the project JDK to point to a JDK 1.6 installation and retry compiling the widgetset.

1 decade ago May 24, 2012 9:10am