Announcement Announcement Module
Collapse
No announcement yet.
build error in integration with GWT Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • build error in integration with GWT

    Hi to all,
    I found a problem during the generation of my GWT-ROO web based project;
    I tried to generate a GWT UI on a simple JPA set of classes.
    The problem (I suppose) was due to a @ManyToMany reference in my table:

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<it.expense.domain.HouseholdsItem> items = new java.util.HashSet<it.expense.domain.HouseholdsItem >();

    Roo didn't generate the corresponding GWT class: it.expense.gwt.request.SetRecord (missing)

    Is this a bug?
    Rgds
    Michele

    Error log:


    ~.domain.HouseholdsItem roo> perform package
    [Thread-4] [INFO] Scanning for projects...
    [Thread-4] [INFO] ------------------------------------------------------------------------
    [Thread-4] [INFO] Building expense
    [Thread-4] [INFO] task-segment: [package]
    [Thread-4] [INFO] ------------------------------------------------------------------------
    [Thread-4] [INFO] [aspectj:compile {execution: default}]
    [Thread-4] [ERROR] The import it.expense.gwt.request.SetRecord cannot be resolved
    [Thread-4] [ERROR] it.expense.gwt.request.SetRecord cannot be resolved to a type
    [Thread-4] [ERROR] SetRecord cannot be resolved to a type
    [Thread-4] [ERROR] The method getItems() is undefined for the type HouseholdsItemRecord
    [Thread-4] [ERROR] it.expense.gwt.request.SetRecord cannot be resolved to a type
    [Thread-4] [ERROR] HouseholdsItemRecord.items cannot be resolved
    [Thread-4] [ERROR] it.expense.gwt.request.SetRecord cannot be resolved to a type
    [Thread-4] [WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDriv enStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
    [Thread-4] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethod MockingControl has not been applied [Xlint:adviceDidNotMatch]
    [Thread-4] [INFO] ------------------------------------------------------------------------
    [Thread-4] [ERROR] BUILD ERROR
    [Thread-4] [INFO] ------------------------------------------------------------------------
    [Thread-4] [INFO] Compiler errors :
    [Thread-4] error at import it.expense.gwt.request.SetRecord;
    [Thread-4] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /home/michele/Documents/Projects/expense/src/main/java/it/expense/gwt/request/HouseholdsItemRecord.java:10:0::0 The import it.expense.gwt.request.SetRecord cannot be resolved
    [Thread-4] error at Property<it.expense.gwt.request.SetRecord> items = new com.google.gwt.valuestore.shared.Property<it.expen se.gwt.request.SetRecord>("items", "Items", it.expense.gwt.request.SetRecord.class);
    [Thread-4] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /home/michele/Documents/Projects/expense/src/main/java/it/expense/gwt/request/HouseholdsItemRecord.java:26:0::0 it.expense.gwt.request.SetRecord cannot be resolved to a type
    [Thread-4] error at Property<it.expense.gwt.request.SetRecord> items = new com.google.gwt.valuestore.shared.Property<it.expen se.gwt.request.SetRecord>("items", "Items", it.expense.gwt.request.SetRecord.class);
    [Thread-4] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /home/michele/Documents/Projects/expense/src/main/java/it/expense/gwt/request/HouseholdsItemRecord.java:26:0::0 it.expense.gwt.request.SetRecord cannot be resolved to a type
    [Thread-4] error at abstract SetRecord getItems();
    [Thread-4] ^^^^roo>
    [Thread-4] /home/michele/Documents/Projects/expense/src/main/java/it/expense/gwt/request/HouseholdsItemRecord.java:36:0::0 SetRecord cannot be resolved to a type
    [Thread-4] error at items.setInnerText(String.valueOf(record.getItems( )));
    [Thread-4] ^^^
    [Thread-4] /home/michele/Documents/Projects/expense/src/main/java/it/expense/gwt/scaffold/generated/HouseholdsItemDetailsView.java:87:0::0 The method getItems() is undefined for the type HouseholdsItemRecord
    [Thread-4] error at columns.add(new PropertyColumn<HouseholdsItemRecord, it.expense.gwt.request.SetRecord>(HouseholdsItemRe cord.items, new Renderer<it.expense.gwt.request.SetRecord>() {
    [Thread-4] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /home/michele/Documents/Projects/expense/src/main/java/it/expense/gwt/scaffold/generated/HouseholdsItemListView.java:56:0::0 it.expense.gwt.request.SetRecord cannot be resolved to a type
    [Thread-4] error at columns.add(new PropertyColumn<HouseholdsItemRecord, it.expense.gwt.request.SetRecord>(HouseholdsItemRe cord.items, new Renderer<it.expense.gwt.request.SetRecord>() {
    [Thread-4] ^^^^^^^^^^^^^^^^^^^^^
    ...

    [Thread-4] useholdsItem roo>
    [Thread-4] [INFO] ------------------------------------------------------------------------
    [Thread-4] [INFO] For more information, run Maven with the -e switch
    [Thread-4] [INFO] ------------------------------------------------------------------------
    [Thread-4] [INFO] Total time: 12 seconds
    [Thread-4] [INFO] Finished at: Fri May 28 13:34:05 CEST 2010
    [Thread-4] [INFO] Final Memory: 19M/75M
    [Thread-4] [INFO] ------------------------------------------------------------------------

  • #2
    I'm facing this too, any suggestion??

    Comment


    • #3
      I'm experiencing exactly the same problem, where Roo is failing to generate required classes like this SetRecord class.

      How can we solve this problem?

      Comment


      • #4
        Just filed ticket ROO-912 in Jira linked back to this topic.

        Go vote for it if you're interested in receiving updates.

        Comment


        • #5
          same error

          And I too!!

          Comment


          • #6
            I think that they have already fixed this problem in a dev release.

            Comment


            • #7
              Me 2

              Hi,

              seems that I run into the same problem.

              This are my first step with roo.
              1) run the clinic.roo sample. OK
              2) add "setup gwt" to the clinic.roo sample and run it in a different directory
              -> fails , complains about missing ..Record.. classes
              3) remove all controller from clinic.roo sample and run it in a different directory
              -> still fails.

              any proposal or workaround known?

              Comment


              • #8
                I am trying ManyToMany relationship in M3 and this is still an issue. The above jira has been marked as resolved for M3 but I still can't get OneToMany or ManyToMany relationship workign with GWT. Same ole "SetRecord" or "ListRecord" cannot be resolved!!!

                Comment

                Working...
                X