0 Replies Latest reply on Jun 7, 2017 3:22 PM by Hemanth K

    How to resolve com.google.inject.ConfigurationException error- Wildfly 10?

    Hemanth K Newbie

      Hi,

              I get the below error message when I try to call classes from the external jar file from my Java application hosted on Wildfly10 app server. I have added external jar files as a module and added the module as the dependency in the jboss-deployment-structure.xml file. 

       

      2017-06-06 20:12:43,172 ECDS_Worker-3 ERROR [stderr                                                      ] Caused by: com.businessobjects.sdk.core.CoreException: Unable to create an instance of class 'class com.businessobjects.rebean.wi.internal.WIReportEngine'

      2017-06-06 20:12:43,173 ECDS_Worker-3 ERROR [stderr                                                      ] at com.businessobjects.sdk.core.internal.guice.GenericFactory.create(GenericFactory.java:97)

      2017-06-06 20:12:43,173 ECDS_Worker-3 ERROR [stderr                                                      ] at com.businessobjects.sdk.core.Core.create(Core.java:460)

      2017-06-06 20:12:43,173 ECDS_Worker-3 ERROR [stderr                                                      ] at com.businessobjects.rebean.wi.impl.factory.ReBeanCreationHandler.getInstance(ReBeanCreationHandler.java:21)

      2017-06-06 20:12:43,173 ECDS_Worker-3 ERROR [stderr                                                      ] at com.businessobjects.rebean.common.util.wrapper.defaults.DefaultInstanceCreator.getInstance(DefaultInstanceCreator.java:29)

      2017-06-06 20:12:43,174 ECDS_Worker-3 ERROR [stderr                                                      ] at com.businessobjects.rebean.common.util.wrapper.defaults.DefaultHandlerKey.createElement(DefaultHandlerKey.java:33)

      2017-06-06 20:12:43,174 ECDS_Worker-3 ERROR [stderr                                                      ] at com.businessobjects.rebean.common.util.wrapper.defaults.DefaultHandlerKey.createElement(DefaultHandlerKey.java:13)

      2017-06-06 20:12:43,174 ECDS_Worker-3 ERROR [stderr                                                      ] at com.businessobjects.rebean.common.util.wrapper.ObjectWrapperKeyManager.getWrapper(ObjectWrapperKeyManager.java:58)

      2017-06-06 20:12:43,174 ECDS_Worker-3 ERROR [stderr                                                      ] at com.businessobjects.rebean.common.util.wrapper.defaults.DefaultObjectWrapperKeyManager.getSimpleWrapper(DefaultObjectWrapperKeyManager.java:78)

      2017-06-06 20:12:43,175 ECDS_Worker-3 ERROR [stderr                                                      ] at com.businessobjects.rebean.wi.internal.adapt.Rebean3.getEngine(Rebean3.java:221)

      2017-06-06 20:12:43,175 ECDS_Worker-3 ERROR [stderr                                                      ] at com.businessobjects.rebean.wi.internal.ReportEngineFactory.makeOCCA(ReportEngineFactory.java:85)

      2017-06-06 20:12:43,175 ECDS_Worker-3 ERROR [stderr                                                      ] at com.businessobjects.rebean.wi.ReportEngines.createReportEngine(ReportEngines.java:281)

      2017-06-06 20:12:43,175 ECDS_Worker-3 ERROR [stderr                                                      ] ... 216 more

      Caused by: com.google.inject.ConfigurationException: Error at com.businessobjects.rebean.wi.internal.WIReportEngine.serverService(WIReportEngine.java:88) Binding to com.businessobjects.sdk.core.server.IServerService not found. No bindings to that type were found.

      2017-06-06 20:12:43,176 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.BinderImpl$RuntimeErrorHandler.handle(BinderImpl.java:426)

      2017-06-06 20:12:43,176 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.AbstractErrorHandler.handle(AbstractErrorHandler.java:30)

      2017-06-06 20:12:43,176 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.ErrorMessages.handleMissingBinding(ErrorMessages.java:46)

      2017-06-06 20:12:43,176 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.InjectorImpl$MissingDependencyException.handle(InjectorImpl.java:791)

      2017-06-06 20:12:43,177 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.InjectorImpl.addInjectorsForMembers(InjectorImpl.java:389)

      2017-06-06 20:12:43,177 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.InjectorImpl.addSingleInjectorsForFields(InjectorImpl.java:367)

      2017-06-06 20:12:43,177 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.InjectorImpl.addInjectors(InjectorImpl.java:350)

      2017-06-06 20:12:43,177 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.InjectorImpl$4.create(InjectorImpl.java:332)

      2017-06-06 20:12:43,178 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.InjectorImpl$4.create(InjectorImpl.java:329)

      2017-06-06 20:12:43,178 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.util.ReferenceCache.create(ReferenceCache.java:53)

      2017-06-06 20:12:43,178 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.util.AbstractReferenceCache.internalCreate(AbstractReferenceCache.java:59)

      2017-06-06 20:12:43,178 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.util.AbstractReferenceCache.get(AbstractReferenceCache.java:116)

      2017-06-06 20:12:43,179 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.ConstructorInjector.<init>(ConstructorInjector.java:39)

      2017-06-06 20:12:43,179 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.InjectorImpl$7.create(InjectorImpl.java:601)

      2017-06-06 20:12:43,179 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.InjectorImpl$7.create(InjectorImpl.java:594)

      2017-06-06 20:12:43,179 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.util.ReferenceCache.create(ReferenceCache.java:53)

      2017-06-06 20:12:43,179 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.util.AbstractReferenceCache.internalCreate(AbstractReferenceCache.java:59)

      2017-06-06 20:12:43,180 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.util.AbstractReferenceCache.get(AbstractReferenceCache.java:116)

      2017-06-06 20:12:43,180 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.InjectorImpl.getConstructor(InjectorImpl.java:765)

      2017-06-06 20:12:43,180 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.InjectorImpl.getImplicitBinding(InjectorImpl.java:973)

      2017-06-06 20:12:43,180 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.InjectorImpl.getInternalFactory(InjectorImpl.java:308)

      2017-06-06 20:12:43,181 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.InjectorImpl.getProvider(InjectorImpl.java:693)

      2017-06-06 20:12:43,181 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.InjectorImpl.getProvider(InjectorImpl.java:689)

      2017-06-06 20:12:43,181 DS_Worker-3 ERROR [stderr                                                      ] at com.google.inject.InjectorImpl.getInstance(InjectorImpl.java:728)

      2017-06-06 20:12:43,182 DS_Worker-3 ERROR [stderr                                                      ] at com.businessobjects.sdk.core.internal.guice.GenericFactory.create(GenericFactory.java:95)

      2017-06-06 20:12:43,182 DS_Worker-3 ERROR [stderr                                                      ] ... 226 more

       

      Any suggestions on what I am missing is much appreciated.