Errai 4.0 Beta 3发出此错误“查找JsType提供程序时遇到错误”

时间:2016-12-21 05:53:57

标签: java gwt errai

我在使用Eclipse和SDBG进行调试时在chrome控制台中收到此错误。除此错误外,Web应用程序和页面运行良好。

知道如何排除故障吗?

[SyncBeanManager]查找my.devs.web.client.local.page.Create的JsType提供程序时遇到错误

创建的地方

@Page
@Templated
public class Create extends Composite {
...
}

完整错误:

13:05:49 FINE [Dash] Display create complaint form
ErraiConsoleLogHandler.java:79 13:05:49 FINE [Navigation] Navigating to Create at url: Create
ErraiConsoleLogHandler.java:79 13:05:49 FINE [SyncBeanManager] Looking up beans for my.devs.web.client.local.page.Create
ErraiConsoleLogHandler.java:79 13:05:49 FINE [SyncBeanManager] Encountered error when looking up JsType providers for my.devs.web.client.local.page.Create
ErraiConsoleLogHandler.java:79 com.google.gwt.core.client.JavaScriptException: (TypeError) : lai_g$(...).getProviders is not a function
    at Unknown.TypeError: lai_g$(Unknown@-1)
    at Unknown.Xfi_g$(erraiapp-0.js@21:82497)
    at Unknown.egi_g$(erraiapp-0.js@27:82593)
    at Unknown.dgi_g$(erraiapp-0.js@15:82584)
    at Unknown.bgi_g$(erraiapp-0.js@22:82566)
    at Unknown.cgi_g$(erraiapp-0.js@26:82572)
    at Unknown.agi_g$(erraiapp-0.js@24:82553)
    at Unknown.Xgi_g$(erraiapp-0.js@31:82860)
    at Unknown.PGi_g$(erraiapp-0.js@31:91245)
    at Unknown.pDi_g$(erraiapp-0.js@30:90073)
    at Unknown.qDi_g$(erraiapp-0.js@8:90086)
    at Unknown.sDi_g$(erraiapp-0.js@8:90099)
    at Unknown.rDi_g$(erraiapp-0.js@8:90091)
    at Unknown.gDi_g$(erraiapp-0.js@10:89962)
    at Unknown.k0i_g$(erraiapp-0.js@24:61969)
    at Unknown.l0i_g$(erraiapp-0.js@8:61963)
    at Unknown.t0i_g$(erraiapp-0.js@24:62021)
    at Unknown.lambda_0_g$(erraiapp-0.js@27:103)
13:05:49 FINE [SyncBeanManager] Looked up 1 beans: [[type=my.devs.web.client.local.page.Create, qualifiers=[@Default, @Any]]]
ErraiConsoleLogHandler.java:79 13:05:49 FINEST [TemplateUtil] <div class="row">
    <div class="col-md-12 text-center">
        <h1 class="text-inverse">Test Create</h1>
        <br> <br> <a class="btn btn-lg btn-primary">Create</a>
    </div>
</div>
ErraiConsoleLogHandler.java:79 13:05:49 FINER [TemplateUtil] Searching template for fields.
ErraiConsoleLogHandler.java:79 13:05:49 FINE [Create] Create construct ...
ErraiConsoleLogHandler.java:79 13:05:49 FINE [Create] Create constructed ...
ErraiConsoleLogHandler.java:79 13:05:49 FINE [Dash] Dash page hiden!

我也遇到了另一个类似的错误,但对于LifecycleListenerRegistrar

[SyncBeanManager] Encountered error when looking up JsType providers for org.jboss.errai.ioc.client.lifecycle.api.LifecycleListenerRegistrar

> ErraiConsoleLogHandler.java:79 13:05:49 FINE [Dash] Display create complaint form
ErraiConsoleLogHandler.java:79 13:05:49 FINE [Navigation] Navigating to Create at url: Create
ErraiConsoleLogHandler.java:79 13:05:49 FINE [SyncBeanManager] Looking up beans for my.devs.web.client.local.page.Create
ErraiConsoleLogHandler.java:79 13:05:49 FINE [SyncBeanManager] Encountered error when looking up JsType providers for my.devs.web.client.local.page.Create
ErraiConsoleLogHandler.java:79 com.google.gwt.core.client.JavaScriptException: (TypeError) : lai_g$(...).getProviders is not a function
    at Unknown.TypeError: lai_g$(Unknown@-1)
    at Unknown.Xfi_g$(erraiapp-0.js@21:82497)
    at Unknown.egi_g$(erraiapp-0.js@27:82593)
    at Unknown.dgi_g$(erraiapp-0.js@15:82584)
    at Unknown.bgi_g$(erraiapp-0.js@22:82566)
    at Unknown.cgi_g$(erraiapp-0.js@26:82572)
    at Unknown.agi_g$(erraiapp-0.js@24:82553)
    at Unknown.Xgi_g$(erraiapp-0.js@31:82860)
    at Unknown.PGi_g$(erraiapp-0.js@31:91245)
    at Unknown.pDi_g$(erraiapp-0.js@30:90073)
    at Unknown.qDi_g$(erraiapp-0.js@8:90086)
    at Unknown.sDi_g$(erraiapp-0.js@8:90099)
    at Unknown.rDi_g$(erraiapp-0.js@8:90091)
    at Unknown.gDi_g$(erraiapp-0.js@10:89962)
    at Unknown.k0i_g$(erraiapp-0.js@24:61969)
    at Unknown.l0i_g$(erraiapp-0.js@8:61963)
    at Unknown.t0i_g$(erraiapp-0.js@24:62021)
    at Unknown.lambda_0_g$(erraiapp-0.js@27:103)
ErraiConsoleLogHandler.java:79 13:05:49 FINE [SyncBeanManager] Looked up 1 beans: [[type=my.devs.web.client.local.page.Create, qualifiers=[@Default, @Any]]]
ErraiConsoleLogHandler.java:79 13:05:49 FINEST [TemplateUtil] <div class="row">
    <div class="col-md-12 text-center">
        <h1 class="text-inverse">Test Create</h1>
        <br> <br> <a class="btn btn-lg btn-primary">Create</a>
    </div>
</div>
ErraiConsoleLogHandler.java:79 13:05:49 FINER [TemplateUtil] Searching template for fields.
ErraiConsoleLogHandler.java:79 13:05:49 FINE [Create] Create construct ...
ErraiConsoleLogHandler.java:79 13:05:49 FINE [Create] Create constructed ...
ErraiConsoleLogHandler.java:79 13:05:49 FINE [Dash] Dash page hiden!
ErraiConsoleLogHandler.java:79 13:05:49 FINE [SyncBeanManager] Looking up beans for org.jboss.errai.ioc.client.lifecycle.api.LifecycleListenerRegistrar
ErraiConsoleLogHandler.java:79 13:05:49 FINE [SyncBeanManager] Encountered error when looking up JsType providers for org.jboss.errai.ioc.client.lifecycle.api.LifecycleListenerRegistrar
ErraiConsoleLogHandler.java:79 com.google.gwt.core.client.JavaScriptException: (TypeError) : lai_g$(...).getProviders is not a function
    at Unknown.TypeError: lai_g$(Unknown@-1)
    at Unknown.Xfi_g$(erraiapp-0.js@21:82497)
    at Unknown.egi_g$(erraiapp-0.js@27:82593)
    at Unknown.dgi_g$(erraiapp-0.js@15:82584)
    at Unknown.bgi_g$(erraiapp-0.js@22:82566)
    at Unknown.cgi_g$(erraiapp-0.js@26:82572)
    at Unknown.agi_g$(erraiapp-0.js@24:82553)
    at Unknown.Xgi_g$(erraiapp-0.js@31:82860)
    at Unknown.oji_g$(erraiapp-0.js@12:83032)
    at Unknown.NDi_g$(erraiapp-0.js@20:90266)
    at Unknown.JFi_g$(erraiapp-0.js@24:90841)
    at Unknown.n_i_g$(erraiapp-0.js@16:91489)
    at Unknown.m_i_g$(erraiapp-0.js@8:91449)
    at Unknown.uDi_g$(erraiapp-0.js@27:90119)
    at Unknown.mDi_g$(erraiapp-0.js@12:89902)
    at Unknown.YDi_g$(erraiapp-0.js@24:90353)
    at Unknown.dhi_g$(erraiapp-0.js@17:82919)
    at Unknown.PGi_g$(erraiapp-0.js@223:91245)
    at Unknown.pDi_g$(erraiapp-0.js@30:90073)
    at Unknown.qDi_g$(erraiapp-0.js@8:90086)
    at Unknown.sDi_g$(erraiapp-0.js@8:90099)
    at Unknown.rDi_g$(erraiapp-0.js@8:90091)
    at Unknown.gDi_g$(erraiapp-0.js@10:89962)
    at Unknown.k0i_g$(erraiapp-0.js@24:61969)
    at Unknown.l0i_g$(erraiapp-0.js@8:61963)
    at Unknown.t0i_g$(erraiapp-0.js@24:62021)
    at Unknown.lambda_0_g$(erraiapp-0.js@27:103)
ErraiConsoleLogHandler.java:79 13:05:49 FINE [SyncBeanManager] Looked up 1 beans: [[type=org.jboss.errai.ioc.client.lifecycle.impl.LifecycleListenerRegistrarImpl, qualifiers=[@Default, @Any]]]
ErraiConsoleLogHandler.java:79 13:05:49 FINE [SyncBeanManager] Looking up beans for org.jboss.errai.ioc.client.lifecycle.api.LifecycleListenerRegistrar
ErraiConsoleLogHandler.java:79 13:05:49 FINE [SyncBeanManager] Encountered error when looking up JsType providers for org.jboss.errai.ioc.client.lifecycle.api.LifecycleListenerRegistrar
ErraiConsoleLogHandler.java:79 com.google.gwt.core.client.JavaScriptException: (TypeError) : lai_g$(...).getProviders is not a function
    at Unknown.TypeError: lai_g$(Unknown@-1)
    at Unknown.Xfi_g$(erraiapp-0.js@21:82497)
    at Unknown.egi_g$(erraiapp-0.js@27:82593)
    at Unknown.dgi_g$(erraiapp-0.js@15:82584)
    at Unknown.bgi_g$(erraiapp-0.js@22:82566)
    at Unknown.cgi_g$(erraiapp-0.js@26:82572)
    at Unknown.agi_g$(erraiapp-0.js@24:82553)
    at Unknown.Xgi_g$(erraiapp-0.js@31:82860)
    at Unknown.oji_g$(erraiapp-0.js@12:83032)
    at Unknown.nji_g$(erraiapp-0.js@8:83028)
    at Unknown.RDi_g$(erraiapp-0.js@64:90298)
    at Unknown.Oji_g$(erraiapp-0.js@29:83183)
    at Unknown.Nji_g$(erraiapp-0.js@8:83163)
    at Unknown.dhi_g$(erraiapp-0.js@17:82919)
    at Unknown.oji_g$(erraiapp-0.js@235:83032)
    at Unknown.NDi_g$(erraiapp-0.js@20:90266)
    at Unknown.JFi_g$(erraiapp-0.js@24:90841)
    at Unknown.n_i_g$(erraiapp-0.js@16:91489)
    at Unknown.m_i_g$(erraiapp-0.js@8:91449)
    at Unknown.uDi_g$(erraiapp-0.js@27:90119)
    at Unknown.mDi_g$(erraiapp-0.js@12:89902)
    at Unknown.YDi_g$(erraiapp-0.js@24:90353)
    at Unknown.dhi_g$(erraiapp-0.js@17:82919)
    at Unknown.PGi_g$(erraiapp-0.js@223:91245)
    at Unknown.pDi_g$(erraiapp-0.js@30:90073)
    at Unknown.qDi_g$(erraiapp-0.js@8:90086)
    at Unknown.sDi_g$(erraiapp-0.js@8:90099)
    at Unknown.rDi_g$(erraiapp-0.js@8:90091)
    at Unknown.gDi_g$(erraiapp-0.js@10:89962)
    at Unknown.k0i_g$(erraiapp-0.js@24:61969)
    at Unknown.l0i_g$(erraiapp-0.js@8:61963)
    at Unknown.t0i_g$(erraiapp-0.js@24:62021)
    at Unknown.lambda_0_g$(erraiapp-0.js@27:103)
