Announcement Announcement Module
Collapse
No announcement yet.
Controlling which entities get noticed by GWT Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Controlling which entities get noticed by GWT

    I'm trying to gwt setup a project that has a small set of RooEntity classes. Some are simple entities, and some are association table entities.

    When I first start the Roo shell, it looks at my entities and produces the following warnings (one for each association table):

    Type 'com.ittools.rootest.UserRoles' can't be proxied as it doesn't have a version accessor method

    OK, fair enough. I go to one of the association table entity definitions and add "version" to the versionField parameter in the RooEntity annotation (calling it anything other than "version" results in other errors.)

    After saving the file, Roo produces another warning (in red this time):

    The field type com.ittools.rootest.UserRolesPK of 'getId' in type UserRoles is not currently support by GWT and will not be added to the scaffolded application.

    Then there's a bunch of log entries as Roo is generating a bunch of client\managed\request\*, client\managed\ui\*, client\managed\activity\* files, then immediately does "Undo create" on all of them, finally winding up with an error:

    java.lang.IllegalStateException: java.lang.IllegalArgumentException: Id unavailable for 'com.ittools.rootest.UserRoles' - required for GWT support

    So, is there a way to tell Roo/GWT not to try to generate UI and proxy code for a particular entity? Or get the generation step to proceed and just skip things it can't handle? This error leaves me without an ApplicationRequestFactory, ApplicationEntityTypesProcessor, ApplicationMasterActivities, ApplicationDetailsActivities, etc.
    Last edited by dsp; Aug 8th, 2011, 08:16 PM.

  • #2
    Roo output after adding version field

    Roo output after adding version field to UserRoles:
    Code:
    The field type com.ittools.rootest.UserRolesPK of 'getId' in type UserRoles is not currently support by GWT and will not be added to the scaffolded application.
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\UserRolesProxy.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\UserRolesRequest.java
    Updated SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\RolesProxy.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\ApplicationEntityTypesProcessor.java
    Updated SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\ApplicationRequestFactory.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\ApplicationListPlaceRenderer_Roo_Gwt.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\ApplicationListPlaceRenderer.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationMasterActivities_Roo_Gwt.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationMasterActivities.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationDetailsActivities_Roo_Gwt.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationDetailsActivities.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ScaffoldMobileActivities.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesEditView_Roo_Gwt.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesEditView.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesDetailsView_Roo_Gwt.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesDetailsView.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\RolesDetailsActivity_Roo_Gwt.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\RolesDetailsActivity.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\RolesListActivity.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesSetEditor_Roo_Gwt.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesSetEditor.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesListEditor_Roo_Gwt.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesListEditor.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\RolesActivitiesMapper.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileEditView_Roo_Gwt.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileEditView.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesListView_Roo_Gwt.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesListView.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\RolesEditActivityWrapper_Roo_Gwt.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\RolesEditActivityWrapper.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesProxyRenderer.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileListView_Roo_Gwt.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileListView.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileDetailsView_Roo_Gwt.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileDetailsView.java
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileEditView.ui.xml
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileDetailsView.ui.xml
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesDetailsView.ui.xml
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesListEditor.ui.xml
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesSetEditor.ui.xml
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesEditView.ui.xml
    Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesListView.ui.xml
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesListView.ui.xml
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesEditView.ui.xml
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesSetEditor.ui.xml
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesListEditor.ui.xml
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesDetailsView.ui.xml
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileDetailsView.ui.xml
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileEditView.ui.xml
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileDetailsView.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileDetailsView_Roo_Gwt.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileListView.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileListView_Roo_Gwt.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesProxyRenderer.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\RolesEditActivityWrapper.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\RolesEditActivityWrapper_Roo_Gwt.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesListView.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesListView_Roo_Gwt.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileEditView.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesMobileEditView_Roo_Gwt.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\RolesActivitiesMapper.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesListEditor.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesListEditor_Roo_Gwt.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesSetEditor.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesSetEditor_Roo_Gwt.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\RolesListActivity.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\RolesDetailsActivity.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\RolesDetailsActivity_Roo_Gwt.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesDetailsView.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesDetailsView_Roo_Gwt.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesEditView.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\RolesEditView_Roo_Gwt.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ScaffoldMobileActivities.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationDetailsActivities.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationDetailsActivities_Roo_Gwt.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationMasterActivities.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationMasterActivities_Roo_Gwt.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\ApplicationListPlaceRenderer.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\ApplicationListPlaceRenderer_Roo_Gwt.java
    Undo manage SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\ApplicationRequestFactory.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\ApplicationEntityTypesProcessor.java
    Undo manage SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\RolesProxy.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\UserRolesRequest.java
    Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\UserRolesProxy.java
    java.lang.IllegalStateException: java.lang.IllegalArgumentException: Id unavailable for 'com.ittools.rootest.UserRoles' - required for GWT support

    Comment


    • #3
      Roo output after removing version field

      Roo output after removing version from UserRoles again:
      Code:
      The field type com.ittools.rootest.UserRolesPK of 'getId' in type UserRoles is not currently support by GWT and will not be added to the scaffolded application.
      Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\UserRolesProxy.java
      Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\UserRolesRequest.java
      Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\ApplicationEntityTypesProcessor.java
      Updated SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\ApplicationRequestFactory.java
      Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\ApplicationListPlaceRenderer_Roo_Gwt.java
      Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\ApplicationListPlaceRenderer.java
      Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationMasterActivities_Roo_Gwt.java
      Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationMasterActivities.java
      Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationDetailsActivities_Roo_Gwt.java
      Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationDetailsActivities.java
      Created SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ScaffoldMobileActivities.java
      Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ScaffoldMobileActivities.java
      Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationDetailsActivities.java
      Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationDetailsActivities_Roo_Gwt.java
      Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationMasterActivities.java
      Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\activity\ApplicationMasterActivities_Roo_Gwt.java
      Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\ApplicationListPlaceRenderer.java
      Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\ui\ApplicationListPlaceRenderer_Roo_Gwt.java
      Undo manage SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\ApplicationRequestFactory.java
      Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\ApplicationEntityTypesProcessor.java
      Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\UserRolesRequest.java
      Undo create SRC_MAIN_JAVA\com\ittools\rootest\client\managed\request\UserRolesProxy.java
      Id unavailable for 'com.ittools.rootest.UserRoles' - required for GWT support

      Comment


      • #4
        Hi dsp, I've asked James (our GWT guru) to take a look at this for you.

        Comment


        • #5
          Is there any clue about it, please? I've been facing a problem like this.

          More specifically, I have a set field on what this message shows up.

          Comment

          Working...
          X