wood burning stoves 2.0
The moose likes EJB and other Java EE Technologies and the fly likes java.lang.NoSuchMethodError: getMessageData Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "java.lang.NoSuchMethodError: getMessageData" Watch "java.lang.NoSuchMethodError: getMessageData" New topic

java.lang.NoSuchMethodError: getMessageData

Moi Tinh

Joined: Mar 05, 2005
Posts: 16
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");
Gamb Rockwell

Joined: Dec 09, 2003
Posts: 25
Check to see if you have the latest fixpack installed. I corrected this error by installing fixpack 7.
Moi Tinh

Joined: Mar 05, 2005
Posts: 16
Is this fixpack 7 for Websphere MQ 5.3 or WSAD 5.1?
I agree. Here's the link: http://aspose.com/file-tools
subject: java.lang.NoSuchMethodError: getMessageData
It's not a secret anymore!