Error with custom TextField indicator

31 views
Skip to first unread message

arian

unread,
Jun 13, 2012, 7:01:32 AM6/13/12
to google-we...@googlegroups.com
Hi there 

I am trying to create a Custom TextField with a label and replace an existing ui:TextBox in the main ui.xml file with it but get error
Unable to load module entry point class com.equillore.mcmexternal.client.Mcmexternal .

public class IndicatorTextField extends Composite implements HasText, HasKeyUpHandlers, HasBlurHandlers {
public interface Binder extends UiBinder<Widget, IndicatorTextField> {
}
private static final Binder binder = GWT.create(Binder.class);
public interface Style extends CssResource{
String textStyling();
String requiredInput();
}
@UiField Style style;
@UiField Label label;

@Override
public String getText() {
return label.getText();
}

@Override
public void setText(String text) {
label.setText(text);
}

@Override
public HandlerRegistration addKeyUpHandler(KeyUpHandler handler) {
// TODO Auto-generated method stub
return null;
}

@Override
public HandlerRegistration addBlurHandler(BlurHandler handler) {
// TODO Auto-generated method stub
return null;
}

}

There could be a variety reasons for this but what is a good point to start looking for a solution to this exception
A
     

Thomas Broyer

unread,
Jun 13, 2012, 8:46:17 AM6/13/12
to google-we...@googlegroups.com
Start by looking at the logs, it must print more info than just "Unable to load module entry point", there should be some "deferred binding failed" of some kind with additional info.
Try increasing the -logLevel, but the default (INFO) is generally enough to diagnose your own mistakes.

arian

unread,
Jun 13, 2012, 9:10:59 AM6/13/12
to google-we...@googlegroups.com
I added event handelers to my custom textbox and was wondering if this may be the reason for the errors.

Here are the related error logs. Any further advice perhaps on where the errors could come from.?

at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)
at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:75)
at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43)
at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:82)
at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java:121)
at com.gwtplatform.mvp.client.proxy.PlaceManagerImpl.revealCurrentPlace(PlaceManagerImpl.java:310)
at com.equillore.mcmexternal.client.Mcmexternal.onModuleLoad(Mcmexternal.java:23)
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)
Reply all
Reply to author
Forward
0 new messages