You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Raj_New <rs...@yahoo.co.in> on 2009/02/24 07:29:29 UTC

java.lang.NoSuchMethodError: org/apache/activemq/ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/Destination;

I am trying to send a message through QueueSender but it get failed. I am
using AMQ5.2 and the respective jars are in classpath.

I am using following code :

QueueSender queueSender = session.createSender(destination);
queueSender.setDeliveryMode(DeliveryMode.PERSISTENT);
queueSender.setTimeToLive(0);
						
TextMessage newMessage = session.createTextMessage(textMsg.getText());
newMessage.setJMSCorrelationID(usrInputGUID);	
newMessage.setStringProperty(MIBConstants.JMSClientID,
textMsg.getStringProperty(MIBConstants.JMSClientID));
newMessage.setStringProperty(MIBConstants.JMSEchoList,
textMsg.getStringProperty(MIBConstants.JMSEchoList));
newMessage.setIntProperty(MIBConstants.RETRYCOUNT, 0);		
queueSender.send(newMessage);
queueSender.close();

when flow comes on queueSender.send method it through exception

Exception in thread "main" java.lang.NoSuchMethodError:
org/apache/activemq/ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/Destination;
	at
org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:241)
	at
com.csc.fs.mibse.util.ResubmitResponseUtil.main(ResubmitResponseUtil.java:103)


Please help me how can I solve this problem.
-- 
View this message in context: http://www.nabble.com/java.lang.NoSuchMethodError%3A-org-apache-activemq-ActiveMQMessageProducerSupport.getDestination%28%29Ljavax-jms-Destination--tp22176586p22176586.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: java.lang.NoSuchMethodError: org/apache/activemq/ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/Destination;

Posted by Raj_New <rs...@yahoo.co.in>.
Problem solved by using latest j2ee.jar. Thanks


Raj_New wrote:
> 
> I am trying to send a message through QueueSender but it get failed. I am
> using AMQ5.2 and the respective jars are in classpath.
> 
> I am using following code :
> 
> QueueSender queueSender = session.createSender(destination);
> queueSender.setDeliveryMode(DeliveryMode.PERSISTENT);
> queueSender.setTimeToLive(0);
> 						
> TextMessage newMessage = session.createTextMessage(textMsg.getText());
> newMessage.setJMSCorrelationID(usrInputGUID);	
> newMessage.setStringProperty(MIBConstants.JMSClientID,
> textMsg.getStringProperty(MIBConstants.JMSClientID));
> newMessage.setStringProperty(MIBConstants.JMSEchoList,
> textMsg.getStringProperty(MIBConstants.JMSEchoList));
> newMessage.setIntProperty(MIBConstants.RETRYCOUNT, 0);		
> queueSender.send(newMessage);
> queueSender.close();
> 
> when flow comes on queueSender.send method it through exception
> 
> Exception in thread "main" java.lang.NoSuchMethodError:
> org/apache/activemq/ActiveMQMessageProducerSupport.getDestination()Ljavax/jms/Destination;
> 	at
> org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:241)
> 	at
> com.csc.fs.mibse.util.ResubmitResponseUtil.main(ResubmitResponseUtil.java:103)
> 
> 
> Please help me how can I solve this problem.
> 

-- 
View this message in context: http://www.nabble.com/java.lang.NoSuchMethodError%3A-org-apache-activemq-ActiveMQMessageProducerSupport.getDestination%28%29Ljavax-jms-Destination--tp22176586p22176921.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.