Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0.M1
    • Fix Version/s: 1.1.0.M2
    • Component/s: GWT
    • Labels:
      None

      Description

      As already pointed out in #ROO-865 the expense demo does not work. Digging deeper it seems that the GWT support is broken. I created two demos. The first has a simple domain object and shows the behavior described in #ROO-865. The second has no domain object and doesn't work but with a different error.

      1. log.roo
        0.2 kB
        Eberhard Wolff
      2. log.roo
        0.4 kB
        Eberhard Wolff

        Activity

        Hide
        Eberhard Wolff added a comment -

        Here is the error from the project without domain objects:
        [INFO] ------------------------------------------------------------------------
        [INFO] Compiler errors :
        error at import bug.gwt.request.ApplicationEntityTypesProcessor;
        ^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:17:0::
        0 The import bug.gwt.request cannot be resolved
        error at import bug.gwt.request.ApplicationRequestFactory;
        ^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:18:0::
        0 The import bug.gwt.request cannot be resolved
        error at import bug.gwt.ui.ListPlaceRenderer;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:20:0::
        0 The import bug.gwt.ui.ListPlaceRenderer cannot be resolved
        error at import bug.gwt.ui.ListActivitiesMapper;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:21:0::
        0 The import bug.gwt.ui.ListActivitiesMapper cannot be resolved
        error at final ApplicationRequestFactory requestFactory = GWT.create(Application
        RequestFactory.class);
        ^^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:41:0::
        0 ApplicationRequestFactory cannot be resolved to a type
        error at final ApplicationRequestFactory requestFactory = GWT.create(Application
        RequestFactory.class);
        ^^^^^^^^^^^^^^^^^^^^

        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:41:0::
        0 ApplicationRequestFactory cannot be resolved to a type
        error at shell.getPlacesBox(), placeController, new ListPlaceRenderer());
        ^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:53:0::
        0 ListPlaceRenderer cannot be resolved to a type
        error at final ActivityMapper<ApplicationPlace> mapper = new ScaffoldMobileActiv
        ities(
        ^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:61:0::
        0 ScaffoldMobileActivities cannot be resolved to a type
        error at new ListActivitiesMapper(eventBus, requestFactory, placeController),
        ^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:62:0::
        0 ListActivitiesMapper cannot be resolved to a type
        error at ApplicationEntityTypesProcessor.processAll(new ApplicationEntityTypesPr
        ocessor.EntityTypesProcessor() {
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:85:0::
        0 ApplicationEntityTypesProcessor cannot be resolved
        error at ApplicationEntityTypesProcessor.processAll(new ApplicationEntityTypesPr
        ocessor.EntityTypesProcessor() {
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:85:0::
        0 ApplicationEntityTypesProcessor cannot be resolved to a type
        error at import bug.gwt.request.ApplicationEntityTypesProcessor;
        ^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:28:0::0 The
        import bug.gwt.request cannot be resolved
        error at import bug.gwt.request.ApplicationRequestFactory;
        ^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:29:0::0 The
        import bug.gwt.request cannot be resolved
        error at import bug.gwt.ui.ListPlaceRenderer;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:31:0::0 The
        import bug.gwt.ui.ListPlaceRenderer cannot be resolved
        error at import bug.gwt.ui.ListActivitiesMapper;
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:32:0::0 The
        import bug.gwt.ui.ListActivitiesMapper cannot be resolved
        error at final ApplicationRequestFactory requestFactory = GWT.create(Application
        RequestFactory.class);
        ^^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:45:0::0 Appl
        icationRequestFactory cannot be resolved to a type
        error at final ApplicationRequestFactory requestFactory = GWT.create(Application
        RequestFactory.class);
        ^^^^^^^^^^^^^^^^^^^^

        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:45:0::0 Appl
        icationRequestFactory cannot be resolved to a type
        error at shell.getPlacesBox(), placeController, new ListPlaceRenderer());
        ^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:72:0::0 List
        PlaceRenderer cannot be resolved to a type
        error at new ScaffoldMasterActivities(new ListActivitiesMapper(eventBus,
        ^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:84:0::0 Scaf
        foldMasterActivities cannot be resolved to a type
        error at new ScaffoldMasterActivities(new ListActivitiesMapper(eventBus,
        ^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:84:0::0 List
        ActivitiesMapper cannot be resolved to a type
        error at new ScaffoldDetailsActivities(requestFactory, placeController),
        ^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:99:0::0 Scaf
        foldDetailsActivities cannot be resolved to a type
        error at ApplicationEntityTypesProcessor.processAll(new ApplicationEntityTypesPr
        ocessor.EntityTypesProcessor() {
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:121:0::0 App
        licationEntityTypesProcessor cannot be resolved
        error at ApplicationEntityTypesProcessor.processAll(new ApplicationEntityTypesPr
        ocessor.EntityTypesProcessor() {
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:121:0::0 App
        licationEntityTypesProcessor cannot be resolved to a type
        error at public abstract void accept(ApplicationPlaceProcessor processor);
        ^^^^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\place\ApplicationPlace.jav
        a:10:0::0 ApplicationPlaceProcessor cannot be resolved to a type
        error at public abstract <T> T acceptFilter(ApplicationPlaceFilter<T> filter);
        ^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\place\ApplicationPlace.jav
        a:12:0::0 ApplicationPlaceFilter cannot be resolved to a type
        error at public void accept(ApplicationPlaceProcessor visitor) {
        ^^^^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\place\ApplicationListPlace
        .java:22:0::0 ApplicationPlaceProcessor cannot be resolved to a type
        error at public <T> T acceptFilter(ApplicationPlaceFilter<T> filter) {
        ^^^^^^^^^^^^^^^^^^^
        C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\place\ApplicationListPlace
        .java:27:0::0 ApplicationPlaceFilter cannot be resolved to a type

        Show
        Eberhard Wolff added a comment - Here is the error from the project without domain objects: [INFO] ------------------------------------------------------------------------ [INFO] Compiler errors : error at import bug.gwt.request.ApplicationEntityTypesProcessor; ^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:17:0:: 0 The import bug.gwt.request cannot be resolved error at import bug.gwt.request.ApplicationRequestFactory; ^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:18:0:: 0 The import bug.gwt.request cannot be resolved error at import bug.gwt.ui.ListPlaceRenderer; ^^^^^^^^^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:20:0:: 0 The import bug.gwt.ui.ListPlaceRenderer cannot be resolved error at import bug.gwt.ui.ListActivitiesMapper; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:21:0:: 0 The import bug.gwt.ui.ListActivitiesMapper cannot be resolved error at final ApplicationRequestFactory requestFactory = GWT.create(Application RequestFactory.class); ^^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:41:0:: 0 ApplicationRequestFactory cannot be resolved to a type error at final ApplicationRequestFactory requestFactory = GWT.create(Application RequestFactory.class); ^^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:41:0:: 0 ApplicationRequestFactory cannot be resolved to a type error at shell.getPlacesBox(), placeController, new ListPlaceRenderer()); ^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:53:0:: 0 ListPlaceRenderer cannot be resolved to a type error at final ActivityMapper<ApplicationPlace> mapper = new ScaffoldMobileActiv ities( ^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:61:0:: 0 ScaffoldMobileActivities cannot be resolved to a type error at new ListActivitiesMapper(eventBus, requestFactory, placeController), ^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:62:0:: 0 ListActivitiesMapper cannot be resolved to a type error at ApplicationEntityTypesProcessor.processAll(new ApplicationEntityTypesPr ocessor.EntityTypesProcessor() { ^^^^^^^^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:85:0:: 0 ApplicationEntityTypesProcessor cannot be resolved error at ApplicationEntityTypesProcessor.processAll(new ApplicationEntityTypesPr ocessor.EntityTypesProcessor() { ^^^^^^^^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\ScaffoldMobile.java:85:0:: 0 ApplicationEntityTypesProcessor cannot be resolved to a type error at import bug.gwt.request.ApplicationEntityTypesProcessor; ^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:28:0::0 The import bug.gwt.request cannot be resolved error at import bug.gwt.request.ApplicationRequestFactory; ^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:29:0::0 The import bug.gwt.request cannot be resolved error at import bug.gwt.ui.ListPlaceRenderer; ^^^^^^^^^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:31:0::0 The import bug.gwt.ui.ListPlaceRenderer cannot be resolved error at import bug.gwt.ui.ListActivitiesMapper; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:32:0::0 The import bug.gwt.ui.ListActivitiesMapper cannot be resolved error at final ApplicationRequestFactory requestFactory = GWT.create(Application RequestFactory.class); ^^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:45:0::0 Appl icationRequestFactory cannot be resolved to a type error at final ApplicationRequestFactory requestFactory = GWT.create(Application RequestFactory.class); ^^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:45:0::0 Appl icationRequestFactory cannot be resolved to a type error at shell.getPlacesBox(), placeController, new ListPlaceRenderer()); ^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:72:0::0 List PlaceRenderer cannot be resolved to a type error at new ScaffoldMasterActivities(new ListActivitiesMapper(eventBus, ^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:84:0::0 Scaf foldMasterActivities cannot be resolved to a type error at new ScaffoldMasterActivities(new ListActivitiesMapper(eventBus, ^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:84:0::0 List ActivitiesMapper cannot be resolved to a type error at new ScaffoldDetailsActivities(requestFactory, placeController), ^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:99:0::0 Scaf foldDetailsActivities cannot be resolved to a type error at ApplicationEntityTypesProcessor.processAll(new ApplicationEntityTypesPr ocessor.EntityTypesProcessor() { ^^^^^^^^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:121:0::0 App licationEntityTypesProcessor cannot be resolved error at ApplicationEntityTypesProcessor.processAll(new ApplicationEntityTypesPr ocessor.EntityTypesProcessor() { ^^^^^^^^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\Scaffold.java:121:0::0 App licationEntityTypesProcessor cannot be resolved to a type error at public abstract void accept(ApplicationPlaceProcessor processor); ^^^^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\place\ApplicationPlace.jav a:10:0::0 ApplicationPlaceProcessor cannot be resolved to a type error at public abstract <T> T acceptFilter(ApplicationPlaceFilter<T> filter); ^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\place\ApplicationPlace.jav a:12:0::0 ApplicationPlaceFilter cannot be resolved to a type error at public void accept(ApplicationPlaceProcessor visitor) { ^^^^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\place\ApplicationListPlace .java:22:0::0 ApplicationPlaceProcessor cannot be resolved to a type error at public <T> T acceptFilter(ApplicationPlaceFilter<T> filter) { ^^^^^^^^^^^^^^^^^^^ C:\Users\wolff\roo-bug\src\main\java\bug\gwt\scaffold\place\ApplicationListPlace .java:27:0::0 ApplicationPlaceFilter cannot be resolved to a type
        Hide
        Abdel Raoof Olakara added a comment -

        Having the same issue? Is there any work around? I am using the latest STS.

        Show
        Abdel Raoof Olakara added a comment - Having the same issue? Is there any work around? I am using the latest STS.
        Hide
        Eberhard Wolff added a comment -

        Use mvn gwt:run to run the application as mentioned in ROO-865

        Show
        Eberhard Wolff added a comment - Use mvn gwt:run to run the application as mentioned in ROO-865
        Hide
        cometta added a comment -

        having same prob.

        Show
        cometta added a comment - having same prob.
        Hide
        Chris Ramsdale added a comment -

        @Amit, I was able to repro this as well.

        Show
        Chris Ramsdale added a comment - @Amit, I was able to repro this as well.
        Hide
        Chris Ramsdale added a comment -

        The fix isn't needed in Roo code, but rather an upstream project that is linked below. Changing status to "won't fix" (e.g. won't fix in Roo code).

        http://code.google.com/p/google-web-toolkit/issues/detail?id=5048

        Show
        Chris Ramsdale added a comment - The fix isn't needed in Roo code, but rather an upstream project that is linked below. Changing status to "won't fix" (e.g. won't fix in Roo code). http://code.google.com/p/google-web-toolkit/issues/detail?id=5048
        Hide
        Amit Manjhi added a comment -

        Fixed in roo repo (sha 1ed3545c46b0865d81a810c53fea522160b4ccf2). Re-opening it so that I can mark it fixed.

        Show
        Amit Manjhi added a comment - Fixed in roo repo (sha 1ed3545c46b0865d81a810c53fea522160b4ccf2). Re-opening it so that I can mark it fixed.
        Hide
        Amit Manjhi added a comment -

        Fixed in Roo trunk, commit 1ed3545c46b0865d81a810c53fea522160b4ccf2

        Show
        Amit Manjhi added a comment - Fixed in Roo trunk, commit 1ed3545c46b0865d81a810c53fea522160b4ccf2
        Hide
        Amit Manjhi added a comment -

        Closing the issue.

        Show
        Amit Manjhi added a comment - Closing the issue.

          People

          • Assignee:
            Amit Manjhi
            Reporter:
            Eberhard Wolff
          • Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: