MQJMS2007: Cannot send msg to a queue

Hi All,
When I try to send more then 5000 messages to a queue it gives me this error.
javax.jms.JMSException: MQJMS2007: failed to send message to MQ queue
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:530)
at com.ibm.mq.jms.MQQueueSender.sendInternal(MQQueueSender.java:791)
at com.ibm.mq.jms.MQQueueSender.send(MQQueueSender.java:225)
at com.ibm.mq.jms.MQQueueSender.send(MQQueueSender.java:258)
at TestQSender.sendQ1(TestQSender.java:45)
at TestQSender.<init>(TestQSender.java:17)
at TestQSender.main(TestQSender.java:13)
The message limit on the queue is 100,000.
Can someone give some idea on this ?
Thanks,
-raj

I have checked with the linked error also but still it is giving me the error while sending the message
the error is as follows :
Exception in method QueueSend.sendMessage()MQJE001: Completion Code 2, Reason 2009
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2009
at com.ibm.mq.MQQueue.putMsg2(MQQueue.java:1498)
at com.ibm.mq.jms.MQMessageProducer.sendInternal(MQMessageProducer.java:1569)
at com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1012)
at com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1046)
at QueueSend.main(QueueSend.java:60)
I am also sending the code i am using I am getting the values from property file and are correct value the program is as follows :
* Created on Jul 20, 2004
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
import java.io.FileInputStream;
import javax.jms.JMSException;
import javax.jms.Queue;
import javax.jms.QueueConnection;
import javax.jms.QueueSender;
import javax.jms.QueueSession;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.naming.NamingException;
import java.util.Properties;
import com.ibm.mq.jms.JMSC;
import java.io.IOException;
* @author mahalena
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
public class QueueSend {
     public static void main(String args[]) throws JMSException
          com.ibm.mq.jms.MQQueueConnectionFactory qconFactory = null;
          QueueConnection qcon = null;
          QueueSession qsession = null;
          QueueSender qSender = null;
          Properties mqProp = null;
          try{
               mqProp = new java.util.Properties();
          java.net.URL url = ClassLoader.getSystemResource("MQ.properties");
          mqProp.load(url.openStream());
               qconFactory = new com.ibm.mq.jms.MQQueueConnectionFactory();
               //qconFactory.setChannel(mqProp.getProperty("Channel"));//name of the channel of the client connection
               qconFactory.setHostName(mqProp.getProperty("Hostname"));//The name of the host for a client connection
               qconFactory.setPort(Integer.parseInt(mqProp.getProperty("Port")));//The po//rt for a client connection .1414 is default
               qconFactory.setQueueManager(mqProp.getProperty("QueueManager"));//The name of the queue manager
               qconFactory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
               qcon = qconFactory.createQueueConnection();//
               qcon.start(); //add
               System.out.println("===========================>" + "The Queue Connection has been created");
               qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);;
               Queue queue = qsession.createQueue(mqProp.getProperty("Queue"));
               qSender = qsession.createSender(queue);
               TextMessage msg = qsession.createTextMessage();//define message type
               String strMessage="hi";
               msg.setText(strMessage);
               System.out.println("===========================>" + "The messages text set.");
               qSender.send(msg);
               System.out.println("Connection established");
          }catch(JMSException jex){
Exception e=jex.getLinkedException();
               System.out.println("Exception in method QueueSend.sendMessage()"+e.getMessage());
               e.printStackTrace();
          }catch(IOException ioe){
System.out.println("Exception while getting MQ properties()"+ ioe.getMessage());
ioe.printStackTrace();
finally{
               if(qSender!=null){
                    qSender.close();
               if(qsession!=null){
                    qsession.close();
               if(qcon!=null){
                    qcon.close();
If any one get this error please convey it me as early as possilbe because it's urgent very urgent.
I am also giving my id [email protected]

Similar Messages

  • I keep getting Alarm popups saying that it cannot send msg using the server null. I think I have disabled email (I use Gmail) and the calendar however I still get these popups and I can't close them?

    I keep getting Alarm popups saying that it cannot send msg using the server null.
    I think I have disabled email (I use Gmail) and the calendar however I still get these popups and I can't close them?
    How can I disable the Alarm popups?
    Thanks
    Brian

    OS X Mail: Troubleshooting sending and receiving email messages - Apple Support
    Google Mail recently implemented additional security measures "for your protection" of course. The manifestation of that may be the requirement to create a unique, "application-specific" password for each one of the various Google services you may use. That requirement probably includes Google Mail. So if the above Apple Support document doesn't resolve the problem, research Google's application-specific password requirements, and how to configure Mail to use it.
    I asked the Hosts to edit or obscure the email address in your post.

  • Cannot send msg with watsapp under 3G network

    Hi, I just added watsapp to my lumia 900. I can't receive or send msg through my watsapp under 3G network, but when i am connected to wifi, the watsapp function normally. Anyone can advise me on this?
    Thanks

    try to change priority on whatsup setting to cellular,wifi bro...
    Check again your accesspoint setting,maybe wrong ...
    nokia 1208 connecting people

  • Email wont send msgs on my macbook pro :(

    i can't send emails. they are saving to my outbox and just won't send i keep getting this msg when i try
    The Hotmail Exchange connection to server “pop3.live.com” failed. 
    Select a different outgoing mail server from the list below or click Try Later to leave the message in your Outbox until it can be sent.
    then.. or..
    cannot send msg
    the hotmail exchange / hotmail connection server "pop3.live.com" failed.
    sending from….(my emai) l
    im not really sure what I've done wrong..
    help

    Looks like your outbound (sending) mail connection is pointed to Hotmail's POP3 server (for you to read mail) instead of their SMTP server (for you to send mail).
    You should be fetching mail from pop3.live.com and sending it to smtp.live.com. See
    http://windows.microsoft.com/en-US/windows/outlook/send-receive-from-app
    "Outgoing (SMTP) Server
    Server address: smtp.live.com
    Port: 25 (or 587 if 25 is blocked)
    Authentication: Yes
    TLS or SSL Secure Encrypted Connection: Yes"
    You can change this, but the setting is buried a few levels down.
    1. Go to Mail > Preferences... > Accounts > {yourhotmailacct} > Account Information > Outgoing Mail Server (SMTP)
    2. Pull down to Edit SMTP Server List...
    3. Select the server line that says pop3.live.com
    4. Select the Account Information tab.
    5. Change Server Name to smtp.live.com.
    You may also need to adjust settimgs in the Advanced tab to match the above while you are there.

  • My 3gs worked fine until about 2 weeks and now cannot send pics with my text msgs.

    My 3gs worked fine until about 2 weeks ago and now cannot send pics with text msgs.

    See my response to your other post

  • Can receive text msgs but cannot send!?!?

    A few days ago I began to be unable to send text msgs. Using iPhone 3G, it appears that the 'send' button is dithered 'greyed' out. I tap it but nothing happens. I can email, and obviously type text online (as here) but cannot 'send' text. I deleted MSG history, cleared cache, cleared recent calls, cleared email history to no avail. I can receive text just dandy but cannot send. Can anyone shed some light here or do I go see the 'geniuses' at the store and get a new phone. ( it seems every time I have a phone problem like this, they can't fix it they just give me another phone) Would really like to not have to go to the store. Thanks in advance for anyones help!

    I would try a few basic things before scheduling an appointment with the Genius Bar.
    1) Sync your iPhone with your computer. I have noticed that sometimes my phone will have a hiccup and when I sync it, whatever was wrong automatically rights itself.
    2) Reset your iPhone holding down the "home" button and the Sleep/Power button on the top right side of the phone at the same time. It takes about 5-15 seconds and you want to make sure you hold down both buttons until you see the apple logo, ignore the slider.
    3) Plug your iPhone into the computer and perform a phone restore. There are 2 options for this:
    a- If you know when this problem started with your SMS messaging you can restore from a backup that was done on a previous sync. Chose a date prior to this issue starting and restore your phone to how it was on that date.
    b- If you don't know when this issue began or restoring it to an earlier date does not fix the problem you can restore it to how it was when it came out of the box.
    I hope that one of these things is able to solve your problem with SMS messaging. If none of these fixes the problem you should schedule an appointment with the Genius Bar and get this resolved with them. If you visit the Genius Bar make sure to sync your iPhone just prior to your appointment so if they need to replace the iPhone you don't lose any calendar entries, recently added contacts, pictures, etc.
    Good luck!
    ~CaliGirl~

  • I can receive text but cannot send text msgs

    I can receive text but cannot send text msgs,can make outgoing calls..with full signals on my network provider and everytime i send message it displays" not delivered" and when i tap the retry it failed to send again.

    GrantieeeW wrote:
    I have a Nokia N96 and i can recieve texts, but i am unable to send ones, i have signal and everything, i got told to make sure that there is a mobile phone looking number on the messaging center, if there is no one, contact my phone provider, but there is a number, and it still will not send texts. Is the mobile number in the messaging center, my actual phone number??
    Sorry i asked this on you discussion, but its soo confusing .
    The mobile phone looking number is what you call the message center number. Contact your service provider to get the actual one. Then, make sure that you have the same number updated in Messaging -> Options -> Settings -> Text messages -> Msg. centre in use.
    This is not your "actual phone number".
    Cheers,
    DeepestBlue
    5800 XpressMusic (Rock Stable) | N73 Music Edition (Never Say Die) | 1108 (Old and faithful)
    If you find any post useful, click on the Green "Kudos" Button on the left to say Thank You...

  • Cannot send international text msg

    i download a software 8.3 now cannot send message to international.

    I never had problems sending international text since my first 3g iPhone and neither with the 4. The only problem is that international txts are too expensive, I recommend you to use Skype or other app that can send texts.

  • E71 can receive, but cannot send email to POP mail...

    I have an E71-1. I am in the UK and on '3'. Firmware version is 100.07.76  My problem is I cannot send email to my POP server. It goes to the Outbox then is reported as Queued. Trying to force a send does not have any effect. It would send emails until a few weeks ago.
    I have re-set up the server information correctly in the 'phone. The server is sending and receiving emails correctly from Outlook. The E71 receives emails normally.
    I have set up another POP account on a different domain on the 'phone and I have the same problem (but it uses the same server). Any help would be appreciated.
    Solved!
    Go to Solution.

    ManCity69 does not have my problem, therefore I appreciate his attempt to help but his solution will not work for me. It is frustrating that I cannot make it work as he has. I want to use my own SMTP server but I can't. I believe my solution is the definitive one because it should work for everyone.
    For anyone who has my problem, my posted solution should work. And I have looked at the emails I am sending using other email clients, and they are not arriving from "[email protected]', the 'From' and 'Reply To' are my normal email address, perhaps it is getting these from the pop3 settings, I don't know.
    And as we are blundering around in the dark here trying to solve our own problems instead of getting high quality technical support from 3, we will probably never know.
    Message Edited by uqhfrsksug on 03-Oct-2009 06:18 PM
    Moderator's note: Email address edited to be more generic for privacy reasons.
    Message Edited by concordia on 04-Oct-2009 04:49 AM

  • IOS 8.0 and 8.0.2 cannot send pictures using mms

    So both on my wifes 6 and on my 5s I cannot send a MMS picture correctly anymore. Here is what steps I am using. I know there are other ways that do work but this is my usual way
    ---hit camera
    ---click on pictures in lower left
    ---hit the box with the up arrow
    ---have picture(s) selected with blue check
    ---click message
    ---put in who to
    ---type in msg
    Now before upgrading, the picture was in the body of the message. Now after upgrade it just doesn't show up at all.
    Anyone else have this issue?
    I have tried to back up the device and then do a full restore to no avail.
    Thanks
    Adam

    Having the same problem with a 4s and 5s.  Loaded 8.0.2 and lost that capability.  My wife sends lots of snapshots so she is really frustrated, and when Mama's not happy, ...

  • Cannot send mail "recipient rejected because server does not allow relaying"

    Just went to Verizon store with new Iphone4.  They tried, but didn't help.  I can receive my email, but cannot reply or compose and send msgs.  The message says, "Cannot send mail.  A copy has been place in your Outbox.  The recipient xxxxxx was regejected by the server because it does not allow relaying."  I tried several different email addresses, including my own Verizon account!

    Go into the settings for Mail, Contacts, and Calendars.
    Go to the account that's got a problem, and scroll down to "Outgoing Mail Server".
    Touch "SMTP" and make sure the primary server is set to the one you are supposed to be using for your account (you mention Verizon, so it should probably be outgoing.verizon.net).
    Make sure SSL is off and the server is "ON".
    Make sure that your username and password are for your e-mail account are correct.
    Click "Done".
    I'm guessing that at least one of those things I mentioned are not set properly. The error is telling you "yeah, I'm a mail server, but I don't relay mail for just anyone, I need to know who you are".

  • I cannot send the email to the printer using my hotmail account.

    I got HP laserjet pro M1536 printer which have an eprint capability but i cannot send the mails to the printer by using the hotmail account and even tried using others hotmail account but in vain. I can send the emails thru yahoo and gmail accounts they worked but not yahoo. Can anyone solve this issue?

    For those who are experiencing ongoing issues with their web services, you can attempt to try the following steps that may help resolve your problems.
    1.) Completely shut down your printer and restart it
    2.) If you have prints that have not printed, log into ePrint Center (or create an account if you do not have one) and then look for your printer status. If printer status is green but you still have pending jobs, delete the pending jobs one at a time (Starting with the oldest first). There may be a print job stuck in the queue that further restricts other jobs from completing.
    a. If option 1 or 2 above still doesn’t work, removing web services and re-adding web services will cause the printer to reattach to the cloud.
    b. Please note that if you attempt option 3, you will get a new eprint email address (and lose your custom one with no ability to get it back) furthermore, you will need to re-add your printer back to your ePC account.
    I am an HP employee

  • HT4623 i cannot send e-mails from optonline from my iphone 4s

    I cannot send e-mails from my iphone 4s any ideas as I have verified the set up with optonline and everything seems correct

    can you be a little more specific - what happens when you send the mail?   error msg?

  • Cannot send outgoing mail via Lotus Notes

    Just installed Lotus Notes 6.5 on my PC (Win XP Pro SP3).  Have no problems receiving email ... just cannot send.  I keep getting same error msg:
    "SMTP Protocol returned a permanent error.  Failed with outgoing.verizon.net"
    Does anyone have a solution?
    Solved!
    Go to Solution.

    Make sure that you have the outgoing server, outgoing.verizon.net as an authenticated server.  You will need your Verizon Online username and password.  The Verizon Online username/password is set up differently than FiOS - I didn't get one of these accounts until I called and requested one.
    http://www22.verizon.com/ResidentialHelp/FiOSInternet/Email/Troubleshooting/QuestionsOne/85681.htm

  • Cannot send from one sunjes user to another after initial email

    This is most annoying I have installed a sunjes 5 install , did a test email e.g. fgrom jdoe@xxxxx to jdoe@xxx, received it and though that was ok , however since then I cannot send anything else I can send to an exchnage adddress no problem but sunjes to sunjes - no way.
    Email shows up in the sent items but not i the inbox where I want it , I have rebooted the zone, stopped/started services , no joy and do not have any error messages.
    Nothing has chnaged since th einstall and there are no space issues.
    Does anyone have any idea as sunjes/ communications express is useless in help messages etc

    hi Shane,
    thanks for that a) there i nothing held in the queue , b) this is the output from the logging - any ideas?
    [23/Jun/2008:11:31:26 +0100] comms5-qa httpd[7755]: Account Notice: close [192.168.230.202:50169] [unauthenticated] 2008/6/23 11:31:19 0:00:07 1722 1895 0
    [23/Jun/2008:11:31:35 +0100] comms5-qa httpd[7755]: Account Notice: close [192.168.230.202:50185] [unauthenticated] 2008/6/23 11:31:26 0:00:09 953 854 0
    [23/Jun/2008:11:32:03 +0100] comms5-qa httpd[7755]: Account Notice: close [192.168.230.202:50256] [unauthenticated] 2008/6/23 11:31:58 0:00:05 953 854 0
    [23/Jun/2008:11:35:00 +0100] comms5-qa httpd[7755]: Account Notice: close [127.0.0.1:50609] [unauthenticated] 2008/6/23 11:35:00 0:00:00 17 236 0
    [23/Jun/2008:11:42:02 +0100] comms5-qa httpd[7755]: Account Notice: close [192.168.230.202] jdoe 2008/6/23 11:27:54 0:14:08 0 0 1
    [23/Jun/2008:11:42:08 +0100] comms5-qa httpd[7755]: Account Notice: close [192.168.230.202:51471] [unauthenticated] 2008/6/23 11:42:02 0:00:06 209 450 0
    [23/Jun/2008:11:43:10 +0100] comms5-qa httpd[7755]: General Warning: Sun Java(tm) System Messaging Server mshttpd 6.3-0.15 (built Feb 9 2007) shutting down
    [23/Jun/2008:11:43:52 +0100] comms5-qa httpd[9286]: General Warning: mscertd_initialize: configuration has SMIME disabled
    [23/Jun/2008:11:43:52 +0100] comms5-qa httpd[9286]: General Warning: Sun Java(tm) System Messaging Server mshttpd 6.3-0.15 (built Feb 9 2007) starting up
    [23/Jun/2008:11:45:01 +0100] comms5-qa httpd[9286]: Account Notice: close [127.0.0.1:51937] [unauthenticated] 2008/6/23 11:45:01 0:00:00 17 236 0
    [23/Jun/2008:11:52:45 +0100] comms5-qa httpd[9286]: Account Notice: close [192.168.230.202:52852] [unauthenticated] 2008/6/23 11:52:35 0:00:10 5212 5298 0
    [23/Jun/2008:11:52:53 +0100] comms5-qa httpd[9286]: General Notice: jdoe[192.168.230.202:52883] created message <[email protected]>
    [23/Jun/2008:11:52:58 +0100] comms5-qa httpd[9286]: Account Notice: close [192.168.230.202:52883] [unauthenticated] 2008/6/23 11:52:53 0:00:05 1213 418 0
    [23/Jun/2008:11:55:01 +0100] comms5-qa httpd[9286]: Account Notice: close [127.0.0.1:53140] [unauthenticated] 2008/6/23 11:55:01 0:00:00 17 236 0
    [23/Jun/2008:12:00:45 +0100] comms5-qa httpd[9286]: Account Notice: close [192.168.230.202:53801] [unauthenticated] 2008/6/23 12:00:40 0:00:05 953 854 0
    [23/Jun/2008:12:03:17 +0100] comms5-qa httpd[9286]: Account Notice: close [192.168.230.202:54109] [unauthenticated] 2008/6/23 12:03:12 0:00:05 845 395 0
    [23/Jun/2008:12:03:26 +0100] comms5-qa httpd[9286]: General Notice: jdoe[192.168.230.202:54132] created message <[email protected]>
    [23/Jun/2008:12:03:31 +0100] comms5-qa httpd[9286]: Account Notice: close [192.168.230.202:54132] [unauthenticated] 2008/6/23 12:03:26 0:00:05 1201 418 0
    [23/Jun/2008:12:05:01 +0100] comms5-qa httpd[9286]: Account Notice: close [127.0.0.1:54314] [unauthenticated] 2008/6/23 12:05:01 0:00:00 17 236 0
    [23/Jun/2008:12:15:01 +0100] comms5-qa httpd[9286]: Account Notice: close [127.0.0.1:55518] [unauthenticated] 2008/6/23 12:15:01 0:00:00 17 236 0
    [23/Jun/2008:12:25:00 +0100] comms5-qa httpd[9286]: Account Notice: close [127.0.0.1:56693] [unauthenticated] 2008/6/23 12:25:00 0:00:00 17 236 0
    [23/Jun/2008:12:35:00 +0100] comms5-qa httpd[9286]: Account Notice: close [127.0.0.1:57855] [unauthenticated] 2008/6/23 12:35:00 0:00:00 17 236 0
    [23/Jun/2008:12:45:00 +0100] comms5-qa httpd[9286]: Account Notice: close [127.0.0.1:59042] [unauthenticated] 2008/6/23 12:45:00 0:00:00 17 236 0
    [23/Jun/2008:12:55:00 +0100] comms5-qa httpd[9286]: Account Notice: close [127.0.0.1:60201] [unauthenticated] 2008/6/23 12:55:00 0:00:00 17 236 0
    [23/Jun/2008:13:05:00 +0100] comms5-qa httpd[9286]: Account Notice: close [127.0.0.1:61373] [unauthenticated] 2008/6/23 13:05:00 0:00:00 17 236 0
    [23/Jun/2008:13:15:00 +0100] comms5-qa httpd[9286]: Account Notice: close [127.0.0.1:62592] [unauthenticated] 2008/6/23 13:15:00 0:00:00 17 236 0
    [23/Jun/2008:13:25:00 +0100] comms5-qa httpd[9286]: Account Notice: close [127.0.0.1:63799] [unauthenticated] 2008/6/23 13:25:00 0:00:00 17 236 0
    [23/Jun/2008:13:34:30 +0100] comms5-qa httpd[9286]: Account Notice: close [192.168.230.202:64962] [unauthenticated] 2008/6/23 13:34:20 0:00:10 3758 4381 0
    [23/Jun/2008:13:35:00 +0100] comms5-qa httpd[9286]: Account Notice: close [127.0.0.1:65046] [unauthenticated] 2008/6/23 13:35:00 0:00:00 17 236 0
    [23/Jun/2008:13:37:35 +0100] comms5-qa httpd[9286]: Account Notice: close [192.168.230.202:65377] [unauthenticated] 2008/6/23 13:37:30 0:00:05 591 307 0
    [23/Jun/2008:13:37:52 +0100] comms5-qa httpd[9286]: Account Notice: close [192.168.230.202:65409] [unauthenticated] 2008/6/23 13:37:41 0:00:11 3163 4055 0
    [23/Jun/2008:13:38:25 +0100] comms5-qa httpd[9286]: Account Notice: close [192.168.230.202] bobbyb 2008/6/23 13:34:20 0:04:05 0 0 1
    [23/Jun/2008:13:38:44 +0100] comms5-qa httpd[9286]: Account Notice: close [192.168.230.202:65494] [unauthenticated] 2008/6/23 13:38:25 0:00:19 209 450 0
    [23/Jun/2008:13:38:44 +0100] comms5-qa httpd[9286]: Account Notice: close [192.168.230.202:65495] [unauthenticated] 2008/6/23 13:38:25 0:00:19 209 631 0

Maybe you are looking for

  • Pivot point in image rotation with JAI...

    I'm using JAI to rotate some images... but it doesnt seem to rotate around the center of the image.. here is my codes.. float xOrigin = ((float)src.getWidth())/2; float yOrigin = ((float)src.getHeight())/2; float angle = (float)v * (float)(Math.PI/18

  • Can't delete a network I've created

    Hi, How do I delete a network that I've created using tool bar > airport > create new network. I've created three not knowing what I'm doing, surprise surprise, I want to keep the name of the third but want to delete the first two which are constantl

  • How to Auto Login after registeration

    I have the following requirement and I've spent some time trying to experiment and looking for solutions but have failed to come up with anything that works. Requirement: > Register the user in CQ > Automatically login the user once he registers   >

  • Credit Card Authorization for Confirmed Delivery Date

    When a credit card order is placed and the confirmed delivery date is beyond the expiration date on the credit card SAP allows the order to be placed and authorized. If the confirmed ship date is beyond the expiration date of the card then shouldn't

  • Has anyone tried to connect iPad 2 to harman kardon Nova 2.0 speakers

    Has anyone tried to connect iPad 2 to harman kardon Nova 2.0 speakers?