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 <[email protected]>
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.
> lookupDatabaseInfo(RDBMSUtils.java:66)
>     at org.wso2.carbon.analytics.datasource.rdbms.RDBMSUtils.
> lookupCurrentQueryConfigurationEntry(RDBMSUtils.java:89)
>     at org.wso2.carbon.analytics.datasource.rdbms.
> RDBMSAnalyticsRecordStore.init(RDBMSAnalyticsRecordStore.java:88)
>     at org.wso2.carbon.analytics.dataservice.core.
> AnalyticsDataServiceImpl.initARS(AnalyticsDataServiceImpl.java:288)
>     at org.wso2.carbon.analytics.dataservice.core.
> AnalyticsDataServiceImpl.<init>(AnalyticsDataServiceImpl.java:135)
>     at org.wso2.carbon.analytics.dataservice.core.
> AnalyticsDataServiceComponent.activate(AnalyticsDataServiceComponent.
> java:69)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:498)
>     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.ntask.core.internal.TasksDSComponent.
> activate(TasksDSComponent.java:106)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:498)
>     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.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.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.server.admin.internal.ServerAdminServiceComponent.
> activate(ServerAdminServiceComponent.java:106)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:498)
>     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.core.init.CarbonServerManager.initializeCarbon(
> CarbonServerManager.java:514)
>     at org.wso2.carbon.core.init.CarbonServerManager.start(
> CarbonServerManager.java:219)
>     at org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(
> CarbonCoreServiceComponent.java:94)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:498)
>     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.equinox.http.servlet.internal.Activator.
> registerHttpService(Activator.java:81)
>     at org.eclipse.equinox.http.servlet.internal.Activator.
> addProxyServlet(Activator.java:60)
>     at org.eclipse.equinox.http.servlet.internal.ProxyServlet.
> init(ProxyServlet.java:40)
>     at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.
> init(DelegationServlet.java:38)
>     at org.apache.catalina.core.StandardWrapper.initServlet(
> StandardWrapper.java:1269)
>     at org.apache.catalina.core.StandardWrapper.loadServlet(
> StandardWrapper.java:1182)
>     at org.apache.catalina.core.StandardWrapper.load(
> StandardWrapper.java:1072)
>     at org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:5368)
>     at org.apache.catalina.core.StandardContext.startInternal(
> StandardContext.java:5660)
>     at org.apache.catalina.util.LifecycleBase.start(
> LifecycleBase.java:145)
>     at org.apache.catalina.core.ContainerBase$StartChild.call(
> ContainerBase.java:1571)
>     at org.apache.catalina.core.ContainerBase$StartChild.call(
> ContainerBase.java:1561)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.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/
> wso2ei-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
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to