Unable to read from JMS queue on Solaris

Hi all,
I am experiencing a strange issue with JMS and Oracle 10gR2 (single server) on Solaris.
The design is simple, 1 server multiple clients communication via 2 queues (P2P domain). Each client has a session ID and can read messages from the queue that have been tagged with the proper session ID.
I guess is simpler to show the code involved:
@Override
public void becomeSender(String queueName) throws JMSException {
setDestination(((AQjmsSession) getSession()).getQueue(null, queueName));
((AQjmsDestination) getDestination()).start(getSession(), true, true);
setProducer(((AQjmsSession) getSession()).createSender((Queue) getDestination()));
getProducer().setDeliveryMode(DeliveryMode.NON_PERSISTENT);
@Override
public void becomeReceiver(String queueName, String sessionID) throws JMSException, JMSConnectorException {
setDestination(((AQjmsSession) getSession()).getQueue(null, queueName));
((AQjmsDestination) getDestination()).start(getSession(), true, true);
setConsumer(((AQjmsSession) getSession()).createReceiver((Queue) getDestination(), getReceiverSessionPredicate(sessionID)));
getConnection().start();
public static final String jmsReceiverSessionProperty = "msgReceiverSession";
public static final String jmsSenderSessionProperty = "msgSenderSession";
public static String getReceiverSessionPredicate(String sessionID) throws JMSConnectorException {
if (sessionID == null) {
throw new JMSConnectorException("Session ID must be provided!");
return jmsReceiverSessionProperty + " = '" + sessionID + "' OR " + jmsReceiverSessionProperty + " = '" + TransferMessage.TARGET_ANY_RECEIVER + "'";
and the code that sends the message
public void sendMessage(TransferMessage aMessage) throws JMSException, IOException {
BytesMessage aMsg = createBytesMessage();
aMsg.setStringProperty(jmsReceiverSessionProperty, aMessage.getReceiverSessionID());
aMsg.setStringProperty(jmsSenderSessionProperty, getSessionID());
sendMessage(aMsg);
Everything works great in Windows XP/7/2008 server 64 virtual machine or not but it fails in Solaris.
The messages are written to the queue as I can see them in the queue table but they never get read from the queue...Oh I missed a bit of information, I use onMessage to handle new message on queues.
The Solaris server is at client environment and I have no remote access to it.
I can run my my simple connectivity tests on a Solaris instance if anyone care to provide me with credentials and 2 queues or even better I can send the jars to run on local environment.
Any help would be much appreciated. Thanks,
Eddie

Moderator Action:
This post has been moved from the Java Message Service (JMS),
to the suggested Database Advanced Queuing forum, for closer topic alignment.

Similar Messages

  • Unable to read from Java MQ Queue in Unix

    Hi,
    I developed a small application that uses a scheduler as an input to a jcd. Once invoked, the jcd reads from a Java MQ queue and writes the result to the log.
    I developed the application on CAPS 6 in Solaris 10.
    We are however unable to read from the queue in Unix. The code returns an empty queue, even though the queue does have messages in it. Below is the code in the jcd used to read from the queue:
    int recCount = 0;
    +while (true) {+
    com.stc.connectors.jms.Message txtMsg = JMS_1.receiveNoWait();
    +// break out of loop, if no more messages+
    +if (txtMsg == null) {+
    logger.info( "Record Count is :: " recCount );+
    break;
    +}+
    recCount+;+
    +}+
    The same project, imported into CAPS 6 on a Windows platform, works without issue.
    Has anyone experienced compatability issues like this with Java MQ between Windows and Unix?
    Adt

    This is probably coz of the JMS header.
    Try setting MQJMS_CLIENT_NONJMS_MQ as the target client and also try retrieving the message as ByteStream rather than TextMessage.

  • Read message synchronously from JMS queue using OSB

    Hi,
    Is it possible to read message from the JMS queue using OSB based on the request invocation. I know messages can be read from the queue but it will be polling based.
    The requirement is to have an OSB proxy service (HTTP service ) an an interface to the client application. Client application invokes the proxy service and the proxy service need to read message from the JMS queue and provide the message as response to the client.
    Let me know if there are any pointers.
    Thanks
    Sandeep

    Hi,
    I spent some time trying to do this and apart from creating custom database tables etc. I was not able to achieve this.
    We wanted to use in memory JMS queues in our situation.
    In the end we developed a Java Web Service which preformed the on-demand read from the queue (using a particular message selector)
    This is working for us without a problem
    Robert

  • How to read Java Object message from JMS Queue using JMS Adapter .

    Dear All,
    In my scenario i have to read a java object message from JMS Queue . I tried by using the JMS Adaper ,but i am not getting any Payload . Can any one tell me is there any special settings for JMS Adapter to read the Java Object message .
    I am able to read the Message successfully thru JMS Adapter but in SXMB_MONI it is not showing any payload .
    I also went in Message monitoring but i am getting this type of message in Sender JMS Adapter  in Audit Log.
    JMS Message ID XXXXX Message Type Null unknown.Payload can not be read and will be empty.
    JMS Message ID XXXXX Payload Empty can not read.
    Please Help.
    Lateef

    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)

  • I want to use ODI to read XML messages from JMS queue and then process it..

    I want to use oracle ODI (Oracle Data Integrator) to read XML messages from JMS queue and then process it.. i also want to process and validate the data in it....
    Could anyone please tell me the steps to achieve the same. I tried some ways which i got on OTN, but not able to implement it exactly...
    As i m very new to ODI, it will be great if you provide detailed steps..
    Thanks in advance for your help....

    Hi,
    Were you able to do it? We are facing this same issue now and, despite the fact the docs say otherwise, it does not seem to be a trivial task.
    TIA,
    Tedi

  • Recieve/Read  Messages  from JMS Queue through ALSB

    Hi,
    I have configured JMS Queue in weblogic server.
    I have created Messaging Service in ALSB which sends messages in MESSAGE QUEUE.
    Now Is it possinle to receive messages from JMS Queue by creating business service in Aqualogic Service bus???

    Hi dear,
    <br>
    I am sending Message through Serializable Object.
    <br>
    I have JMS Proxy which gets invoked when i send message to JMs Queue. JMS Proxy then calls business service.
    <br>
    <br>
    Business Service has two functions. One is taking String as input and one is taking Serializable Object as Input.
    <br>
    <br>
    public void recieveString(String str)<br>
    public void recieveObject(Trade obj)<br>
    --------------------------------------------------<br>
    Now I have configured Proxy Services' Request and Response
    Message Type as a "TEXT". and I am sending ObjectMessage here so what kind of change I require.
    <BR>
    I also want to configure my proxy so that if JMS queue recieves TextMessage then it should invoke reciveString() function and if Object Message then vice versa.....
    <BR><BR>
    But i am not able to handle object even...
    When I am sending Object Message it takes as a TextMessage.
    I am getting following exception when I am sending Object Message to JMS QUEUE. Request and Response Message types are XML Schema of that object.
    <BR>
    <BR>
    <Nov 30, 2006 4:57:19 PM IST> <Warning> <EJB> <BEA-010065>
    <BR>
    <MessageDrivenBean threw an Exception in onMessage(). The exception was: java.lang.AssertionError.<BR>
    java.lang.AssertionError at com.bea.wli.sb.transports.jms.JmsInboundMDB.onMessage(JmsInboundMDB.j
    ava:112)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:42
    9)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDL
    istener.java:335)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:
    291)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4060)
    Truncated. see log file for complete stacktrace
    >
    Message was edited by:
    alwaysvaghu

  • MDB,MDB container or JMS adapter stops processing messages from JMS queue

    Hi guys,
    we have created a component using Enterprise Java Beans, let's say a product catalog, deployed it on a Glassfish v2 instance, and connected it to a legacy system using JMS and Sun MQ v4.1 as messaging system. The catalog component thus starts one MDB that listens on a JMS queue, let's say a queue named catalog_business_events_in, and waits for incoming messages, i.e. in our case update events. The problem is, that in general this approach works well, but sometimes the MDBs/JMS adapter stops for some reason fetching and processing messages from the JMS queue. We don't know why - no exceptions, etc.. Seems to be a Glassfish EJB container, JMS adapter or Sun MQ configuration issue. It seems to be that our component is not the problem.
    The messages are compressed/uncompressed by Sun MQ automatically. We actually have 2 Sun MQ instances in clustered mode running to have some kind of failover - no HA cluster, yet. Sun MQ instances are accessed from Glassfish instances running in different Glassfish clusters - so we have a dedicated Sun MQ cluster not a Sun MQ instance per Glassfish instance. Each Glassfish instance is configured such that it knows both Sun MQ instances to allow automatic failover.
    Has someone an idea, why the MDBs/ MDB container/ JMS adapter - stops processing messages? We are kind of puzzled as it happens more often now and apparently when traffic is (very) low not high!
    Thanks for your help.
    Cheers,
    Martin
    Edited by: east1979 on Jan 13, 2009 8:06 AM

    Hi Manoj,
    I have a very similar if not identical issue,
    Error while running realtime jobs that read from JMS tables via JMS MQ adapter:
    15/11/12 09:10:08  JMS GET OPERATION ERROR : TIMEOUT.UNABLE TO RECEIVE RESPONSE FROM THE INVOKED DATA SERVICES SERVICE.ADAPTER OPERA
    TION TO CONTINUE.
    15/11/12 09:10:15  Communication Error. See real time job log for details.
    Dump available:
    https://sapmats.wdf.sap.corp/download/download.cgi?id=5C0KZAHA3RSXBJW3ABLMUUT2P5UUKWO2TM3EJDM5W2HGDZUDID
    Version of DS:14.0.3.273
    Any comments?
    Thansk and kind Regards,
    Kenneth

  • Receving Value Object from JMS queue

    Hi,
    I want to receive a Value Object from JMS Queue.  I am able to send Value object to JMS queue successfully using "Send Message to Queue". However, Receive message from Queue is not working as expected and throwing below error:
    2013-11-11 00:22:30,456 ERROR [com.adobe.workflow.AWS] (http-0.0.0.0-8080-8) An exception was thrown with name com.adobe.livecycle.jms.exception.JMSReceiverException message:com.TestCustomDataTypes.CustomDataTypes while invoking service JMS and operation receiveMessageFromQueue and no fault routes were found to be configured.
    Class definition:
    public class CustomDataTypes implements java.io.Serializable{
    public String customerId;
        public String customerName;
        public String groupId;
        public String getCustomerName() {
            return customerName;
        public void setCustomerName(String customerName) {
            this.customerName = customerName;
        public String getGroupId() {
            return groupId;
        public void setGroupId(String groupId) {
            this.groupId = groupId;
        public void setCustomerId(String customerId) {
            this.customerId = customerId;
        public String getCustomerId() {
            return customerId;
    Below are the settings used in "Receive Message from Queue" :
    MessagePayLoadType: Serializable
    messagePayLoad: ObjOutput(Datatype: com.TestCustomDataTypes.CustomDataTypes)
    Please find the error screenshot.
    Please suggest how to resolve this.
    Thanks,
    Ramu

    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)

  • Data retrieval from JMS queue using single SOA composite in a clustered env

    Hi,
    I have following situation:
    1) A requester SOA composite (Composite1)is reading data from a File
    2) Mediator is routing data received from Composite1 and writing in a JMS queue.
    3) A provider composite (Composite2) is reading from the JMS queue.
    Both Composite1 and Composite2 is deployed in a clustered environment.
    Problem is Composite2 is not able to read data sequentially from JMS Queue sometime (for example out of 30000 transactions its failing once). Here it's a queue and only one producer and only one consumer is there.
    What may cause this issue? I thought a single producer and single consumer on a queue will guarantee FIFO retrieval . Could you please advise where may be the gap?
    Thanks
    Edited by: user1054373 on Sep 18, 2012 11:29 PM

    Hi,
    I thought a single producer and single consumer on a queue will guarantee FIFO retrieval Java Message Service Specification does not guarantee ordered message delivery when applications use distributed queues...
    Using Weblogic Message Unit-of-Order may solve your issue...
    http://docs.oracle.com/cd/E23943_01/web.1111/e13727/uoo.htm#JMSPG389
    Hope this helps...
    Cheers,
    Vlad

  • Concurrent nodes reading from JMS topic (cluster environment)

    Hi.
    Need some help on this:
    Concurrent nodes reading from JMS topic (cluster environment)
    Thanks
    Denis

    After some thinking, I noted the following:
    1 - It's correct that only one node subscribes to a topic at a time. Otherwise, the same message would be processed by the nodes many times.
    2 - In order to solve the load balancing problem, I think that the Topic should be changed by a Queue. This way, each BPEL process from the node would poll for a message, and as soon as the message arrives, only one BPEL node gets the message and take if off the Queue.
    The legacy JMS provider I mentioned in the post above is actually the Retek Integration Bus (RIB). I'm integrating Retek apps with E-Business Suite.
    I'll try to configure the RIB to provide both a Topic (for the existing application consumers) and a Queue (an exclusive channel for BPEL)
    Do you guys have already tried to do an integration like this??
    Thanks
    Denis

  • Zen Xtra (Nomad) - Unable to read from device error (have tried everythi

    Recently, I've been having problems with my Creative Zen Xtra Nomad mp3 player. One day it started freezing and lagging massi'vely when I would enter nomad explorer. Now it's virtually impossible to drag and drop something from nomad explorer to my computer or vise versa (keep getting the unable to read from device error). However, sometimes I am able to get an mp3 or two after about 5 minutes of transfer time.
    I have no idea why it is doing this. One day I'm transferring my data back and forth with no problem, and the very next day I am getting this freezing, lagging, and errors when trying to transfer. The only thing that changed was me formatting my computer in between it working and it not working, but I did reinstall the driver and nomad explorer once I formatted (I'm also using the same USB 2.0 cable, but it worked fine the day before, so I am pretty sure that's not part of the problem). I was using the mp3 player to store about 0 GB worth of data for when I formatted, and now I'm unable to retrieve virtually any of it. I've tried everything under the PC Connectivity link short of formatting the mp3 hard dri've (and that is not an option because I need the files). I took it to a friends house to try on his computer, but it acted the same way. I'm completely stumped. Is there anything I haven't ruled out? Also, I'm running Windows XP Pro SP2, and I was using SP2 before the format as well if that has any relevance.
    Please let me know if I've left out any important information relevant to this issue. Any help would be very much appreciated.
    Thanks in advance.
    -Noah Patterson
    Edit: I'm having the exact problem as this guy, but I didn't seem to find any answers on his thread.
    http://forums.creative.com/creativelabs/board/message?board.id=dap&message.id=6459&query.id=3264 5#M6459
    Message Edited by talzok on 09-20-2005 08:03 AMMessage Edited by talzok on 09-20-2005 08:09 AM

    Never use MP3 players to store important data, or as a single point of storage for any data (that includes keeping a backup of the player's audio tracks). You can have problems like this with accessing the data, as well as simply dropping the player and losing the lot.
    There are a couple of methods I've seen that have worked to retrieve data:
    . Driver update - either update to the latest drivers, or nonsensically downgrade to the drivers that come on the install CD.
    2. Notmad Explorer - use the Xtreamer function in Notmad Explorer's trial version (which is free) to access the data and download it. It will be tedious, because I assume you have to download one file at a time.
    As for your general problem, I would try using Creative's MediaSource instead of Nomad Explorer to access the player (people generally don't have good experiences with Nomad Explorer).
    Also make sure you download the latest versions of the drivers (taking above into account), MediaSource, and the MediaSource plugin from Nomadworld.com downloads.
    Once you have the data off (hopefully!) you might simply want to reformat it if none of the above hel
    ps.

  • Unable to read from Jukebox Need Urgent he

    Need help, fast, Only got and a half day left to get my Creative Zen Touch to work, I have tons of important files in it and I need it badly!I'v been using my Zen touch as a storage device like a USB or sumthin, newaiz, I just upgraded the firmware to .0.03, from .00.06 to .0.03 to be more detailed. I have read some other posts relating to this kind of matter, I tried the ... Disc Clean Up solution, downloading the latest software except those CD burners program, I uninstalled all of my Creative Programs and installed an older version of the program and still didnt work then I upgraded those program and still wont work. Went to read the FAQs, couldnt find any answers. Can anyone please give me a useful response? I need it badly Please be fully detailed, I am not very familiar with shortcut details. Thanks

    Sorry this is not an answer but I just posted this on the European boards and it might make solving this problem a bit easier:
    Player: Nomad Jukebox Zen Xtra 30GB
    Firmware: .20.08
    Explorer: 3.0.0
    Driver: .26.02
    OS: XP SP2 updated
    MB: MSI K8Neo Platinum (MS-7030) (AwardBIOS 6.00PG)
    Processor: AMD Athlon64 3200+
    Memory: GB Patriot 3200 DDR
    Video: ATI Radeon 9600 Pro (DNA 3.4.4.) (Directx 9.0c)
    Sound: Audigy Gamer (03030 driver)
    HD: Maxtor 6Y60MO (60GB)
    So I made the mistake of using my mp3 player as the sole backup device for 30 Gigs of my music. I used the motherboards included highspeed USB port by the way. So now that I have reformatted and reinstalled everything I try and copy it all back from the Data Library section of my player using Nomad Explorer and end up waiting a few minutes while the software decideds if it will freeze or not before ending up with an error of: "unable to read from jukebox device"
    This is MOST DISTRESSING, I would really appreciate more help than the other 2 people who posted this problem got (read: none). So if anyone has any ideas besides reinstall nomad explorer (which I did) then I am all eyes.
    Thank you for your time and help.
    Nick T
    Maybe if you could post your system specs we could see a similarity or two, like what type of USB port did you use...Message Edited by kalisto_9 on 0-02-2005 0:08 PM

  • XI Error:  Unable to read from SLD

    I have created product, software components, Technical system and business system in SLD. I am trying to import into design (Integration Repository) for further steps but it gives an error saying unable to read from SLD. I am using SAP XI 7.0
    How do i rectify this error to import them into I.R ?

    Sridhar,
    Please read the below thread and try to check all the replies in the thread .It will be very much useful.
    Unable to read software component versions from SLD
    Best regards,
    raj.

  • "Unable to read from or write to your play

    When I go to create a playlist with the music that is already on my Zen, this pops up. Why isnt it working? Its probably something really simple that I overlooked... but Im stumped. I came here as a last resort

    I received this same message and came on here to find some help. I am using the new Creative Zen, 6 gig.
    I am using a Windows Vista computer.
    When the player is docked and I am using the Zen Media Explorer, I go to "create playlists"
    The player loads, I can see all of my files and most of my music on the creative playlist wizard. I clicked on one file (containing most of my music) and this message pops up. "Unable to read from or write to your player"
    Any suggestions?

  • "Unable to read from or write to your player" Zen 1

    I have a new Creative Zen 6G and am using Windows Vista. While using the Creative Media Organizer, I tried to create a new playlist. The player shows all my folders, and when I try to open the folder that contains the majority of my music, the message "Unable to read from or write to your player" appears. Does anyone know what this message means or what I have to do to fix it's Thank you-Melissa

    Have you tried adding from a folder rather than iPhoto to see if that makes a difference? Create a folder on your hard drive called called "iPod Photos" or something similar and drag the photos you want on your iPod to it. Under the photo preferences for the iPod, point iTunes to "synchronize photos from" and choose to update from your new folder.

Maybe you are looking for