Service Virtualization

 View Only
Expand all | Collapse all

AMQ Virtualization

  • 1.  AMQ Virtualization

    Posted Feb 18, 2021 09:47 AM

    Hi All,

    I am facing issue during consuming the messages from AMQ's, It was working earlier since yesterday throwing below error.
    Although, I have all pre-requisites and able to connect successfully from workstation. And, having jar files in place hawtbuf-1.5, activemq-all-5.15.0 in the shared lib folder.

    Error as below:

    | Exception:
    ============================================================================
    | Message: Test Execution Stopped due to exception
    ----------------------------------------------------------------------------
    | Trapped Exception: org/fusesource/hawtbuf/UTF8Buffer
    | Trapped Message: java.lang.NoClassDefFoundError: org/fusesource/hawtbuf/UTF8Buffer
    ----------------------------------------------------------------------------
    STACK TRACE
    java.lang.NoClassDefFoundError: org/fusesource/hawtbuf/UTF8Buffer
    at org.apache.activemq.util.MarshallingSupport.readUTF(MarshallingSupport.java:229)
    at org.apache.activemq.util.MarshallingSupport.unmarshalPrimitive(MarshallingSupport.java:200)
    at org.apache.activemq.util.MarshallingSupport.unmarshalPrimitiveMap(MarshallingSupport.java:98)
    at org.apache.activemq.util.MarshallingSupport.unmarshalPrimitiveMap(MarshallingSupport.java:78)
    at org.apache.activemq.util.MarshallingSupport.unmarshalPrimitiveMap(MarshallingSupport.java:70)
    at org.apache.activemq.command.Message.unmarsallProperties(Message.java:252)
    at org.apache.activemq.command.Message.getProperties(Message.java:218)
    at org.apache.activemq.command.ActiveMQMessage.getPropertyNames(ActiveMQMessage.java:316)
    at com.itko.lisa.messaging.asset.payload.AbstractJmsMessagePayload.readFromObject(AbstractJmsMessagePayload.java:550)

    Could you please help me on this



  • 2.  RE: AMQ Virtualization

    Broadcom Employee
    Posted Feb 18, 2021 10:08 AM
    HI Mohammed

    Most likely a dependency jar file is missing. THis has been documented. Please check the following link:


    Go to the section titled "ActiveMQ File Requirements" that talks about hawtbuf jar file. Please follow the recommendation there and see if it resolves the issue.

    --
    regards
    Sankar Natarajan

    This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.





  • 3.  RE: AMQ Virtualization

    Posted Feb 19, 2021 03:58 AM
    Hello Sankar,

    Thanks for your response.

    We have all the necessary jar files in place as mentioned. It was working fine till last week, from last few days it started throwing errors and unable to consume messages.

    | Exception:
    ============================================================================
    | Message: Test Execution Stopped due to exception
    ----------------------------------------------------------------------------
    | Trapped Exception: org/fusesource/hawtbuf/UTF8Buffer
    | Trapped Message: java.lang.NoClassDefFoundError: org/fusesource/hawtbuf/UTF8Buffer
    ----------------------------------------------------------------------------
    STACK TRACE
    java.lang.NoClassDefFoundError: org/fusesource/hawtbuf/UTF8Buffer
    at org.apache.activemq.util.MarshallingSupport.readUTF(MarshallingSupport.java:229)
    at org.apache.activemq.util.MarshallingSupport.unmarshalPrimitive(MarshallingSupport.java:200)
    at org.apache.activemq.util.MarshallingSupport.unmarshalPrimitiveMap(MarshallingSupport.java:98)
    at org.apache.activemq.util.MarshallingSupport.unmarshalPrimitiveMap(MarshallingSupport.java:78)
    at org.apache.activemq.util.MarshallingSupport.unmarshalPrimitiveMap(MarshallingSupport.java:70)
    at org.apache.activemq.command.Message.unmarsallProperties(Message.java:252)
    at org.apache.activemq.command.Message.getProperties(Message.java:218)
    at org.apache.activemq.command.ActiveMQMessage.getPropertyNames(ActiveMQMessage.java:316)
    at com.itko.lisa.messaging.asset.payload.AbstractJmsMessagePayload.readFromObject(AbstractJmsMessagePayload.java:550)


  • 4.  RE: AMQ Virtualization

    Broadcom Employee
    Posted Feb 19, 2021 04:09 AM
    HI Mohammed
          Please can you check the hawtbuf jar version. Apparently this class "org/fusesource/hawtbuf/UTF8Buffer" may be not there in your version.

    --
    regards
    Sankar Natarajan

    This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.





  • 5.  RE: AMQ Virtualization

    Posted Feb 19, 2021 04:17 AM
    Hello Sankar, 

    I am having latest version hawtbuf 1.11 of jar file in hotdeploy


  • 6.  RE: AMQ Virtualization

    Broadcom Employee
    Posted Feb 19, 2021 04:23 AM
    HI Mohammed
                    PLease share the version of Active MQ Client Jar from your environment.

    --
    regards
    Sankar Natarajan

    This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.





  • 7.  RE: AMQ Virtualization

    Broadcom Employee
    Posted Feb 19, 2021 04:29 AM
    HI Mohammed
              PLease ignore my previous request. I could see that you have mentioned active MQ client version as 5.15.0. 

    Please can you attach the hawtbuf jar from your environment to the thread. Let me quickly check why the class not found exception arises.

    --
    regards
    Sankar Natarajan

    This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.





  • 8.  RE: AMQ Virtualization

    Posted Feb 19, 2021 04:38 AM
      |   view attached
    Please find the attached jar files from server

    Attachment(s)

    zip
    Jars.zip   2.44 MB 1 version


  • 9.  RE: AMQ Virtualization

    Broadcom Employee
    Posted Feb 19, 2021 05:00 AM
    HI Mohammed

    Please check your hawtbuf jar once. The contents of this JAR file is same as that of "activemq-client-5.15.13.jar". Check the size too. HAwtbuf jar should be about 49kb in size.

    --
    regards
    Sankar Natarajan

    This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.





  • 10.  RE: AMQ Virtualization

    Posted Feb 19, 2021 05:49 AM
    HI Sankar,

    After replacing with valid hawtbuf jar,it worked.
    We have automated to get the jars from artifactory whenever we build an instance, wondering how it has changed in size.

    Thank you so much for your quick response.




  • 11.  RE: AMQ Virtualization

    Broadcom Employee
    Posted Feb 19, 2021 05:53 AM
    Thanks for the confirmation. Happy to help !

    --
    regards
    Sankar Natarajan

    This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.