Announcement Announcement Module
Collapse
No announcement yet.
First Roo/GWT project leads to compile issues Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • First Roo/GWT project leads to compile issues

    Hi guys,

    I love music temperaments, so I thought I'd use it to make a Roo application to learn about Roo meets GWT meets Google Apps. So I grabbed STS, added the extensions and made a little app, and here's the log, after these commands were issues I had a project with compile issues:

    Code:
    project --topLevelPackage com.saers.temperaments --projectName Temperaments --java 6 --template STANDARD_PROJECT
    persistence setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE 
    entity --class ~.data.entities.Temperament --testAutomatically
    field string --fieldName name
    field string --fieldName description
    field string --fieldName referencingUrl
    enum type --class ~.enums.CommaType
    enum constant --name PythagoreanComma
    enum constant --name SyntonicComma
    enum constant --name HoldrianComma
    enum constant --name CentDeviation
    entity --class ~.data.entities.TemperamentEntry --testAutomatically
    field enum --type ~.enums.CommaType --fieldName deviationType
    field number --fieldName amount --type java.lang.Double --notNull 
    field set --fieldName entries --class ~.data.entities.Temperament --element ~.data.entities.TemperamentEntry --sizeMin 12 --sizeMax 12 --notNull 
    gwt setup
    perform package
    Now the errors I get are:

    Code:
    [Thread-4] [INFO] Compiler errors : 
    [Thread-4] error at import com.saers.temperaments.gwt.request.SetRecord;
    [Thread-4]        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/request/TemperamentRecord.java:8:0::0 The import com.saers.temperaments.gwt.request.SetRecord cannot be resolved
    [Thread-4] error at Property<com.saers.temperaments.gwt.request.SetRecord> entries = new com.google.gwt.valuestore.shared.Property<com.saers.temperaments.gwt.request.SetRecord>("entries", "Entries", com.saers.temperaments.gwt.request.SetRecord.class);
    [Thread-4]          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/request/TemperamentRecord.java:18:0::0 com.saers.temperaments.gwt.request.SetRecord cannot be resolved to a type
    [Thread-4] error at Property<com.saers.temperaments.gwt.request.SetRecord> entries = new com.google.gwt.valuestore.shared.Property<com.saers.temperaments.gwt.request.SetRecord>("entries", "Entries", com.saers.temperaments.gwt.request.SetRecord.class);
    [Thread-4]                                                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/request/TemperamentRecord.java:18:0::0 com.saers.temperaments.gwt.request.SetRecord cannot be resolved to a type
    [Thread-4] error at abstract SetRecord getEntries();
    [Thread-4]          ^^^^ent roo> 
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/request/TemperamentRecord.java:26:0::0 SetRecord cannot be resolved to a type
    [Thread-4] error at entries.setInnerText(String.valueOf(record.getEntries()));
    [Thread-4]                                            ^^^^^
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentDetailsView.java:82:0::0 The method getEntries() is undefined for the type TemperamentRecord
    [Thread-4] error at deviationType.setInnerText(String.valueOf(record.getDeviationType()));
    [Thread-4]                                                  ^^^^^^^^^^^
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentEntryDetailsView.java:78:0::0 The method getDeviationType() is undefined for the type TemperamentEntryRecord
    [Thread-4] error at import com.saers.temperaments.gwt.request.CommaTypeRecord;
    [Thread-4]        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/request/TemperamentEntryRecord.java:8:0::0 The import com.saers.temperaments.gwt.request.CommaTypeRecord cannot be resolved
    [Thread-4] error at Property<com.saers.temperaments.gwt.request.CommaTypeRecord> deviationType = new com.google.gwt.valuestore.shared.Property<com.saers.temperaments.gwt.request.CommaTypeRecord>("deviationType", "Deviation Type", com.saers.temperaments.gwt.request.CommaTypeRecord.class);
    [Thread-4]          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/request/TemperamentEntryRecord.java:18:0::0 com.saers.temperaments.gwt.request.CommaTypeRecord cannot be resolved to a type
    [Thread-4] error at Property<com.saers.temperaments.gwt.request.CommaTypeRecord> deviationType = new com.google.gwt.valuestore.shared.Property<com.saers.temperaments.gwt.request.CommaTypeRecord>("deviationType", "Deviation Type", com.saers.temperaments.gwt.request.CommaTypeRecord.class);
    [Thread-4]                                                                                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/request/TemperamentEntryRecord.java:18:0::0 com.saers.temperaments.gwt.request.CommaTypeRecord cannot be resolved to a type
    [Thread-4] error at abstract CommaTypeRecord getDeviationType();
    [Thread-4]          ^^^^^^^^^^o> 
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/request/TemperamentEntryRecord.java:22:0::0 CommaTypeRecord cannot be resolved to a type
    [Thread-4] error at columns.add(new PropertyColumn<TemperamentRecord, com.saers.temperaments.gwt.request.SetRecord>(TemperamentRecord.entries, new Renderer<com.saers.temperaments.gwt.request.SetRecord>() {
    [Thread-4]                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentListView.java:45:0::0 com.saers.temperaments.gwt.request.SetRecord cannot be resolved to a type
    [Thread-4] error at columns.add(new PropertyColumn<TemperamentRecord, com.saers.temperaments.gwt.request.SetRecord>(TemperamentRecord.entries, new Renderer<com.saers.temperaments.gwt.request.SetRecord>() {
    [Thread-4]                                                                                                 ^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentListView.java:45:0::0 TemperamentRecord.entries cannot be resolved
    [Thread-4] error at columns.add(new PropertyColumn<TemperamentRecord, com.saers.temperaments.gwt.request.SetRecord>(TemperamentRecord.entries, new Renderer<com.saers.temperaments.gwt.request.SetRecord>() {
    [Thread-4]                                                                                                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentListView.java:45:0::0 com.saers.temperaments.gwt.request.SetRecord cannot be resolved to a type
    [Thread-4] error at columns.add(new PropertyColumn<TemperamentEntryRecord, com.saers.temperaments.gwt.request.CommaTypeRecord>(TemperamentEntryRecord.deviationType, new Renderer<com.saers.temperaments.gwt.request.CommaTypeRecord>() {
    [Thread-4]                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentEntryListView.java:45:0::0 com.saers.temperaments.gwt.request.CommaTypeRecord cannot be resolved to a type
    [Thread-4] error at columns.add(new PropertyColumn<TemperamentEntryRecord, com.saers.temperaments.gwt.request.CommaTypeRecord>(TemperamentEntryRecord.deviationType, new Renderer<com.saers.temperaments.gwt.request.CommaTypeRecord>() {
    [Thread-4]                                                                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentEntryListView.java:45:0::0 TemperamentEntryRecord.deviationType cannot be resolved
    [Thread-4] error at columns.add(new PropertyColumn<TemperamentEntryRecord, com.saers.temperaments.gwt.request.CommaTypeRecord>(TemperamentEntryRecord.deviationType, new Renderer<com.saers.temperaments.gwt.request.CommaTypeRecord>() {
    [Thread-4]                                                                                                                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [Thread-4] /Users/niklas/Programming/Eclipse/Temperaments/src/main/java/com/saers/temperaments/gwt/scaffold/generated/TemperamentEntryListView.java:45:0::0 com.saers.temperaments.gwt.request.CommaTypeRecord cannot be resolved to a type
    [Thread-4] ties.Temperament roo>
    Serious stuff it seems. Any clues to what is going on?

    Cheers

    Nik

  • #2
    Hi Nik

    At this stage you can only create simple application with roo and gwt. So collection means onetomany mapping and also UIBinderTools (Except TextBox and DateBox)are not accepted by roo and gwt. But these problems will resolved soon as per Mr. Ben ALex

    You can see the anticipated dates and version labels via http://tinyurl.com/rooroadmap

    Comment


    • #3
      Ah, I wasn't aware of that. Thank you very much :-)

      Comment


      • #4
        To follow up, this is still a problem with M2:


        [ERROR] com.saers.temperaments.gwt.request.SetRecord cannot be resolved to a type
        [ERROR] TemperamentRecord.entries cannot be resolved
        [ERROR] com.saers.temperaments.gwt.request.SetRecord cannot be resolved to a type
        [ERROR] The method getDeviationType() is undefined for the type TemperamentEntryRecord
        [ERROR] The import com.saers.temperaments.gwt.request.SetRecord cannot be resolved
        [ERROR] com.saers.temperaments.gwt.request.SetRecord cannot be resolved to a type
        [ERROR] SetRecord cannot be resolved to a type
        [ERROR] The import com.saers.temperaments.gwt.request.CommaTypeRecord cannot be resolved
        [ERROR] com.saers.temperaments.gwt.request.CommaTypeRecord cannot be resolved to a type
        [ERROR] CommaTypeRecord cannot be resolved to a type
        [ERROR] The method getEntries() is undefined for the type TemperamentRecord
        [ERROR] com.saers.temperaments.gwt.request.CommaTypeRecord cannot be resolved to a type
        [ERROR] TemperamentEntryRecord.deviationType cannot be resolved
        [ERROR] com.saers.temperaments.gwt.request.CommaTypeRecord cannot be resolved to a type
        [WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDriv enStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
        [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethod MockingControl has not been applied [Xlint:adviceDidNotMatch]

        Comment


        • #5
          To follow up, this is still an issue with M3

          Comment


          • #6
            I am confused, this issue is marked as resolved in M3 but OneToMany or ManyToMany relationships will cause compile error complaining about SetRecord & ListRecord.

            Comment


            • #7
              Hi Arakh, you are of course right, the issue was pooled into ROO-889 which was marked as solved for M3, but the issue was not, so I reposted it as ROO-1295, and it has from what I can read been targeted for M4.

              Cheers

              Nik

              Comment


              • #8
                As of M3 you can add a MANY_TO_ONE reference to the child object -- as an example, you can add an "invoice" field (of type Invoice) to an entity of type "LineItem". This appears to work in at least the HIBERNATE case.

                Comment

                Working...
                X