1. #11
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,717
    Vote Rating
    89
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Could you list the versions (and maybe download links?) for the other libraries you mention in your module file? If there is a bad interaction between GXT and those, it is bound to come up again.

    * com.google.code.GwtEyeCandy
    * com.google.gwt.resources.Resources
    * com.mvp4g.Mvp4gModule

    Can you also try a stripped down entrypoint that just adds a single, simple uibinder-based widget to the page, with the module you have now? That is how I will test this case, once I have the right versions for those libs, in lieu of your actual project.

  2. #12
    Sencha User
    Join Date
    Jan 2012
    Posts
    12
    Vote Rating
    0
    Evan Smith is on a distinguished road

      0  

    Default


    I was able to get Snake to run. So most of my system must be setup.

    As for the project in question. I have removed resources and eye candy just to make it easier. I only put these in after not getting sensa to work.


    mvp4g-1.3.1.jar is what I am using which came from the mail sample from mvp44-1.3.1-examples. Which I thought was a nice example of ui binder and GWT. And thus was trying out sensa in this example, slightly modified to a different name (bdlive instead of mail).

    Now that I have the com sencha stuf last, and UiBinder very last in my module I seem to be able to run! I am sorting out what is going on, and am going to try using your stuff in binder right now.

    Sorry, not sure what occurred to make it work. but hey such is programming. My bet is that it was very sensitive to the order of the inherits ... but not clear to me.

    I will post if I get an error again ... which I imagine I will when or if I try to use all this stuff in our original GWT application.

    Evan

  3. #13
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,717
    Vote Rating
    89
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    We've left room for users of GXT to customize behavior, which means we can't mandate order of inherits... But if there is an order issue that causes this problem, we'll need to track it down.

    Glad to head you've got it working, but let us know if it, or something like it, comes up again.

  4. #14
    Sencha User
    Join Date
    Jan 2012
    Posts
    12
    Vote Rating
    0
    Evan Smith is on a distinguished road

      0  

    Default ok error is still there

    ok error is still there


    Hello,

    Although the error is not there if I just put stuff int he module (see the module below). Meaning if I have not added any code to a .ui.xml file then I don't get an error. And am thus able to run our UI under development mode. However, when i add code the ui.xml file (a few buttons) I get an error. And am not sure why.

    Below is my current module and the ui.xml file and some error messages.

    So lets try some more !
    Thanks!
    Evan

    TopPanel.ui.xml
    <!DOCTYPE ui:UiBinder
    SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"
    >

    <ui:UiBinder
    xmlns:ui="urn:ui:com.google.gwt.uibinder"
    xmlns:gxt="urn:import:com.sencha.gxt.widget.core.client"
    xmlns:button="urn:import:com.sencha.gxt.widget.core.client.button">






    <ui:image field='logoRTMandBDLive' src='../resources/logoRTMandBDLive70.png' />
    <ui:image field='topBackground' src='../resources/topBackground.png' />

    <uityle>
    .statusDiv {
    text-align: right;
    margin: 1em;
    }

    .linksDiv {
    text-align: right;
    margin-top: -10px;
    }

    @if user.agent ie6 {
    .logoRTMandBDLive {
    background-image: url(logoRTMandBDLive.png);
    position: absolute;
    top:4px;
    left:10px;
    }
    } @else {
    @sprite .logoRTMandBDLive {
    gwt-image: 'logoRTMandBDLive';
    position: absolute;
    padding: 10px 5px 15px 20px;
    }
    }

    @if user.agent ie6 {
    .topBackground {
    background-image: url(topBackground.png);
    position: absolute;
    top:4px;
    left:10px;
    }
    } @else {
    @sprite .topBackground {
    gwt-image: 'topBackground';
    position: absolute;
    padding: 10px 5px 15px 20px;
    opacity:0.2;
    }
    }

    .search {
    text-align: right;
    border-top: 4px;
    border-right: 4px;
    border-bottom: 4px;
    border-left: 4px;
    }

    .a:link {color:#0000ff;}
    .a:visited {color:#0000ff;}
    .a:hover {color:#0000ff;}
    .a:active {color:#0000ff;}

    .myTopHTMLPanel {
    border-bottom: 2px groove;
    margin-right:-10px;
    }
    .gwt-TextBoxMore {
    border: 1px groove;
    background-color: White;
    }

    </uityle>

    <ui:with field="resources" type="com.relay.bdlive.client.view.MyResources" />

    <gxt:FramedPanel collapsible="true" headingText="Example" pixelSize="100, 80">
    <button:TextButton ui:field="exampleButton" text="Click Me" />
    <button:TextButton ui:field="signOutLink" text="Logout" />
    <button:TextButton ui:field="aboutLink" text="About" />
    </gxt:FramedPanel>
    </ui:UiBinder>


    --------------------------------------------------------
    bdlive.gwt.xml file is
    <?xml version="1.0" encoding="UTF-8"?>
    <module rename-to='bdlive'>
    <!-- Inherit the core Web Toolkit stuff. -->
    <inherits name='com.google.gwt.user.User'/>

    <!-- Inherit the default GWT style sheet. You can change -->
    <!-- the theme of your GWT application by uncommenting -->
    <!-- any one of the following lines. -->
    <inherits name='com.google.gwt.user.theme.standard.Standard'/>
    <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
    <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->



    <!-- Other module inherits -->
    <inherits name='com.mvp4g.Mvp4gModule' />

    <inherits name='com.sencha.gxt.ui.GXT' />
    <inherits name='com.sencha.gxt.chart.Chart' />
    <inherits name="com.sencha.gwt.uibinder.UiBinder"/>

    <!--
    <set-property name="gwt.logging.logLevel" value="FINEST" />
    <set-property name="gwt.logging.enabled" value="TRUE" />
    <set-property name="gwt.logging.popupHandler" value="DISABLED" />
    -->

    <!-- Specify the app entry point class. -->
    <entry-point class='com.relay.bdlive.client.BDLiveEntryPoint'/>

    <!-- Specify the paths for translatable code -->
    <source path='client'/>

    </module>

    ------------------------
    TopPanel.java file is

    /*
    * Copyright 2007 Google Inc.
    *
    * Licensed under the Apache License, Version 2.0 (the "License"); you may not
    * use this file except in compliance with the License. You may obtain a copy of
    * the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
    * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
    * License for the specific language governing permissions and limitations under
    * the License.
    */
    package com.relay.bdlive.client.view;

    import com.google.gwt.core.client.GWT;
    import com.google.gwt.event.dom.client.HasClickHandlers;
    import com.google.gwt.resources.client.ClientBundle;
    import com.google.gwt.resources.client.ImageResource;
    import com.google.gwt.uibinder.client.UiBinder;
    import com.google.gwt.uibinder.client.UiField;
    import com.google.gwt.user.client.Window;
    import com.google.gwt.user.client.ui.Anchor;
    import com.google.gwt.user.client.ui.Composite;
    import com.google.gwt.user.client.ui.Image;
    import com.google.gwt.user.client.ui.Widget;
    import com.google.inject.Singleton;
    import com.relay.bdlive.client.presenter.TopPresenter;
    import com.relay.bdlive.client.view.widget.AboutDialog;

    /**
    * The top panel, which contains the 'welcome' message and various links.
    */
    @Singleton
    public class TopPanel extends Composite implements TopPresenter.ITopView {

    interface Resources extends ClientBundle {
    @Source("../resources/searchIcon32.png")
    ImageResource searchIcon();
    }

    interface Binder extends UiBinder<Widget, TopPanel> {
    }

    private static final Binder binder = GWT.create( Binder.class );

    // @UiField
    // Resources resources;

    @UiField
    Anchor signOutLink;
    @UiField
    Anchor aboutLink;

    public TopPanel() {
    //resources = GWT.create(Resources.class);
    initWidget( binder.createAndBindUi( this ) );
    }

    public HasClickHandlers getAboutButton() {
    return aboutLink;
    }

    public HasClickHandlers getSignOutLink() {
    return signOutLink;
    }

    public Widget getViewWidget() {
    return this;
    }

    public void showAboutDialog() {
    AboutDialog dlg = new AboutDialog();
    dlg.show();
    dlg.center();
    }

    public void showAlert( String message ) {
    Window.alert( message );
    }

    }



    -------------------------------------

    And the errors are
    [DEBUG] [bdlive] - Rebinding com.mvp4g.client.Mvp4gModule
    [DEBUG] [bdlive] - Rebinding com.relay.bdlive.client.view.TopPanel.Binder
    [DEBUG] [bdlive] - Invoking generator com.sencha.gwt.uibinder.rebind.UiBinderGenerator
    [ERROR] [bdlive] - In @UiField aboutLink, template field and owner field types don't match: com.sencha.gxt.widget.core.client.button.TextButton is not assignable to com.google.gwt.user.client.ui.Anchor
    [ERROR] [bdlive] - Deferred binding failed for 'com.relay.bdlive.client.view.TopPanel.Binder'; expect subsequent failures
    [ERROR] [bdlive] - Failed to create an instance of 'com.relay.bdlive.client.view.TopPanel' via deferred binding
    [DEBUG] [bdlive] - Rebinding com.google.gwt.dom.client.DOMImpl
    [WARN] [bdlive] - For the following type(s), generated source was never committed (did you forget to call commit()?)
    [WARN] [bdlive] - com.relay.bdlive.client.view.TopPanel_BinderImpl
    [ERROR] [bdlive] - Unable to load module entry point class com.relay.bdlive.client.BDLiveEntryPoint (see associated exception for details)
    [ERROR] [bdlive] - Failed to load module 'bdlive' from user agent 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1' at 127.0.0.1:53756




    15:27:39.883 [ERROR] [bdlive] Failed to create an instance of 'com.relay.bdlive.client.view.TopPanel' via deferred binding

    java.lang.RuntimeException: Deferred binding failed for 'com.relay.bdlive.client.view.TopPanel$Binder' (did you forget to inherit a required module?)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
    at com.google.gwt.core.client.GWT.create(GWT.java:97)
    at com.relay.bdlive.client.view.TopPanel.&lt;clinit&gt;(TopPanel.java:47)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:654)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:458)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    at com.google.gwt.core.client.GWT.create(GWT.java:97)
    at com.mvp4g.client.Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.create_Key$type$com$relay$bdlive$client$view$TopPanel$_annotation$$none$$(Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.java:125)
    at com.mvp4g.client.Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.get_Key$type$com$relay$bdlive$client$view$TopPanel$_annotation$$none$$(Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.java:142)
    at com.mvp4g.client.Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.getcom_relay_bdlive_client_presenter_TopPresenterView(Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.java:51)
    at com.mvp4g.client.Mvp4gModuleImpl.createAndStartModule(Mvp4gModuleImpl.java:77)
    at com.relay.bdlive.client.BDLiveEntryPoint.onModuleLoad(BDLiveEntryPoint.java:48)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Unknown Source)
    Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:595)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:455)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    at com.google.gwt.core.client.GWT.create(GWT.java:97)
    at com.relay.bdlive.client.view.TopPanel.&lt;clinit&gt;(TopPanel.java:47)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:654)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:458)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    at com.google.gwt.core.client.GWT.create(GWT.java:97)
    at com.mvp4g.client.Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.create_Key$type$com$relay$bdlive$client$view$TopPanel$_annotation$$none$$(Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.java:125)
    at com.mvp4g.client.Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.get_Key$type$com$relay$bdlive$client$view$TopPanel$_annotation$$none$$(Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.java:142)
    at com.mvp4g.client.Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.getcom_relay_bdlive_client_presenter_TopPresenterView(Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.java:51)
    at com.mvp4g.client.Mvp4gModuleImpl.createAndStartModule(Mvp4gModuleImpl.java:77)
    at com.relay.bdlive.client.BDLiveEntryPoint.onModuleLoad(BDLiveEntryPoint.java:48)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Unknown Source)


    15:27:39.934 [ERROR] [bdlive] Unable to load module entry point class com.relay.bdlive.client.BDLiveEntryPoint (see associated exception for details)

    java.lang.RuntimeException: Deferred binding failed for 'com.relay.bdlive.client.view.TopPanel' (did you forget to inherit a required module?)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
    at com.google.gwt.core.client.GWT.create(GWT.java:97)
    at com.mvp4g.client.Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.create_Key$type$com$relay$bdlive$client$view$TopPanel$_annotation$$none$$(Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.java:125)
    at com.mvp4g.client.Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.get_Key$type$com$relay$bdlive$client$view$TopPanel$_annotation$$none$$(Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.java:142)
    at com.mvp4g.client.Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.getcom_relay_bdlive_client_presenter_TopPresenterView(Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.java:51)
    at com.mvp4g.client.Mvp4gModuleImpl.createAndStartModule(Mvp4gModuleImpl.java:77)
    at com.relay.bdlive.client.BDLiveEntryPoint.onModuleLoad(BDLiveEntryPoint.java:48)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Unknown Source)
    Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:503)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
    at com.google.gwt.core.client.GWT.create(GWT.java:97)
    at com.mvp4g.client.Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.create_Key$type$com$relay$bdlive$client$view$TopPanel$_annotation$$none$$(Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.java:125)
    at com.mvp4g.client.Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.get_Key$type$com$relay$bdlive$client$view$TopPanel$_annotation$$none$$(Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.java:142)
    at com.mvp4g.client.Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.getcom_relay_bdlive_client_presenter_TopPresenterView(Mvp4gModuleImpl_com_mvp4g_client_Mvp4gModuleGinjectorImpl.java:51)
    at com.mvp4g.client.Mvp4gModuleImpl.createAndStartModule(Mvp4gModuleImpl.java:77)
    at com.relay.bdlive.client.BDLiveEntryPoint.onModuleLoad(BDLiveEntryPoint.java:48)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Unknown Source)



    and in the browser we see

  5. #15
    Sencha User
    Join Date
    Jan 2012
    Posts
    12
    Vote Rating
    0
    Evan Smith is on a distinguished road

      0  

    Default hmm still me

    hmm still me


    hello,

    still may be me, as integrating in the sample. so no need to debug anything yet.

    thanks,
    evan

  6. #16
    Sencha User
    Join Date
    Jan 2012
    Posts
    12
    Vote Rating
    0
    Evan Smith is on a distinguished road

      0  

    Default got it

    got it


    Hello,

    Well I ripped out everything on the ui.xml page and the corresponding .java and got a button to show up.

    So that is something and I can work with that.

    Thanks!
    I am sure I will post again for something else :-)

    Evan

  7. #17
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,717
    Vote Rating
    89
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Your problem is outlined in the error message - if you look more closely at the java and ui.xml files, it'll be clear to you too.

    [ERROR] [bdlive] - In @UiField aboutLink, template field and owner field types don't match: com.sencha.gxt.widget.core.client.button.TextButton is not assignable to com.google.gwt.user.client.ui.Anchor
    In your ui.xml, you make a <button:TextButton /> with name aboutLink, but in your java you reference @UiField Anchor aboutLink; - that @UiField means to get the isntance from xml, and TextButton and Anchor aren't related.

    If you are using eclipse and the google plugin for eclipse, it should point that error out to you when you have both files saved.

  8. #18
    Sencha User
    Join Date
    May 2012
    Posts
    3
    Vote Rating
    0
    k_prao is on a distinguished road

      0  

    Default How to run an application when it is transfered from one PC to another PC in gxt

    How to run an application when it is transfered from one PC to another PC in gxt


    Hi i'm working on a project but unfortunately system crashed.
    Before ly i've back up of project in another system with all support of jars and everything.
    when i trying to install and run it shows "Unable to start up App Engine Server"