3 Replies Latest reply: Jan 29, 2013 1:19 PM by Michael Anstis RSS

2.2.0.Final RPC issues + unresolvable types in IOC codegen

Michael Anstis Newbie

Hello,

 

Starting from today we get the below compilation warnings with 2.2.0-SNAPSHOT (and 2.2.0.Final). We did not see these until today.

 

Furthermore we are also having RPC related NPE's too. Please also see below (the "real" VFSServiceImpl.readAttributes() implementation in the below NPE stack-trace is not hit - i.e. a breakpoint on it is never hit).

 

Has anything mysteriously happened in errai-land?

 

Thanks,

 

Mike

 

Compile time warnings

 

Loading module: org.kie.guvnor.GuvnorShowcase

  Top URL: http://127.0.0.1:8888/org.kie.guvnor.GuvnorShowcase/Guvnor.html?gwt.codesvr=127.0.0.1:9997

  User agent: FF

  Remote host: localhost:60917

  Tab key: 0x8eb8dda0

  Session key: &"]nUds_;2v$|=8:

DEBUG: Validating units:

  INFO: Ignored 7 units with compilation errors in first pass.

Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.

DEBUG: Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

  DEBUG: Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

    INFO: Generating Marshallers Bootstrapper...

DEBUG: Rebinding org.jboss.errai.ioc.client.QualifierEqualityFactory

  DEBUG: Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.QualifierEqualityFactoryGenerator

    INFO: Generating Extensions Bootstrapper...

DEBUG: Rebinding org.jboss.errai.ioc.client.Bootstrapper

  DEBUG: Invoking generator org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCGenerator

    INFO: Generating Extensions Bootstrapper...

    INFO: Checking ErraiApp.properties for configured types ...

  DEBUG: Adding '1' new generated units

    SPAM: Resolving org.jboss.errai.ioc.client.BootstrapperImpl

    SPAM: Resolving org.jboss.errai.ioc.client.BootstrapperImpl.View_inj2348_proxy

    SPAM: Resolving org.jboss.errai.ioc.client.BootstrapperImpl.View_inj2390_proxy

    SPAM: Resolving org.jboss.errai.ioc.client.BootstrapperImpl.View_inj2418_proxy

    SPAM: Resolving org.jboss.errai.ioc.client.BootstrapperImpl.ProjectEditorScreenPresenter_inj2360_proxy

    SPAM: Resolving org.jboss.errai.ioc.client.BootstrapperImpl.View_inj2387_proxy

    SPAM: Resolving org.jboss.errai.ioc.client.BootstrapperImpl.View_inj2334_proxy

      SPAM: Found type 'org.jboss.errai.ioc.client.BootstrapperImpl'

      SPAM: Found type 'org.jboss.errai.ioc.client.BootstrapperImpl.View_inj2348_proxy'

      SPAM: Found type 'org.jboss.errai.ioc.client.BootstrapperImpl.View_inj2390_proxy'

      SPAM: Found type 'org.jboss.errai.ioc.client.BootstrapperImpl.View_inj2418_proxy'

      SPAM: Found type 'org.jboss.errai.ioc.client.BootstrapperImpl.ProjectEditorScreenPresenter_inj2360_proxy'

      SPAM: Found type 'org.jboss.errai.ioc.client.BootstrapperImpl.View_inj2387_proxy'

      SPAM: Found type 'org.jboss.errai.ioc.client.BootstrapperImpl.View_inj2334_proxy'

        WARN: Unable to resolve method method _$479983518_service

        WARN: Unable to resolve interface org/kie/guvnor/enums/client/editor/EnumEditorPresenter$View

        WARN: Unable to resolve interface org/kie/guvnor/factmodel/client/editor/FactModelsEditorPresenter$View

        WARN: Unable to resolve interface org/kie/guvnor/guided/scorecard/client/GuidedScoreCardEditorPresenter$View

        WARN: Unable to resolve supertype org/kie/guvnor/projecteditor/client/forms/ProjectEditorScreenPresenter

        WARN: Unable to resolve interface org/kie/guvnor/guided/dtable/client/GuidedDecisionTableEditorPresenter$View

        WARN: Unable to resolve interface org/kie/guvnor/guided/rule/client/GuidedRuleEditorPresenter$View

INFO: Module org.kie.guvnor.GuvnorShowcase has been loaded

 

RPC NPE

 

ERROR: Uncaught exception escaped

com.google.gwt.event.shared.UmbrellaException: Exception caught: null

    at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)

    at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)

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

    at com.google.gwt.user.client.ui.Tree.onSelection(Tree.java:1340)

    at com.google.gwt.user.client.ui.Tree.elementClicked(Tree.java:1067)

    at com.google.gwt.user.client.ui.Tree.onBrowserEvent(Tree.java:693)

    at com.google.gwt.user.client.ui.Composite.onBrowserEvent(Composite.java:83)

    at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1351)

    at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1307)

    at sun.reflect.GeneratedMethodAccessor74.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.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.GeneratedMethodAccessor59.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: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:662)

Caused by: java.lang.NullPointerException: null

    at org.jboss.errai.bus.client.framework.RpcProxyLoaderImpl$1org_uberfire_backend_vfs_VFSServiceImpl.readAttributes(RpcProxyLoaderImpl.java:1680)

    at org.uberfire.client.editors.fileexplorer.FileExplorerPresenter.redirect(FileExplorerPresenter.java:167)

    at org.uberfire.client.editors.fileexplorer.FileExplorerView$2.onSelection(FileExplorerView.java:84)

    at com.google.gwt.event.logical.shared.SelectionEvent.dispatch(SelectionEvent.java:89)

    at com.google.gwt.event.logical.shared.SelectionEvent.dispatch(SelectionEvent.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.ui.Widget.fireEvent(Widget.java:129)

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

    at com.google.gwt.user.client.ui.Tree.onSelection(Tree.java:1340)

    at com.google.gwt.user.client.ui.Tree.elementClicked(Tree.java:1067)

    at com.google.gwt.user.client.ui.Tree.onBrowserEvent(Tree.java:693)

    at com.google.gwt.user.client.ui.Composite.onBrowserEvent(Composite.java:83)

    at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1351)

    at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1307)

    at sun.reflect.GeneratedMethodAccessor74.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.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.GeneratedMethodAccessor59.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: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:662)

  • 1. Re: 2.2.0.Final RPC issues + unresolvable types in IOC codegen
    Jonathan Fuerth Master

    The only clue I can see in the log points toward the possibility that some nontranslatable code crept into one of your GWT modules:

     

      INFO: Ignored 7 units with compilation errors in first pass.

    Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.

     

    This is always a red flag for me. I see you've got the logging level set all the way down to SPAM.. but I don't see the actual list of the 7 units with compile errors. Can you take a second look?

     

    -Jonathan

  • 2. Re: 2.2.0.Final RPC issues + unresolvable types in IOC codegen
    Jonathan Fuerth Master

    Oh, this is a list of 7 things. Probably the 7 things the GWT compiler was talking about

     

            WARN: Unable to resolve method method _$479983518_service

            WARN: Unable to resolve interface org/kie/guvnor/enums/client/editor/EnumEditorPresenter$View

            WARN: Unable to resolve interface org/kie/guvnor/factmodel/client/editor/FactModelsEditorPresenter$View

            WARN: Unable to resolve interface org/kie/guvnor/guided/scorecard/client/GuidedScoreCardEditorPresenter$View

            WARN: Unable to resolve supertype org/kie/guvnor/projecteditor/client/forms/ProjectEditorScreenPresenter

            WARN: Unable to resolve interface org/kie/guvnor/guided/dtable/client/GuidedDecisionTableEditorPresenter$View

            WARN: Unable to resolve interface org/kie/guvnor/guided/rule/client/GuidedRuleEditorPresenter$View

     

    Is it possible you're missing a GWT dependency on a required module, or maybe missing .java sources in one or more of the dependent jars?

     

    If you could also give us your generated RpcProxyLoaderImpl.java, we might be able to come up with additional suggestions.

     

    -Jonathan

  • 3. Re: 2.2.0.Final RPC issues + unresolvable types in IOC codegen
    Michael Anstis Newbie

    The problem was caused by a class being ignored by the GWT compiler that was core to the other classes.. and hence the problem became more and more compounded.

     

    Jonathan's suggestion to look at GWT's compilation with Log Level DEBUG pointed me to the problem. Thanks

     

    As usual, Errai (on the whole) continues to rock!