Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/395.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java GWT问题,GWT.create(SomeClass.class)抛出异常_Java_Gwt_Binding_Deferred - Fatal编程技术网

Java GWT问题,GWT.create(SomeClass.class)抛出异常

Java GWT问题,GWT.create(SomeClass.class)抛出异常,java,gwt,binding,deferred,Java,Gwt,Binding,Deferred,我有一个gwt项目,使用方法gwt.create(SomeClass.class)抛出异常。 例外情况是: 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 DEB

我有一个gwt项目,使用方法gwt.create(SomeClass.class)抛出异常。 例外情况是:

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<T>; 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<T>; 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<T>; 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<T>; 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<T>; did you forget to inherit a required module?. 
    ERROR: Line 66: No source code is available for type javax.validation.metadata.ConstraintDescriptor<T>; 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 <generate-with class='com.google.gwt.editor.rebind.SimpleBeanEditorDriverGenerator'/>. 
    WARN: Detected warnings related to 'com.google.gwt.editor.client.SimpleBeanEditorDriver'.   Are validation-api-<version>.jar and validation-api-<version>-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 <generate-with class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/>. 
    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.<clinit>(WebchargeService.java:20)
    at gmgsys.com.webcharge.client.MainPanel.<init>(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.<clinit>(WebchargeService.java:20)
    at gmgsys.com.webcharge.client.MainPanel.<init>(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. 
加载模块:网络充电
顶级网址:http://127.0.0.1:8888/Webcharge.html?gwt.codesvr=127.0.0.1:9997
用户代理:Chrome
远程主机:wsta1:39330
选项卡键:
会话密钥:v2aC'2^b3!lQgZS6
调试:验证新编译的单元。
错误:“jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar”中的错误/com/google/gwt/editor/client/EditorDriver.java’。
错误:第97行:没有可用于javax.validation.ConstraintViolation类型的源代码;您是否忘记继承所需的模块?。
错误:“jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar”中的错误/com/google/gwt/editor/client/impl/BaseEditorDriver.java’。
错误:第67行:javax.validation.ConstraintViolation类型没有可用的源代码;您是否忘记继承所需的模块?。
错误:“jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar”中的错误/com/google/gwt/editor/client/impl/SimpleViolation.java’。
错误:第40行:javax.validation.ConstraintViolation类型没有可用的源代码;您是否忘记继承所需的模块?。
错误:“jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar”中的错误/com/google/gwt/editor/client/testing/mocksimplebaneditordriver.java’。
错误:第108行:javax.validation.ConstraintViolation类型没有可用的源代码;您是否忘记继承所需的模块?。
错误:“文件:/home/devel/webcharge/webapp gwt/src/gmgsys/com/webcharge/client/DataSource.java”中出现错误。
错误:第15行:gmgsys.com.webcharge.model.MyUser类型没有可用的源代码;您是否忘记继承所需的模块?。
错误:“文件:/home/devel/webcharge/webapp gwt/src/gmgsys/com/webcharge/client/MainPanel.java”中出现错误。
错误:第124行:gmgsys.com.webcharge.model.MyUser类型没有可用的源代码;您是否忘记继承所需的模块?。
错误:“文件:/home/devel/webcharge/webapp gwt/src/gmgsys/com/webcharge/client/MyTable.java”中出现错误。
错误:“文件:/home/devel/webcharge/webapp gwt/src/gmgsys/com/webcharge/client/WebchargeService.java”中存在错误。
错误:“文件:/home/devel/webcharge/webapp gwt/src/gmgsys/com/webcharge/client/WebchargeServiceAsync.java”中存在错误。
错误:第46行:gmgsys.com.webcharge.model.MyUser类型没有可用的源代码;您是否忘记继承所需的模块?。
错误:第13行:gmgsys.com.webcharge.model.MyUser类型没有可用的源代码;您是否忘记继承所需的模块?。
错误:“jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar”中的错误/javax/validation/super/javax/validation/Configuration.java’。
错误:第12行:gmgsys.com.webcharge.model.MyUser类型没有可用的源代码;您是否忘记继承所需的模块?。
错误:“jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar”中的错误/javax/validation/ConstraintViolationException_CustomFieldSerializer.java'。
错误:“jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar”中的错误/javax/validation/super/javax/validation/MessageInterpolator.java'。
错误:第93行:没有可用于javax.validation.TraversableResolver类型的源代码;您是否忘记继承所需的模块?。
错误:第105行:javax.validation.ConstraintValidatorFactory类型没有可用的源代码;您是否忘记继承所需的模块?。
错误:第202行:javax.validation.ValidatorFactory类型没有可用的源代码;您是否忘记继承所需的模块?。
错误:“jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar”中的错误/javax/validation/super/javax/validation/constraints/Pattern.java’。
错误:第30行:没有可用于javax.validation.ConstraintViolationException类型的源代码;您是否忘记继承所需的模块?。
错误:第39行:javax.validation.ConstraintViolation类型没有可用的源代码;您是否忘记继承所需的模块?。
错误:第66行:没有可用于javax.validation.metadata.ConstraintDescriptor类型的源代码;您是否忘记继承所需的模块?。
错误:第75行:javax.validation.Payload类型没有可用的源代码;您是否忘记继承所需的模块?。
错误:“jar:file:/home/devel/Downloads/gwt-2.3.0/gwt-user.jar”中的错误/javax/validation/super/javax/validation/spi/ConfigurationState.java’。
错误:第93行:javax.validation.ConstraintValidatorFactory类型没有可用的源代码;您是否忘记继承所需的模块?。
错误:第107行:没有可用于javax.validation.TraversableResolver类型的源代码;您是否忘记继承所需的模块?。
调试:重新绑定com.google.gwt.core.client.impl.SchedulerImpl。
调试:检查规则。
警告:检测到与“com.google.gwt.editor.client.SimpleBaneditorDriver”相关的警告。验证api-.jar和验证api--sources.jar是否在类路径上?。
信息:指定-logLevel DEBUG以查看所有错误。。
警告:延迟绑定规则中指定了未知类型“com.google.gwt.editor.client.SimpleBaneditorDriver”。
调试:重新绑定gmgsys.com.webcharge.client.WebchargeService。
调试:检查规则。
错误:找不到类型“gmgsys.com.webcharge.client.WebchargeService”。
错误:提示:以前的编译器错误可能导致此类型不可用。
错误:提示:检查模块中的继承链;它可能没有继承所需的模块,或者模块可能没有正确添加其源路径项。
错误:“gmgsys.com.webcharge.client.WebchargeService”的延迟绑定失败;预期随后的失败。
错误:无法加载模块入口点类gmgsys.com.webcharge.client.webcharge(有关详细信息,请参阅相关异常)。java.lang.RuntimeException:“gmgsys.com.webcharge.client.WebchargeService”的延迟绑定失败(您忘记了吗
@RemoteServiceRelativePath(value = "WebchargeService")
public interface WebchargeService extends RemoteService
{
String getMessage(MyUser user);
List<MyUser> getUserList();
List<MyUser> updateUser(MyUser user) throws Exception;
List<MyUser> 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;
  }
}
}
public interface WebchargeServiceAsync
{
void getMessage(String msg, AsyncCallback<String> async);

void getMessage(MyUser user, AsyncCallback<String> async);

void getUserList(AsyncCallback<List<MyUser>> async);

void updateUser(MyUser user, AsyncCallback<List<MyUser>> async);

void selectByName(String name, AsyncCallback<List<MyUser>> async);
}
private final UserService userRpcService = GWT.create(UserService.class);
private final UserServiceAsync userRpcService = GWT.create(UserService.class);