Hi Waruna/Maninda,

Any update on this?

Thanks,
Rasika

On Wed, Oct 12, 2016 at 4:38 PM, Isuru Perera <isu...@wso2.com> wrote:

> Did anyone try Niranda's suggestion to upgrade the jackson version in
> Spark?
>
> On Wed, Oct 5, 2016 at 3:29 PM, Niranda Perera <nira...@wso2.com> wrote:
>
>> Hi Ruwan,
>>
>> Did we try upgrading the jackson version in spark? I'm hoping that there
>> are no API changes in jackson 2.8.3.
>>
>> We have done a similar exercise for guava and hadoop client
>>
>> Best
>>
>> On Wed, Oct 5, 2016 at 12:44 AM, Ruwan Yatawara <ruw...@wso2.com> wrote:
>>
>>> Hi Niranda,
>>>
>>> Are u referring to the spark core? if so, it is bound to json4s-jackson
>>> bundle.
>>>
>>> if we are changing the jackson version of metrics-json we will have to
>>> make an orbit out of it. From the way I see it, metrics-json must have
>>> included said version range in attempt to make the bundle future proof.
>>> (Latest releave version of jackson-core is 2.8.3 [1])
>>>
>>> Given that we have to push out a release in a weeks time, changing
>>> jackson version of spark is not a feasible option.
>>>
>>> Therefore, I am +1 for changing the jakson version range of
>>> metrics-json to [2.4.0,2.5.0).
>>>
>>> [1] -https://mvnrepository.com/artifact/com.fasterxml.jackson.co
>>> re/jackson-core
>>>
>>> Thanks and Regards,
>>>
>>> Ruwan Yatawara
>>>
>>> Associate Technical Lead,
>>> WSO2 Inc.
>>>
>>> email : ruw...@wso2.com
>>> mobile : +94 77 9110413
>>> blog : http://ruwansrants.blogspot.com/
>>>           https://500px.com/ruwan_ace
>>> www: :http://wso2.com
>>>
>>>
>>> On Tue, Oct 4, 2016 at 7:39 PM, Niranda Perera <nira...@wso2.com> wrote:
>>>
>>>> Hi Maninda,
>>>>
>>>> What are the 2 Jason versions here?
>>>>
>>>> Best
>>>>
>>>> On Tue, Oct 4, 2016 at 8:17 AM, Maninda Edirisooriya <mani...@wso2.com>
>>>> wrote:
>>>>
>>>>> + SameeraJ
>>>>>
>>>>> As we have found so far, the issue is due to the existence of two
>>>>> versions of Jackson bundles exists in the IoT server pack. This was not 
>>>>> the
>>>>> case in DAS because IoT has APIM dependencies which brings the newer
>>>>> version of Jackson into the environment. As Spark uses the older version 
>>>>> of
>>>>> Jackson and Metrics use the newer version of Jackson, importing Metrics
>>>>> bundle to Spark bundle fails in OSGi level, because the export packages in
>>>>> Metrics, uses some Jackson packages.
>>>>>
>>>>> This has several potential solutions but with inherent issues.
>>>>>
>>>>> 1. Release a new version of Metrics bundle having the same older
>>>>> Jackson dependency. - Releasing with a older version of dependency may be
>>>>> unsuitable in long term. And if in future, APIM features starts to import
>>>>> Metrics bundle, the issue will start to happen again on that import.
>>>>>
>>>>> 2. Release a new version of Spark to work with newer Jackson bundles.
>>>>> - As Spark bundle is only correctly functioning with Jackson 2.4.4 (older
>>>>> version) and not working properly with later version of Jackson we will 
>>>>> not
>>>>> be able to easily release a new Spark version without fixing that issue.
>>>>>
>>>>> 3. Remove DAS components from the IoT server and package as separate
>>>>> IoT Analytics server - Some customers may want to run DAS inside IoT and
>>>>> removing DAS components from IoT server will effect the user experience 
>>>>> for
>>>>> a WSO2 product evaluator to run  in a single server.
>>>>>
>>>>> Please help to find the best approach.
>>>>>
>>>>> Thanks.
>>>>>
>>>>>
>>>>> *Maninda Edirisooriya*
>>>>> Senior Software Engineer
>>>>>
>>>>> *WSO2, Inc.*lean.enterprise.middleware.
>>>>>
>>>>> *Blog* : http://maninda.blogspot.com/
>>>>> *E-mail* : mani...@wso2.com
>>>>> *Skype* : @manindae
>>>>> *Twitter* : @maninda
>>>>>
>>>>> On Tue, Oct 4, 2016 at 5:06 PM, Ruwan Yatawara <ruw...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Niranda,
>>>>>>
>>>>>> Yes, this bundle is active. We found this Jackson related problem
>>>>>> upon further debugging.
>>>>>>
>>>>>> Thanks and Regards,
>>>>>>
>>>>>> Ruwan Yatawara
>>>>>>
>>>>>> Associate Technical Lead,
>>>>>> WSO2 Inc.
>>>>>>
>>>>>> email : ruw...@wso2.com
>>>>>> mobile : +94 77 9110413
>>>>>> blog : http://ruwansrants.blogspot.com/
>>>>>>           https://500px.com/ruwan_ace
>>>>>> www: :http://wso2.com
>>>>>>
>>>>>>
>>>>>> On Tue, Oct 4, 2016 at 4:49 PM, Niranda Perera <nira...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> + RuwanY
>>>>>>>
>>>>>>> @Waruna, can you check if the com.codahale.metrics.json bundle is
>>>>>>> active or not from the OSGI console?
>>>>>>>
>>>>>>> Best
>>>>>>>
>>>>>>> On Tue, Oct 4, 2016 at 4:25 AM, Waruna Jayaweera <waru...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> [Looping Niranda,Anjana]
>>>>>>>>
>>>>>>>> On Tue, Oct 4, 2016 at 12:15 PM, Waruna Jayaweera <waru...@wso2.com
>>>>>>>> > wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>> After moving to latest analytics version(1.2.8) , we are getting
>>>>>>>>> class not found error [1].
>>>>>>>>>
>>>>>>>>> This is due to the package import conflicts of spark bundle and
>>>>>>>>> io.dropwizard.metrics.json which imports different version of jackson
>>>>>>>>> packages. IOT server packs multiple jackson versions 2.4.4 and 2.8.2.
>>>>>>>>> Spark bundle has jackson import range of [2.4.0,2.5.0), so wired
>>>>>>>>> to jackson-core 2.4.4.
>>>>>>>>> Io.dropwizard.metrics.json bundle has jackson import range of
>>>>>>>>> [2.4,3), so wired to jackson-core 2.8.2.
>>>>>>>>> Spark also required to import Io.dropwizard.metrics.json but it
>>>>>>>>> fails due to two different version of jackson packages in spark bundle
>>>>>>>>> class space.
>>>>>>>>> So we need to upgrade the spark jackson version range to  [2.4,3)
>>>>>>>>> or we need to downgrade metrics jackson version to [2.4.0,2.5.0).
>>>>>>>>> Appreciate any suggestions to fix the issue.
>>>>>>>>>
>>>>>>>>> [1]
>>>>>>>>> ERROR - AnalyticsComponent Error initializing analytics executor:
>>>>>>>>> Unable to create analytics client. com/codahale/metrics/json/Metr
>>>>>>>>> icsModule
>>>>>>>>> org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException:
>>>>>>>>> Unable to create analytics client. com/codahale/metrics/json/Metr
>>>>>>>>> icsModule
>>>>>>>>> at org.wso2.carbon.analytics.spark.core.internal.SparkAnalytics
>>>>>>>>> Executor.initializeSparkContext(SparkAnalyticsExecutor.java:321)
>>>>>>>>> at org.wso2.carbon.analytics.spark.core.internal.SparkAnalytics
>>>>>>>>> Executor.initializeAnalyticsClientLocal(SparkAnalyticsExecut
>>>>>>>>> or.java:303)
>>>>>>>>> at org.wso2.carbon.analytics.spark.core.internal.SparkAnalytics
>>>>>>>>> Executor.initializeAnalyticsClient(SparkAnalyticsExecutor.ja
>>>>>>>>> va:292)
>>>>>>>>> at org.wso2.carbon.analytics.spark.core.internal.SparkAnalytics
>>>>>>>>> Executor.initializeSparkServer(SparkAnalyticsExecutor.java:180)
>>>>>>>>> at org.wso2.carbon.analytics.spark.core.internal.AnalyticsCompo
>>>>>>>>> nent.activate(AnalyticsComponent.java:88)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>>>>>>>> ssorImpl.java:57)
>>>>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>>>>>>>> thodAccessorImpl.java:43)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ
>>>>>>>>> ate(ServiceComponent.java:260)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a
>>>>>>>>> ctivate(ServiceComponentProp.java:146)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>>>>>>>>> uild(ServiceComponentProp.java:345)
>>>>>>>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>>>>>>>>> nt(InstanceProcess.java:620)
>>>>>>>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>>>>>>>>> nts(InstanceProcess.java:197)
>>>>>>>>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolve
>>>>>>>>> r.java:343)
>>>>>>>>> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SC
>>>>>>>>> RManager.java:222)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis
>>>>>>>>> tener.serviceChanged(FilteredServiceListener.java:107)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d
>>>>>>>>> ispatchEvent(BundleContextImpl.java:861)
>>>>>>>>> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve
>>>>>>>>> nt(EventManager.java:230)
>>>>>>>>> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv
>>>>>>>>> entSynchronous(ListenerQueue.java:148)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>>>>>>>>> blishServiceEventPrivileged(ServiceRegistry.java:819)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>>>>>>>>> blishServiceEvent(ServiceRegistry.java:771)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio
>>>>>>>>> nImpl.register(ServiceRegistrationImpl.java:130)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re
>>>>>>>>> gisterService(ServiceRegistry.java:214)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>>>>>>>>> egisterService(BundleContextImpl.java:433)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>>>>>>>>> egisterService(BundleContextImpl.java:451)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>>>>>>>>> egisterService(BundleContextImpl.java:950)
>>>>>>>>> at org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServ
>>>>>>>>> iceComponent.activate(AnalyticsDataServiceComponent.java:72)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>>>>>>>> ssorImpl.java:57)
>>>>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>>>>>>>> thodAccessorImpl.java:43)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ
>>>>>>>>> ate(ServiceComponent.java:260)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a
>>>>>>>>> ctivate(ServiceComponentProp.java:146)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>>>>>>>>> uild(ServiceComponentProp.java:345)
>>>>>>>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>>>>>>>>> nt(InstanceProcess.java:620)
>>>>>>>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>>>>>>>>> nts(InstanceProcess.java:197)
>>>>>>>>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolve
>>>>>>>>> r.java:343)
>>>>>>>>> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SC
>>>>>>>>> RManager.java:222)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis
>>>>>>>>> tener.serviceChanged(FilteredServiceListener.java:107)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d
>>>>>>>>> ispatchEvent(BundleContextImpl.java:861)
>>>>>>>>> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve
>>>>>>>>> nt(EventManager.java:230)
>>>>>>>>> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv
>>>>>>>>> entSynchronous(ListenerQueue.java:148)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>>>>>>>>> blishServiceEventPrivileged(ServiceRegistry.java:819)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>>>>>>>>> blishServiceEvent(ServiceRegistry.java:771)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio
>>>>>>>>> nImpl.register(ServiceRegistrationImpl.java:130)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re
>>>>>>>>> gisterService(ServiceRegistry.java:214)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>>>>>>>>> egisterService(BundleContextImpl.java:433)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>>>>>>>>> egisterService(BundleContextImpl.java:451)
>>>>>>>>> at org.wso2.carbon.ntask.core.internal.TasksDSComponent.activat
>>>>>>>>> e(TasksDSComponent.java:106)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>>>>>>>> ssorImpl.java:57)
>>>>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>>>>>>>> thodAccessorImpl.java:43)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ
>>>>>>>>> ate(ServiceComponent.java:260)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a
>>>>>>>>> ctivate(ServiceComponentProp.java:146)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>>>>>>>>> uild(ServiceComponentProp.java:345)
>>>>>>>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>>>>>>>>> nt(InstanceProcess.java:620)
>>>>>>>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>>>>>>>>> nts(InstanceProcess.java:197)
>>>>>>>>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolve
>>>>>>>>> r.java:343)
>>>>>>>>> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SC
>>>>>>>>> RManager.java:222)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis
>>>>>>>>> tener.serviceChanged(FilteredServiceListener.java:107)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d
>>>>>>>>> ispatchEvent(BundleContextImpl.java:861)
>>>>>>>>> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve
>>>>>>>>> nt(EventManager.java:230)
>>>>>>>>> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv
>>>>>>>>> entSynchronous(ListenerQueue.java:148)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>>>>>>>>> blishServiceEventPrivileged(ServiceRegistry.java:819)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>>>>>>>>> blishServiceEvent(ServiceRegistry.java:771)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio
>>>>>>>>> nImpl.register(ServiceRegistrationImpl.java:130)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re
>>>>>>>>> gisterService(ServiceRegistry.java:214)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>>>>>>>>> egisterService(BundleContextImpl.java:433)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>>>>>>>>> egisterService(BundleContextImpl.java:451)
>>>>>>>>> at org.wso2.carbon.core.internal.StartupFinalizerServiceCompone
>>>>>>>>> nt.completeInitialization(StartupFinalizerServiceComponent.j
>>>>>>>>> ava:199)
>>>>>>>>> at org.wso2.carbon.core.internal.StartupFinalizerServiceCompone
>>>>>>>>> nt.serviceChanged(StartupFinalizerServiceComponent.java:288)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis
>>>>>>>>> tener.serviceChanged(FilteredServiceListener.java:107)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d
>>>>>>>>> ispatchEvent(BundleContextImpl.java:861)
>>>>>>>>> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve
>>>>>>>>> nt(EventManager.java:230)
>>>>>>>>> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv
>>>>>>>>> entSynchronous(ListenerQueue.java:148)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>>>>>>>>> blishServiceEventPrivileged(ServiceRegistry.java:819)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>>>>>>>>> blishServiceEvent(ServiceRegistry.java:771)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio
>>>>>>>>> nImpl.register(ServiceRegistrationImpl.java:130)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re
>>>>>>>>> gisterService(ServiceRegistry.java:214)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>>>>>>>>> egisterService(BundleContextImpl.java:433)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>>>>>>>>> egisterService(BundleContextImpl.java:451)
>>>>>>>>> at org.wso2.carbon.throttling.agent.internal.ThrottlingAgentSer
>>>>>>>>> viceComponent.registerThrottlingAgent(ThrottlingAgentService
>>>>>>>>> Component.java:123)
>>>>>>>>> at org.wso2.carbon.throttling.agent.internal.ThrottlingAgentSer
>>>>>>>>> viceComponent.activate(ThrottlingAgentServiceComponent.java:100)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>>>>>>>> ssorImpl.java:57)
>>>>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>>>>>>>> thodAccessorImpl.java:43)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ
>>>>>>>>> ate(ServiceComponent.java:260)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a
>>>>>>>>> ctivate(ServiceComponentProp.java:146)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>>>>>>>>> uild(ServiceComponentProp.java:345)
>>>>>>>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>>>>>>>>> nt(InstanceProcess.java:620)
>>>>>>>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>>>>>>>>> nts(InstanceProcess.java:197)
>>>>>>>>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolve
>>>>>>>>> r.java:343)
>>>>>>>>> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SC
>>>>>>>>> RManager.java:222)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis
>>>>>>>>> tener.serviceChanged(FilteredServiceListener.java:107)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d
>>>>>>>>> ispatchEvent(BundleContextImpl.java:861)
>>>>>>>>> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve
>>>>>>>>> nt(EventManager.java:230)
>>>>>>>>> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv
>>>>>>>>> entSynchronous(ListenerQueue.java:148)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>>>>>>>>> blishServiceEventPrivileged(ServiceRegistry.java:819)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>>>>>>>>> blishServiceEvent(ServiceRegistry.java:771)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio
>>>>>>>>> nImpl.register(ServiceRegistrationImpl.java:130)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re
>>>>>>>>> gisterService(ServiceRegistry.java:214)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>>>>>>>>> egisterService(BundleContextImpl.java:433)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>>>>>>>>> egisterService(BundleContextImpl.java:451)
>>>>>>>>> at org.wso2.carbon.core.init.CarbonServerManager.initializeCarb
>>>>>>>>> on(CarbonServerManager.java:514)
>>>>>>>>> at org.wso2.carbon.core.init.CarbonServerManager.start(CarbonSe
>>>>>>>>> rverManager.java:219)
>>>>>>>>> at org.wso2.carbon.core.internal.CarbonCoreServiceComponent.act
>>>>>>>>> ivate(CarbonCoreServiceComponent.java:94)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>>>>>>>> ssorImpl.java:57)
>>>>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>>>>>>>> thodAccessorImpl.java:43)
>>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ
>>>>>>>>> ate(ServiceComponent.java:260)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a
>>>>>>>>> ctivate(ServiceComponentProp.java:146)
>>>>>>>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>>>>>>>>> uild(ServiceComponentProp.java:345)
>>>>>>>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>>>>>>>>> nt(InstanceProcess.java:620)
>>>>>>>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>>>>>>>>> nts(InstanceProcess.java:197)
>>>>>>>>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolve
>>>>>>>>> r.java:343)
>>>>>>>>> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SC
>>>>>>>>> RManager.java:222)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis
>>>>>>>>> tener.serviceChanged(FilteredServiceListener.java:107)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d
>>>>>>>>> ispatchEvent(BundleContextImpl.java:861)
>>>>>>>>> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve
>>>>>>>>> nt(EventManager.java:230)
>>>>>>>>> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv
>>>>>>>>> entSynchronous(ListenerQueue.java:148)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>>>>>>>>> blishServiceEventPrivileged(ServiceRegistry.java:819)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>>>>>>>>> blishServiceEvent(ServiceRegistry.java:771)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio
>>>>>>>>> nImpl.register(ServiceRegistrationImpl.java:130)
>>>>>>>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re
>>>>>>>>> gisterService(ServiceRegistry.java:214)
>>>>>>>>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>>>>>>>>> egisterService(BundleContextImpl.java:433)
>>>>>>>>> at org.eclipse.equinox.http.servlet.internal.Activator.register
>>>>>>>>> HttpService(Activator.java:81)
>>>>>>>>> at org.eclipse.equinox.http.servlet.internal.Activator.addProxy
>>>>>>>>> Servlet(Activator.java:60)
>>>>>>>>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(
>>>>>>>>> ProxyServlet.java:40)
>>>>>>>>> at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(De
>>>>>>>>> legationServlet.java:38)
>>>>>>>>> at org.apache.catalina.core.StandardWrapper.initServlet(Standar
>>>>>>>>> dWrapper.java:1282)
>>>>>>>>> at org.apache.catalina.core.StandardWrapper.loadServlet(Standar
>>>>>>>>> dWrapper.java:1195)
>>>>>>>>> at org.apache.catalina.core.StandardWrapper.load(StandardWrappe
>>>>>>>>> r.java:1085)
>>>>>>>>> at org.apache.catalina.core.StandardContext.loadOnStartup(Stand
>>>>>>>>> ardContext.java:5349)
>>>>>>>>> at org.apache.catalina.core.StandardContext.startInternal(Stand
>>>>>>>>> ardContext.java:5641)
>>>>>>>>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.j
>>>>>>>>> ava:147)
>>>>>>>>> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
>>>>>>>>> inerBase.java:1571)
>>>>>>>>> at org.apache.catalina.core.ContainerBase$StartChild.call(Conta
>>>>>>>>> inerBase.java:1561)
>>>>>>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>>>>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>>>>>>>> Executor.java:1145)
>>>>>>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>>>>>>>>> lExecutor.java:615)
>>>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>>>> Caused by: java.lang.NoClassDefFoundError:
>>>>>>>>> com/codahale/metrics/json/MetricsModule
>>>>>>>>> at java.lang.Class.forName0(Native Method)
>>>>>>>>> at java.lang.Class.forName(Class.java:274)
>>>>>>>>> at org.apache.spark.util.Utils$.classForName(Utils.scala:175)
>>>>>>>>> at org.apache.spark.metrics.MetricsSystem$$anonfun$registerSink
>>>>>>>>> s$1.apply(MetricsSystem.scala:190)
>>>>>>>>> at org.apache.spark.metrics.MetricsSystem$$anonfun$registerSink
>>>>>>>>> s$1.apply(MetricsSystem.scala:186)
>>>>>>>>> at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(Ha
>>>>>>>>> shMap.scala:98)
>>>>>>>>> at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(Ha
>>>>>>>>> shMap.scala:98)
>>>>>>>>> at scala.collection.mutable.HashTable$class.foreachEntry(HashTa
>>>>>>>>> ble.scala:226)
>>>>>>>>> at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:39)
>>>>>>>>> at scala.collection.mutable.HashMap.foreach(HashMap.scala:98)
>>>>>>>>> at org.apache.spark.metrics.MetricsSystem.registerSinks(Metrics
>>>>>>>>> System.scala:186)
>>>>>>>>> at org.apache.spark.metrics.MetricsSystem.start(MetricsSystem.s
>>>>>>>>> cala:100)
>>>>>>>>> at org.apache.spark.SparkContext.<init>(SparkContext.scala:540)
>>>>>>>>> at org.apache.spark.api.java.JavaSparkContext.<init>(JavaSparkC
>>>>>>>>> ontext.scala:59)
>>>>>>>>> at org.wso2.carbon.analytics.spark.core.internal.SparkAnalytics
>>>>>>>>> Executor.initializeSparkContext(SparkAnalyticsExecutor.java:319)
>>>>>>>>> ... 144 more
>>>>>>>>> Caused by: java.lang.ClassNotFoundException:
>>>>>>>>> com.codahale.metrics.json.MetricsModule cannot be found by
>>>>>>>>> spark-core_2.10_1.6.2.wso2v1
>>>>>>>>> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter
>>>>>>>>> nal(BundleLoader.java:501)
>>>>>>>>> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
>>>>>>>>> leLoader.java:421)
>>>>>>>>> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
>>>>>>>>> leLoader.java:412)
>>>>>>>>> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa
>>>>>>>>> dClass(DefaultClassLoader.java:107)
>>>>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>>>>>>>> ... 159 more
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Regards,
>>>>>>>>>
>>>>>>>>> Waruna Lakshitha Jayaweera
>>>>>>>>> Senior Software Engineer
>>>>>>>>> WSO2 Inc; http://wso2.com
>>>>>>>>> phone: +94713255198
>>>>>>>>> http://waruapz.blogspot.com/
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Regards,
>>>>>>>>
>>>>>>>> Waruna Lakshitha Jayaweera
>>>>>>>> Senior Software Engineer
>>>>>>>> WSO2 Inc; http://wso2.com
>>>>>>>> phone: +94713255198
>>>>>>>> http://waruapz.blogspot.com/
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Niranda Perera*
>>>>>>> Software Engineer, WSO2 Inc.
>>>>>>> Mobile: +94-71-554-8430
>>>>>>> Twitter: @n1r44 <https://twitter.com/N1R44>
>>>>>>> https://pythagoreanscript.wordpress.com/
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Niranda Perera*
>>>> Software Engineer, WSO2 Inc.
>>>> Mobile: +94-71-554-8430
>>>> Twitter: @n1r44 <https://twitter.com/N1R44>
>>>> https://pythagoreanscript.wordpress.com/
>>>>
>>>
>>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 <https://twitter.com/N1R44>
>> https://pythagoreanscript.wordpress.com/
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
With Regards,

*Rasika Perera*
Software Engineer
LinkedIn: http://lk.linkedin.com/in/rasika90

<http://wso2.com/signature>

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to