Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Unable to active ActiveMQ embedded broker
Unable to active ActiveMQ embedded broker [message #1784367] Tue, 27 March 2018 09:42 Go to next message
Salvatore Coppola is currently offline Salvatore CoppolaFriend
Messages: 1
Registered: March 2018
Junior Member
Hi,

i'm trying to enable the ActiveMQ embedded broker using the ESF developing platform.

When I try to enable it with the following configuration I got the following error log:

<?xml version="1.0" encoding="UTF-8"?>

<configuration xmlns="urn:activemq"
xmlns:xsi="link-removed-due-eclipse-forum-restriction"
xsi:schemaLocation="
urn:activemq link-removed-due-eclipse-forum-restriction
urn:activemq:core link-removed-due-eclipse-forum-restriction
urn:activemq:jms link-removed-due-eclipse-forum-restriction">
	<core xmlns="urn:activemq:core">
		<persistence-enabled>false</persistence-enabled>

		<acceptors>
			<acceptor name="amqp-acceptor">tcp://0.0.0.0:5672?protocols=AMQP</acceptor>
		</acceptors>

		<resolve-protocols>false</resolve-protocols>

		<security-settings>
			<security-setting match="#">
				<permission type="createDurableQueue" roles="guest"/>
				<permission type="deleteDurableQueue" roles="guest"/>
				<permission type="createNonDurableQueue" roles="guest"/>
				<permission type="deleteNonDurableQueue" roles="guest"/>
				<permission type="consume" roles="guest"/>
				<permission type="send" roles="guest"/>
			</security-setting>
		</security-settings>

	</core>

	<jms xmlns="urn:activemq:jms">
            <topic name="TEST.T.1" />
	</jms>
</configuration>


11:38:12,203 [qtp1512263688-24] INFO  ConfigurationServiceImpl:1335  - Loading init configurations from: 1522142708328...
11:38:12,437 [qtp1512263688-24] INFO  ConfigurationServiceImpl:693  - Merging configuration for pid: org.eclipse.kura.broker.artemis.xml.BrokerInstance
11:38:12,482 [qtp1512263688-24] INFO  ConfigurationServiceImpl:1452  - Updating Configuration of ConfigurableComponent org.eclipse.kura.broker.artemis.xml.BrokerInstance ... Done.
11:38:12,492 [Component Resolve Thread (Bundle 113)] INFO  ServiceComponent:70  - Stopping Artemis

!ENTRY org.eclipse.kura.broker.artemis.xml 4 0 2018-03-27 11:38:12.494
!MESSAGE [SCR] Exception while modifying instance org.eclipse.kura.broker.artemis.xml.ServiceComponent@2c7f7ef9 of component Component[
	name = org.eclipse.kura.broker.artemis.xml.BrokerInstance
	activate = activate
	deactivate = deactivate
	modified = modified
	configuration-policy = require
	factory = null
	autoenable = true
	immediate = false
	implementation = org.eclipse.kura.broker.artemis.xml.ServiceComponent
	state = Unsatisfied
	properties = 
	serviceFactory = false
	serviceInterface = [org.eclipse.kura.configuration.ConfigurableComponent]
	references = null
	located in bundle = org.eclipse.kura.broker.artemis.xml_1.0.1 [6]
]
!STACK 0
java.lang.reflect.InvocationTargetException
	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.modified(ServiceComponent.java:310)
	at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.modify(ServiceComponentProp.java:187)
	at org.eclipse.equinox.internal.ds.InstanceProcess.modifyComponent(InstanceProcess.java:690)
	at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationChange(SCRManager.java:523)
	at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationEvent(SCRManager.java:352)
	at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationEvent(SCRManager.java:303)
	at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:91)
	at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
Caused by: java.lang.NullPointerException
	at org.eclipse.kura.broker.artemis.core.ServerManager.performStop(ServerManager.java:114)
	at org.eclipse.kura.broker.artemis.core.ServerManager.stop(ServerManager.java:57)
	at org.eclipse.kura.broker.artemis.xml.ServiceComponent.stop(ServiceComponent.java:73)
	at org.eclipse.kura.broker.artemis.xml.ServiceComponent.modified(ServiceComponent.java:50)
	... 12 more
