Note that there are some explanatory texts on larger screens.

plurals
  1. POGWT problem, GWT.create(SomeClass.class) throw exception
    primarykey
    data
    text
    <p>i have a gwt project and using method GWT.create(SomeClass.class) throw exception. The exception is :</p> <pre><code>Loading module: Webcharge Top URL: http://127.0.0.1:8888/Webcharge.html?gwt.codesvr=127.0.0.1:9997 User agent: Chrome Remote host: wsta1:39330 Tab key: Session key: v2aC'2^b3!lQgZS6 DEBUG: Validating newly compiled units. ERROR: Errors in 'jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/EditorDriver.java'. ERROR: Line 97: No source code is available for type javax.validation.ConstraintViolation&lt;T&gt;; did you forget to inherit a required module?. ERROR: Errors in 'jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'. ERROR: Line 67: No source code is available for type javax.validation.ConstraintViolation&lt;T&gt;; did you forget to inherit a required module?. ERROR: Errors in 'jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'. ERROR: Line 40: No source code is available for type javax.validation.ConstraintViolation&lt;T&gt;; did you forget to inherit a required module?. ERROR: Errors in 'jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/testing/MockSimpleBeanEditorDriver.java'. ERROR: Line 108: No source code is available for type javax.validation.ConstraintViolation&lt;T&gt;; did you forget to inherit a required module?. ERROR: Errors in 'file:/home/devel/webcharge/webapp-gwt/src/gmgsys/com/webcharge/client/DataSource.java'. ERROR: Line 15: No source code is available for type gmgsys.com.webcharge.model.MyUser; did you forget to inherit a required module?. ERROR: Errors in 'file:/home/devel/webcharge/webapp-gwt/src/gmgsys/com/webcharge/client/MainPanel.java'. ERROR: Line 124: No source code is available for type gmgsys.com.webcharge.model.MyUser; did you forget to inherit a required module?. ERROR: Errors in 'file:/home/devel/webcharge/webapp-gwt/src/gmgsys/com/webcharge/client/MyTable.java'. ERROR: Errors in 'file:/home/devel/webcharge/webapp-gwt/src/gmgsys/com/webcharge/client/WebchargeService.java'. ERROR: Errors in 'file:/home/devel/webcharge/webapp-gwt/src/gmgsys/com/webcharge/client/WebchargeServiceAsync.java'. ERROR: Line 46: No source code is available for type gmgsys.com.webcharge.model.MyUser; did you forget to inherit a required module?. ERROR: Line 13: No source code is available for type gmgsys.com.webcharge.model.MyUser; did you forget to inherit a required module?. ERROR: Errors in 'jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/Configuration.java'. ERROR: Line 12: No source code is available for type gmgsys.com.webcharge.model.MyUser; did you forget to inherit a required module?. ERROR: Errors in 'jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar!/javax/validation/ConstraintViolationException_CustomFieldSerializer.java'. ERROR: Errors in 'jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/MessageInterpolator.java'. ERROR: Line 93: No source code is available for type javax.validation.TraversableResolver; did you forget to inherit a required module?. ERROR: Line 105: No source code is available for type javax.validation.ConstraintValidatorFactory; did you forget to inherit a required module?. ERROR: Line 202: No source code is available for type javax.validation.ValidatorFactory; did you forget to inherit a required module?. ERROR: Errors in 'jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/constraints/Pattern.java'. ERROR: Line 30: No source code is available for type javax.validation.ConstraintViolationException; did you forget to inherit a required module?. ERROR: Line 39: No source code is available for type javax.validation.ConstraintViolation&lt;T&gt;; did you forget to inherit a required module?. ERROR: Line 66: No source code is available for type javax.validation.metadata.ConstraintDescriptor&lt;T&gt;; did you forget to inherit a required module?. ERROR: Line 75: No source code is available for type javax.validation.Payload; did you forget to inherit a required module?. ERROR: Errors in 'jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/spi/ConfigurationState.java'. ERROR: Line 93: No source code is available for type javax.validation.ConstraintValidatorFactory; did you forget to inherit a required module?. ERROR: Line 107: No source code is available for type javax.validation.TraversableResolver; did you forget to inherit a required module?. DEBUG: Rebinding com.google.gwt.core.client.impl.SchedulerImpl. DEBUG: Checking rule &lt;generate-with class='com.google.gwt.editor.rebind.SimpleBeanEditorDriverGenerator'/&gt;. WARN: Detected warnings related to 'com.google.gwt.editor.client.SimpleBeanEditorDriver'. Are validation-api-&lt;version&gt;.jar and validation-api-&lt;version&gt;-sources.jar on the classpath?. INFO: Specify -logLevel DEBUG to see all errors.. WARN: Unknown type 'com.google.gwt.editor.client.SimpleBeanEditorDriver' specified in deferred binding rule. DEBUG: Rebinding gmgsys.com.webcharge.client.WebchargeService. DEBUG: Checking rule &lt;generate-with class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/&gt;. ERROR: Unable to find type 'gmgsys.com.webcharge.client.WebchargeService'. ERROR: Hint: Previous compiler errors may have made this type unavailable. ERROR: Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly. ERROR: Deferred binding failed for 'gmgsys.com.webcharge.client.WebchargeService'; expect subsequent failures. ERROR: Unable to load module entry point class gmgsys.com.webcharge.client.Webcharge (see associated exception for details). java.lang.RuntimeException: Deferred binding failed for 'gmgsys.com.webcharge.client.WebchargeService' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at com.google.gwt.core.client.GWT.create(GWT.java:98) at gmgsys.com.webcharge.client.WebchargeService$App.&lt;clinit&gt;(WebchargeService.java:20) at gmgsys.com.webcharge.client.MainPanel.&lt;init&gt;(MainPanel.java:22) at gmgsys.com.webcharge.client.Webcharge.onModuleLoad(Webcharge.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Thread.java:662) Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:595) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:455) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) at com.google.gwt.core.client.GWT.create(GWT.java:98) at gmgsys.com.webcharge.client.WebchargeService$App.&lt;clinit&gt;(WebchargeService.java:20) at gmgsys.com.webcharge.client.MainPanel.&lt;init&gt;(MainPanel.java:22) at gmgsys.com.webcharge.client.Webcharge.onModuleLoad(Webcharge.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Thread.java:662) ERROR: Failed to load module 'Webcharge' from user agent 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.57 Safari/534.24' at wsta1:39330. </code></pre> <p>and a few explanation</p> <p>Webcharge is my entry point for the project, as you can see in the stacktrace the exception is thrown <strong>(WebchargeService.java:21)</strong> where at that line i have <strong>private static WebchargeServiceAsync ourInstance = GWT.create(WebchargeService.class);</strong></p> <p>WebchargeService</p> <pre><code>@RemoteServiceRelativePath(value = "WebchargeService") public interface WebchargeService extends RemoteService { String getMessage(MyUser user); List&lt;MyUser&gt; getUserList(); List&lt;MyUser&gt; updateUser(MyUser user) throws Exception; List&lt;MyUser&gt; selectByName(String name); String getMessage(String msg); public static class App { private static WebchargeServiceAsync ourInstance = GWT.create(WebchargeService.class); public static synchronized WebchargeServiceAsync getInstance() { return ourInstance; } } } </code></pre> <p>and the code for WebchargeServiceAsync</p> <pre><code>public interface WebchargeServiceAsync { void getMessage(String msg, AsyncCallback&lt;String&gt; async); void getMessage(MyUser user, AsyncCallback&lt;String&gt; async); void getUserList(AsyncCallback&lt;List&lt;MyUser&gt;&gt; async); void updateUser(MyUser user, AsyncCallback&lt;List&lt;MyUser&gt;&gt; async); void selectByName(String name, AsyncCallback&lt;List&lt;MyUser&gt;&gt; async); } </code></pre> <p>Any help is welcome :) </p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload