wso2 / product-ei

An open source, a high-performance hybrid integration platform that allows developers quick integration with any application, data, or system.
https://wso2.com/integration/
Apache License 2.0
375 stars 280 forks source link

MB profile cant be started on IBM JDK 1.8 #374

Closed gvasanka closed 7 years ago

gvasanka commented 7 years ago

Getting following error when starting, the same issue reported on https://wso2.org/jira/browse/MB-1705 has already fixed.

asankav@asankav-ThinkPad-T540p:~/servers/releasetest/ei/23/profile/mb/wso2ei-6.1.0-SNAPSHOT/bin$ ./broker.sh 
JAVA_HOME environment variable is set to /usr/local/java/ibm-java-x86_64-80
CARBON_HOME environment variable is set to /home/asankav/servers/releasetest/ei/23/profile/mb/wso2ei-6.1.0-SNAPSHOT/wso2/broker
Using Java memory options: -Xms256m -Xmx1024m
[2017-03-27 11:28:12,363] [EI-Broker]  INFO {org.wso2.andes.wso2.internal.QpidBundleActivator} -  Setting BundleContext in PluginManager
[2017-03-27 11:28:12,947] [EI-Broker]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2 Carbon...
[2017-03-27 11:28:12,947] [EI-Broker]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System : Linux 4.4.0-62-generic, amd64
[2017-03-27 11:28:12,948] [EI-Broker]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home        : /usr/local/java/ibm-java-x86_64-80/jre
[2017-03-27 11:28:12,948] [EI-Broker]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version     : 1.8.0
[2017-03-27 11:28:12,948] [EI-Broker]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM          : IBM J9 VM 2.8,IBM Corporation
[2017-03-27 11:28:12,948] [EI-Broker]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon Home      : /home/asankav/servers/releasetest/ei/23/profile/mb/wso2ei-6.1.0-SNAPSHOT/wso2/broker
[2017-03-27 11:28:12,948] [EI-Broker]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp Dir    : /home/asankav/servers/releasetest/ei/23/profile/mb/wso2ei-6.1.0-SNAPSHOT/wso2/broker/tmp
[2017-03-27 11:28:12,948] [EI-Broker]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  User             : asankav, en-US, Asia/Colombo
[2017-03-27 11:28:13,037] [EI-Broker]  WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -  Open files limit :1024 of the system is below the recommended minimum count :4096
[2017-03-27 11:28:13,038] [EI-Broker]  WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -  Carbon is configured to use the default keystore (wso2carbon.jks). To maximize security when deploying to a production environment, configure a new keystore with a unique password in the production server profile.
[2017-03-27 11:28:16,195] [EI-Broker]  INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Configured Registry in 26ms
[2017-03-27 11:28:16,246] [EI-Broker]  INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -  Registry Mode    : READ-WRITE
[2017-03-27 11:28:16,294] [EI-Broker]  INFO {org.wso2.carbon.metrics.impl.util.JDBCReporterBuilder} -  Creating JDBC reporter for Metrics with source 'localhost', data source 'jdbc/WSO2MetricsDB' and 60 seconds polling period
[2017-03-27 11:28:16,296] [EI-Broker]  INFO {org.wso2.carbon.metrics.impl.util.JmxReporterBuilder} -  Creating JMX reporter for Metrics with domain 'org.wso2.carbon.metrics'
[2017-03-27 11:28:16,299] [EI-Broker]  INFO {org.wso2.carbon.metrics.impl.reporter.AbstractReporter} -  Started JMX reporter for Metrics
[2017-03-27 11:28:16,303] [EI-Broker]  INFO {org.wso2.carbon.metrics.impl.reporter.AbstractReporter} -  Started JDBC reporter for Metrics
[2017-03-27 11:28:17,323] [EI-Broker]  INFO {org.wso2.carbon.registry.indexing.solr.SolrClient} -  Default Embedded Solr Server Initialized
[2017-03-27 11:28:17,441] [EI-Broker]  INFO {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} -  Carbon UserStoreMgtDSComponent activated successfully.
[2017-03-27 11:28:19,585] [EI-Broker]  INFO {org.apache.catalina.startup.TaglibUriRule} -  TLD skipped. URI: http://tiles.apache.org/tags-tiles is already defined
[2017-03-27 11:28:20,115] [EI-Broker]  INFO {org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer} -  User Store Configuration Deployer initiated.
[2017-03-27 11:28:20,116] [EI-Broker]  INFO {org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer} -  User Store Configuration Deployer initiated.
[2017-03-27 11:28:21,907] [EI-Broker]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Repository       : /home/asankav/servers/releasetest/ei/23/profile/mb/wso2ei-6.1.0-SNAPSHOT/wso2/broker/repository/deployment/server/
[2017-03-27 11:28:21,915] [EI-Broker]  INFO {org.wso2.carbon.andes.core.internal.ds.QueueManagerServiceDS} -  Successfully created the queue manager service
[2017-03-27 11:28:21,917] [EI-Broker]  INFO {org.wso2.carbon.andes.core.internal.ds.SubscriptionManagerServiceDS} -  Successfully created the subscription manager service
[2017-03-27 11:28:21,941] [EI-Broker]  INFO {org.wso2.carbon.core.multitenancy.eager.TenantLoadingConfig} -  Using tenant lazy loading policy...
[2017-03-27 11:28:21,951] [EI-Broker]  INFO {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -  Permission cache updated for tenant -1234
[2017-03-27 11:28:22,472] [EI-Broker]  INFO {org.wso2.andes.configuration.AndesConfigurationManager} -  Main andes configuration located at : /home/asankav/servers/releasetest/ei/23/profile/mb/wso2ei-6.1.0-SNAPSHOT/wso2/broker/conf/broker.xml
[2017-03-27 11:28:22,525] [EI-Broker]  INFO {org.wso2.carbon.andes.internal.QpidServiceComponent} -  Activating Andes Message Broker Engine...
[2017-03-27 11:28:22,532] [EI-Broker]  INFO {org.wso2.andes.server.Broker} -  Starting Qpid using configuration : /home/asankav/servers/releasetest/ei/23/profile/mb/wso2ei-6.1.0-SNAPSHOT/wso2/broker/conf/advanced/qpid-config.xml
[2017-03-27 11:28:22,547] [EI-Broker]  INFO {org.wso2.andes.server.registry.ApplicationRegistry} -  Initialising Application Registry(org.wso2.andes.server.registry.ConfigurationFileApplicationRegistry@8a86f8cc)
[2017-03-27 11:28:22,558] [EI-Broker]  INFO {org.wso2.andes.server.plugins.PluginManager} -  Opened service trackers
[Broker] BRK-1001 : Startup : Version: 0.11 Build: 90784:90849
[2017-03-27 11:28:22,607] [EI-Broker]  INFO {org.wso2.andes.server.management.JMXManagedObjectRegistry} -  Initialising managed object registry using jplatform MBean server
[2017-03-27 11:28:22,610] [EI-Broker]  INFO {org.wso2.andes.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} -  PrincipalDatabase concrete implementation : org.wso2.carbon.andes.authentication.andes.CarbonBasedPrincipalDatabase
[2017-03-27 11:28:22,612] [EI-Broker]  INFO {org.wso2.andes.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} -  Initialised PLAIN SASL provider successfully
[2017-03-27 11:28:22,612] [EI-Broker]  INFO {org.wso2.andes.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} -  Additional SASL providers successfully registered.
[2017-03-27 11:28:22,613] [EI-Broker]  INFO {org.wso2.andes.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} -  Registering UserManagementMBean
[Broker] MNG-1001 : Startup
[Broker] MNG-1004 : Ready : Using the platform JMX Agent
[2017-03-27 11:28:22,708] [EI-Broker]  INFO {org.wso2.andes.store.rdbms.RDBMSConnection} -  JDBC connection established with jndi config WSO2MBStoreDB
[2017-03-27 11:28:22,713] [EI-Broker]  INFO {org.wso2.andes.store.rdbms.RDBMSAndesContextStoreImpl} -  Andes Context Store initialised
[2017-03-27 11:28:22,713] [EI-Broker]  INFO {org.wso2.andes.kernel.AndesKernelBoot} -  AndesContextStore initialised with org.wso2.andes.store.rdbms.RDBMSAndesContextStoreImpl
[2017-03-27 11:28:22,724] [EI-Broker]  INFO {org.wso2.andes.store.rdbms.RDBMSConnection} -  JDBC connection established with jndi config WSO2MBStoreDB
[2017-03-27 11:28:22,728] [EI-Broker]  INFO {org.wso2.andes.store.rdbms.RDBMSMessageStoreImpl} -  Message Store initialised
[2017-03-27 11:28:22,728] [EI-Broker]  INFO {org.wso2.andes.kernel.AndesKernelBoot} -  Andes MessageStore initialised with org.wso2.andes.store.rdbms.RDBMSMessageStoreImpl
[2017-03-27 11:28:22,733] [EI-Broker]  WARN {org.wso2.andes.configuration.AndesConfigurationManager} -  Error when trying to read property : transaction/maxWaitTimeout. Switching to default value : 30
[2017-03-27 11:28:22,867] [EI-Broker]  INFO {org.wso2.andes.kernel.Andes} -  Andes API initialised.
[2017-03-27 11:28:22,893] [EI-Broker]  INFO {org.wso2.andes.kernel.AndesChannel} -  Channel created (ID: Internel_channel)
[2017-03-27 11:28:22,897] [EI-Broker]  INFO {org.wso2.andes.server.cluster.ClusterManager} -  Clearing the Persisted State of Node with ID NODElocalhost/127.0.0.1
[2017-03-27 11:28:22,898] [EI-Broker]  INFO {org.wso2.andes.server.cluster.ClusterManager} -  Initializing Standalone Mode. Current Node ID:NODElocalhost/127.0.0.1 127.0.0.1
[2017-03-27 11:28:22,899] [EI-Broker]  INFO {org.wso2.andes.kernel.AndesSubscriptionManager} -  Deactivated all active durable subscriptions
[2017-03-27 11:28:22,900] [EI-Broker]  INFO {org.wso2.andes.kernel.AndesKernelBoot} -  Syncing exchanges, queues, bindings and subscriptions
[2017-03-27 11:28:22,905] [EI-Broker]  INFO {org.wso2.andes.kernel.Andes} -  Starting Safe Zone Calculator for slots.
[Broker] BRK-1002 : Starting : Listening on TCP port 5675
[2017-03-27 11:28:23,223] [EI-Broker]  INFO {qpid.message.broker.listening} -  [Broker] BRK-1002 : Starting : Listening on TCP port 5675
[Broker] BRK-1002 : Starting : Listening on TCP/SSL port 8675
[2017-03-27 11:28:23,229] [EI-Broker]  INFO {qpid.message.broker.listening} -  [Broker] BRK-1002 : Starting : Listening on TCP/SSL port 8675
[Broker] BRK-1004 : Qpid Broker Ready
[2017-03-27 11:28:23,233] [EI-Broker]  INFO {org.wso2.andes.kernel.MessagingEngine} -  Starting SlotDelivery Workers.
[2017-03-27 11:28:23,233] [EI-Broker]  INFO {org.wso2.andes.kernel.MessagingEngine} -  Start Disruptor writing messages to store.
[Broker] [vh(/carbon)/qu(DeadLetterChannel)] QUE-1001 : Create : Owner: admin Durable
[2017-03-27 11:28:23,257] [EI-Broker]  INFO {org.wso2.andes.server.virtualhost.VirtualHostConfigSynchronizer} -  Queue sync - Added Queue: DeadLetterChannel, Owner: admin, IsExclusive: false, Arguments: null
[2017-03-27 11:28:23,258] [EI-Broker]  INFO {org.wso2.andes.server.queue.DLCQueueUtils} -  DeadLetterChannel Queue Created as Dead Letter Channel
[2017-03-27 11:28:23,315] [EI-Broker]  INFO {org.wso2.andes.mqtt.MQTTopicManager} -  MQTT andes connecting bridge initialized successfully
[2017-03-27 11:28:23,332] [EI-Broker]  INFO {org.dna.mqtt.moquette.server.netty.NettyAcceptor} -  Server binded host: 0.0.0.0, port: 1886
[2017-03-27 11:28:23,337] [EI-Broker] ERROR {org.dna.mqtt.moquette.server.netty.metrics.SSLHandlerFactory} -  Can't start SSL layer!
java.security.NoSuchAlgorithmException: SunX509 TrustManagerFactory not available
    at sun.security.jca.GetInstance.getInstance(GetInstance.java:171)
    at javax.net.ssl.TrustManagerFactory.getInstance(TrustManagerFactory.java:23)
    at org.wso2.andes.ssl.SSLContextFactory.buildServerContext(SSLContextFactory.java:150)
    at org.wso2.andes.transport.network.security.ssl.SSLUtil.createSSLContext(SSLUtil.java:156)
    at org.dna.mqtt.moquette.server.netty.metrics.SSLHandlerFactory.initSSLContext(SSLHandlerFactory.java:70)
    at org.dna.mqtt.moquette.server.netty.metrics.SSLHandlerFactory.<init>(SSLHandlerFactory.java:51)
    at org.dna.mqtt.moquette.server.netty.NettyAcceptor.initSSLHandlerFactory(NettyAcceptor.java:313)
    at org.dna.mqtt.moquette.server.netty.NettyAcceptor.initialize(NettyAcceptor.java:117)
    at org.dna.mqtt.moquette.server.Server.serverInit(Server.java:79)
    at org.dna.mqtt.moquette.server.Server.startServer(Server.java:35)
    at org.wso2.andes.server.Main.startMQTTBroker(Main.java:211)
    at org.wso2.andes.server.Main.startBroker(Main.java:221)
    at org.wso2.andes.server.Main.execute(Main.java:206)
    at org.wso2.andes.server.Main.<init>(Main.java:54)
    at org.wso2.andes.server.Main.main(Main.java:47)
    at org.wso2.carbon.andes.internal.QpidServiceComponent.startAndesBroker(QpidServiceComponent.java:380)
    at org.wso2.carbon.andes.internal.QpidServiceComponent.activate(QpidServiceComponent.java:156)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:508)
    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.server.admin.internal.ServerAdminServiceComponent.activate(ServerAdminServiceComponent.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:508)
    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:95)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:508)
    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:277)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.lang.Thread.run(Thread.java:785)
[2017-03-27 11:28:23,341] [EI-Broker] ERROR {org.wso2.andes.server.Main} -  Exception during startup. Triggering shutdown 
java.lang.NullPointerException
    at org.dna.mqtt.moquette.server.netty.NettyAcceptor.initialize(NettyAcceptor.java:118)
    at org.dna.mqtt.moquette.server.Server.serverInit(Server.java:79)
    at org.dna.mqtt.moquette.server.Server.startServer(Server.java:35)
    at org.wso2.andes.server.Main.startMQTTBroker(Main.java:211)
    at org.wso2.andes.server.Main.startBroker(Main.java:221)
    at org.wso2.andes.server.Main.execute(Main.java:206)
    at org.wso2.andes.server.Main.<init>(Main.java:54)
    at org.wso2.andes.server.Main.main(Main.java:47)
    at org.wso2.carbon.andes.internal.QpidServiceComponent.startAndesBroker(QpidServiceComponent.java:380)
    at org.wso2.carbon.andes.internal.QpidServiceComponent.activate(QpidServiceComponent.java:156)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:508)
    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.server.admin.internal.ServerAdminServiceComponent.activate(ServerAdminServiceComponent.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:508)
    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:95)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:508)
    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:277)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.lang.Thread.run(Thread.java:785)
[2017-03-27 11:28:23,343] [EI-Broker]  INFO {org.wso2.andes.server.registry.ApplicationRegistry} -  Shutting down ApplicationRegistry(org.wso2.andes.server.registry.ConfigurationFileApplicationRegistry@8a86f8cc)
[2017-03-27 11:28:23,343] [EI-Broker]  INFO {org.wso2.andes.server.registry.ApplicationRegistry} -  Shutting down ApplicationRegistry:org.wso2.andes.server.registry.ConfigurationFileApplicationRegistry@8a86f8cc
[2017-03-27 11:28:23,345] [EI-Broker]  INFO {org.wso2.andes.server.security.auth.manager.PrincipalDatabaseAuthenticationManager} -  Unregistering UserManagementMBean
[2017-03-27 11:28:23,346] [EI-Broker]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Shutdown hook triggered....
[2017-03-27 11:28:23,347] [EI-Broker]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Gracefully shutting down WSO2 Message Broker...
[2017-03-27 11:28:23,347] [EI-Broker]  INFO {org.wso2.carbon.core.ServerManagement} -  Starting to switch to maintenance mode...
[2017-03-27 11:28:23,348] [EI-Broker]  INFO {org.wso2.carbon.core.ServerManagement} -  Stopped all transport listeners
[2017-03-27 11:28:23,348] [EI-Broker]  INFO {org.wso2.carbon.core.ServerManagement} -  Waiting for request service completion...
[2017-03-27 11:28:23,349] [EI-Broker]  INFO {org.wso2.carbon.core.ServerManagement} -  All requests have been served.
[2017-03-27 11:28:23,349] [EI-Broker]  INFO {org.wso2.carbon.core.ServerManagement} -  Waiting for deployment completion...
[2017-03-27 11:28:23,350] [EI-Broker]  INFO {org.wso2.carbon.core.ServerManagement} -  All deployment tasks have been completed.
[2017-03-27 11:28:23,350] [EI-Broker]  INFO {org.wso2.carbon.core.ServerManagement} -  Waiting for server task completion...
[2017-03-27 11:28:23,351] [EI-Broker]  INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -  Writing logs 
[2017-03-27 11:28:23,374] [EI-Broker]  INFO {org.wso2.carbon.core.ServerManagement} -  All server tasks have been completed.
[2017-03-27 11:28:23,374] [EI-Broker]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Shutting down WSO2 Message Broker...
[2017-03-27 11:28:23,375] [EI-Broker]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Shutting down OSGi framework...
[2017-03-27 11:29:21,943] [EI-Broker]  WARN {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Waiting for required OSGi services: org.wso2.carbon.throttling.agent.ThrottlingAgent,
[2017-03-27 11:30:21,944] [EI-Broker]  WARN {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Waiting for required OSGi services: org.wso2.carbon.throttling.agent.ThrottlingAgent,
[2017-03-27 11:31:21,943] [EI-Broker]  WARN {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Waiting for required OSGi services: org.wso2.carbon.throttling.agent.ThrottlingAgent,
[2017-03-27 11:32:21,944] [EI-Broker]  WARN {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Waiting for required OSGi services: org.wso2.carbon.throttling.agent.ThrottlingAgent,
[2017-03-27 11:33:21,943] [EI-Broker]  WARN {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Waiting for required OSGi services: org.wso2.carbon.throttling.agent.ThrottlingAgent,
[2017-03-27 11:33:53,430] [EI-Broker]  INFO {org.wso2.carbon.core.init.CarbonServerManager} -  Stopping CarbonServerManager...
[2017-03-27 11:33:53,432] [EI-Broker] ERROR {org.wso2.carbon.core.internal.CarbonCoreServiceComponent} -  Failed clean up Carbon core
java.lang.NullPointerException
    at org.wso2.carbon.core.init.CarbonServerManager.stop(CarbonServerManager.java:946)
    at org.wso2.carbon.core.internal.CarbonCoreServiceComponent.deactivate(CarbonCoreServiceComponent.java:107)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:508)
    at org.eclipse.equinox.internal.ds.model.ServiceComponent.deactivate(ServiceComponent.java:387)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.deactivate(ServiceComponentProp.java:161)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.dispose(ServiceComponentProp.java:387)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.dispose(ServiceComponentProp.java:102)
    at org.eclipse.equinox.internal.ds.InstanceProcess.disposeInstances(InstanceProcess.java:344)
    at org.eclipse.equinox.internal.ds.InstanceProcess.disposeInstances(InstanceProcess.java:306)
    at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:368)
    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.unregister(ServiceRegistrationImpl.java:225)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.unregisterServices(ServiceRegistry.java:635)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.close(BundleContextImpl.java:88)
    at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:514)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:566)
    at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1206)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:592)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
    at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284)
    at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:692)
    at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:600)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:400)
    at org.wso2.carbon.core.init.CarbonServerManager.shutdown(CarbonServerManager.java:850)
    at org.wso2.carbon.core.init.CarbonServerManager.shutdownGracefully(CarbonServerManager.java:884)
    at org.wso2.carbon.core.init.CarbonServerManager$4.run(CarbonServerManager.java:902)
[2017-03-27 11:34:21,944] [EI-Broker]  WARN {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Waiting for required OSGi services: org.wso2.carbon.throttling.agent.ThrottlingAgent,
vinok88 commented 7 years ago

Need to update the carbon-messaging version to 3.2.0 or higher for this issue to get resolved.

gvasanka commented 7 years ago

Comes with Alpha pack as well

vinok88 commented 7 years ago

Please replace all the SunX509 entries in /wso2/broker/conf/broker.xml to ibmX509. Then it works.

gvasanka commented 7 years ago

Changing file /wso2/broker/conf/broker.xml as in below block and

  <sslConnection enabled="true" port="8672">
                <keyStore>
                     <location>repository/resources/security/wso2carbon.jks</location>
                     <password>wso2carbon</password>
                     <certType>**IbmX509**</certType>
                </keyStore>
                <trustStore>
                    <location>repository/resources/security/client-truststore.jks</location>
                    <password>wso2carbon</password>
                    <certType>**IbmX509**</certType>
                </trustStore>
            </sslConnection>

file wso2/broker/conf/security/Owasp.CsrfGuard.Carbon.properties with below entry solved the issue

org.owasp.csrfguard.PRNG.Provider=IBMJCE

praneesha commented 7 years ago

Added a note in the "Starting the Message Broker profile" section in [1] with this info.

This fix is applicable only for EI 6.1.0.

[1] https://docs.wso2.com/display/EI600/Running+the+Product#RunningtheProduct-EI_BrokerStartingtheMessageBrokerprofile