• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

java.lang.NoSuchMethodError: getMessageData

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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);
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this fixpack 7 for Websphere MQ 5.3 or WSAD 5.1?
 
reply
    Bookmark Topic Watch Topic
  • New Topic