Background
IBM App Connect Enterprise (ACE) and IBM Integration Bus (IIB) raise BIP6062 when a reply message tree contains a message body followed by a header. IBM describes this as an invalid message body/header sequence: a header must not follow a body. See BIP6001–BIP6603.
This warning can appear after the AppDynamics IIB agent is enabled. The agent does not create the invalid tree or tamper with the message tree that triggers the warning. Instead, an already-built message flow preserved an invalid OutputRoot. Because the AppDynamics IIB agent is registered as an ACE/IIB user exit, ACE traverses that tree at the reply boundary and reports the invalid sequence. BIP6062 Invalid message body/header sequence
Sample message-flow
Below is a sample REST message flow that receives JSON, a Compute node builds the JSON reply, and returns it through HTTP Reply.
The failure occurs at HTTP Reply, after the reply Compute node has already built a complete JSON payload.
Headers come first. The last child under the message root is always the body. See Message tree structure.
In the failing flow, the JSON body is written first and the HTTP response header is left after it:
JSON is a body parser. HTTPResponseHeader is a header parser, and IBM maps its parser class to WSRSPHDR. See Available parsers. ACE therefore reports:
BIP6062 Invalid message body/header sequence
Insert: json
Insert: WSRSPHDR
Node: SampleStatementAPI.HTTP Reply
Note. The specific message structure shown in this example is provided solely for demonstration purposes to illustrate the root cause of the problem. Your actual message tree, the domains used (for example, XMLNSC or BLOB instead of JSON), and the specific headers involved might be completely different. Regardless of the exact configuration, the message body must always be the final element in the tree.
Why the AppDynamics IIB agent exposes it
Without the AppDynamics IIB agent, ACE can write the HTTP reply from the JSON body and leave the trailing header unexamined. The client still receives body (JSON) so the flow appears healthy.
With the agent enabled, ACE invokes the registered user exit around transport processing. During that processing, ACE walks the message assembly from top to bottom. When it finds the json body parser followed by the WSRSPHDR header parser, it raises BIP6062. Output nodes also inherit the validation options already attached to the message tree. See Validating messages.
This is standard ACE/IIB behavior when the AppDynamics IIB agent user exit is active. Comparison of working and failing payloads shows the agent does not insert an extra header or change the JSON payload.
Observed sequence
11:22:01 HTTP Input received JSON request
11:22:12 Downstream response received
11:22:12 Final JSON reply built
11:22:12 HTTP Reply caught BIP2230
11:22:12 ParserException BIP6062: json followed by WSRSPHDR
11:22:12 Flow catch terminal returned an application error response
Business processing had already completed, and AppDynamics monitoring continued. The warning is confined to serialization of an incorrectly ordered reply tree.
Resolution
Correct the message flow so the reply tree matches the IBM rule before it reaches HTTP Reply:
Message
Properties
HTTPResponseHeader / HTTPReplyHeader
JSON (Body)
The application team should create or retain all headers first, then create the body as the last child of OutputRoot. No HTTPResponseHeader, HTTPReplyHeader, HTTPRequestHeader, or other header folder should remain after the body.
After the flow is redeployed, the same request should return the JSON body with no BIP6062 in the broker log.
... View more