Results 1 to 8 of 8

Thread: build error in integration with GWT

  1. #1
    Join Date
    Aug 2005
    Posts
    14

    Default 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. #2
    Join Date
    Jun 2009
    Posts
    5

    Default

    I'm facing this too, any suggestion??

  3. #3
    Join Date
    May 2010
    Posts
    3

    Default

    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?

  4. #4
    Join Date
    May 2010
    Posts
    3

    Default

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

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

  5. #5
    Join Date
    May 2010
    Posts
    3

    Default same error

    And I too!!

  6. #6
    Join Date
    Jan 2008
    Posts
    182

    Default

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

  7. #7
    Join Date
    Jun 2010
    Location
    Germany, near Karlsruhe.
    Posts
    1

    Default 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?
    Stefan Bachert
    http://gwtworld.de
    wwwApp UG (haftungsbeschränkt)

  8. #8

    Default

    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!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •