aino-komal / mvp4g

Automatically exported from code.google.com/p/mvp4g
0 stars 0 forks source link

Getting "No instance of presenter is defined" error on a presenter that is correctly annotated #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a presenter, annotate it with @Presenter(view = ViewName.class)
2. Hook everything up as specified on 
http://code.google.com/p/mvp4g/wiki/PresenterViewService
3. I get this error:
Method displayMessage: No instance of 
test.client.presenter.template.HeaderPresenter is defined. Have you forgotten 
to annotate your event handler with @Presenter or @EventHandler?

What is the expected output? What do you see instead?
I expect the presenter to be found. I have dug in and debugged the 
EventsAnotationsLoader and it is picking up all of my other presenters (in the 
same package using the same code), but somehow not this one. What am I doing 
wrong?

What version of the product are you using? On what operating system?
1.3.1

Please provide any additional information below.
I have isolated the problem in the project below (import using Maven pom)

Original issue reported on code.google.com by bg...@summa-tech.com on 3 Dec 2011 at 12:35

Attachments:

GoogleCodeExporter commented 9 years ago
There were actually a myriad of issues going on with that project, but none of 
them were mvp4g's fault. It seems I was calling an event bus method before the 
presenter was created, which is where that message came from. I also had a 
reference to StringUtils which gave me:

view test_client_presenter_HeaderPresenterView: No source code is available for 
test.client.view.template.HeaderView

I got it all working, though, so you can reject this issue!

Original comment by brianmg...@gmail.com on 5 Dec 2011 at 4:14

GoogleCodeExporter commented 9 years ago
Sorry for not being helpful on this but I'm glad you were able to figure it out.

Original comment by plcoir...@gmail.com on 6 Dec 2011 at 3:17

GoogleCodeExporter commented 9 years ago
One comment -- I actually get this error all the time. It seems like a 
catch-all error whenever anything goes wrong. I have seen it when I forgot an 
"<inherits>" on my gwt.xml, when I had code that was not translatable by GWT, 
and in some cases (like this) that were really hard to find.

I used the previous version of MVP4G and found the error messaging to be more 
helpful. Since I can't start up the app, this makes it really hard to find 
bugs. Is this something I am doing wrong?

Original comment by brianmg...@gmail.com on 7 Dec 2011 at 1:06

GoogleCodeExporter commented 9 years ago
HI brianmg...@gmail.com
i have a same problem, it's annoying

Original comment by hamedinf...@gmail.com on 7 Dec 2011 at 8:51