• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.NoSuchMethodError: getMessageData

 
Moi Tinh
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got this error while trying to send to Websphere MQ 5.3 from WSAD 5.0. I use a statelesssession bean to send the message. Do you have any ideas?

java.lang.NoSuchMethodError: getMessageData
at com.ibm.mq.server.MQSESSION._MQPUTMSG2(Native Method)
at com.ibm.mq.server.MQThread.run(MQThread.java:1409)
at java.lang.Thread.run(Thread.java:513)

Here's my code

InitialContext ctx = new InitialContext();
QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("jms/myQCF");
QueueConnection con = factory.createQueueConnection();
QueueSession session = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
Queue queue = (Queue) ctx.lookup("jms/myQ");
QueueSender sender = session.createSender(queue);
TextMessage message = session.createTextMessage("Hello");
sender.send(message);
 
Gamb Rockwell
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check to see if you have the latest fixpack installed. I corrected this error by installing fixpack 7.
 
Moi Tinh
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this fixpack 7 for Websphere MQ 5.3 or WSAD 5.1?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic