Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6108387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:17:29+00:00 2026-05-23T14:17:29+00:00

Weird problem, when i inject EventBus e got an exception. The project is gwt

  • 0

Weird problem, when i inject EventBus e got an exception. The project is gwt using mvp

Here is the sample code.

Gin

public interface AppGinjector extends Ginjector
{
  EventBus getEventBus();
  PlaceManager getPlaceManager();
}

Here is the entry point

public class MvpEntryPoint implements EntryPoint
{
AppGinjector ginjector = GWT.create(AppGinjector.class);

public void onModuleLoad()
{

  EventBus eventBus = ginjector.geEventBus();
  HelloWorldPanel display = new HelloWorldPanel();
  HelloWorldPresenter presenter = new HelloWorldPresenter( display, eventBus );

  presenter.bind();

  RootPanel.get().add( presenter.getDisplay().asWidget() );

  PlaceManager placeManager =  ginjector.getPlaceManager();
  placeManager.fireCurrentPlace();

}

i use gin 1.0 , gwt-presenter

Any has any idea?

Thanks

Edit:

The exception is

ERROR: Deferred binding result type 'net.customware.gwt.presenter.client.EventBus' should not be abstract. 
ERROR: Unable to load module entry point class com.gmgsys.mvpEntryPoint.client.MvpEntryPoint (see associated exception for details). java.lang.RuntimeException: Deferred binding failed for 'net.customware.gwt.presenter.client.EventBus' (did you forget to inherit a required module?)
...........................

also the gwt.xml

  <!-- Specify the app entry point class.                   -->
    <entry-point class='com.gmgsys.mvpEntryPoint.client.MvpEntryPoint'/>
    <inherits name='net.customware.gwt.presenter.Presenter' />
    <inherits name="com.google.gwt.inject.Inject" />
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:17:29+00:00Added an answer on May 23, 2026 at 2:17 pm

    I think you are missing the AbstractPresenterModule class which makes sure that EventBus is bound to SimpleEventBus:

    bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class);
    

    It should be something like that:

    public class MyClientModule extends AbstractPresenterModule {
      protected void configure() {
         bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class);
         // more bindings here
      }
    }
    

    And you have to annotate your Ginjector

    @GinModules({ MyClientModule .class })
    public interface AppGinjector extends Ginjector
    {
      EventBus getEventBus();
      PlaceManager getPlaceManager();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I having a weird problem with Entity Framework with MySql database. Here's the code
I've got a weird problem here. I've been trying to find out whats wrong
I'm having a weird problem with a threaded class using Boost::threads. Here is a
I'm having the weird problem that after having javascript inject some dom-elements the css-rules
I've got this weird problem - I'm calling ChangeServiceConfig on a newly installed service
Issue Weird problem. We've got two forms: the main application window and a settings
I'm having a weird problem with my code, at the moment everything works fine,
I have a weird problem with the CalandarExtender on my web project. When someone
I'm having a weird problem with some JavaScript/DOM code I've been playing with. I'm
Weird problem I'm struggling with. On the same folder as my *.pro QT project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.