Hello guys,

I have an error in my code I can't sort out. I think is due to a
conceptual issue I'm missing but I'm unable to find it.

I'm using MVP with GXT. I load the entry point correctly with the
following appWidget init:

    private SimplePanel appWidget = new SimplePanel();
     ...
    public void onModuleLoad() {
    ...
    activityManager.setDisplay(appWidget);


At a point from my view I call the presenter and I change to another
place. When doing so I get the following Exception:

Caused by: com.google.gwt.core.client.JavaScriptException:
(NOT_FOUND_ERR): NOT_FOUND_ERR: DOM Exception 8

Becasue appWidget is called from the activityManager with
setWidget(null). Why is this failing? Is this call made to clean up
the placholder before inserting the new view?

The view which is loaded in the placeholder at a moment is a Composite
with a gxt Viewport as initiated widget.

I attach the exception trace. Thanks for your help :D

Caused by: com.google.gwt.core.client.JavaScriptException:
(NOT_FOUND_ERR): NOT_FOUND_ERR: DOM Exception 8
    at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
248)
    at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136)
    at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
    at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
    at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
    at com.google.gwt.dom.client.Node$.removeChild$(Node.java)
    at
com.google.gwt.user.client.ui.SimplePanel.remove(SimplePanel.java:120)
    at
com.google.gwt.user.client.ui.SimplePanel.setWidget(SimplePanel.java:
150)
    at
com.google.gwt.user.client.ui.SimplePanel.setWidget(SimplePanel.java:
129)
    at
com.google.gwt.activity.shared.ActivityManager.showWidget(ActivityManager.java:
202)
    at
com.google.gwt.activity.shared.ActivityManager.onPlaceChange(ActivityManager.java:
125)
    at
com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java:
70)
    at
com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java:
1)
    at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
    at
com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:
40)
    at
com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:
193)
    at
com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:
88)
    at
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:
52)
    at
com.google.gwt.place.shared.PlaceController.goTo(PlaceController.java:
156)
    at
com.reservango.booking.core.client.activity.EntryActivity.goTo(EntryActivity.java:
40)
    at com.reservango.booking.module.login.client.LoginView
$1$1.onSuccess(LoginView.java:67)
    at com.google.gwt.core.client.GWT.runAsync(GWT.java:255)
    at com.reservango.booking.module.login.client.LoginView
$1.onSuccess(LoginView.java:59)
    at com.reservango.booking.module.login.client.LoginView
$1.onSuccess(LoginView.java:1)
    at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
232)
    at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
    at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:395)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
    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:
172)
    at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
337)
    at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
218)
    at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136)
    at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
    at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
    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:213)
    at sun.reflect.GeneratedMethodAccessor78.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:
172)
    at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
292)
    at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
546)
    at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
    at java.lang.Thread.run(Thread.java:662)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to