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.

Similar Messages

  • 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.

  • Use Acrobat Reader from Java

    Hi everybody!
    Can anyone tell me, how I can call the Acrobat Reader from Java, open a pdf-document and make a snapshot fo the first page?
    I have to create an Image file of a page of a pdf-file.
    I already tried pdfbox and iText, both do not work.
    So using Acrobat seems to be the best solution, from my point of view.
    Any suggestions?
    Thx in Advance!
    Stef

    Jeah, I did, but nothing usefull there.
    Perhaps it is possible to open a pdf and save a sanpashot of one page as an image using commandline or jscript?
    Any hints, ides?
    Greetings
    Stef

  • "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.

  • Unable to read from jukebox devi

    i've fot a creative zen touch. when i try to access the data i have stored in it, i cannot acces it. i get an error that says "unable to read from jukebox device." what can i do? may someone please help? i would greatly appreciate it. thank youMessage Edited by s80 on 0-02-2005 08:20 PM

    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

  • 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.

  • Sql loader unable to read from pipe

    Hi All:
    I'm using named pipe along with Oracle SQL*Loader to load some 20 millions rows into database.
    The source of the pipe is from a Java application which write to the pipe using simple FileOutputStream.
    It can be observed that the Oracle SQL*Loader need to wait a lot on the Java application to produce enough data for loading.
    The waiting is fine. However, the Oracle SQL*Loader always exist after loading about 1 million rows with output like:
    SQL*Loader-501: Unable to read file (upipe.dat)
    SQL*Loader-560: error reading file
    SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
    And in this case, the Java will throw IOException with information:
    Exception in thread "main" java.io.IOException: Broken pipe
    at java.io.FileOutputStream.writeBytes(Native Method)
    at java.io.FileOutputStream.write(FileOutputStream.java:284)
    It runs on Linux environment with 11g database.
    Any idea why this will happen?

    check
         SQLLDR NOT LOADING ALL DATA IN DAT FILE : SQL*Loader-510/SQL*Loader-2026 [ID 741100.1]

  • Unable to read from .csv having field in double quotes

    Hi to all,
    I am trying to reading data from .csv file using JDBC it was reading perfectly when fields are without quotes
    i.e. Field1 and unable to read with filedname as "Field" instead giving Exception Column Not Found, please help me out with this.
    Expecting your responses in this matter.
    Thanks in advance.
    khiz_eng

    So you really read the csv (ASCII) file over JDBC?
    Well, for DSNless connection there's a simple trick:
    1) configure a DSN exactly like your actual (system or user DSN), but as a file DSN.
    This can't be used for JDBC conections, but it contains all the params in a very clear format which you have to set for your JDBC connection just with the same values.
    2) Code your connect string:Connection con = DriverManager.getConnection( "jdbc:odbc:Driver=valueForDriverInFileDSN;Database=valueForDatabaseInFileDSN", user, pw );Look, if you succeed this way.
    If not, please post:
    * your connect string
    * the DBException's informations
    * the content of your FileDSN file

  • Where to place    text file in  Jdeveloper9irc  to read from Java program

    For ex.
    package mypackage;
    import java.io.*;
    public class ReadData
    public ReadData()
    public static void main(String[] args)
    new ReadData();
    try{
    File fin = new File("test.txt");
    if (fin.canRead())
    System.out.println("Can read file");
    I am geting a error message of file not found. Please advise
    in which directory should I place the text file "test.txt" so that the java program can read from it.
    Thanks,
    agsp

    The test.txt file should be in the 'Run Directory" of your Project. Select Project.jpr and invoke Project settings dialog.
    Click on the Runner. You will see the "Run Directory" edit field.
    For ex.
    package mypackage;
    import java.io.*;
    public class ReadData
    public ReadData()
    public static void main(String[] args)
    new ReadData();
    try{
    File fin = new File("test.txt");
    if (fin.canRead())
    System.out.println("Can read file");
    I am geting a error message of file not found. Please advise
    in which directory should I place the text file "test.txt" so that the java program can read from it.
    Thanks,
    agsp

  • Reading from java.io.ByteArrayInputStream

    Hi,
    I have java.io.ByteArrayInputStream buffer with bytes and I need to read from it and direct bytes into OutputStream. So, what is more effective:
    - read one by one bytes from this stream using read() method and write each byte in OutputStream
    or
    - use int read(byte b[], int off, int len) method which use native array copy System.arraycopy(buf, pos, b, off, len);
    What do you think?
    So, If I will use the second approach, what size of byte array, which is the first param in read method, must be?
    As I see, the class java.io.ByteArrayInputStream dosen't have method size() and I can't know the size of the buffer in order to use it as array size.

    Give it any size you want.
    Then use
    read(buf, 0, bufsize);
    So what size should you want? Well, how long is the data likely to be,
    and how many reads would you like to make.
    Hint: somewhere between 128 bytes and 4096 bytes is probably fine.

  • Unable to read from the registry

    I have a button on one of my forms that needs to read from the registry (get default web browser location).
    When I am logged in as a member of the administrators group I can perform the operation. When I am logged in as a member of the Power Users group I cannot read the value.
    Is this a known issue in Windows 2000 Professional? Is there a techincal paper or resource that shows this?
    Or am I doing something incorrectly?
    Please Help . . .

    And Sharepoint forum is here:
    http://social.technet.microsoft.com/Forums/en-US/category/sharepoint/
    Regards,
    Miya
    Miya Yao
    TechNet Community Support

  • Unable to read from FP modules

    Hey everyone,
      I apologize if this is kind of a broad question, but I'm relatively new to LabVIEW, and especially to FieldPoint, and I was wondering what the most likely causes of read failure are.  I was brought in to my current position to finish a project abandoned by a professional developer (who has terrible commenting skills by the way), and due to my inability to decipher some of his code, I decided to start fresh.  Yesterday, I was perfectly able to write to the solenoids I needed to, and to read from the proximity switches and pressure meters I needed to.  Today, I could do neither, although the original code still operated with proper read/writes.
      So what seems like the problem?  I'm using FP I/O Points that are directly tied to the hardware in an initialization vi, and I bundle them into usable clusters and pass them between vis.  Reads and writes are performed with FP Read and FP Write.
    Thanks in advance,
     - Jeff
    Message Edited by JeffCWRU on 12-20-2007 04:05 PM
    =============
    XP SP2, LV 8.2
    CLAD

    Oh, sorry about the lack of detail.  I'm using the LV 8.2 Full Development System, and the .iak is included in the project, so it should automatically associate the programmed FP I/O Points with the proper hardware, shouldn't it?  The I/O Points are just dumped into named clusters, if that's what you mean by aliases.
    Also, the modules are never powered down that I know of.  The modules we're using are as follows:
    cFP-180X
    FP-DO-403
    FP-DO-401
    FP-AI-111
    FP-DI-304
    FP-DI-304
    FP-TC-120
    I don't know if that makes a difference, but that's the setup.
    Message Edited by JeffCWRU on 12-21-2007 08:37 AM
    =============
    XP SP2, LV 8.2
    CLAD

Maybe you are looking for