MQ 发送消息失败 - MQJE046:不支持的代码集
我正在使用 MQ v. 6.x。 通常我可以很好地发送和接收消息。但是,对于某些消息,我收到“MQJE046:不支持的代码集”异常。 它似乎与大小有关,因为我可以用长度大于 32218 字节的字符 0-9 组成的消息重现该问题。
javax.jms.JMSException: MQJMS1016: an internal error has occurred. Please contact your system administrator. Detail: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2195
MQJE046: Unsupported codeset : 0
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:586)
at com.ibm.mq.jms.MQMessageProducer.sendInternal(MQMessageProducer.java:1693)
at com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1056)
I'm using MQ v. 6.x.
Usually i can send and receive messages just fine. However, for some messages I get a 'MQJE046: Unsupported codeset' exception.
It seeme to be related to size, as i could reproduce the issue with message made of chars 0-9 in length greater then 32218 bytes.
javax.jms.JMSException: MQJMS1016: an internal error has occurred. Please contact your system administrator. Detail: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2195
MQJE046: Unsupported codeset : 0
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:586)
at com.ibm.mq.jms.MQMessageProducer.sendInternal(MQMessageProducer.java:1693)
at com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1056)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它是一个多线程应用程序吗? MQTopicPublisher 或 MQQueueSender 无法在线程之间共享,此消息可能是由于在线程之间共享此对象而导致的。
请参阅此 mqseries.net 线程
Is it a multithreaded app? MQTopicPublisher or MQQueueSender cannot be shared between threads and this message could be caused from sharing this objects between threads.
Refer to this mqseries.net thread