8 Replies Latest reply on Feb 5, 2014 10:25 PM by Christian Sadilek

    Errai widgets initialization

    Hristo Stoyanov Master

      I amtrying to use Errai widgets and I am getting the below exception. Any clue?

       

       

      Caused by: java.lang.IllegalStateException: Composite.initWidget() may only be called once.

      at com.google.gwt.user.client.ui.Composite.initWidget(Composite.java:127)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      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:338)

      at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)

      at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)

      at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)

      at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:299)

      at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)

      at org.jboss.errai.ui.shared.TemplateUtil.initWidgetNative(TemplateUtil.java)

      at org.jboss.errai.ui.shared.TemplateUtil.initWidget(TemplateUtil.java:110)

      at org.jboss.errai.ioc.client.BootstrapperImpl$22$1.init(BootstrapperImpl.java:581)

      at org.jboss.errai.ioc.client.BootstrapperImpl$22$1.init(BootstrapperImpl.java:1)

      at org.jboss.errai.ioc.client.container.AbstractCreationalContext.fireAllInitCallbacks(AbstractCreationalContext.java:196)

      at org.jboss.errai.ioc.client.container.SimpleCreationalContext.finish(SimpleCreationalContext.java:177)

      at org.jboss.errai.ioc.client.container.IOCDependentBean.getInstance(IOCDependentBean.java:85)

      at org.jboss.errai.ioc.client.container.SyncToAsyncBeanManagerAdpater$1.getInstance(SyncToAsyncBeanManagerAdpater.java:148)

      at org.jboss.errai.ui.nav.client.local.spi.GeneratedNavigationGraph$3.produceContent(GeneratedNavigationGraph.java:125)

      at org.jboss.errai.ui.nav.client.local.Navigation.showPage(Navigation.java:269)

      at org.jboss.errai.ui.nav.client.local.Navigation.navigate(Navigation.java:211)

      at org.jboss.errai.ui.nav.client.local.Navigation.access$1(Navigation.java:194)

      at org.jboss.errai.ui.nav.client.local.Navigation$1.onValueChange(Navigation.java:107)

      at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:128)

      at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.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.HandlerManager.fireEvent(HandlerManager.java:127)

      at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:80)

      at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43)

      at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:87)

      at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java:131)

      at org.jboss.errai.ui.nav.client.local.Navigation$2.run(Navigation.java:115)

      at org.jboss.errai.common.client.api.extension.InitVotes$OneTimeRunnable.run(InitVotes.java:398)

      at org.jboss.errai.common.client.api.extension.InitVotes._runAllRunnables(InitVotes.java:370)

      at org.jboss.errai.common.client.api.extension.InitVotes._runAllRunnables(InitVotes.java:355)

      at org.jboss.errai.common.client.api.extension.InitVotes.finishInit(InitVotes.java:340)

      at org.jboss.errai.common.client.api.extension.InitVotes.access$3(InitVotes.java:335)

      at org.jboss.errai.common.client.api.extension.InitVotes$1.run(InitVotes.java:184)

      at org.jboss.errai.common.client.api.tasks.ClientTaskManager$ClientAsyncTask.run(ClientTaskManager.java:89)

      at org.jboss.errai.common.client.api.tasks.ClientTaskManager$TaskManagerTimer.run(ClientTaskManager.java:190)

      at com.google.gwt.user.client.Timer.fire(Timer.java:149)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      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:338)

      at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)

      at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)

      at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)

      at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)

      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:242)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      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:293)

      at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)

      at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)

      at java.lang.Thread.run(Thread.java:744)

        • 1. Re: Errai widgets initialization
          Hristo Stoyanov Master

          Here is the complete stack trace - still not very informative as to what is wrong with my Errai widgets and CDI. I am using 2,4,3, btw.:

                  00:14:20.577 [ERROR] Async Task Execution Failed. Future executions (if any) are cancelled.

          com.google.gwt.event.shared.UmbrellaException: Exception caught: error in bean initialization
               at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)
               at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:80)
               at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43)
               at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:87)
               at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java:131)
               at org.jboss.errai.ui.nav.client.local.Navigation$2.run(Navigation.java:115)
               at org.jboss.errai.common.client.api.extension.InitVotes$OneTimeRunnable.run(InitVotes.java:398)
               at org.jboss.errai.common.client.api.extension.InitVotes._runAllRunnables(InitVotes.java:370)
               at org.jboss.errai.common.client.api.extension.InitVotes._runAllRunnables(InitVotes.java:355)
               at org.jboss.errai.common.client.api.extension.InitVotes.finishInit(InitVotes.java:340)
               at org.jboss.errai.common.client.api.extension.InitVotes.access$3(InitVotes.java:335)
               at org.jboss.errai.common.client.api.extension.InitVotes$1.run(InitVotes.java:184)
               at org.jboss.errai.common.client.api.tasks.ClientTaskManager$ClientAsyncTask.run(ClientTaskManager.java:89)
               at org.jboss.errai.common.client.api.tasks.ClientTaskManager$TaskManagerTimer.run(ClientTaskManager.java:190)
               at com.google.gwt.user.client.Timer.fire(Timer.java:149)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:606)
               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:338)
               at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
               at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
               at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
               at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
               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:242)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:606)
               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:293)
               at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
               at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
               at java.lang.Thread.run(Thread.java:744)
          Caused by: java.lang.RuntimeException: error in bean initialization
               at org.jboss.errai.ioc.client.container.AbstractCreationalContext.fireAllInitCallbacks(AbstractCreationalContext.java:200)
               at org.jboss.errai.ioc.client.container.SimpleCreationalContext.finish(SimpleCreationalContext.java:177)
               at org.jboss.errai.ioc.client.container.IOCDependentBean.getInstance(IOCDependentBean.java:85)
               at org.jboss.errai.ioc.client.container.SyncToAsyncBeanManagerAdpater$1.getInstance(SyncToAsyncBeanManagerAdpater.java:148)
               at org.jboss.errai.ui.nav.client.local.spi.GeneratedNavigationGraph$3.produceContent(GeneratedNavigationGraph.java:125)
               at org.jboss.errai.ui.nav.client.local.Navigation.showPage(Navigation.java:269)
               at org.jboss.errai.ui.nav.client.local.Navigation.navigate(Navigation.java:211)
               at org.jboss.errai.ui.nav.client.local.Navigation.access$1(Navigation.java:194)
               at org.jboss.errai.ui.nav.client.local.Navigation$1.onValueChange(Navigation.java:107)
               at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:128)
               at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.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.HandlerManager.fireEvent(HandlerManager.java:127)
               at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:80)
               at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43)
               at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:87)
               at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java:131)
               at org.jboss.errai.ui.nav.client.local.Navigation$2.run(Navigation.java:115)
               at org.jboss.errai.common.client.api.extension.InitVotes$OneTimeRunnable.run(InitVotes.java:398)
               at org.jboss.errai.common.client.api.extension.InitVotes._runAllRunnables(InitVotes.java:370)
               at org.jboss.errai.common.client.api.extension.InitVotes._runAllRunnables(InitVotes.java:355)
               at org.jboss.errai.common.client.api.extension.InitVotes.finishInit(InitVotes.java:340)
               at org.jboss.errai.common.client.api.extension.InitVotes.access$3(InitVotes.java:335)
               at org.jboss.errai.common.client.api.extension.InitVotes$1.run(InitVotes.java:184)
               at org.jboss.errai.common.client.api.tasks.ClientTaskManager$ClientAsyncTask.run(ClientTaskManager.java:89)
               at org.jboss.errai.common.client.api.tasks.ClientTaskManager$TaskManagerTimer.run(ClientTaskManager.java:190)
               at com.google.gwt.user.client.Timer.fire(Timer.java:149)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:606)
               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:338)
               at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
               at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
               at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
               at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
               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:242)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:606)
               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:293)
               at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
               at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
               at java.lang.Thread.run(Thread.java:744)
          Caused by: java.lang.IllegalStateException: Composite.initWidget() may only be called once.
               at com.google.gwt.user.client.ui.Composite.initWidget(Composite.java:127)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:606)
               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:338)
               at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
               at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
               at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
               at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:299)
               at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
               at org.jboss.errai.ui.shared.TemplateUtil.initWidgetNative(TemplateUtil.java)
               at org.jboss.errai.ui.shared.TemplateUtil.initWidget(TemplateUtil.java:110)
               at org.jboss.errai.ioc.client.BootstrapperImpl$21$1.init(BootstrapperImpl.java:575)
               at org.jboss.errai.ioc.client.BootstrapperImpl$21$1.init(BootstrapperImpl.java:1)
               at org.jboss.errai.ioc.client.container.AbstractCreationalContext.fireAllInitCallbacks(AbstractCreationalContext.java:196)
               at org.jboss.errai.ioc.client.container.SimpleCreationalContext.finish(SimpleCreationalContext.java:177)
               at org.jboss.errai.ioc.client.container.IOCDependentBean.getInstance(IOCDependentBean.java:85)
               at org.jboss.errai.ioc.client.container.SyncToAsyncBeanManagerAdpater$1.getInstance(SyncToAsyncBeanManagerAdpater.java:148)
               at org.jboss.errai.ui.nav.client.local.spi.GeneratedNavigationGraph$3.produceContent(GeneratedNavigationGraph.java:125)
               at org.jboss.errai.ui.nav.client.local.Navigation.showPage(Navigation.java:269)
               at org.jboss.errai.ui.nav.client.local.Navigation.navigate(Navigation.java:211)
               at org.jboss.errai.ui.nav.client.local.Navigation.access$1(Navigation.java:194)
               at org.jboss.errai.ui.nav.client.local.Navigation$1.onValueChange(Navigation.java:107)
               at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:128)
               at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.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.HandlerManager.fireEvent(HandlerManager.java:127)
               at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java:80)
               at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43)
               at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java:87)
               at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java:131)
               at org.jboss.errai.ui.nav.client.local.Navigation$2.run(Navigation.java:115)
               at org.jboss.errai.common.client.api.extension.InitVotes$OneTimeRunnable.run(InitVotes.java:398)
               at org.jboss.errai.common.client.api.extension.InitVotes._runAllRunnables(InitVotes.java:370)
               at org.jboss.errai.common.client.api.extension.InitVotes._runAllRunnables(InitVotes.java:355)
               at org.jboss.errai.common.client.api.extension.InitVotes.finishInit(InitVotes.java:340)
               at org.jboss.errai.common.client.api.extension.InitVotes.access$3(InitVotes.java:335)
               at org.jboss.errai.common.client.api.extension.InitVotes$1.run(InitVotes.java:184)
               at org.jboss.errai.common.client.api.tasks.ClientTaskManager$ClientAsyncTask.run(ClientTaskManager.java:89)
               at org.jboss.errai.common.client.api.tasks.ClientTaskManager$TaskManagerTimer.run(ClientTaskManager.java:190)
               at com.google.gwt.user.client.Timer.fire(Timer.java:149)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:606)
               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:338)
               at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
               at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
               at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
               at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:279)
               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:242)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:606)
               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:293)
               at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
               at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
               at java.lang.Thread.run(Thread.java:744)
          • 2. Re: Errai widgets initialization
            Christian Sadilek Master

            Hi Hristo,

             

            Can you open your .errai/BootstrapperImpl.java and check which widget (templated bean) is causing this. You should find that at line 575. Can you share this bean's code with us so we can try and reproduce this?

             

            Cheers,

            Christian

            • 3. Re: Re: Errai widgets initialization
              Hristo Stoyanov Master

              Thanks Christian, here is the code:

              private final BeanProvider<VerificationRequestsListWidget> inj14226_VerificationRequestsListWidget_creational = new BeanProvider<VerificationRequestsListWidget>() {

                  public VerificationRequestsListWidget getInstance(final CreationalContext context) {

                    final VerificationRequestsListWidget inj13153_VerificationRequestsListWidget = new VerificationRequestsListWidget();

                    context.addBean(context.getBeanReference(VerificationRequestsListWidget.class, QualifierUtil.DEFAULT_QUALIFIERS), inj13153_VerificationRequestsListWidget);

                    context.addInitializationCallback(inj13153_VerificationRequestsListWidget, new InitializationCallback<VerificationRequestsListWidget>() {

                      public void init(final VerificationRequestsListWidget obj) {

                        com_docitt_web_client_dealer_verifications_VerificationRequestsListWidgetTemplateResource var949 = GWT.create(com_docitt_web_client_dealer_verifications_VerificationRequestsListWidgetTemplateResource.class);

                        Element var950 = TemplateUtil.getRootTemplateElement(var949.getContents().getText(), "verificationRequests");

                        TemplateUtil.translateTemplate("com/docitt/web/client/dealer/verifications/VerificationRequestsContent.html", var950);

                        Map<String, Element> var951 = TemplateUtil.getDataFieldElements(var950);

                        Map<String, Widget> var952 = new LinkedHashMap<String, Widget>();

                        TemplateUtil.initWidget(inj13153_VerificationRequestsListWidget, var950, var952.values());

                      }

                    });

                    context.addInitializationCallback(inj13153_VerificationRequestsListWidget, init_inj13153_VerificationRequestsListWidget);

                    return inj13153_VerificationRequestsListWidget;

                  }

                };

               

              So looks the issue is my VerificationRequestsListWidget. Here are the attached sources

              • 4. Re: Errai widgets initialization
                Christian Sadilek Master

                Hi,

                 

                I see the problem now. Your VerificationRequestsListWidget does not need the @Templated annotation. It's the item widget (VerificationRequestWidget) that needs it (and it already has in your case), So simply removing @Templated from VerificationRequestsListWidget should fix this.

                 

                The list widget itself cannot be @Templated. We could add support for this if there's a use case.

                 

                Cheers,

                Christian

                • 5. Re: Errai widgets initialization
                  Hristo Stoyanov Master

                  Thanks Christian, I knew i was doing something stupid ... Any chance the Errai diagnostics gets better with mistakes like this, preferably at compile time?

                  • 6. Re: Errai widgets initialization
                    Christian Sadilek Master

                    Yes, this case in particular can easily be caught at compile/rebind time. If you want you can create  a JIRA for us. It will be easy to fix