Errors while upgrading to gin 3.0

15 views
Skip to first unread message

Eduardo Eduardo

unread,
Jan 28, 2021, 2:49:21 PM1/28/21
to google-gin
Hi,

I successfully upgraded to gin 2.1.2. But as soon as I try to upgrade to gin 3, I get many error messages. Any idea what may be the problem?
Most messages are of the form:

[ERROR] Errors in 'com/google/gwt/inject/guiceapi/com/google/inject/Provider.java'

            [ERROR] Line 49: No source code is available for type javax.inject.Provider<T>; did you forget to inherit a required module?

Using guice 4.2.3 and gwt 2.8.2 with java 8

--------------

GET /recompile/reportserver

   Job net.datenwerke.ReportServer_1_0

      starting job: net.datenwerke.ReportServer_1_0

      binding: gxt.device=desktop

      binding: gxt.user.agent=gecko1_9

      binding: user.agent=gecko1_8

      binding: user.agent.os=mac

      Compiling module net.datenwerke.ReportServer

         Ignored 12 units with compilation errors in first pass.

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

         Adding '464' new generated units

            See snapshot: /var/folders/jh/jcvxhqhn5zn85lpydnych1_00000gn/T/net.datenwerke.rs.core.client.reportexecutor.module.net_datenwerke_rs_client_RSGinjector_RSGinjectorGinjector_fragment801561431334566647.java

            See snapshot: /var/folders/jh/jcvxhqhn5zn85lpydnych1_00000gn/T/net.datenwerke.rs.search.client.search.net_datenwerke_rs_client_RSGinjector_RSGinjectorGinjector_fragment6970052201719825062.java

            See snapshot: /var/folders/jh/jcvxhqhn5zn85lpydnych1_00000gn/T/net.datenwerke.rs.search.client.search.module.net_datenwerke_rs_client_RSGinjector_RSGinjectorGinjector_fragment604961762563924894.java

            See snapshot: /var/folders/jh/jcvxhqhn5zn85lpydnych1_00000gn/T/net.datenwerke.rs.core.client.reportexecutor.net_datenwerke_rs_client_RSGinjector_RSGinjectorGinjector_fragment4682255114989101358.java

            Ignored 4 units with compilation errors in first pass.

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

         [ERROR] Errors in 'com/google/gwt/inject/guiceapi/com/google/inject/Provider.java'

            [ERROR] Line 49: No source code is available for type javax.inject.Provider<T>; did you forget to inherit a required module?

         Tracing compile failure path for type 'com.google.inject.Provider'

            [ERROR] Errors in 'com/google/gwt/inject/guiceapi/com/google/inject/Provider.java'

               [ERROR] Line 49: No source code is available for type javax.inject.Provider<T>; did you forget to inherit a required module?

         [ERROR] Hint: Check that the type name 'com.google.inject.Provider' is really what you meant

         [ERROR] Hint: Check that your classpath includes all required source roots

         [ERROR] Errors in 'file:/Users/eduardo/git/reportserver/ReportServer/src/net/datenwerke/rs/core/client/reportexecutor/module/ReportExecuteAreaModule.java'

            [ERROR] Line 17: No source code is available for type javax.inject.Provider<T>; did you forget to inherit a required module?

         Tracing compile failure path for type 'net.datenwerke.rs.core.client.reportexecutor.module.ReportExecuteAreaModule'

            [ERROR] Errors in 'file:/Users/eduardo/git/reportserver/ReportServer/src/net/datenwerke/rs/core/client/reportexecutor/module/ReportExecuteAreaModule.java'

               [ERROR] Line 17: No source code is available for type javax.inject.Provider<T>; did you forget to inherit a required module?

            [ERROR] Errors in 'file:/Users/eduardo/git/reportserver/ReportServer/src/net/datenwerke/gf/client/homepage/modules/ClientTempModuleImpl.java'

               [ERROR] net.datenwerke.gf.client.homepage.ui.DwMainViewport cannot be resolved to a type

            [ERROR] Errors in 'file:/Users/eduardo/git/reportserver/ReportServer/src/net/datenwerke/rs/core/client/reportexecutor/module/ReportExecuteAreaMainWidget.java'

               [ERROR] net.datenwerke.rs.core.client.reportexecutor.module.ReportExecuteAreaModule cannot be resolved to a type

            [ERROR] Errors in 'file:/Users/eduardo/git/reportserver/ReportServer/src/net/datenwerke/gf/client/homepage/ui/DwMainViewport.java'

               [ERROR] net.datenwerke.gf.client.homepage.ui.HeaderPanel cannot be resolved to a type

            [ERROR] Errors in 'file:/Users/eduardo/git/reportserver/ReportServer/src/net/datenwerke/gf/client/homepage/modules/ClientTempModule.java'

               [ERROR] net.datenwerke.gf.client.homepage.ui.DwMainViewport cannot be resolved to a type

            [ERROR] Errors in 'file:/Users/eduardo/git/reportserver/ReportServer/src/net/datenwerke/gf/client/homepage/ui/HeaderPanel.java'

               [ERROR] net.datenwerke.hookhandler.shared.hookhandler.HookHandlerService cannot be resolved to a type

            [ERROR] Errors in 'file:/Users/eduardo/git/reportserver/ReportServer/src/net/datenwerke/gf/client/homepage/modules/ui/ModuleManagerModuleSelector.java'

               [ERROR] net.datenwerke.hookhandler.shared.hookhandler.HookHandlerService cannot be resolved to a type

            [ERROR] Errors in 'file:/Users/eduardo/git/reportserver/ReportServer/src/net/datenwerke/gf/client/homepage/modules/ui/ModuleManagerPanel.java'

               [ERROR] net.datenwerke.gf.client.homepage.modules.ClientTempModule cannot be resolved to a type

            [ERROR] Errors in 'file:/Users/eduardo/git/reportserver/ReportServer/src/net/datenwerke/hookhandler/shared/hookhandler/HookHandlerService.java'

               [ERROR] com.google.inject.Provider cannot be resolved to a type

            [ERROR] Errors in 'com/google/gwt/inject/guiceapi/com/google/inject/Provider.java'

               [ERROR] Line 49: No source code is available for type javax.inject.Provider<T>; did you forget to inherit a required module?

         [ERROR] Errors in '/var/folders/jh/jcvxhqhn5zn85lpydnych1_00000gn/T/gwt-codeserver-4646128009263447880.tmp/net.datenwerke.ReportServer/compile-2/gen/net/datenwerke/rs/core/client/reportexecutor/net_datenwerke_rs_client_RSGinjector_RSGinjectorGinjector_fragment.java'

            [ERROR] Line 65: No source code is available for type javax.inject.Provider<T>; did you forget to inherit a required module?

Eduardo Eduardo

unread,
Jan 29, 2021, 8:30:47 AM1/29/21
to google-gin
Hi,

if I add javax.inject-1-sources.jar to the sources, it works. But why was this different in 2.1.2 ? Did I miss something?

Regards,
Eduardo

Reply all
Reply to author
Forward
0 new messages