Re: [Dev] BPS 3.5.0 throws CNF Exception When Installed Carbon Metrics 1.1.0

2015-11-30 Thread Hasitha Aravinda
Hi Thusitha,

I faced same error before and this happens when Activiti bundle is not
active in OSGI runtime. Can you check whether activiti bundle is in active
state ? If not check for missing dependencies. Following blog will help you
to identify the issue.

http://pradeepfernando.blogspot.com/2011/10/debugging-your-osgi-application-using.html

Thanks,
Hasitha.

On Mon, Nov 30, 2015 at 5:48 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi BPS Team,
>
> I've tried to install the Carbon-metrics feature on BPS 3.5.0. After the
> installation when I'm trying to restart the server following exception get
> thrown.
> Did I missed anything?
>
> [2015-11-30 14:20:05,254] ERROR
>> {org.wso2.carbon.bpmn.core.internal.BPMNServiceComponent} -  Failed to
>> initialize the BPMN core component.
>> java.lang.NoClassDefFoundError:
>> org/activiti/engine/ProcessEngineConfiguration
>> at
>> org.wso2.carbon.bpmn.core.ActivitiEngineBuilder.buildEngine(ActivitiEngineBuilder.java:58)
>> at
>> org.wso2.carbon.bpmn.core.internal.BPMNServiceComponent.activate(BPMNServiceComponent.java:49)
>> 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:606)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
>> at
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>> 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.ndatasource.core.internal.DataSourceServiceComponent.registerServices(DataSourceServiceComponent.java:126)
>> at
>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSuperTenantUserDataSources(DataSourceServiceComponent.java:221)
>> at
>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.checkInitTenantUserDataSources(DataSourceServiceComponent.java:206)
>> at
>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setRegistryService(DataSourceServiceComponent.java:157)
>> 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:606)
>> at
>> org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:430)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.dynamicBind(InstanceProcess.java:416)
>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:334)
>> at
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>> 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
>> 

Re: [Dev] BPS 3.5.0 throws CNF Exception When Installed Carbon Metrics 1.1.0

2015-11-30 Thread Thusitha Thilina Dayaratne
Hi Hasitha,

Thank you for the info. I checked the bundle state. It seems that it is in
INSTALLED state.

> 5 INSTALLED   activiti-all_5.16.3.wso2v2


osgi> diag 5
> reference:file:../plugins/activiti-all_5.16.3.wso2v2.jar [5]
>   Direct constraints which are unresolved:
> Missing optionally imported package org.drools_0.0.0.
> Missing optionally imported package org.drools.builder_0.0.0.
> Missing optionally imported package org.drools.definition.rule_0.0.0.
> Missing optionally imported package org.drools.io_0.0.0.
> Missing optionally imported package org.drools.runtime_0.0.0.
> Missing optionally imported package org.drools.runtime.rule_0.0.0.
> Missing optionally imported package org.restlet_[2.2.0,2.3.0).
> Missing optionally imported package org.restlet.data_[2.2.0,2.3.0).
> Missing optionally imported package
> org.restlet.ext.fileupload_[2.2.0,2.3.0).
> Missing optionally imported package
> org.restlet.ext.jackson_[2.2.0,2.3.0).
> Missing optionally imported package
> org.restlet.representation_[2.2.0,2.3.0).
> Missing optionally imported package org.restlet.resource_[2.2.0,2.3.0).
> Missing optionally imported package org.restlet.routing_[2.2.0,2.3.0).
> Missing optionally imported package org.restlet.security_[2.2.0,2.3.0).
> Missing optionally imported package org.restlet.service_[2.2.0,2.3.0).
>* Missing imported package org.slf4j_[1.6.0,1.7.0).*
>   Leaf constraints in the dependency chain which are unresolved:
> reference:file:../plugins/restlet_2.2.1.wso2v1.jar [387]
>   Missing optionally imported package com.sun.net.httpserver_0.0.0.


Though the existing slf4j 1.6.1 bundle correctly export 1.6.1 version and
new slf4j 1.7.12 bundle exports 1.7.12 version

