Problem:
When sending a message to a backend system with WepSphere MQ, unexpected characters show up in the front of the xml message. For example, from the WebSphere Commerce logs:
com.ibm.commerce.messaging.outboundservice.Messaging.sendReceiveImmediate() Message content is:![]()
Solution:
The default value is "JMS" when a JNDI entry is defined for an outbound queue. However, if the targetClient field is not changed to "MQ", unexpected characters will appear at the beginning of the messages sent by WebSphere Commerce on these 2 queues.
- Open the WebSphere Application Server Administrative Console, for example: http://hostname:9090/admin
- Login with your User ID. Note: The User ID does not require a password, and does not need to be a User ID of a user in the local user registry. It is only used to track user-specific changes to configuration data. Security is NOT enabled.
- Change the queue destination defined for the outbound queues named JMSOutboundQueue and JMSErrorQueue. Enter "MQ" for the targetClient field instead of "JMS".
Problem:
When sending a message, the following error occurs in the SystemOut.log file[1/17/05 16:32:10:679 MST] 41d614a0 CommerceSrvr E com.ibm.commerce.messaging.outboundservice.Messaging loadAdminData(Integer,Integer,Integer) CMN8413E: The messaging system cannot find an appropriate profile for MSGTYPE_ID "201" to match an active transport of the STORE_ID "10001" in table PROFILE. Ensure that the MSGTYPE has been assigned to an active transport under the store or site.
Solution:
The error is occurring because the message type has not been assigned to an active transport under the store or site.
To correct the problem:
- In the Admin Console verify that a message type has been assigned to an active transport under the store or site.
- To identify what message type the error message is referring to, the name and description can be obtained from the database. The following example will give the name and description of the MSGTYPE_ID in the error above.
select name,description from msgtypes where msgtype_id=201
- Assigning the message type to the appropriate transport method for the site or store
- Ensure the transport is method is set to Active.