Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/319.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类型中的方法setBridge(GWTBridge)不适用于参数(GWTBridge)_Java_Maven_Gwt - Fatal编程技术网

Java 错误:GWT类型中的方法setBridge(GWTBridge)不适用于参数(GWTBridge)

Java 错误:GWT类型中的方法setBridge(GWTBridge)不适用于参数(GWTBridge),java,maven,gwt,Java,Maven,Gwt,当我运行gwt应用程序时,它会抛出以下错误: 00:01:09.317 [TRACE] Finding entry point classes 00:01:09.317 [ERROR] Errors in 'jar:file:/home/xybrek/.m2/repository/com/google/gwt/gwt-user/2.5.1/gwt-user-2.5.1.jar!/com/google/gwt/core/client/GWT.java' 00:01:09.317 [ERROR] L

当我运行gwt应用程序时,它会抛出以下错误:

00:01:09.317 [TRACE] Finding entry point classes
00:01:09.317 [ERROR] Errors in 'jar:file:/home/xybrek/.m2/repository/com/google/gwt/gwt-user/2.5.1/gwt-user-2.5.1.jar!/com/google/gwt/core/client/GWT.java'
00:01:09.317 [ERROR] Line 276: The method setBridge(GWTBridge) in the type GWT is not applicable for the arguments (GWTBridge)
00:01:09.320 [DEBUG] Checked 299 dependencies for errors.
00:01:09.320 [ERROR] Unable to find type 'org.jboss.errai.enterprise.client.cdi.CDIClientBootstrap'
00:01:09.321 [ERROR] Hint: Previous compiler errors may have made this type unavailable
00:01:09.321 [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
00:01:09.322 [ERROR] Failed to load module 'app' from user agent 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36' at labs.localhost:35785

我的应用程序使用的GWT版本是
2.5.1

您是否更改了GWT版本。Eclipse中是否安装了多个GWT版本?您是什么时候开始出现此错误的?是的,我已将其从2.4.0更改为2.5.1的可能副本。您是否正在使用
requestfactory server
库如果是,则它可能仍然引用2.4.0版本。将版本更改为2.5.0-rc1可能会解决您的问题。上的讨论与此相同。