I think this problem is due to two mvel version. AmilaM should have fixed
this.

thanks,
Amila.

On Thu, Oct 11, 2012 at 6:28 PM, Isuru Wimalasundera <[email protected]>wrote:

> Hi Amila
>
> On a latest pack of Startos manager which I locally build, I receive the
> following error in the startup.
>
> [2012-10-11 18:16:58,220] ERROR
> {org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent}
> -   Multitenancy Throttling Manager bundle failed activating
> java.lang.NoSuchFieldError:
> COMPILER_OPT_ALLOW_RESOLVE_INNERCLASSES_WITH_DOTNOTATION
> at
> org.drools.rule.builder.PatternBuilder.setInputs(PatternBuilder.java:838)
>  at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:588)
> at
> org.drools.rule.builder.PatternBuilder.processConstraintsAndBinds(PatternBuilder.java:396)
>  at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:308)
> at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:131)
>  at
> org.drools.rule.builder.GroupElementBuilder.build(GroupElementBuilder.java:65)
> at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:81)
>  at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:1981)
> at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:797)
>  at
> org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:385)
> at
> org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:563)
>  at
> org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:35)
> at
> org.wso2.carbon.rule.backend.drools.DroolsBackendRuntime.addRuleSet(DroolsBackendRuntime.java:59)
>  at
> org.wso2.carbon.throttling.manager.rules.RuleInvoker.updateRules(RuleInvoker.java:77)
> at
> org.wso2.carbon.throttling.manager.rules.RuleInvoker.<init>(RuleInvoker.java:38)
>  at org.wso2.carbon.throttling.manager.tasks.Task.<init>(Task.java:44)
> at
> org.wso2.carbon.throttling.manager.conf.ThrottlingTaskConfiguration.serialize(ThrottlingTaskConfiguration.java:84)
>  at
> org.wso2.carbon.throttling.manager.conf.ThrottlingTaskConfiguration.<init>(ThrottlingTaskConfiguration.java:51)
> at
> org.wso2.carbon.throttling.manager.conf.ThrottlingConfiguration.deserialize(ThrottlingConfiguration.java:88)
>  at
> org.wso2.carbon.throttling.manager.conf.ThrottlingConfiguration.<init>(ThrottlingConfiguration.java:43)
> at
> org.wso2.carbon.throttling.manager.utils.Util.initializeThrottling(Util.java:384)
>  at
> org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent.activate(ThrottlingManagerServiceComponent.java:65)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
>  at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
>  at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
>  at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)
>  at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>  at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>  at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>  at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>  at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>  at
> org.wso2.carbon.billing.mgt.util.Util.registerBillingInfo(Util.java:124)
> at
> org.wso2.carbon.billing.mgt.internal.MultitenancyBillingServiceComponent.activate(MultitenancyBillingServiceComponent.java:54)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
>  at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>  at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
>  at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
>  at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221
>
> can this no such field error related to the change of drools version?
>
> Thanks
> Isuruw
>
> On Thu, Oct 4, 2012 at 5:54 PM, Amila Suriarachchi <[email protected]> wrote:
>
>> upgraded the drools version to 5.2.1.Final please have a look.
>>
>> thanks,
>> Amila.
>>
>>
>> On Wed, Oct 3, 2012 at 8:31 PM, Amila Suriarachchi <[email protected]>wrote:
>>
>>> Then lets upgrade drools version to 5.2. I'll check that.
>>>
>>> thanks,
>>> Amila.
>>>
>>>
>>> On Wed, Oct 3, 2012 at 7:32 PM, Amila Maha Arachchi <[email protected]>wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> I (actually Chamith has got this) got the below exception when starting
>>>> Stratos Manager in JDK 1.7. Reason for this is the Drools version which we
>>>> have used (5.1.1) does not support Java 1.7. This is explained in [1]. This
>>>> should be affecting BRS too.
>>>>
>>>> May be we should be able to get rid of this by using the workaround
>>>> mentioned in [1] at rule component level, or we'll have to upgrade to
>>>> Drools 5.2 which has fixed this.
>>>>
>>>> [1] 
>>>> http://stackoverflow.com/questions/7837663/no-support-for-java-7-in-drools-runtimedroolsexception-value-1-7-is-not-a
>>>>
>>>> <http://stackoverflow.com/questions/7837663/no-support-for-java-7-in-drools-runtimedroolsexception-value-1-7-is-not-a>
>>>>
>>>> [2012-10-03 19:21:44,624] ERROR
>>>> {org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent}
>>>> -   Multitenancy Throttling Manager bundle failed activating
>>>> org.wso2.carbon.throttling.manager.exception.ThrottlingException: Error
>>>> in building the throttling config, config file:
>>>> /home/amila/development/branches/4.0.0/platform/4.0.0/products/manager/2.0.0/modules/distribution/target/wso2stratos-manager-2.0.0/repository/conf/multitenancy/usage-throttling-agent-config.xml.
>>>>     at
>>>> org.wso2.carbon.throttling.manager.conf.ThrottlingConfiguration.<init>(ThrottlingConfiguration.java:52)
>>>>     at
>>>> org.wso2.carbon.throttling.manager.utils.Util.initializeThrottling(Util.java:384)
>>>>     at
>>>> org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent.activate(ThrottlingManagerServiceComponent.java:65)
>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>     at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>     at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>     at java.lang.reflect.Method.invoke(Method.java:601)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
>>>>     at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>>>>     at
>>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>>>     at
>>>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>>>>     at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>>>>     at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>>>>     at
>>>> org.wso2.carbon.billing.mgt.util.Util.registerBillingInfo(Util.java:124)
>>>>     at
>>>> org.wso2.carbon.billing.mgt.internal.MultitenancyBillingServiceComponent.activate(MultitenancyBillingServiceComponent.java:54)
>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>     at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>     at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>     at java.lang.reflect.Method.invoke(Method.java:601)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
>>>>     at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>>>>     at
>>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>>>     at
>>>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>>>>     at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>>>>     at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>>>>     at
>>>> org.wso2.carbon.usage.util.Util.registerRetrieverServices(Util.java:97)
>>>>     at
>>>> org.wso2.carbon.usage.internal.UsageServiceComponent.activate(UsageServiceComponent.java:54)
>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>     at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>     at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>     at java.lang.reflect.Method.invoke(Method.java:601)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
>>>>     at
>>>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
>>>>     at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>>>>     at
>>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>>>     at
>>>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>>>>     at
>>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>>>>     at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>>>>     at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>>>>     at
>>>> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:512)
>>>>     at
>>>> org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:289)
>>>>     at
>>>> org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118)
>>>>     at
>>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
>>>>     at
>>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>>>     at
>>>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>>>> Caused by:
>>>> org.wso2.carbon.throttling.manager.exception.ThrottlingException: Error
>>>> occurred while initializing the rule executing environment: Unable to load
>>>> dialect
>>>> 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.rule.builder.dialect.java.JavaDialectConfiguration'
>>>>     at
>>>> org.wso2.carbon.throttling.manager.rules.RuleInvoker.updateRules(RuleInvoker.java:87)
>>>>     at
>>>> org.wso2.carbon.throttling.manager.rules.RuleInvoker.<init>(RuleInvoker.java:38)
>>>>     at
>>>> org.wso2.carbon.throttling.manager.tasks.Task.<init>(Task.java:44)
>>>>     at
>>>> org.wso2.carbon.throttling.manager.conf.ThrottlingTaskConfiguration.serialize(ThrottlingTaskConfiguration.java:84)
>>>>     at
>>>> org.wso2.carbon.throttling.manager.conf.ThrottlingTaskConfiguration.<init>(ThrottlingTaskConfiguration.java:51)
>>>>     at
>>>> org.wso2.carbon.throttling.manager.conf.ThrottlingConfiguration.deserialize(ThrottlingConfiguration.java:88)
>>>>     at
>>>> org.wso2.carbon.throttling.manager.conf.ThrottlingConfiguration.<init>(ThrottlingConfiguration.java:43)
>>>>     ... 75 more
>>>> Caused by: org.drools.RuntimeDroolsException: Unable to load dialect
>>>> 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.rule.builder.dialect.java.JavaDialectConfiguration'
>>>>     at
>>>> org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:283)
>>>>     at
>>>> org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:268)
>>>>     at
>>>> org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:181)
>>>>     at
>>>> org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:159)
>>>>     at
>>>> org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilderConfiguration(KnowledgeBuilderFactoryServiceImpl.java:22)
>>>>     at
>>>> org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(KnowledgeBuilderFactory.java:75)
>>>>     at
>>>> org.wso2.carbon.rule.backend.drools.DroolsBackendRuntimeFactory.getRuleBackendRuntime(DroolsBackendRuntimeFactory.java:47)
>>>>     at
>>>> org.wso2.carbon.throttling.manager.rules.RuleInvoker.updateRules(RuleInvoker.java:66)
>>>>     ... 81 more
>>>> Caused by: org.drools.RuntimeDroolsException: value '1.7' is not a
>>>> valid language level
>>>>     at
>>>> org.drools.rule.builder.dialect.java.JavaDialectConfiguration.getDefaultLanguageLevel(JavaDialectConfiguration.java:162)
>>>>     at
>>>> org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:57)
>>>>     at
>>>> org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:279)
>>>>     ... 88 more
>>>>
>>>> Regards,
>>>> AmilaM.
>>>>
>>>> --
>>>> *Amila Maharachchi*
>>>> Technical Lead
>>>> Member, Management Committee - Cloud & Platform TG
>>>> WSO2, Inc.; http://wso2.com
>>>>
>>>> Blog: http://maharachchi.blogspot.com
>>>> Mobile: +94719371446
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> *Amila Suriarachchi*
>>>
>>> Software Architect
>>> WSO2 Inc. ; http://wso2.com
>>> lean . enterprise . middleware
>>>
>>> phone : +94 71 3082805
>>>
>>>
>>
>>
>> --
>> *Amila Suriarachchi*
>>
>> Software Architect
>> WSO2 Inc. ; http://wso2.com
>> lean . enterprise . middleware
>>
>> phone : +94 71 3082805
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Isuru Wimalasundera*
> Software Engineer;  WSO2, Inc.; http://wso2.com,
>  mobile: +94 77 920 5641
>
>


-- 
*Amila Suriarachchi*

Software Architect
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

phone : +94 71 3082805
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to