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.
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.
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.
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.
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"
>
--------------------------------------------------------
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' />
<!-- 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;
/**
* The top panel, which contains the 'welcome' message and various links.
*/
@Singleton
public class TopPanel extends Composite implements TopPresenter.ITopView {
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.<clinit>(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.<clinit>(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)
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.
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"