activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vpeng23 <vpen...@gmail.com>
Subject Re: [GitHub] activemq-artemis pull request #617: ARTEMIS-607 Added interceptor support fo...
Date Tue, 19 Jul 2016 00:19:47 GMT
Not sure if replying this thread make sense. If not, please let me know.

Will the documents or examples also get updated? 
I tried to follow the examples/features/standard/interceptor and
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/mqtt/imported/MQTTTestSupport.java
to create my owned MQTT interceptor.

I created/compiled a public class, modify the broker.xml, and run mvn
verify.
However, it's complaining about some API difference between io.netty 4.0 and
io.netty 5.0.
Looks like when I add the dependency for netty-codec-mqtt, Artemis loads the
5.0 io.netty library, and some deprecated APIs are no longer supported. 

Error logs:
[ERROR] Failed to execute goal
org.apache.activemq:artemis-maven-plugin:1.4.0-SNAPSHOT:cli (start) on
project interceptor: io.netty.util.ResourceLeakDetector.setEnabled(Z)V ->
[Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.activemq:artemis-maven-plugin:1.4.0-SNAPSHOT:cli (start) on
project interceptor: io.netty.util.ResourceLeakDetector.setEnabled(Z)V
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
        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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException:
io.netty.util.ResourceLeakDetector.setEnabled(Z)V
        at
org.apache.activemq.artemis.maven.ArtemisCLIPlugin.doExecute(ArtemisCLIPlugin.java:164)
        at
org.apache.activemq.artemis.maven.ArtemisAbstractPlugin.execute(ArtemisAbstractPlugin.java:75)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
        ... 20 more
Caused by: java.lang.NoSuchMethodError:
io.netty.util.ResourceLeakDetector.setEnabled(Z)V
        at
org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector.<clinit>(NettyConnector.java:138)
        at
org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory.createConnector(NettyConnectorFactory.java:39)
        at
org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createConnector(ClientSessionFactoryImpl.java:1062)
        at
org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createTransportConnection(ClientSessionFactoryImpl.java:1086)
        at
org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.establishNewConnection(ClientSessionFactoryImpl.java:1273)
        at
org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:898)
        at
org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:796)
        at
org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:238)
        at
org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:782)
        at
org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:732)
        at
org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:238)
        at
org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:233)
        at
org.apache.activemq.artemis.maven.ArtemisCLIPlugin.doExecute(ArtemisCLIPlugin.java:142)
        ... 23 more




--
View this message in context: http://activemq.2283324.n4.nabble.com/GitHub-activemq-artemis-pull-request-617-ARTEMIS-607-Added-interceptor-support-fo-tp4713578p4714071.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Mime
View raw message