title: ActiveMQ Artemis Issue - java.lang.NoSuchFieldError: WRITE_BUFFER_WATER_MARK
body: <p>I have a spring boot application. This app need to listen to the messages from JMS topics deployed in another application (let’s say this application name is Topic) . This topic application runs on wildfly 11 and uses ActiveMQ Artemis. </p>
  
  <p>Did the following things,</p>
  
  <p>Pointed my JNDI properties to the Topic application’s address like below,</p>
  
  <pre><code>java.naming.factory.initial=org.jboss.naming.remote.client.InitialContextFactory
  java.naming.provider.url=http-remoting://topic-application-address:port
  java.naming.security.principal=username
  java.naming.security.credentials=password
  </code></pre>
  
  <p>Included the ActiveMQ Artemis related libraries in the Spring Boot application. </p>
  
  <p>Gradle build:</p>
  
  <pre><code>compile group: 'org.springframework.boot', name: 'spring-boot-starter-artemis', version: '2.1.3.RELEASE'
  compile group: 'org.apache.activemq', name: 'artemis-commons', version: '2.6.4'
  compile group: 'org.apache.activemq', name: 'artemis-core-client', version: '2.6.4'
  compile group: 'org.apache.activemq', name: 'artemis-jms-client', version: '2.6.4'
  compile group: 'javax.json', name: 'javax.json-api', version: '1.1.4'
  compile group: 'io.netty', name: 'netty-all', version: '4.1.33.Final'
  </code></pre>
  
  <p>When I start the Spring Boot application , </p>
  
  <p>I’m getting the below exception</p>
  
  <pre><code>2019-02-21 10:58:43.519  INFO 12925 --- [main] o.s.c.support.DefaultLifecycleProcessor  : Starting beans in phase 2147483647
  2019-02-21 10:58:43.676  WARN 12925 --- [main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'org.springframework.jms.config.internalJmsListenerEndpointRegistry'; nested exception is java.lang.NoSuchFieldError: WRITE_BUFFER_WATER_MARK
  2019-02-21 10:58:43.683  INFO 12925 --- [main] o.s.s.c.ThreadPoolTaskScheduler          : Shutting down ExecutorService 'threadPoolTaskScheduler'
  2019-02-21 10:58:43.692  INFO 12925 --- [main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
  2019-02-21 10:58:43.693  INFO 12925 --- [main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
  2019-02-21 10:58:43.702  INFO 12925 --- [main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.
  </code></pre>
  
  <p>Though the field is available in the jar netty-all-4.1.33.Final.jar (in io.netty.channe.ChannelOption class), I’m not sure why it is unable to find the field. How to fix this issue.</p>