Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.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 NoSuchMethodFound错误:GWTP中存在依赖项错误。ResourceDelegate使用_Java_Maven_Google App Engine_Gwtp_Gwt Platform - Fatal编程技术网

Java NoSuchMethodFound错误:GWTP中存在依赖项错误。ResourceDelegate使用

Java NoSuchMethodFound错误:GWTP中存在依赖项错误。ResourceDelegate使用,java,maven,google-app-engine,gwtp,gwt-platform,Java,Maven,Google App Engine,Gwtp,Gwt Platform,我在一个GWTP+GAE项目中工作,该项目基于ArcBees开发的CarStore示例。Maven依赖项也取自该项目。我当前的GWTP版本是1.5-SNAPSHOT 这个项目编译得非常好。但当我运行它时,我被这个错误绊住了: [ERROR] Error injecting com.gwtplatform.dispatch.rest.delegates.client.ResourceDelegate<com.rmideas.sportbinder.shared.api.SessionReso

我在一个GWTP+GAE项目中工作,该项目基于ArcBees开发的CarStore示例。Maven依赖项也取自该项目。我当前的GWTP版本是1.5-SNAPSHOT

这个项目编译得非常好。但当我运行它时,我被这个错误绊住了:

[ERROR] Error injecting com.gwtplatform.dispatch.rest.delegates.client.ResourceDelegate<com.rmideas.sportbinder.shared.api.SessionResource>: 
Unable to create or inherit binding: No @Inject or default constructor found for com.gwtplatform.dispatch.rest.delegates.client.ResourceDelegate<com.rmideas.sportbinder.shared.api.SessionResource>
这是指两个类对象之间的调用DelegateGenerator是调用者,从该依赖项中获取:

<dependency>
        <groupId>com.gwtplatform.extensions</groupId>
        <artifactId>dispatch-rest-delegates</artifactId>
        <version>${gwtp.version}</version>
        <scope>provided</scope>
    </dependency>
这应该不是问题,但eventBus作为第一个参数发送的键在两个类中的类型不同

DelegateGenerator具有以下导入语句:

import com.google.common.eventbus.EventBus;
RegisterInBindingEvent具有以下EventBus类:

import com.gwtplatform.dispatch.rest.rebind.utils.EventBus;
我想这就是问题的根源。两个依赖项使用相同的版本(1.5-SNAPSHOT)。如果我将版本降级到1.4,这将不会发生。但在使用此代码运行ResourceDelegate时仍然存在问题


有人知道我做错了什么吗?或者如果这是一个bug?

感谢您使用快照

由于某些原因,CI没有为上次提交部署快照。这个问题现在应该得到解决。你能试试另一个版本吗?将-U添加到maven命令行以确保获取最新快照

RegisterGinBindingEvent.postSingleton(eventBus, definition, getClassDefinition());
import com.google.common.eventbus.EventBus;
import com.gwtplatform.dispatch.rest.rebind.utils.EventBus;