hugoloza / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
0 stars 0 forks source link

NoSuchMethodFound error: dependency error in GWTP. ResourceDelegate usage #458

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile and run a project based on GWTP CarStore example

What is the expected output? What do you see instead?
It is expected to run. The problem is with de usage of ResourceDelegate. I 
found this exception:

[ERROR] Error injecting 
com.gwtplatform.dispatch.rest.delegates.client.ResourceDelegate<SessionResource>
:
Unable to create or inherit binding: No @Inject or default constructor found 
for 
com.gwtplatform.dispatch.rest.delegates.client.ResourceDelegate<SessionResource>
...

Stack trace detail:
[INFO] Caused by: java.lang.NoSuchMethodError: 
com.gwtplatform.dispatch.rest.rebind.events.RegisterGinBindingEvent.postSingleto
n(Lcom/google/common/eventbus/EventBus;Lcom/gwtplatform/dispatch/rest/rebind/uti
ls/ClassDefinition;Lcom/gwtplatform/dispatch/rest/rebind/utils/ClassDefinition;)
[INFO]  at 
com.gwtplatform.dispatch.rest.delegates.rebind.DelegateGenerator.maybeRegisterGi
nBinding(DelegateGenerator.java:162)

What version of the product are you using? On what operating system?
GWT 2.7.0
GWTP 1.5-SNAPSHOT
GAE 1.9.18
Windows 7

Please provide any additional information below.
As far as i could see, there problem is refered to the different class 
definition of EventBus used in RegisterGinBindingEvent (from gwtp-dispatch-rest 
dependency, com.gwtplatform groupId) and DelegateGenerator (from 
dispatch-rest-delegates, groupId com.gwtplatform.extensions). Both dependencies 
are obteined for the same version (1.5-SNAPSHOT) in scope=provided.

Original issue reported on code.google.com by muir...@gmail.com on 15 Apr 2015 at 11:19