Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-728

java.lang.NullPointerException occurring in server when using c++ amqp client

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • AMQ 7.0.2.GA
    • None
    • None
    • Hide

      From Red Hat:

      Hi Mike, I copied your send.cpp over the original simple_send.cpp, built, and ran after creating and running a 'default' broker:

      Client side:

      [rkieley@i7t450s cpp]$ ./simple_send
      Time Stampe 1500300556825077370
      Time Stampe 1500300556825182771
      Time Stampe 1500300556825222068
      Time Stampe 1500300556825259231
      .
      .
      .
      Time Stampe 1500300556828151016
      Time Stampe 1500300556828183596
      Time Stampe 1500300556828233915
      Time Stampe 1500300556828283450
      all messages confirmed
      [rkieley@i7t450s cpp]$

      And on the broker side:

      .
      .
      .
      11:26:23,160 INFO [org.apache.activemq.artemis.core.server] AMQ221001: Apache ActiveMQ Artemis Message Broker version 2.0.0.amq-700005-redhat-1 [0.0.0.0, nodeID=b756e0cd-6af7-11e7-b22f-4c348816b552]
      INFO | main | Initialized artemis-plugin plugin
      INFO | main | Initialized dispatch-hawtio-console plugin
      11:26:26,125 INFO [org.apache.activemq.artemis] AMQ241001: HTTP Server started at http://localhost:8161
      11:26:26,126 INFO [org.apache.activemq.artemis] AMQ241002: Artemis Jolokia REST API available at http://localhost:8161/jolokia

      Meaning no logged problems on the broker side while running the provided send code. At the moment it's running in a while(true) do loop and no problems thus far, so likely a difference of some sort between your environment and mine. A few questions to maybe narrow down the requirements for reproduction:

      • Did you have receivers also connected that were consuming the messages?
      • What was the software environment? JDK version for the broker? RHEL version and compiler for the client side?
      • Were both broker and clients running on the same machine?
      • What type of hardware on the machine or machines running the broker and client(s)?
      Show
      From Red Hat: Hi Mike, I copied your send.cpp over the original simple_send.cpp, built, and ran after creating and running a 'default' broker: Client side: [rkieley@i7t450s cpp] $ ./simple_send Time Stampe 1500300556825077370 Time Stampe 1500300556825182771 Time Stampe 1500300556825222068 Time Stampe 1500300556825259231 . . . Time Stampe 1500300556828151016 Time Stampe 1500300556828183596 Time Stampe 1500300556828233915 Time Stampe 1500300556828283450 all messages confirmed [rkieley@i7t450s cpp] $ And on the broker side: . . . 11:26:23,160 INFO [org.apache.activemq.artemis.core.server] AMQ221001: Apache ActiveMQ Artemis Message Broker version 2.0.0.amq-700005-redhat-1 [0.0.0.0, nodeID=b756e0cd-6af7-11e7-b22f-4c348816b552] INFO | main | Initialized artemis-plugin plugin INFO | main | Initialized dispatch-hawtio-console plugin 11:26:26,125 INFO [org.apache.activemq.artemis] AMQ241001: HTTP Server started at http://localhost:8161 11:26:26,126 INFO [org.apache.activemq.artemis] AMQ241002: Artemis Jolokia REST API available at http://localhost:8161/jolokia Meaning no logged problems on the broker side while running the provided send code. At the moment it's running in a while(true) do loop and no problems thus far, so likely a difference of some sort between your environment and mine. A few questions to maybe narrow down the requirements for reproduction: Did you have receivers also connected that were consuming the messages? What was the software environment? JDK version for the broker? RHEL version and compiler for the client side? Were both broker and clients running on the same machine? What type of hardware on the machine or machines running the broker and client(s)?

    Description

      What problem/issue/behavior are you having trouble with? What do you expect to see?
      io.netty.handler.codec.DecoderException: java.lang.NullPointerException seen in server logs when using c++ amqp client

      When does the behavior occur? Frequently? Repeatedly? At certain times?
      frequently when using c+, we have attached logs, and also the c+ client.

      What information can you provide around timeframes and the business impact?
      this is critical for us to reliably use C++ clients.

      Attachments

        1. artemis.log
          17 kB
        2. send.cpp
          4 kB

        Activity

          People

            mtaylor1@redhat.com Martyn Taylor (Inactive)
            kstevens@redhat.com Karl Stevens (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: