PrintServiceLookup - Will not list all printers on a print job queue

I have a simple class that fetches all the attached printers to a Linux system (with CUPS).
It returns, correctly, list of three printers.
PrintService[] printerServiceList;
printerServiceList = PrintServiceLookup.lookupPrintServices(null, null);
for (int i = 0; i < printerServiceList.length; i++) {
      System.out.println(printerServiceList.getName());
None of the three printers are physically attached to the Linux server.
If I fire a print to Printer1 or Printer2, the jobs just remain in the queue. However, if I fire print to Printer3, +strange+ thing happens.
*The above PrintServiceLookup code stops returning Printer2 and Printer3. It just lists Printer1 as the avilable print service.*
CUPS still shows all the three printers as available. (Restart of the VM does not help - same behavior, lists only 1 printer).
The main difference between Printer1, 2 and Printer3 is that the DeviceURI of Printer1 and Printer2 are
socket://172.x.x.1/queue1
While the deviceURI of the Printer3 is
lpd://172.x.x.8/queue3
If I remove Printer3 from the printers on CUPS, everything works fine after it.
Also, if I just change the deviceURI of Printer3 to socket://... it starts behaving normally. (Of cource, I cannot do this).
What is happening here? Why is lpd causing that printer and an unrelated Printer2 not to be return by the print API? I would tend to believe that it is a Java API bug.
Any pointers or work-arounds would be really appreciated.
Thanks,
-jas
Edited by: jaswinder_singh on Nov 10, 2009 12:27 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Hello SeaDragon47.
The easiest solution to the "not waking from sleep" issue is to simply plug the printers directly into the wall outlet.  Something about the manner in which surge protectors/power strips handle electricity doesn't sit quite right when electronics want to wake up. 
Another possibility is to upgrade the firmware on the printers.  Here is the latest firmware for the Officejet 4620.  The Photosmart does not appear to have upgradable firmware.  
Yet another suggestion is to set static IP addresses for the printer(s).  I am not sure why but having a static IP set seems to keep the printer from going into sleep mode in the first place.
Let me know if this helps.  Have a lovely day.
Please click the white star under my name to give me Kudos as a way to say "Thanks!"
Click the "Accept as Solution" button if I resolve your issue.

Similar Messages

  • My Macbook pro OS 10.10.2 suddenly will not communicate with my Cannon MX890 printer.  I reset all printers and now I cannot seem to add a printer by using the Add a printer function.  Ideas?

    My Macbook pro OS 10.10.2 suddenly will not communicate with my Cannon MX890 printer.  I reset all printers and now I cannot seem to add a printer by using the Add a printer function.  Ideas?

    The appearance of the printer in the Default view of the Add printer window relies on a protocol called Bonjour. There have been quite a few users who upgraded to Yosemite only to find that their wifi printer is no longer visible. Until Apple resolves this issue you can add your printer using the LPD protocol. To do so you will need to determine the IP address being used by the MX890. This can be done via the touch panel under Device Settings > Network Settings.
    Once you learn the IP address then on the Mac you can click to add the printer and select the IP icon. Here you can enter the IP address, set the Protocol to Line Printer Deamon and leave the Queue field blank. Then change the name to Canon MX890 and in the Use menu, browse for the Canon MX890 series driver. Then click Add to complete the printer creation.

  • I wanted to know if others were having difficulties getting All Day Events appear in the Notification Center in iOS 7.   Currently my Calendar in the notification center will show events that are at certain times, but they will not display All Day Events.

    I wanted to know if others were having difficulties getting All Day Events appear in the Notification Center in iOS 7.
    Currently my Calendar in the notification center will show events that are at certain times, but they will not display All Day Events.

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?

  • I purchased a song a few days ago and downloaded the whole song and the song will not play all the way through it only plays 23 seconds. How do I fix this problem?

    I purchased a song a few days ago and downloaded the whole song and the song will not play all the way through it only plays 23 seconds. How do I fix this problem?

    Thanks for this post. It corrected my similar issue. Note that you need to exit from/re-enter iTunes after deleting the song from your Purchased list.

  • My ipod will not put all music by the same artist together

    my ipod will not put all music by the same artist together...suggestions, please?  I have already checked spelling on all and checked to make certain they are all listed under the same genre of music

    Do the un-syncing ones play in iTunes?
    Try directly redownloading them on the iPod
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • A 120 gb classic   ipod will not sync all music

    *i have a 120gb classic ipod but my library will not load all my music on my ipod,the ipod is not full at all,the music is there and you can listen to it on the computer but will not sync to the ipod does anyone no what to do get all of the library on my ipod,buy the way i have try all troubleshooting methods which did not work and the entire library list is enable in the summary of the ipod.*

    I thought that I was the only one having trouble.
    About 6 days ago, I got on the computer to mess around and adjust my genres because some were wrong, the it just froze when I got to a certain artist. My iPod savvy friend said that I should probably restore it to factory settings and all that jazz and I did, since then, when I attempt syncing, it will get to between 10% and 25% synced and I just want to tear out my hair. This thing has been ******* me off for the past almost week. Also, every time I open iTunes, it says that it is determining gapless playback information for 4 songs that are not in my library from what I have seen.....

  • My apple tv does not list all of my playlists.  What to do?

    my apple tv does not list all of my playlists.  What to do?

    What playlists are you referring to? Providing more info on the issue will help.

  • 2011 Macbook pro safari will not open & all i get is a spinning wheel

    I updated my computer and ever since, my safari will not load. all I get is a color spinning wheel. Other apps will not open either. I have done internet recovery, and started in safe mode. I do not know what else to do. I can not get online to redownload since safari doesn't work. I can not even reset safari. please any help appreciated

    There are several possible causes for this issue. Please take each of the following steps that you haven't already tried, testing after each one, until it's resolved. Back up all data before making any changes.
    Step 1
    Follow the directions in this support article.
    Step 2
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Select the iCloud keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password.
    Select
              Keychain Access ▹ Keychain First Aid
    from the menu bar and repair the keychain.
    Step 3
    Open the iCloud preference pane and uncheck the Keychain box. You'll be prompted to delete the local iCloud keychain. Confirm. Then re-check the box. Follow one of the procedures described in this support article to set up iCloud Keychain on an additional device.
    Step 4
    Open the Keychains folder as in Step 1. There should be a file in that folder with the name "login.keychain". If there is also a file iwith the name "login_renamed_1.keychain", then please do as follows:
    ☞ Rename login.keychain to "login-old.keychain".
    ☞ Rename login_renamed_1.keychain to "login.keychain".
    You can then close the folder. 
    Delete the login keychain from the keychain list in Keychain Access. Choose
               Delete References
    when prompted, not Delete References & Files.
    Select
              File ▹ Add Keychain...
    from the menu bar. Add back the file now named "login.keychain". If any of your needed keychain items are missing from it, also add back the file now named "login-old.keychain". I suggest you transfer any needed items from that keychain to the login keychain, then delete it. The transfers are made by drag-and-drop in Keychain Access. You'll need to enter your password for each item transferred. 
    Run Keychain First Aid again. Quit Keychain Access.

  • My iphoto will not load, all it does when i open it is just show a blank iphoto and won't load any of my photos that were already in there.

    My iphoto will not load, all it does when i open it is just show a blank iphoto and won't load any of my photos that were already in there. Any way to fix it ?

    Remember: we cannot see your machine. There are 9 different versions of iPhoto and they run on 8 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS.  So to get help you need to give as much information as you can. Basic things like :
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For instance: 'iPhoto won't export' is best explained by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • My Ipod touch will not synch all songs in my library - on my windows 8 laptop. Doesn't matter if the songs are checked or not - only some songs will synch to the IPOD. I have multiple devices and two accounts.

    My IPOD touch will not synch all songs in my library. Library is on a windows 8 laptop. Checking the songs does not matter. I have multiple devices (ipod, IPhone 4 and 5, IPad 2) and two ITunes accounts.

    All songs play on the laptop windows 8. The second Ipod touch we have - all songs synch to it and play.
    But the first Ipod touch we bought - only half (or so) of the songs synch. So I assume there is an issue with the newer Ipod touch. The songs not synching are songs I added to the library from CD's.

  • HT1386 I have Mac itunes and a touch 2G.  My wife has Win7 and touch 4G (both iOS 4.2.1). She got a new iphone, I now have her touch 4G, and am trying to sync it to my Mac itunes.  The music and videos sync, but apps & podcast will not. All checked to syn

    I have Mac itunes and a touch 2G.  My wife has Win7 and touch 4G (both iOS 4.2.1). She got a new iphone, I now have her touch 4G, and am trying to sync it to my Mac itunes.  The music and videos sync to the 4G, but apps & podcast will not. All are checked to sync.  During sync, it gets to "determining apps to sync"  then immediately goes to "finished syncing".   No apps or podcasts from my Mac itunes are on the touch 4G.

    You can only sync to one iTunes library but you can manage music and videos among different computer/libraries.
    It appears that you are trying to sync with a different library.
    - If you want to make the Mac you syncing computer:
    --- Connect the iPod to the computer and make a backup by:
    iOS: How to back up
    --- Restore the iPod from that backup. Note that synced media like apps and music are not in included in the backup.

  • IPhone 6 will not sync music. This has become a problem since using itunes 12. It also will not sync all my pics and video's with my iPad 4  either. Removed and re-installed iTunes with no improvement.

    iPhone 6 will not sync music. This has become a problem since using itunes 12. It also will not sync all my pics and video's with my iPad 4  either. Removed and re-installed iTunes with no improvement. It stops at last step saying waiting for items to copy and just sits there.  The iPad finish the sync, but some video's are missing.

    iPhone 6 will not sync music. This has become a problem since using itunes 12. It also will not sync all my pics and video's with my iPad 4  either. Removed and re-installed iTunes with no improvement. It stops at last step saying waiting for items to copy and just sits there.  The iPad finish the sync, but some video's are missing.

  • Officejet Pro 8600 Plus paper tray will not go all the way in so cannot print

    Have loved this printer for almost two years but suddenly the drawer which holds the paper will not go all the way in so cannot print.  Took it to a so-called tech at Office Depot who said that because you cannot open/remove the tray, there is no way to see what is jamming it.  Any thoughts?  My first call for tech support was answered by a tech here in the US who said they had experience with it and it could be fixed and asked dme to call again when I was back in the office and at the printer.  The next four calls were answered overseas and they all had had no experience with this problem.

    Hi maebun,
    Welcome to the hp support forums.
    Thanks for your query.
    Please find the link for fixing paper jam. 
    Hope this helps
    I am a HP Employee.
    The opinions expressed here are my personal opinions, not of HP.
    Make it easier for other people to find solutions, by marking an answer “Accept as Solution” if it solves your problem.
    Click on Thumbs up if my post helped you.

  • Itunes will not load all photos

    Suddenly, my Ipad 3 will not load all of the photos that are in a folder onto the iPad into an album.  I have a folder of 58 images and iTunes recognizes that.  When I sync to add the images, itunes loads only 53 of them.  I have repeatedly attempted to sync and it keeps loading the 53 images.  I took the 5 images from the folder and put them in a new folder and Itunes will not load them.  These images are JPEG's and are not any larger of a file than the ones that did load.  I have even restored my Ipad and it still only will load the 53 images.
    I had this same problem the other day where out of 96 images, it would only load 76.  I have plenty of HD space available.  I am at my wits end.  All software is up to date now and still same issues so not sure what the problem is.  I've deleted the iPod Cache folders, have a fresh install of ITunes and still no luck.  HELP!

    You removed the cache from iPhoto - correct?
    MJ

  • In safari a lot web pages will not scroll all the way down

    a lot of web pages in safari will not scoll all the way to the bottom what do I do

    You can try to resetting Safari. Tap Settings, then tap Safari on the left side. Then on the right side - tap clear history, clear cookies, clear cache. Clear all three. Reboot your iPad. Hold down on the sleep button at the top until the red slider appears and slide to power off. Then hold down on the sleep button until the Apple logo appears and the iPad will restart. Launch Safari and see if helped.
    If you are trying to scroll through an area of text and can't scroll to the bottom try a two finger scroll.

Maybe you are looking for

  • Help.. before i throw this thing out the window

    I've had my macbook pro for about 2 weeks now... at first the internet was running insanely fast; you know, as it should have been. Lately, however, when i try to get online the pages wont even load, and when they do load, they load half-assed. Half

  • Create a listing of reports with last run date and # of times run

    Hi All, I want to create a listing of reports with last run date and number of times report is run in the past 18 months. If anybody can please help me with the query for the same. Regards, Sk Edited by: user10989244 on Aug 18, 2009 7:12 AM

  • Oracle returns empty table

    Hello All,I used INCBUILDIM to create dimension, Oracle sometime returns an empty table and IFERROR can't detect the error, end up the dimension is missing.Does anyboby know how to check for this kind of error?

  • How can i use laptop/pc's internet acess to iphone 4s

    how can i use laptop/pc's internet acess to iphone 4s?

  • Changing the visibility of a layer

    Hello, I just have a quick question. I'm using Adobe Acrobat version 10.1.4. I exported a layered PDF from AutoDesk Civil 3D 2012. To get all the layers I want to share, I have to have them turned on in AutoDesk in order for them to be exported. Howe