tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From willemvanpelt <willem.vanp...@me.com>
Subject ActiveMQ fails to start with NullPointerException
Date Fri, 27 Feb 2015 08:32:03 GMT
Hi

We're trying to set up Tomee with ActiveMQ.
We use the latest version of tomee 1.7.1 with activeMQ 5.10.

This is our ActiveMQ configuration.
We would like to have an embedded message broker.

 <Resource id="JmsResourceAdapter" type="ActiveMQResourceAdapter">
      BrokerXmlConfig =  failover:(nio://127.0.0.1:61616)
      ServerUrl       =  vm://localhos
    </Resource>

  <Resource id="XAConnectionFactory"
class-name="org.apache.activemq.ActiveMQXAConnectionFactory">
    ResourceAdapter     JmsResourceAdapter
    TransactionSupport  xa
    PoolMinSize         0
    PoolMaxSize         5
  </Resource>

  <Resource id="MailQueue" type="javax.jms.Queue">
    Destination         MailQueue
  </Resource>

While deploying I can see that our datasources are being initialized but
then I get the following exception.

2015-02-27 09:31:10,501 INFO  [OpenEJB.startup.config][ | ] Configuring
Service(id=Default Stateless Container, type=Container, provider-id=Default
Stateless Container)
2015-02-27 09:31:10,501 INFO  [OpenEJB.startup.config][ | ] Auto-creating a
container for bean openejb/Deployer: Container(type=STATELESS, id=Default
Stateless Container)
2015-02-27 09:31:10,539 INFO  [OpenEJB.startup.config][ | ] Enterprise
application "openejb" loaded.
2015-02-27 09:31:10,543 INFO  [OpenEJB.startup.service][ | ] Creating
TransactionManager(id=Default Transaction Manager)
2015-02-27 09:31:10,647 INFO  [OpenEJB.startup.service][ | ] Creating
SecurityService(id=Tomcat Security Service)
2015-02-27 09:31:10,702 INFO  [OpenEJB.startup.service][ | ] Creating
Resource(id=jdbc/OracleNarDsXa)
2015-02-27 09:31:10,871 INFO  [OpenEJB.startup.service][ | ] Creating
Resource(id=jdbc/OracleLogDsXa)
2015-02-27 09:31:10,876 INFO  [OpenEJB.startup.service][ | ] Creating
Resource(id=jdbc/OracleBpmDsXa)
2015-02-27 09:31:10,880 INFO  [OpenEJB.startup.service][ | ] Creating
Resource(id=JmsResourceAdapter)
2015-02-27 09:31:10,944 INFO  [OpenEJB.startup][ | ] Thread pool size for
'JmsResourceAdapter' is (30)
2015-02-27 09:31:10,970 ERROR [OpenEJB.startup.service][ | ] Failed to start
ActiveMQ
java.lang.NullPointerException
	at org.apache.openejb.util.URLs.uri(URLs.java:87)
	at
org.apache.openejb.resource.activemq.ActiveMQResourceAdapter.createInternalBroker(ActiveMQResourceAdapter.java:132)
	at
org.apache.openejb.resource.activemq.ActiveMQResourceAdapter.start(ActiveMQResourceAdapter.java:122)
	at
org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:2266)
	at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:501)
	at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:420)
	at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
	at org.apache.openejb.OpenEJB.init(OpenEJB.java:298)
	at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:253)
	at
org.apache.tomee.catalina.ServerListener.install(ServerListener.java:168)
	at
org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:55)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
2015-02-27 09:31:10,977 INFO  [OpenEJB.startup.service][ | ] Creating
Resource(id=jdbc/OracleNarDs)
2015-02-27 09:31:11,158 INFO  [OpenEJB.startup.service][ | ] Creating
Resource(id=jdbc/OracleLogDs)
2015-02-27 09:31:11,199 INFO  [OpenEJB.startup.service][ | ] Creating
Resource(id=jdbc/OracleBpmDs)
2015-02-27 09:31:11,243 INFO  [OpenEJB.startup.service][ | ] Creating
Resource(id=XAConnectionFactory)
2015-02-27 09:31:11,307 WARN  [OpenEJB.startup.service][ | ] Property
"ResourceAdapter" not supported by "XAConnectionFactory"
2015-02-27 09:31:11,308 WARN  [OpenEJB.startup.service][ | ] Property
"TransactionSupport" not supported by "XAConnectionFactory"
2015-02-27 09:31:11,308 WARN  [OpenEJB.startup.service][ | ] Property
"PoolMinSize" not supported by "XAConnectionFactory"
2015-02-27 09:31:11,308 WARN  [OpenEJB.startup.service][ | ] Property
"PoolMaxSize" not supported by "XAConnectionFactory"
2015-02-27 09:31:11,309 INFO  [OpenEJB.startup.service][ | ] Creating
Resource(id=MailQueue)
2015-02-27 09:31:11,313 INFO  [OpenEJB.startup.service][ | ] Creating
Resource(id=RmaRoleAssignmentQueue)
2015-02-27 09:31:11,315 INFO  [OpenEJB.startup.service][ | ] Creating
Container(id=Default Stateless Container)

Where does this NullPointerException come from?



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/ActiveMQ-fails-to-start-with-NullPointerException-tp4673903.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
View raw message