What does the error message HQ119028: Timeout waiting for LargeMessage Body means?

Solution Unverified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Issue

  • what does the following error message means ?
java.lang.RuntimeException: HQ119028: Timeout waiting for LargeMessage Body
at org.hornetq.core.client.impl.ClientLargeMessageImpl.getBodyBuffer(ClientLargeMessageImpl.java:103)
at org.hornetq.jms.client.HornetQBytesMessage.getBuffer(HornetQBytesMessage.java:448)
at org.hornetq.jms.client.HornetQBytesMessage.readBytes(HornetQBytesMessage.java:245)
at org.hornetq.jms.client.HornetQBytesMessage.readBytes(HornetQBytesMessage.java:238)
at com.example.some.package.JMSUtil.getObjectFromBytesMessage(JMSUtil.java:339)
at com.example.some.package.message.impl.MyMDB.onMessage(MyMDB.java:96)
at sun.reflect.GeneratedMethodAccessor1308.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
  • Which timeout was hit there and where can it be changed?

Resolution

  • The packets aren't arriving within the configured timeout/expected period. Hence the operation is timing out.

  • The readTimeout time comes from connection-factory used. You need to use the call-timeout attribute in the HornetQ's server configuration for particular connection-factory. The defaults will be used by the broker unless configured, which is 30 seconds.

To check call-timeout use following CLI command :

[standalone@localhost:9999 /] /subsystem=messaging/hornetq-server=default/connection-factory=<ConnectionFactory_name>:read-attribute(name=call-timeout,include-defaults=true)
{
    "outcome" => "success",
    "result" => 30000L
}

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.