[ https://issues.apache.org/jira/browse/ARTEMIS-1309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Bertram resolved ARTEMIS-1309. ------------------------------------- Fix Version/s: 2.3.0 Resolution: Fixed > artemis-server-osgi should explicitly import johnzon.core package > ----------------------------------------------------------------- > > Key: ARTEMIS-1309 > URL: https://issues.apache.org/jira/browse/ARTEMIS-1309 > Project: ActiveMQ Artemis > Issue Type: Bug > Components: osgi > Affects Versions: 2.1.0, 2.2.0 > Reporter: Jean-Baptiste Onofré > Priority: Major > Fix For: 2.3.0 > > > The artemis karaf features defines johnzon bundle. However, the > artemis-server-osgi bundle doesn't import {{johnzon.core}} package. It causes > the following exception when trying to manage the queues: > {code} > java.lang.ExceptionInInitializerError > at > org.apache.activemq.artemis.api.core.JsonUtil.toJSONArray(JsonUtil.java:46) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.api.core.management.ManagementHelper.storeResult(ManagementHelper.java:181) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.core.server.management.impl.ManagementServiceImpl.handleMessage(ManagementServiceImpl.java:413) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.handleManagementMessage(ServerSessionImpl.java:1562) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1349) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1295) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1288) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.core.protocol.core.ServerSessionPacketHandler.handlePacket(ServerSessionPacketHandler.java:494) > [72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:628) > [72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:381) > [72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:363) > [72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:631) > [72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:69) > [72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) > [60:io.netty.transport:4.1.9.Final] > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) > [60:io.netty.transport:4.1.9.Final] > at > io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) > [60:io.netty.transport:4.1.9.Final] > at > io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) > [54:io.netty.codec:4.1.9.Final] > at > io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267) > [54:io.netty.codec:4.1.9.Final] > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) > [60:io.netty.transport:4.1.9.Final] > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) > [60:io.netty.transport:4.1.9.Final] > at > io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) > [60:io.netty.transport:4.1.9.Final] > at > io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) > [60:io.netty.transport:4.1.9.Final] > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) > [60:io.netty.transport:4.1.9.Final] > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) > [60:io.netty.transport:4.1.9.Final] > at > io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) > [60:io.netty.transport:4.1.9.Final] > at > io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134) > [60:io.netty.transport:4.1.9.Final] > at > io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:624) > [60:io.netty.transport:4.1.9.Final] > at > io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:559) > [60:io.netty.transport:4.1.9.Final] > at > io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:476) > [60:io.netty.transport:4.1.9.Final] > at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438) > [60:io.netty.transport:4.1.9.Final] > at > io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) > [57:io.netty.common:4.1.9.Final] > at java.lang.Thread.run(Thread.java:745) [?:?] > Caused by: javax.json.JsonException: org.apache.johnzon.core.JsonProviderImpl > not found > at javax.json.spi.JsonProvider.doLoadProvider(JsonProvider.java:132) > ~[84:org.apache.geronimo.specs.geronimo-json_1.0_spec:1.0.0.alpha-1] > at javax.json.spi.JsonProvider.provider(JsonProvider.java:64) > ~[84:org.apache.geronimo.specs.geronimo-json_1.0_spec:1.0.0.alpha-1] > at > org.apache.activemq.artemis.utils.JsonLoader$1.run(JsonLoader.java:59) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.utils.JsonLoader$1.run(JsonLoader.java:53) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > at java.security.AccessController.doPrivileged(Native Method) ~[?:?] > at > org.apache.activemq.artemis.utils.JsonLoader.loadProvider(JsonLoader.java:53) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.utils.JsonLoader.<clinit>(JsonLoader.java:49) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > ... 32 more > Caused by: java.lang.ClassNotFoundException: > org.apache.johnzon.core.JsonProviderImpl not found by > org.apache.activemq.artemis-server-osgi [72] > at > org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1550) > ~[?:?] > at > org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:79) > ~[?:?] > at > org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1958) > ~[?:?] > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?] > at javax.json.spi.JsonProvider.doLoadProvider(JsonProvider.java:129) > ~[84:org.apache.geronimo.specs.geronimo-json_1.0_spec:1.0.0.alpha-1] > at javax.json.spi.JsonProvider.provider(JsonProvider.java:64) > ~[84:org.apache.geronimo.specs.geronimo-json_1.0_spec:1.0.0.alpha-1] > at > org.apache.activemq.artemis.utils.JsonLoader$1.run(JsonLoader.java:59) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.utils.JsonLoader$1.run(JsonLoader.java:53) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > at java.security.AccessController.doPrivileged(Native Method) ~[?:?] > at > org.apache.activemq.artemis.utils.JsonLoader.loadProvider(JsonLoader.java:53) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > at > org.apache.activemq.artemis.utils.JsonLoader.<clinit>(JsonLoader.java:49) > ~[72:org.apache.activemq.artemis-server-osgi:2.1.0] > ... 32 more > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)