Messages not making it to the jms queue...

We are having an interesting problem. AFter a fresh restart of our instnace, it will process a message fine. but, if we wait a few minutes, try another post, the message doesn't get put ot the queue, and it basically hangs the instance.
          I am not sure how to trouble shoot this since there are no errors sent to the logs. the console will show a stuckthread message eventually.
          I was wondering if anyone could help with what are some potential causes, and if there is anyway to get additional information out of the server. I have turned on the debug and set the level to info, but no additional information is getting generated.
          We've done print outs in the code right up to where the failure occurs.
          I"ve posted the code snippet that is being used. It failes when it gets to the code after GQ 5.
          Any help is appreicated.
          public boolean queueMessage(Serializable messageObj, String queueName)
          throws NamingException, JMSException, ResourceKeeperException, Exception {
          EventLogger.log(Level.DEBUG, "Trying to put a message in the " + queueName + " queue in GenericQueue.queueMessage(): ");
          try {
          if (messageObj != null)
          EventLogger.log(Level.DEBUG, "Serializable messageObj in GenericQueue.queueMessage(): " + messageObj.toString());
          else
          EventLogger.log(Level.DEBUG, "messageObj is not serializable");
          Hashtable ht = null;
          boolean inHash = false;
          //check to see if the queue is in the hashtable
          if (queues.containsKey(queueName)) {
          EventLogger.log(Level.DEBUG, "The Queue was in the hashTable in GenericQueue.queueMessage(): ");
          inHash = true;
          ht = (Hashtable) queues.get(queueName);
          else EventLogger.log(Level.DEBUG,"The Queue was not the hashTable using default values in GenericQueue.queueMessage(): ");
          Context ctx = InitialContext.getInitialContext();
          EventLogger.log(Level.DEBUG, "GQ 1");
          QueueConnectionFactory qconFactory = null;
          EventLogger.log(Level.DEBUG, "GQ 2");
          if (inHash)
          qconFactory = (QueueConnectionFactory) ctx.lookup((String) ht.get("jmsFactory"));
          EventLogger.log(Level.DEBUG, "GQ 3");
          else
          EventLogger.log(Level.DEBUG, "GQ 4");
          qconFactory = (QueueConnectionFactory) ctx.lookup(jmsFactory);
          EventLogger.log(Level.DEBUG, "GQ 5");
          QueueConnection qcon = qconFactory.createQueueConnection();
          EventLogger.log(Level.DEBUG, "GQ 6");
          QueueSession qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
          EventLogger.log(Level.DEBUG, "GQ 7");
          QueueSender qsender;
          EventLogger.log(Level.DEBUG, "GQ 8");
          Queue queue;
          EventLogger.log(Level.DEBUG, "GQ 9");
          queue = (Queue) ctx.lookup(queueName);

The "stuck thread" message is likely a good clue. Force a server thread dump when this occurs. Feel free to post the thread dump here.
          Side note: Make sure the "GenericQueue" method doesn't attempt to multi-thread access to any JMS session, consumer, or producer.
          Tom

Similar Messages

  • How to keep a back up of messages from the JMS queues?

    Hi,
    I need to keep a back up of messages which are coming in the JMS queue before they get consumed. This is for recovery purpose.
    I checked file store option but it doesnt have any time stamp on messages so dont know how to trace back messges if needed from file store.
    Please let me know if you guys have any idea to handle this.
    Thanks in advance
    Bips

    No. Not with Time Machine at least.
    If you tell Time Machine to backup the external then you will have it.
    Or you can manually copy it to another disk for storage outside of Time Capsule/TimeMachine.
    Allan

  • How to read the messages in the JMS Queue using JMX

    Hi,
              I want to read messages in the JMS queue using JMX. I was able to read using QueueBrowser but want to modify priority of the messages using JMX.
              I tried to use JMSDestinationRuntimeMBean but it does not allow us to read messages unless we pass the message Id. Is there any way that I can get all the messages in the queue.
              I am using Weblogic 8.1 SP4
              Can someone please help me in this regard.
              Thanks,
              Kiran.
              Edited by KGudipati at 10/22/2007 1:22 AM

    Hi,
    As far as i know, JMS Object Messages is not supported by XI JMS adapter.
    you need to have the JMS provider to transform the message to bytes messages.
    (Refer to SAP note 856346)

  • Checking message in the JMS queue

    Hi there,
    Is there a way to check the message is in the JMS queue? I tried to use the QueueBrowser. However, it always return me an enumeration = null
    when I run the following "QueueBrowser.getEnumeration()". I am using JRun 3.0 application server.
    And by the way, how would to know whether the message has been consumed by the receiver in a point to point model? We could still managed to send out messages even when the receiver client is not started. I understand that the receiver client would be able to receive those messages once they are started as the messages are in the queue. However, what if the queue is destroyed (some catastrophic event happen to the JMS provider) before the receiver client is started?

    I have no problem using the QueueBrowser:
          QueueConnection qc;
          qc = qcf.createQueueConnection();
          QueueSession session;
          session = qc.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
          QueueBrowser browser = session.createBrowser(queue);
          Enumeration enum = browser.getEnumeration();The used JMS provider must support a persistence mode. When the server is restarted and there were messages in the queue, they are restored.
    When receiving messages you can use autoacknowledge mode without transaction which means when receive() is called, the message is deleted from the queue. In transacted mode in addition to receive() you have to call commit() on the session in order to delete the message in the queue.
    When using clientacknowledge you have to call message.acknowlegde() after receive().

  • How to check the jms Queue is persistance or not in jboss application serve

    hi,
    i am using jboss as application server for jms and database is postgres.For an message store i am using the "*database store*".while starting the jms adding queue it is adding the messages to the jms queue after starting the jms receiver the datas are received sucessfully....afte some 10 to 13 hours i am getting java.lang.OutOfMemoryError in jms..so i checked the postgres table space.Table space is increased gradually...I think that the after receiver received that message the messages are not deleted in the database.how to debugg the the secnario in jboss as wel as in database.....how to chaeck the queue is in persistance or not persistance...
    regards.
    naresh govindaswamy.

    Send a request to the server somehow, so that the server is aware of this. AJAX may be very useful in this if you want to do this asynchronously.
    its very urgently This is irrelevant information. That's your problem. We don't care less or more. Some users here will even refuse to help you if you're putting pressure.

  • Program to consume the JMS queue

    Hi, I' m new to WebLogic stuff. Got a question over here. There's a JMS queue that we want to have a program (not those built in stuff from weblogic) to see if they re consumed. Similar stuff would be displayed like
              <b>ABCD Queue consumers: 1 / consumers high: 0 ...messages: 10 / messages received: 19........</b>
              as if we get into the console page to check the JMS queues.
              I've got no clues yet. We don't wanna check the number of files from C:\Original and the destination folder C:\Destin......if so, it'd be an easy task but that s not what we wanted....

    As with any WebLogic subsystem, you can get all statistics programmatically using standard JMX mbeans (see the JMX developer guide). The console uses these beans, as does the WLST scripting language. In addition, there are helper methods in the public weblogic.jms.extensions package that simplify access to these beans.
              I think there are various mbean and WLST samples on dev2dev, including one called "JMSStats.java". Note that JMSStats.java, and some other samples were written for versions 8.1 and earlier. They use deprecated methods that don't have access to all runtime statistics for 9.0 and later versions.
              Tom

  • Font style changes not making it to the css

    “I made changes to the text color on my welcome page, and for some reason the style is not making it to the css for that page. I pushed the publish, but the style is not in the css file. I don’t want to have to add it in manually- help!”

    I am having the exact same problem - text that I make bold shows up on the live site as actually lighter in color than the normal text. But it ONLY happens on the Welcome page, which I notice is what your message is about...

  • MS Exchange server 2010 messages will be placed in the poison queue and the transport service will crash

    Can any1 please help.
    We have Exchange server 2010, we just upgraded it with SP3 and then the issue occers that we were unable to send n receive mail outside of our LAN...i mean from gmail or hotmail..
    we have then updated with CU4 which is the latest but still messages will be placed in the poison queue and the transport service will crash.
    We have disabled the antivirus also but issue remains same.
    We have CAS 1 n 2 as of Clustering environment and we upgraded sp3 for both. but we did CU4 on CAS1 to see the results to resovle this issue but no luck

    Hi,
    Did you get any NDR message now when you send a email to outside? And vice versa.
    In addtion,I recommend you telnet to port 25 to test SMTP communication.
    If any question,please feel free to post here.
    Thanks.
    Niko Cheng
    TechNet Community Support

  • HT1476 i plug in my phone to the  charger and i tried with two different cables, and it seems like it is not making connection to the clable?

    i plug in my phone to the  charger and i tried with two different cables, and it seems like it is not making connection to the clable. but it is not charging. what are some possible ways o fix that?

    When you plug in your charger and attach it to the MBP, initially the light will turn green.  If the MBP needs charging, a few seconds later the light will turn amber.  That is normal.  If your symptoms are different, then they may or may not be a problem.
    Ciao.

  • How to get an XMLBean off the jms queue

              Hello all,
              I think I can post an XMLBean to a JMS queue, but how to I read it off the JSM
              queue from within a MDB?
              When I cast the message from the onMessage(Message msg) event to my XMLBEan, I
              get a class cast exception.
              I want to post some form data to a MDB to kick off some processes.
              Here is the code that generates the XML bean and posts it to my jms :
              VCALENDARDocument vcaldoc = VCALENDARDocument.Factory.newInstance();
              VCALENDAR vcalendar = vcaldoc.addNewVCALENDAR();
              VEVENT vevent = vcalendar.addNewVevent();
              vcalendar.setProdid(form.getProdid());
              vcalendar.setVersion(form.getVersion());
              vevent.setDtstart(form.getDtstart());
              vevent.setDtend(form.getDtend());
              vevent.setSummary(form.getSummary());
              vevent.setOrganizer(form.getOrganizer());
              appointmentCtrl.sendAppointmentRequest(vcalendar, "12345");
              Here the code in the JMS Control:
              public interface AppointmentCtrl extends JMSControl,com.bea.control.ControlExtension
              * @jc:jms-property key="accountIdentifier" value="{accountID}"
              * @jc:jms-property key="transactionType" value="NOT SUPPORTED"
              public void sendAppointmentRequest(VCALENDAR vcalendar, String accountID);
              static final long serialVersionUID = 1L;
              Here is how I am trying to read it off the queue in my MDB:
              public void onMessage(Message msg)
              VCALENDAR vcalendar = (VCALENDAR)msg;
              System.out.println("Message received");
              System.out.println(vcalendar.getProdid());
              Here the error that i get:
              <Apr 10, 2004 2:02:16 AM CDT> <Warning> <EJB> <BEA-010065> <MessageDrivenBean
              th
              rew an Exception in onMessage(). The exception was:
              java.lang.ClassCastException.
              java.lang.ClassCastException
              at mdb.AppointmentEJB.onMessage(AppointmentEJB.java:24)
              at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
              at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.
              java:316)
              at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
              at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
              at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >
              <Apr 10, 2004 2:02:16 AM CDT> <Warning> <EJB> <BEA-010065> <MessageDrivenBean
              th
              rew an Exception in onMessage(). The exception was:
              java.lang.ClassCastException.
              java.lang.ClassCastException
              at mdb.AppointmentEJB.onMessage(AppointmentEJB.java:24)
              at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
              at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.
              java:316)
              at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
              at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
              at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >
              Any ideas what it should look like?
              Thanks,
              Marc
              

    Hi trevenator, 
    If you are having issues with an iPod touch directing you to connect to iTunes, you may find the following article helpful:
    If you can't update or restore your iPhone, iPad, or iPod touch
    Regards,
    - Brenden

  • How to access the JMS queues in the XI J2EE Engine?

    Hi Gurus,
    Can anybody know how to access the jms dead message queues in the WAS J2EE Engine?
    I have read in the SAP documentation that we can use some JMS commands from the telnet. I don't know how to use those commands.
    Can anybody provide a step-by-step process to access these queues?
    Thanks
    Kalyan

    1) Open a command prompt
    2) type
    telnet localhost 50008
    where the port is the same as your http, but with 8 as last digit.
    3) Login
    4) Issue the following set of commands
            jump 0
            add jms
            jms list deadmsgs
    Check by man jms other possible options.
    HTH
    Peter

  • Get the JMS Queue property in BPEL

    Hi,
    Does anyone have idea on how to get the value of JMSXDeliveryCount which is a prorerty of JMS queue in BPEL. I want that value in the bpel flow to control the Flow on the basis of it. Plz suggest its urgent.
    TIA.
    Best Regards,
    Amit Jain

    Hi,
    I have got the solution to above issue.
    Once my JMS adapter picks the message, it passed the message to BPEL through mediator.
    In Mediator assign, by using $in.property.jca.jms.JMSProperty.JMSXDeliveryCount I got the value.
    Thanks & Regards,
    Amit Jain

  • Why are Messages not showing up in the NC while locked

    iPhone 4s on iOS 7
    -I am not able to get my messages to show in the notification center while the phone is locked.
         ~I tried to reset my settings and that helped, but now that I turned my phone off, messages aren't showing in the NC while the phone is locked.  I have alerts turned off, currently.  The way I have my notifications set up for messages, worked prior to me turning my phone off.
    -I have all my settings correct and I have my DND scheduled to off.
    -I have my notifications set so that my messages won't show on the Lockscreen and only set to show in the notification center<< Yes that format actually  works. But the times I hard reset my phone or turn it off, it all sotps working
    -My OS is updated to the current one out there.
    Thanks in advance

    BSB-Fan, I think I might have found a solution to your problem. Simply follow the steps listed below.
    Step One - Go to the homescreen and launch the Settings application.
    Step Two - Go into the General section of the Settings app.
    Step Three - Scroll down to the bottom of the General section of the Settings app. You should see a subsection that is labeled "Reset". Tap this.
    Step Four - In the Reset subsection of the General section of the Settings app, you should see a button that says "Reset All Settings". Tap this, and then confirm that you would like to do this on the popup.
    Step Five - After the phone has restarted, unlock the phone and return to the homescreen. Launch the Settings app again.
    Step Six - In the Settings application, you should see a button that says "Notifications". Tap the Notifications button.
    Step Seven - Once you're in the Notifications section of the Settings app, scroll down until you see a button with the Messages app icon and a lable that says "Messages." Tap it.
    Step Eight - Make sure that the Show In Lockscreen is in the off position if you would not like your messages to show up on the lock screen, but only within Notification Center on the lockscreen. Make sure that the Notification settings for Messages are correct.
    Now your Messages should show up in Notification Center on the lockscreen.
    I hope I helped. If you have any other issues or concerns, feel free to reply.
    Sincerely,
    Austin

  • I am getting a message "Not Charging" next to the battery icon.

    When I plug my iPad into a wall socket, I get a ping as if it is charging but the message next to the battery icon says Not Charging.  I have tried several different charging cables.

    Take it to an Apple Store for evaluation.
    The quickest way (and really the only way) to charge your iPad is with the included 10W USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at
    Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- beyond-100-battery-level/
    New iPad Takes Much Longer to Charge Than iPad 2
    http://www.iphonehacks.com/2012/03/new-ipad-takes-much-longer-to-charge-than-ipa d-2.html
    Apple Batteries - iPad http://www.apple.com/batteries/ipad.html
    Extend iPad Battery Life (Look at pjl123 comment)
    https://discussions.apple.com/thread/3921324?tstart=30
    New iPad Slow to Recharge, Barely Charges During Use
    http://www.pcworld.com/article/252326/new_ipad_slow_to_recharge_barely_charges_d uring_use.html
    Tips About Charging for New iPad 3
    http://goodscool-electronics.blogspot.com/2012/04/tips-about-charging-for-new-ip ad-3.html
    Prolong battery lifespan for iPad / iPad 2 / iPad 3: charging tips
    http://thehowto.wikidot.com/prolong-battery-lifespan-for-ipad
    In rare instances when using the Camera Connection Kit, you may notice that iPad does not charge after using the Camera Connection Kit. Disconnecting and reconnecting the iPad from the charger will resolve this issue.
     Cheers, Tom

  • New error message--not found elsewhere on the Internet

    For the past week I've been getting this error message when I open iTunes:
    "The iPod 'Zach's iPod' cannot be updated. An unknown error occurred (-208)."
    My iPod, however, still appears on my desktop, under devices in iTunes, and iTunes updates it as well.
    Does anyone know what this message means and how I can correct it? I called AppleCare, but the representative had never heard of it either.

    Does this help?
    http://docs.info.apple.com/article.html?artnum=61031

Maybe you are looking for

  • Trying to install OS X lion and won't let me

    Trying to install OS X lion and won't let me. I keep getting this: (This deisk is used to Time Machine backups)   and I am using an external HD for my time machine

  • Import data from BW to PAS error.

    Hi, Everyone I am importing data from SAP BW to PAS using the BICA. I selected the LinkID, clicked on Get BW Cubes and query, the query appears in the list below. no problems. I selected the PAS model on combo below, clicked on Import query and the f

  • Pay structure consistency across employee, position, job

    Hi I want to create an ad-hoc report with employee pay structure (pay type, area, group, level) on IT 0008 and their position pay structure on IT 1005 and job pay structure on IT 1005. Any suggestions will be highly appreciated. Manish

  • Print Live Fields Only in Reader

    Does anyone know how you can print "live fields only" in Reader? I want my clients to open up a form (either created in LiveCycle or Acrobat 8 Pro), be able to fill out the fields and then print ONLY the fields they filled in, into a pre-printed broc

  • How to put phone # in favorites?

    How so I put a phone # into favorites, old system was easy it asked.