File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Android Security Essentials Live Lessons this week in the Android 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 Method)

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?
Consider Paul's rocket mass heater.
subject: java.lang.NoSuchMethodError: getMessageData
Similar Threads
JMS::Websphere6.1::Problem with context lookup the Queue
URGENT Help Needed regarding the sending XML file to the JMS Queue
JMS getMessageData Error
mock exam + MDB transaction
Need Help With JBoss/JMS/JNDI/MQSeries