Root exception:
java.lang.NullPointerException
	at org.eclipse.kura.broker.artemis.core.ServerManager.performStop(ServerManager.java:114)
	at org.eclipse.kura.broker.artemis.core.ServerManager.stop(ServerManager.java:57)
	at org.eclipse.kura.broker.artemis.xml.ServiceComponent.stop(ServiceComponent.java:73)
	at org.eclipse.kura.broker.artemis.xml.ServiceComponent.modified(ServiceComponent.java:50)
	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.modified(ServiceComponent.java:310)
	at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.modify(ServiceComponentProp.java:187)
	at org.eclipse.equinox.internal.ds.InstanceProcess.modifyComponent(InstanceProcess.java:690)
	at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationChange(SCRManager.java:523)
	at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationEvent(SCRManager.java:352)
	at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationEvent(SCRManager.java:303)
	at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:91)
	at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)

!ENTRY org.eclipse.kura.broker.artemis.xml 4 0 2018-03-27 11:38:12.495
!MESSAGE [SCR] Exception while modifying instance org.eclipse.kura.broker.artemis.xml.ServiceComponent@2c7f7ef9 of component Component[
	name = org.eclipse.kura.broker.artemis.xml.BrokerInstance
	activate = activate
	deactivate = deactivate
	modified = modified
	configuration-policy = require
	factory = null
	autoenable = true
	immediate = false
	implementation = org.eclipse.kura.broker.artemis.xml.ServiceComponent
	state = Unsatisfied
	properties = 
	serviceFactory = false
	serviceInterface = [org.eclipse.kura.configuration.ConfigurableComponent]
	references = null
	located in bundle = org.eclipse.kura.broker.artemis.xml_1.0.1 [6]
]
!STACK 0
java.lang.reflect.InvocationTargetException
	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.modified(ServiceComponent.java:310)
	at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.modify(ServiceComponentProp.java:187)
	at org.eclipse.equinox.internal.ds.InstanceProcess.modifyComponent(InstanceProcess.java:690)
	at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationChange(SCRManager.java:523)
	at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationEvent(SCRManager.java:352)
	at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationEvent(SCRManager.java:303)
	at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:91)
	at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
Caused by: java.lang.NullPointerException
	at org.eclipse.kura.broker.artemis.core.ServerManager.performStop(ServerManager.java:114)
	at org.eclipse.kura.broker.artemis.core.ServerManager.stop(ServerManager.java:57)
	at org.eclipse.kura.broker.artemis.xml.ServiceComponent.stop(ServiceComponent.java:73)
	at org.eclipse.kura.broker.artemis.xml.ServiceComponent.modified(ServiceComponent.java:50)
	... 12 more
Root exception:
java.lang.NullPointerException
	at org.eclipse.kura.broker.artemis.core.ServerManager.performStop(ServerManager.java:114)
	at org.eclipse.kura.broker.artemis.core.ServerManager.stop(ServerManager.java:57)
	at org.eclipse.kura.broker.artemis.xml.ServiceComponent.stop(ServiceComponent.java:73)
	at org.eclipse.kura.broker.artemis.xml.ServiceComponent.modified(ServiceComponent.java:50)
	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.modified(ServiceComponent.java:310)
	at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.modify(ServiceComponentProp.java:187)
	at org.eclipse.equinox.internal.ds.InstanceProcess.modifyComponent(InstanceProcess.java:690)
	at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationChange(SCRManager.java:523)
	at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationEvent(SCRManager.java:352)
	at org.eclipse.equinox.internal.ds.SCRManager.processConfigurationEvent(SCRManager.java:303)
	at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:91)
	at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)



Any suggestions?
Re: Unable to active ActiveMQ embedded broker [message #1784720 is a reply to message #1784367] Tue, 03 April 2018 08:31 Go to previous message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
I believe that we are not providing by default the AMQP connector. Maybe that is the root cause of your exception.

Best regards,
Matteo
Previous Topic:DataPublisherService not connected
Next Topic:Loading Modbus assets and channels
Goto Forum:
  


Current Time: Tue Nov 12 08:37:00 GMT 2024

Powered by FUDForum. Page generated in 0.07121 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top