Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Simple working GWT demo?

  1. #11
    Join Date
    Oct 2009
    Location
    Munich, Germany
    Posts
    103

    Default

    Strange, after rebooting and just running gwt:run for the clinic application and no other desktop application it's working now. I'am wondering what application could conflict? Perhaps a running eclipse with gwt plugin?

    My test application isn't running, the same error occurs.

  2. #12
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Port conflict maybe? jps is your friend. :-)
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  3. #13
    Join Date
    Mar 2010
    Posts
    3

    Default

    I also can't run any simple Roo/GWT application. The application obviously always fails when any of my domain entities has a field of any type other than String or Date.

    When my Entities only have String or Date fields, everything is fine. When I add e.g. an Integer, Float or a reference to another entity, I get errors like this:

    Code:
    com.google.gwt.dev.shell.HostedModeException: Something other than an int was returned from JSNI method '@com.google.gwt.valuestore.shared.impl.RecordJsoImpl::getInt(Ljava/lang/String;)': JS value of type undefined, expected int
    at com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266)
    at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:242)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:75)
    at com.google.gwt.valuestore.shared.impl.RecordJsoImpl$.getInt$(RecordJsoImpl.java)
    at com.google.gwt.valuestore.shared.impl.RecordJsoImpl$.get$(RecordJsoImpl.java:77)
    at com.google.gwt.valuestore.shared.impl.RecordImpl.get(RecordImpl.java:42)
    at com.mycompany.myproject.gwt.request.TestEntityRecordImpl.com_google_gwt_valuestore_shared_Record_get(TestEntityRecordImpl.java)
    at com.google.gwt.valuestore.ui.PropertyColumn.getValue(PropertyColumn.java:51)
    at com.google.gwt.valuestore.ui.PropertyColumn.getValue(PropertyColumn.java:1)
    at com.google.gwt.user.cellview.client.Column.render(Column.java:163)
    at com.google.gwt.user.cellview.client.CellTable$1.emitHtml(CellTable.java:412)
    at com.google.gwt.user.cellview.client.CellListImpl.setData(CellListImpl.java:273)
    at com.google.gwt.user.cellview.client.CellTable$1.setData(CellTable.java:359)
    at com.google.gwt.user.cellview.client.CellTable.setData(CellTable.java:689)
    at com.google.gwt.valuestore.ui.AbstractRecordListActivity$2.onSuccess(AbstractRecordListActivity.java:102)
    at com.google.gwt.valuestore.ui.AbstractRecordListActivity$2.onSuccess(AbstractRecordListActivity.java:1)
    at com.google.gwt.requestfactory.client.impl.AbstractJsonListRequest.handleResponseText(AbstractJsonListRequest.java:57)
    at com.google.gwt.requestfactory.client.impl.RequestFactoryJsonImpl$1.onResponseReceived(RequestFactoryJsonImpl.java:68)
    at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
    at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:393)
    at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:154)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:336)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:217)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:510)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
    at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:154)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:291)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:541)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:362)
    at java.lang.Thread.run(Thread.java:637)
    Sometimes this happens within an UmbrellaException.

    Any advice appreciated...
    Last edited by joe_leads; May 25th, 2010 at 09:35 AM.

  4. #14
    Join Date
    Oct 2009
    Location
    Munich, Germany
    Posts
    103

    Default

    Yeah, the same for me. Theoretically it's working but there must be some issues related to this topic. The clinic example has the same problems.

  5. #15
    Join Date
    Oct 2009
    Location
    Munich, Germany
    Posts
    103

  6. #16
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    https://jira.springsource.org/browse/ROO-874 covers the integer field specific issue.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  7. #17
    Join Date
    Mar 2010
    Posts
    3

    Default

    Thanks for pointing to the Jira bug.

    I also created a new one for the problem I have with bidirectional references and GWT because of the missing gwt.request.SetRecord class:
    https://jira.springsource.org/browse/ROO-902

Posting Permissions

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