ErraiConsoleLogHandler.java:79 13:05:49 FINE [SyncBeanManager] Looked up 1 beans: [[type=org.jboss.errai.ioc.client.lifecycle.impl.LifecycleListenerRegistrarImpl, qualifiers=[@Default, @Any]]]
ErraiConsoleLogHandler.java:79 13:05:49 FINE [Create] Create page shown!
ErraiConsoleLogHandler.java:79 13:05:49 FINE [Navigation] URL value changed to Create

只是指出在页面生命周期的以下阶段之间发生所有这些错误的模式

[Navigation] Navigating to Create at url: Create
{error when looking up JsType providers for page Create }
PostConstruct for Create page
PageHiding for the previous page called Dash
{error when looking up JsType providers for LifecycleListenerRegistrar}
{error when looking up JsType providers for LifecycleListenerRegistrar}
PageShown for Create page

导航到另一个名为Dash的页面,只会重复相同的错误模式。

不确定这是否与上述有关。但在初始加载/引导期间。我也得到了这个错误!

13:47:27 FINE [Container] Bean manager initialized in 116ms
ErraiConsoleLogHandler.java:7913:47:27 FINE [Container] Running post initialization runnables...
ErraiConsoleLogHandler.java:7913:47:27 FINE [Container] All post initialization runnables finished in 0ms
ErraiConsoleLogHandler.java:8313:47:27 INFO [Container] IOC bootstrapper successfully initialized in 239ms
ErraiConsoleLogHandler.java:83 13:47:27 INFO [InitVotes] wait for: org.jboss.errai.marshalling.client.api.MarshallerFramework
ErraiConsoleLogHandler.java:83 13:47:27 INFO [InitVotes] vote for: org.jboss.errai.marshalling.client.api.MarshallerFramework
ErraiConsoleLogHandler.java:83 13:47:27 INFO [ClientMessageBus] bus initialization started ...
ErraiConsoleLogHandler.java:83 13:47:27 INFO [InitVotes] wait for: org.jboss.errai.bus.client.api.ClientMessageBus
***Throwable.java:121 Uncaught Error: java.lang.ClassCastException
    at drb_g$.oC_g$ [as createError_0_g$] (Throwable.java:121)
    at drb_g$.yC_g$ [as initializeBackingError_0_g$] (Throwable.java:113)
    at drb_g$.fC_g$ (Throwable.java:61)
    at drb_g$.LC_g$ (Exception.java:25)
    at drb_g$.TC_g$ (RuntimeException.java:25)
    at drb_g$ (ClassCastException.java:23)
    at c7g_g$ (InternalPreconditions.java:141)
    at m7g_g$ (InternalPreconditions.java:129)
    at d6d_g$ (Cast.java:75)
    at Array.h9d_g$ (my_00046devs_00046web_00046ErraiAppJUnit__EntryMethodHolder.java:3)
    at initializeModules_0_g$ (ModuleUtils.java:44)
    at Qbc_g$ (Impl.java:239)
    at Tbc_g$ (Impl.java:298)
    at Impl.java:77
    at B8d_g$ (ModuleUtils.java:55)
    at NodeList.java:23
oC_g$ @ Throwable.java:121
yC_g$ @ Throwable.java:113
fC_g$ @ Throwable.java:61
LC_g$ @ Exception.java:25
TC_g$ @ RuntimeException.java:25
drb_g$ @ ClassCastException.java:23
c7g_g$ @ InternalPreconditions.java:141
m7g_g$ @ InternalPreconditions.java:129
d6d_g$ @ Cast.java:75
h9d_g$ @ my_00046devs_00046web_00046ErraiAppJUnit__EntryMethodHolder.java:3
initializeModules_0_g$ @ ModuleUtils.java:44
Qbc_g$ @ Impl.java:239
Tbc_g$ @ Impl.java:298
(anonymous) @ Impl.java:77
B8d_g$ @ ModuleUtils.java:55
(anonymous) @ NodeList.java:23***
ErraiConsoleLogHandler.java:83 13:47:27 INFO [ClientMessageBus] sending handshake message to remote bus
ErraiConsoleLogHandler.java:79 13:47:27 FINEST [HttpPollingHandler] [bus] HttpPollingHandler.transmit([CommandType=Asso

我完全迷失了。感谢任何帮助!

注意:我使用Eclipse GWT这是嵌入式jetty服务器运行它。不是野生动物或jboss。

0 个答案:

没有答案