[
https://issues.apache.org/jira/browse/ARTEMIS-3071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17267340#comment-17267340
]
Justin Bertram edited comment on ARTEMIS-3071 at 1/18/21, 4:40 PM:
-------------------------------------------------------------------
I grabbed the code from GitHub and built it. However, I am having an issue
with logging at runtime. I followed the information
[here|https://activemq.apache.org/components/artemis/documentation/latest/logging.html].
My pom.xml contains:
{code:xml}
<dependency>
<groupId>org.jboss.logmanager</groupId>
<artifactId>jboss-logmanager</artifactId>
<version>2.1.10.Final</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-jms-client</artifactId>
<version>2.17.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-server</artifactId>
<version>2.17.0-SNAPSHOT</version>
</dependency>
{code}
The output is:
{noformat}
Exception in thread "main" java.lang.ExceptionInInitializerError
at
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:560)
at
org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ.start(EmbeddedActiveMQ.java:116)
at Amq.artemis2(Amq.java:98)
at Amq.main(Amq.java:213)
Caused by: java.lang.IllegalArgumentException: Invalid logger interface
org.apache.activemq.artemis.core.server.ActiveMQServerLogger (implementation
not found in jdk.internal.loader.ClassLoaders$AppClassLoader@55054057)
at org.jboss.logging.Logger$1.run(Logger.java:2556)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2529)
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2516)
at
org.apache.activemq.artemis.core.server.ActiveMQServerLogger.<clinit>(ActiveMQServerLogger.java:79)
... 4 more
{noformat}
was (Author: sortel):
I grabbed the code from github and built it. However, I am having an issue
with logging at runtime. I followed the information here:
[https://activemq.apache.org/components/artemis/documentation/latest/logging.html]
My pom.xml contains:
<dependency>
<groupId>org.jboss.logmanager</groupId>
<artifactId>jboss-logmanager</artifactId>
<version>2.1.10.Final</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-jms-client</artifactId>
<version>2.17.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-server</artifactId>
<version>2.17.0-SNAPSHOT</version>
</dependency>
The output is:
Exception in thread "main" java.lang.ExceptionInInitializerError
at
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:560)
at
org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ.start(EmbeddedActiveMQ.java:116)
at Amq.artemis2(Amq.java:98)
at Amq.main(Amq.java:213)
Caused by: java.lang.IllegalArgumentException: Invalid logger interface
org.apache.activemq.artemis.core.server.ActiveMQServerLogger (implementation
not found in jdk.internal.loader.ClassLoaders$AppClassLoader@55054057)
at org.jboss.logging.Logger$1.run(Logger.java:2556)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2529)
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2516)
at
org.apache.activemq.artemis.core.server.ActiveMQServerLogger.<clinit>(ActiveMQServerLogger.java:79)
... 4 more
> Embedded server hangs on shutdown
> ---------------------------------
>
> Key: ARTEMIS-3071
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3071
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Broker
> Affects Versions: 2.16.0
> Environment: CentOS 7
> OpenJDK 11.0.9
> Reporter: Scott Ortel
> Priority: Major
> Attachments: log.txt, log2.txt
>
>
> I'm investigating switching to Artemis. I created a simple embedded broker
> and a VM connection to it. After completion, the VM hangs for 1 minute on
> exit.
> The following is the simple code:
> {code:java}
> EmbeddedActiveMQ server = new EmbeddedActiveMQ();
> server.setConfigResourcePath(xml);
> server.start();
> TransportConfiguration transportConfiguration = new
> TransportConfiguration(InVMConnectorFactory.class.getName());
> ConnectionFactory cf =
> ActiveMQJMSClient.createConnectionFactoryWithoutHA(JMSFactoryType.CF,
> transportConfiguration);
> Connection connection = cf.createConnection();
> connection.close();
> server.stop();
> {code}
> The configuration:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <configuration xmlns="urn:activemq"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="urn:activemq /tmp/artemis-configuration.xsd">
> <core xmlns="urn:activemq:core">
> <persistence-enabled>false</persistence-enabled>
> <security-enabled>false</security-enabled>
> <journal-type>NIO</journal-type>
> <journal-pool-files>1</journal-pool-files>
> <acceptors>
> <acceptor name="in-vm">vm://localhost</acceptor>
> </acceptors>
> </core>
> </configuration>
> {code}
> I have attached the log.
> Also, does anybody know why there is so much logging at {{INFO}}?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)