In fact, not Vinod...

This was actually a configuration issue. Not a bug from EI side. Only issue
was that the issue was not apparent from the stack-trace.

I have changed the datasource name in analytics-datasources.xml, but missed
out updating the same at analytics-config.xml. That was the issue.

Regards,
Dilan.


*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Wed, Aug 9, 2017 at 9:12 AM, Vinod Kavinda <vi...@wso2.com> wrote:

> Hi DilanA,
> I'm not exactly clear about the issue. Is this something we need to fix in
> the analytics distribution or because of your changes done in
> analytics-datasources.xml?
>
> If there is something we need to fix in EI, please raise a ticket with
> label analytics in Github.
>
> Thanks,
> Vinod
>
>
> Regards,
> Vinod
>
> On Tue, Aug 8, 2017 at 12:03 PM, Dilan Udara Ariyaratne <dil...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> I had an off-line discussion with Mohan on this and figured out the root
>> cause which was not obvious when looking at the stack-trace.
>>
>> The issue was "Updating the analytics database names at
>> analytics-datasources.xml, but those changed names been not reflected at
>> analytics-config.xml".
>>
>> Thanks, Mohan for figuring out the issue.
>>
>> *Dilan U. Ariyaratne*
>> Senior Software Engineer
>> WSO2 Inc. <http://wso2.com/>
>> Mobile: +94766405580 <%2B94766405580>
>> lean . enterprise . middleware
>>
>>
>> On Tue, Aug 8, 2017 at 10:20 AM, Dilan Udara Ariyaratne <dil...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> Currently I am testing out a WSO2 EI Integrator cluster with analytics
>>> for the on-going kubernetes-ei effort [1] [2]
>>>
>>> The deployed pattern includes an EI Integrator profile cluster with one
>>> analytics standalone node. In spite of the fact that I deploy this on a
>>> kubernetes cluster (I am using minikube)
>>> or directly on top of my host machine, I am getting following Null
>>> Pointer Exception (NPE) when running the analytics node.
>>>
>>> [2017-08-08 04:15:08,891] [EI-Analytics]  INFO {
>>> org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} -
>>> Thrift Server started at 0.0.0.0
>>> [2017-08-08 04:15:08,925] [EI-Analytics]  INFO {
>>> org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} -
>>> Thrift SSL port : 7712
>>> [2017-08-08 04:15:08,936] [EI-Analytics]  INFO {
>>> org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} -
>>> Thrift port : 7612
>>> [2017-08-08 04:15:08,957] [EI-Analytics]  INFO {
>>> org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector
>>> for servlet write/read
>>> [2017-08-08 04:15:09,021] [EI-Analytics]  INFO {
>>> org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector
>>> for servlet write/read
>>> [2017-08-08 04:15:09,129] [EI-Analytics]  INFO {
>>> org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl} -  Task
>>> service starting in STANDALONE mode...
>>> [2017-08-08 04:15:09,191] [EI-Analytics] ERROR
>>> {org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceComponent}
>>> -  Error in activating analytics data service: null
>>> java.lang.NullPointerException
>>>     at org.wso2.carbon.analytics.datasource.rdbms.RDBMSUtils.lookup
>>> DatabaseInfo(RDBMSUtils.java:66)
>>>     at org.wso2.carbon.analytics.datasource.rdbms.RDBMSUtils.lookup
>>> CurrentQueryConfigurationEntry(RDBMSUtils.java:89)
>>>     at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRec
>>> ordStore.init(RDBMSAnalyticsRecordStore.java:88)
>>>     at org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServ
>>> iceImpl.initARS(AnalyticsDataServiceImpl.java:288)
>>>     at org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServ
>>> iceImpl.<init>(AnalyticsDataServiceImpl.java:135)
>>>     at org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServ
>>> iceComponent.activate(AnalyticsDataServiceComponent.java:69)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>> ssorImpl.java:62)
>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>>     at java.lang.reflect.Method.invoke(Method.java:498)
>>>     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:62)
>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>>     at java.lang.reflect.Method.invoke(Method.java:498)
>>>     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.java: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.server.admin.internal.ServerAdminServiceComp
>>> onent.activate(ServerAdminServiceComponent.java:106)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>> ssorImpl.java:62)
>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>>     at java.lang.reflect.Method.invoke(Method.java:498)
>>>     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:62)
>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>>     at java.lang.reflect.Method.invoke(Method.java:498)
>>>     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:1269)
>>>     at org.apache.catalina.core.StandardWrapper.loadServlet(Standar
>>> dWrapper.java:1182)
>>>     at org.apache.catalina.core.StandardWrapper.load(StandardWrappe
>>> r.java:1072)
>>>     at org.apache.catalina.core.StandardContext.loadOnStartup(Stand
>>> ardContext.java:5368)
>>>     at org.apache.catalina.core.StandardContext.startInternal(Stand
>>> ardContext.java:5660)
>>>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.j
>>> ava:145)
>>>     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:266)
>>>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>> Executor.java:1142)
>>>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>>> lExecutor.java:617)
>>>     at java.lang.Thread.run(Thread.java:745)
>>> [2017-08-08 04:15:09,288] [EI-Analytics]  INFO
>>> {org.wso2.carbon.core.init.JMXServerManager} -  JMX Service URL  :
>>> service:jmx:rmi://localhost:11112/jndi/rmi://localhost:10000/jmxrmi
>>> [2017-08-08 04:15:09,330] [EI-Analytics]  INFO
>>> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -
>>> Server           :  WSO2 Enterprise Integrator Analytics-6.0.0
>>> [2017-08-08 04:15:09,331] [EI-Analytics]  INFO
>>> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -
>>> WSO2 Carbon started in 45 sec
>>>
>>> Any idea on what's wrong, may be with the configurations ?
>>>
>>> Current configurations can be found at [3].
>>>
>>> References :
>>> - - - - - - - - - - -
>>> [1] [Architecture] [Kubernetes] Improving Kubernetes Deployment Support
>>> for WSO2 Products
>>> [2] https://github.com/DilanUA/kubernetes-ei/tree/master/pattern
>>> -2/wso2ei-integrator-ha-analytics-stdln
>>> [3] https://github.com/DilanUA/conf-ei/tree/master/pattern-2/wso
>>> 2ei-integrator-ha-analytics-stdln/wso2ei-analytics-nod-stdln
>>>
>>> Thanks,
>>> Dilan.
>>>
>>> *Dilan U. Ariyaratne*
>>> Senior Software Engineer
>>> WSO2 Inc. <http://wso2.com/>
>>> Mobile: +94766405580 <%2B94766405580>
>>> lean . enterprise . middleware
>>>
>>>
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Senior Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> <http://wso2.com/signature>
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to