> osgi> b 394
> slf4j.api_1.6.1 [394]
>   Id=394, Status=ACTIVE  Data
> Root=/tmp/moldova/wso2bps-3.5.0/repository/components/default/configuration/org.eclipse.osgi/bundles/394/data
>   "No registered services."
>   No services in use.
>   Exported packages
> org.slf4j; version="1.6.1"[exported]
> org.slf4j.spi; version="1.6.1"[exported]
> org.slf4j.helpers; version="1.6.1"[exported]
>   Imported packages
> org.slf4j.impl; version="1.7.12"
> org.slf4j; version="1.7.12"
> org.slf4j.spi; version="1.7.12"
> org.slf4j.helpers; version="1.7.12"
> org.apache.log4j; version="1.2.17"
>   Fragment bundles
> slf4j.log4j12_1.6.1 [396]
>   Named class space
> slf4j.api; bundle-version="1.6.1"[provided]
>   No required bundles



> osgi> b 393
> slf4j.api_1.7.12 [393]
>   Id=393, Status=ACTIVE  Data
> Root=/tmp/moldova/wso2bps-3.5.0/repository/components/default/configuration/org.eclipse.osgi/bundles/393/data
>   "No registered services."
>   No services in use.
>   Exported packages
> org.slf4j; version="1.7.12"[exported]
> org.slf4j.spi; version="1.7.12"[exported]
> org.slf4j.helpers; version="1.7.12"[exported]
>   Imported packages
> org.apache.log4j; version="1.2.17"
>   Fragment bundles
> slf4j.log4j12_1.7.12 [395]
>   Named class space
> slf4j.api; bundle-version="1.7.12"[provided]
>   No required bundles


When I check the bundlse which exports org.slf4j it only shows the 1.7.12.

> osgi> p org.slf4j
> org.slf4j; version="1.7.12"


But without installing the carbon-metrics feature in BPS, BPS exports 1.6.1
version

> osgi> p org.slf4j
> org.slf4j; version="1.6.1"


What could be the reason for this?

Thanks
Thusitha

On Tue, Dec 1, 2015 at 7:52 AM, Hasitha Aravinda  wrote:

> Hi Thusitha,
>
> I faced same error before and this happens when Activiti bundle is not
> active in OSGI runtime. Can you check whether activiti bundle is in active
> state ? If not check for missing dependencies. Following blog will help you
> to identify the issue.
>
>
> http://pradeepfernando.blogspot.com/2011/10/debugging-your-osgi-application-using.html
>
> Thanks,
> Hasitha.
>
> On Mon, Nov 30, 2015 at 5:48 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi BPS Team,
>>
>> I've tried to install the Carbon-metrics feature on BPS 3.5.0. After the
>> installation when I'm trying to restart the server following exception get
>> thrown.
>> Did I missed anything?
>>
>> [2015-11-30 14:20:05,254] ERROR
>>> {org.wso2.carbon.bpmn.core.internal.BPMNServiceComponent} -  Failed to
>>> initialize the BPMN core component.
>>> java.lang.NoClassDefFoundError:
>>> org/activiti/engine/ProcessEngineConfiguration
>>> at
>>> org.wso2.carbon.bpmn.core.ActivitiEngineBuilder.buildEngine(ActivitiEngineBuilder.java:58)
>>> at
>>> org.wso2.carbon.bpmn.core.internal.BPMNServiceComponent.activate(BPMNServiceComponent.java:49)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at 

[Dev] BPS 3.5.0 throws CNF Exception When Installed Carbon Metrics 1.1.0

2015-11-30 Thread Thusitha Thilina Dayaratne
Hi BPS Team,

I've tried to install the Carbon-metrics feature on BPS 3.5.0. After the
installation when I'm trying to restart the server following exception get
thrown.
Did I missed anything?

[2015-11-30 14:20:05,254] ERROR
> {org.wso2.carbon.bpmn.core.internal.BPMNServiceComponent} -  Failed to
> initialize the BPMN core component.
> java.lang.NoClassDefFoundError:
> org/activiti/engine/ProcessEngineConfiguration
> at
> org.wso2.carbon.bpmn.core.ActivitiEngineBuilder.buildEngine(ActivitiEngineBuilder.java:58)
> at
> org.wso2.carbon.bpmn.core.internal.BPMNServiceComponent.activate(BPMNServiceComponent.java:49)
> 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:606)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> 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.ndatasource.core.internal.DataSourceServiceComponent.registerServices(DataSourceServiceComponent.java:126)
> at
> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSuperTenantUserDataSources(DataSourceServiceComponent.java:221)
> at
> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.checkInitTenantUserDataSources(DataSourceServiceComponent.java:206)
> at
> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setRegistryService(DataSourceServiceComponent.java:157)
> 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:606)
> at
> org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:430)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.dynamicBind(InstanceProcess.java:416)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:334)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> 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
>