Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2255

GWT type mismatch in unidirectional many-to-many relationships

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.1.2.RELEASE
    • Fix Version/s: 1.1.3.RELEASE
    • Component/s: GWT
    • Labels:
      None
    • Environment:
      Ubuntu 10.10 (64 bits)

      Description

      When executing the following sequence in ROO 1.1.2.RELEASE [rev fbc33bb], I got an Unresolved compilation problem.

      cd $TMP_HOME && mkdir manytomany && cd manytomany && $ROO_HOME/roo.sh

      roo> project --topLevelPackage test.m2m
      roo> persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
      roo> gwt setup
      roo> entity --class ~server.domain.Parent
      roo> entity --class ~server.domain.Child
      roo> field string --fieldName name
      roo> focus --class ~.server.domain.Parent
      roo> field set --fieldName children --type ~.server.domain.Child
      roo> quit

      mvn gwt:run -Dmaven.repo.local=mvnrepolocal

      Then, using the web interface, create a Child and try to add the created child to a Parent =>

      [ERROR] Caused by: java.lang.Throwable: Unresolved compilation problem:
      [ERROR] The method setValue(String) in the type TakesValue<String> is not applicable for the arguments (Long)
      [ERROR]
      [ERROR] at test.m2m.client.managed.ui.ChildSetEditor_NameLabel_RequestFactoryEditorDelegate.attachSubEditors(ChildSetEditor_NameLabel_RequestFactoryEditorDelegate.java:12)
      [ERROR] at com.google.gwt.editor.client.impl.AbstractEditorDelegate.initialize(AbstractEditorDelegate.java:264)
      [ERROR] at com.google.gwt.requestfactory.client.impl.RequestFactoryEditorDelegate.initialize(RequestFactoryEditorDelegate.java:85)
      [ERROR] at com.google.gwt.requestfactory.client.impl.RequestFactoryEditorDelegate.initializeSubDelegate(RequestFactoryEditorDelegate.java:134)
      [ERROR] at com.google.gwt.editor.client.impl.AbstractEditorDelegate$Chain.attach(AbstractEditorDelegate.java:65)
      [ERROR] at com.google.gwt.editor.client.adapters.ListEditorWrapper.add(ListEditorWrapper.java:55)
      [ERROR] at java.util.AbstractList.add(AbstractList.java:91)
      [ERROR] at test.m2m.client.managed.ui.ChildSetEditor.addClicked(ChildSetEditor.java:82)
      [ERROR] at test.m2m.client.managed.ui.ChildSetEditor_BinderImpl$1.onClick(ChildSetEditor_BinderImpl.java:57)
      [ERROR] at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:54)
      [ERROR] at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1)
      [ERROR] at com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:204)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jtyrrell James Tyrrell
              Reporter:
              andiqo andiqo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: