activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Chandler <pech...@sandia.gov>
Subject Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.
Date Mon, 18 Mar 2019 18:25:43 GMT
Justin, Made the changes you suggested and got the same results.Full
stacktrace below.
Note: this issue has been un-answered on stack overflow for 3 months
https://stackoverflow.com/questions/53779984/springboot-log4j2-jms-appender-jms-message-producer-not-available
*/src/main/resources/Log4j2.xml *                           
*/src/main/resources/jndi.properties*java.naming.factory.initial=org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactoryconnectionFactory.ConnectionFactory=tcp://localhost:61616queue.queue/logMessages=logMessages
*ERROR*2019-03-18 12:04:44,199 main ERROR An exception occurred processing
Appender logMessagesJmsQueue
org.apache.logging.log4j.core.appender.AppenderLoggingException: Error
sending to JMS Manager 'logMessagesJmsQueue': JMS message producer not
available        at
org.apache.logging.log4j.core.appender.mom.JmsManager.send(JmsManager.java:458)       
at
org.apache.logging.log4j.core.appender.mom.JmsAppender.append(JmsAppender.java:269)      

at
org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156)
      
at
org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:129)
      
at
org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:120)
      
at
org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:84)
      
at
org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:464)   
   
at
org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:448) 
     
at
org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:431)       
at
org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:406)       
at
org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:63)
      
at org.apache.logging.log4j.core.Logger.logMessage(Logger.java:146)       
at
org.apache.logging.log4j.spi.AbstractLogger.tryLogMessage(AbstractLogger.java:2170)      

at
org.apache.logging.log4j.spi.AbstractLogger.logMessageTrackRecursion(AbstractLogger.java:2125)
      
at
org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(AbstractLogger.java:2108)   
   
at
org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:2007)       
at
org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1866)       
at org.apache.commons.logging.LogAdapter$Log4jLog.log(LogAdapter.java:241)       
at org.apache.commons.logging.LogAdapter$Log4jLog.info(LogAdapter.java:205)       
at
org.springframework.boot.StartupInfoLogger.logStarting(StartupInfoLogger.java:50)       
at
org.springframework.boot.SpringApplication.logStartupInfo(SpringApplication.java:661)    
  
at
org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:376)    
  
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:314)       
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)       
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)       
at
gov.sandia.ideas.logclient.LogClientApplication.main(LogClientApplication.java:35)       
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)        at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)        at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)        at java.base/java.lang.reflect.Method.invoke(Unknown Source)       
at
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)       
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)       
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)       
at
org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)2019-03-18
12:04:44.233 DEBUG S999706 --- [           main]
g.s.i.l.LogClientApplication             : Running with Spring Boot
v2.1.1.RELEASE, Spring v5.1.3.RELEASE2019-03-18 12:04:44,234 main ERROR An
exception occurred processing Appender logMessagesJmsQueue
org.apache.logging.log4j.core.appender.AppenderLoggingException: Error
sending to JMS Manager 'logMessagesJmsQueue': JMS message producer not
available        at
org.apache.logging.log4j.core.appender.mom.JmsManager.send(JmsManager.java:458)       
at
org.apache.logging.log4j.core.appender.mom.JmsAppender.append(JmsAppender.java:269)      

at
org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156)
      
at
org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:129)
      
at
org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:120)
      
at
org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:84)
      
at
org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:464)   
   
at
org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:448) 
     
at
org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:431)       
at
org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:406)       
at
org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:63)
      
at org.apache.logging.log4j.core.Logger.logMessage(Logger.java:146)       
at
org.apache.logging.log4j.spi.AbstractLogger.tryLogMessage(AbstractLogger.java:2170)      

at
org.apache.logging.log4j.spi.AbstractLogger.logMessageTrackRecursion(AbstractLogger.java:2125)
      
at
org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(AbstractLogger.java:2108)   
   
at
org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:1985)       
at
org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1843)       
at org.apache.commons.logging.LogAdapter$Log4jLog.log(LogAdapter.java:245)       
at org.apache.commons.logging.LogAdapter$Log4jLog.debug(LogAdapter.java:215)       
at
org.springframework.boot.StartupInfoLogger.logStarting(StartupInfoLogger.java:53)       
at
org.springframework.boot.SpringApplication.logStartupInfo(SpringApplication.java:661)    
  
at
org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:376)    
  
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:314)       
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)       
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)       
at
gov.sandia.ideas.logclient.LogClientApplication.main(LogClientApplication.java:35)       
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)        at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)        at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)        at java.base/java.lang.reflect.Method.invoke(Unknown Source)       
at
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)       
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)       
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)       
at
org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)2019-03-18
12:04:44.237  INFO S999706 --- [           main]
g.s.i.l.LogClientApplication             : The following profiles are
active: default2019-03-18 12:04:44,239 main ERROR An exception occurred
processing Appender logMessagesJmsQueue
org.apache.logging.log4j.core.appender.AppenderLoggingException: Error
sending to JMS Manager 'logMessagesJmsQueue': JMS message producer not
available        at
org.apache.logging.log4j.core.appender.mom.JmsManager.send(JmsManager.java:458)       
at
org.apache.logging.log4j.core.appender.mom.JmsAppender.append(JmsAppender.java:269)      

at
org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156)
      
at
org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:129)
      
at
org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:120)
      
at
org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:84)
      
at
org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:464)   
   
at
org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:448) 
     
at
org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:431)       
at
org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:406)       
at
org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:63)
      
at org.apache.logging.log4j.core.Logger.logMessage(Logger.java:146)       
at
org.apache.logging.log4j.spi.AbstractLogger.tryLogMessage(AbstractLogger.java:2170)      

at
org.apache.logging.log4j.spi.AbstractLogger.logMessageTrackRecursion(AbstractLogger.java:2125)
      
at
org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(AbstractLogger.java:2108)   
   
at
org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:2007)       
at
org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1866)       
at org.apache.commons.logging.LogAdapter$Log4jLog.log(LogAdapter.java:241)       
at org.apache.commons.logging.LogAdapter$Log4jLog.info(LogAdapter.java:205)       
at
org.springframework.boot.SpringApplication.logStartupProfileInfo(SpringApplication.java:679)
      
at
org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:377)    
  
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:314)       
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)       
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)       
at
gov.sandia.ideas.logclient.LogClientApplication.main(LogClientApplication.java:35)       
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)        at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)        at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)        at java.base/java.lang.reflect.Method.invoke(Unknown Source)       
at
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)       
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)       
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)       
at
org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)2019-03-18
12:04:45.201  INFO S999706 --- [           main] o.a.a.b.BrokerService                   
: Using Persistence Adapter: MemoryPersistenceAdapter2019-03-18 12:04:45,202
main ERROR An exception occurred processing Appender logMessagesJmsQueue
org.apache.logging.log4j.core.appender.AppenderLoggingException: Error
sending to JMS Manager 'logMessagesJmsQueue': JMS message producer not
available        at
org.apache.logging.log4j.core.appender.mom.JmsManager.send(JmsManager.java:458)       
at
org.apache.logging.log4j.core.appender.mom.JmsAppender.append(JmsAppender.java:269)      

at
org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156)
      
at
org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:129)
      
at
org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:120)
      
at
org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:84)
      
at
org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:464)   
   
at
org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:448) 
     
at
org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:431)       
at
org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:406)       
at
org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:63)
      
at org.apache.logging.log4j.core.Logger.logMessage(Logger.java:146)       
at
org.apache.logging.log4j.spi.AbstractLogger.tryLogMessage(AbstractLogger.java:2170)      

at
org.apache.logging.log4j.spi.AbstractLogger.logMessageTrackRecursion(AbstractLogger.java:2125)
      
at
org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(AbstractLogger.java:2108)   
   
at
org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:2019)       
at
org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1890)       
at org.apache.logging.slf4j.Log4jLogger.info(Log4jLogger.java:184)        at
org.apache.activemq.broker.BrokerService.doStartPersistenceAdapter(BrokerService.java:683)
      
at
org.apache.activemq.broker.BrokerService.startPersistenceAdapter(BrokerService.java:671) 
     
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:635)       
at
org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:127)
      
at
org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:56)
      
at
org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:65)       
at
org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:331)
      
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:346)
      
at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:304)
      
at
org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:244)
      
at
org.springframework.jms.connection.SingleConnectionFactory.doCreateConnection(SingleConnectionFactory.java:403)
      
at
org.springframework.jms.connection.SingleConnectionFactory.initConnection(SingleConnectionFactory.java:343)
      
at
org.springframework.jms.connection.SingleConnectionFactory.getConnection(SingleConnectionFactory.java:321)
      
at
org.springframework.jms.connection.SingleConnectionFactory.createConnection(SingleConnectionFactory.java:236)
      
at
org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:196)       
at
org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:411)
      
at
org.springframework.jms.listener.AbstractJmsListeningContainer.establishSharedConnection(AbstractJmsListeningContainer.java:379)
      
at
org.springframework.jms.listener.DefaultMessageListenerContainer.establishSharedConnection(DefaultMessageListenerContainer.java:818)
      
at
org.springframework.jms.listener.AbstractJmsListeningContainer.doStart(AbstractJmsListeningContainer.java:291)
      
at
org.springframework.jms.listener.AbstractJmsListeningContainer.start(AbstractJmsListeningContainer.java:276)
      
at
org.springframework.jms.listener.DefaultMessageListenerContainer.start(DefaultMessageListenerContainer.java:612)
      
at
org.springframework.jms.config.JmsListenerEndpointRegistry.startIfNecessary(JmsListenerEndpointRegistry.java:242)
      
at
org.springframework.jms.config.JmsListenerEndpointRegistry.start(JmsListenerEndpointRegistry.java:205)
      
at
org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182)
      
at
org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:53)
      
at
org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:360)
      
at
org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:158)
      
at
org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:122)
      
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:879)
      
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
      
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)       
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)    
  
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:316)       
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)       
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)       
at
gov.sandia.ideas.logclient.LogClientApplication.main(LogClientApplication.java:35)       
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)        at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)        at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)        at java.base/java.lang.reflect.Method.invoke(Unknown Source)       
at
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)       
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)       
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)       
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
console.JPG <http://activemq.2283324.n4.nabble.com/file/t379443/console.JPG>  



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message