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

  • SEARCH
  • Home
  • 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 8427519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:48:10+00:00 2026-06-10T04:48:10+00:00

I have recently tried to start using Grails and now I want to integrate

  • 0

I have recently tried to start using Grails and now I want to integrate my gwt client part into grails project. I am using the Grails GWT Plugin and have eventually fixed all the compiler errors, except this one:

Compiling module com.CalendarMVP
|    Resolving com.client.mvp.AppPlaceHistoryMapper
|       Found type 'com.client.mvp.AppPlaceHistoryMapper'
|          [ERROR] Annotation error: cannot resolve com.client.place.HelloPlace$Tokenizer
| java.lang.ClassNotFoundException: com.client.place.HelloPlace$Tokenizer

And the same repeats for GreetingsPlace$Tokenizer and UserPlace$Tokenizer, except that I also receive:

 [ERROR] Annotation error: expected class java.lang.Class, got null

This classes are the part of my MVP pattern realization using built-in ActivitiesAndPlaces framework.The code for AppPlaceHistoryMapper is such:

package com.client.mvp;

import com.google.gwt.place.shared.PlaceHistoryMapper;
import com.google.gwt.place.shared.WithTokenizers;

import com.client.place.GoodbyePlace;
import com.client.place.GreetingsPlace;
import com.client.place.HelloPlace;
import com.client.place.ManagerCalendarPlace;
import com.client.place.ManagerPlace;
import com.client.place.UserPlace;

@WithTokenizers( { HelloPlace.Tokenizer.class, GoodbyePlace.Tokenizer.class,
GreetingsPlace.Tokenizer.class, ManagerPlace.Tokenizer.class,
UserPlace.Tokenizer.class, ManagerCalendarPlace.Tokenizer.class
})
public interface AppPlaceHistoryMapper extends PlaceHistoryMapper {
}

And for HelloPlace:

 package com.client.place;

 import com.google.gwt.place.shared.Place;

 import com.google.gwt.place.shared.PlaceTokenizer;


 public class HelloPlace extends Place {
 private String helloName;

public HelloPlace(String token)
{
    this.helloName = token;
}

public String getHelloName()
{
    return helloName;
}

public static class Tokenizer implements PlaceTokenizer<HelloPlace>
{

    @Override
    public String getToken(HelloPlace place)
    {
        return place.getHelloName();
    }

    @Override
    public HelloPlace getPlace(String token)
    {
        return new HelloPlace(token);
    }

}

}

In the end of error list I also have:

 Computing all possible rebind results for 'com.client.mvp.AppPlaceHistoryMapper'
 |          Rebinding com.client.mvp.AppPlaceHistoryMapper
 |             Invoking generator com.google.gwt.place.rebind.PlaceHistoryMapperGenerator
 |                [ERROR] Generator 'com.google.gwt.place.rebind.PlaceHistoryMapperGenerator' threw an exception while rebinding 'com.client.mvp.AppPlaceHistoryMapper'
 | java.lang.NullPointerException

and:

 [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
 |          [WARN] com.client.mvp.AppPlaceHistoryMapperImpl
 |    [ERROR] Errors in 'file:/D:/Naukma/Programing/JavaEE/STSworkspace/SocSystemGrails/src/gwt/com/client/CalendarMVP.java'
 |       [ERROR] Line 47:  Failed to resolve 'com.client.mvp.AppPlaceHistoryMapper' via deferred binding

In onModuleLoad() I create AppPlaceHistoryMapper in such a way:

 public void onModuleLoad()
{

    ClientFactory clientFactory = GWT.create(ClientFactoryImpl.class);
    EventBus eventBus = clientFactory.getEventBus();
    PlaceController placeController = clientFactory.getPlaceController();

    ActivityMapper activityMapper = new AppActivityMapper(clientFactory);
    ActivityManager activityManager = new ActivityManager(activityMapper, eventBus);
    activityManager.setDisplay(appWidget);

    AppPlaceHistoryMapper historyMapper= GWT.create(AppPlaceHistoryMapper.class);
    PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);
    historyHandler.register(placeController, eventBus, defaultPlace);

    RootPanel.get().add(appWidget);
    // Goes to place represented on URL or default place
    historyHandler.handleCurrentHistory();
}

I have just started working with Grails and maybe I am mising something. Could anyone help me ?

  • 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-06-10T04:48:11+00:00Added an answer on June 10, 2026 at 4:48 am

    I think this link (google groups) may help.

    Basically you have to compile the classes created using annotations (those with Tokenizers, referenced on the PlaceHistoryMapper).
    Once you compile that classes you add them to the classpath for the GWTCompiler.

    Hope it helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used to do ASP (vbscript) Programming, and have recently tried to start using
I have been recently digging into Mobile Programming, I practically tried out the J2ME
I have recently merged together 5 of my stand-alone projects into one project to
I have recently downloaded opencyc 2.0 . I tried to start the server via
I am a big fan of textmate, and have recently had to start using
I have recently upgraded my MVC 3 project to MVC 4. After all the
I have recently began using C# to invoke powershell scripts, with some success :)
I have recently started using Netbeans with following stack Liferay, icefaces with jBoss. Is
I am new to Android development. Been recently tried to have my own Facebook
Update : I have tried using fuslogvw.exe to get logs. But what exactly am

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.