0 Replies Latest reply on Dec 7, 2015 3:44 AM by sunil chauhan

    Unable to load Rules files Dynamically

    sunil chauhan Newbie

      Hi,

      Am trying to load spreadsheet/drl based rule files dynamically i.e. adding new .drl file during run time, but am getting below error . Though I've added KIE-CI as dependency to use KIEScanner but till no gain . Please suggest .

       

      Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: Unable to instantiate service for Class 'org.kie.api.builder.KieScanner'

          at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:165) [jboss-as-ejb3-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:250) [jboss-as-ejb3-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

          at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:339) [jboss-as-ejb3-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

          at org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:66) [jboss-as-ejb3-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]

          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]

          at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]

          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]

          at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161) [jboss-as-ee-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

          ... 84 more

      Caused by: java.lang.IllegalArgumentException: Unable to instantiate service for Class 'org.kie.api.builder.KieScanner'

          at org.kie.internal.utils.ServiceRegistryImpl.get(ServiceRegistryImpl.java:168) [kie-internal-6.0.0-redhat-9.jar:6.0.0-redhat-9]

          at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieScanner(KieServicesImpl.java:102) [drools-compiler-6.0.0-redhat-9.jar:6.0.0-redhat-9]

          at com.alu.oss.mdf.rda.ruleengine.rulefw.drools6.DroolsRuleEngine.initialize(DroolsRuleEngine.java:149) [RDARuleEngineEJB-2.2.jar:]

          at com.alu.oss.mdf.rda.ruleengine.rulefw.drools6.DroolsRuleEngine.<init>(DroolsRuleEngine.java:64) [RDARuleEngineEJB-2.2.jar:]

          at com.alu.oss.mdf.rda.ruleengine.rulefw.RuleEngineFactory.createObject(RuleEngineFactory.java:49) [RDARuleEngineEJB-2.2.jar:]

          at com.alu.oss.mdf.rda.ruleengine.rulefw.RuleEngineFactory.createObject(RuleEngineFactory.java:7) [RDARuleEngineEJB-2.2.jar:]

          at com.alu.oss.mdf.rda.factory.ObjectPool.initialize(ObjectPool.java:115) [RDARuleEngineEJB-2.2.jar:]

          at com.alu.oss.mdf.rda.factory.ObjectPool.<init>(ObjectPool.java:39) [RDARuleEngineEJB-2.2.jar:]

          at com.alu.oss.mdf.rda.ruleengine.rulefw.RuleEngineFactory.<init>(RuleEngineFactory.java:11) [RDARuleEngineEJB-2.2.jar:]

          at com.alu.oss.mdf.rda.ruleengine.rulefw.RuleEngineFactory.getInstance(RuleEngineFactory.java:37) [RDARuleEngineEJB-2.2.jar:]

          at com.alu.oss.mdf.rda.ruleengine.rulefw.BusinessRules.postConstructRuleEngine(BusinessRules.java:59) [RDARuleEngineEJB-2.2.jar:]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_60-ea]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_60-ea]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_60-ea]

          at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_60-ea]

          at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:130) [jboss-as-ee-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]

          at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]

          at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95) [jboss-as-ee-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]

          at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]

          at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]

          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:248) [jboss-as-ejb3-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]

          ... 93 more

      Caused by: java.lang.IllegalArgumentException: Unable to instantiate 'org.kie.scanner.KieRepositoryScannerImpl'

          at org.kie.internal.utils.ServiceRegistryImpl$ReflectionInstantiator.newInstance(ServiceRegistryImpl.java:235) [kie-internal-6.0.0-redhat-9.jar:6.0.0-redhat-9]

          at org.kie.internal.utils.ServiceRegistryImpl$ReflectionInstantiator.call(ServiceRegistryImpl.java:227) [kie-internal-6.0.0-redhat-9.jar:6.0.0-redhat-9]

          at org.kie.internal.utils.ServiceRegistryImpl.get(ServiceRegistryImpl.java:166) [kie-internal-6.0.0-redhat-9.jar:6.0.0-redhat-9]

          ... 118 more