PrinterJob.lookupPrintServices long wait

Hi everyone,
I have an applet which load all printers to choose one. In some case, method PrintService[] service = PrinterJob.lookupPrintServices(); take 5 minutes to return a result !
I've just got one local printer... is anyone have a solution ?
(same problem with jre 5 or 6)
Thanks a lot

I ordered an Extreme Base Station and custom configured MacPro with X1900 XT, BT and Airport card both on 7 August... the Base Station shipped 9 August and just arrived, and the MacPro shipped on 14-August as is still in transit (takes a few days longer to get to Canada).
Peter O.
Message was edited by: PeterO2

Similar Messages

  • PrinterJob.lookupPrintServices() returns no PrintServices on Solaris 10

    I am using a third-party PDF Java print API that uses the Java Print API. The API is used in a WebLogic 10.2 server runtime environment. My problem is that after the server has been running for a day or so, the API is no longer able to see the printers that are set up on a local print server. Issuing lpstat -a from the command line returns all of the printers as does a simple java app that I run from the command line. I have written a simple JSP page to dump out the available PrintServices so I can check to see what's available in the server runtime environment and after a day or so there are none.
    The application runs in a cluster and the PrintServices show up just fine on one of the nodes, but the second node is the one that always has a problem. It's not making a lot of sense at this point but any insight into what would cause PrintServices to suddenly become unnoticed by the Java Print API in runtime would be very helpful!
    Here is the code from the JSP that checks for the PrintServices:
    Available Printers:<br/>
    *<ul>*
    *<%*
    *// List printers*
    javax.print.PrintService [] ps = java.awt.print.PrinterJob.lookupPrintServices();
    for (int count = 0; count < ps.length; ++count)
    *%>*
    *<li><b><%=ps [count].getName()%></b> (PrintService class: <%=ps [count].getClass().getName()%>)</li>*
    *<%*
    *%>*
    *</ul>*

    Thanks fro the reply.
    The system is a T2000(sparc). This server provides CDE desktop to 200s users and is running Citrix Presentation Server. I guess Citirx has its own X server? because I found the xsun process when I checked another sparc server not running Citrix Presentation Server:
    # ps -ef|grep -i xsun |grep -v grep
    root 682 671 1 Nov 27 ? 2:13 /usr/openwin/bin/Xsun :0 -defdepth 24 -nobanner -auth /var/dt/A:0-xNa4tb
    My another question is why the:
    /var/svc/manifest/application/x11/x11-server.xml
    is not imported to SMF like xfs is?
    regards,
    Alex

  • My external HD of 1TB is not being recognized by the iMac and when after a long waiting period it does, the whole computer becomes extremely slow. Do I need any particular add-on to make it workable?

    My external HD of 1TB is not being recognized by the iMac and when after a long waiting period it does, the whole computer becomes extremely slow. Do I need any particular add-on to make it workable?
    Before I updated to OS X Mavericks I was using another external disk that was getting disconnected ocasionally so I bought a new ADATA HD710 portable 1TB Drive and moved the files to it. This new drive which is supposed to be OS X Mavericks compatible takes minutes to show the files especially when opening second and third level folders which has made mu iMac unusable
    What should I do?

    Your Mac should be able to recognize many different types of drives (including Windows-formatted drives) immediately for Reading, provided they are in good working condition and not damaged. There should be no need to transfer to a different type of drive.
    If there is no recognition of this drive, see if it can be seen in Disk Utility.
    If your aim is to transfer the data on it DO NOT use ERASE or PARTITION as these will completely erase all the information on the Drive.
    If the drive is present while the Mac sleeps, it is likely to drop out and not be seen any longer, especially if it is a USB-powered drive.

  • Re: HP 15-g020ca long wait time to reach lock screen windows 8

    i have the same issue as this guy but can't seem to figure it out.
    http://answers.microsoft.com/en-us/windows/forum/w​indows8_1-performance/45-seconds-delay-to-reach-lo​...
    long wait time when i open the lid of my notebook. it says locking for a good minute or more, if i do win+L to manually lock it , it takes the same amount of time. can anyone help!! thanks

    DSORacing wrote:
    I have same problem but in a 15-j040us. I made everything that you offer as solution but it cannot upgrade to Windows 8.1.  I read this post from another user with same graphics adapter that my laptop has and it looks like a solution, but at the same time, looks quite dangerous to make. Here is the post. http://208.74.204.203/t5/Notebook-Operating-Systems-and-Software/Updating-to-WIN-8-1-Fix-to-black-sc... Let me know if yu can help with this issue as soon as possible.
    Thanks!
    This  worked for me after 7 attempts with all kind of solutions on different forums. HP Envy 15 Notebook - Intel HD 4000, Nvidia 740
    Locate the F11 key and start tapping it as soon as you turn on the system.
    Stop tapping once you reach the recovery manager screen.
    Click Troubleshoot .
    On the Troubleshoot screen, click Recovery Manager .
    On the OS selection screen, click Windows 8 . Recovery Manager opens.
    Under I need immediate help , click Minimized Image Recovery .
    When Recovery Manager prompts you to back up your files, select a backup option.
    If you have already backed up personal files or you do not want to back up personal files, select Recover without backing up your files , then click Next . Continue to the next step.
    Follow the on screen options and complete the system recovery.
    After the system recovery is complete, click Finish to restart the computer. Complete the setup screens and wait until the computer finishes the setup
    -Then, make sure to install all updates via Windows Update. Do NOT install any drivers for graphics etc.
    -I did NOT do any updates with HP Assistant
    -Run the update via Wired network, disable WiFi and Bluetooth
    -I did disable all things in Autostart. Could be reached via Win8 taskmanager
    -Ran Microsoft Compability checker
    Update went fine this time.
    Some of my steps might not be needed. And of course if MS compbility checker says a driver is not compatible you will have to update it.
    Hopefully it will get you there.

  • Longer wait to get activated with BT ?

    Hi, my dads cabinet recently got enabled and I played an order for him around 2 weeks ago and it was going to be around 4th december to get activated and set up! he was just going for infinity 1 package the only thing he was migrating from sky broadband but i doubt that would have such an impact?
    well one of my mates in the same area ordered the first package through sky and it only took him 2 weeks to get activated an engineer came out yesterday and everything is fine
    so why the long wait going with BT ?

    The migration probably had some impact - it can be 15 days just for an adsl swop. Did you opt for the earliest slot available?
    It is probably just luck dependent on availability at the time of ordering , a cancellation may have just created an earlier date.

  • My Photoshop and Bridge CS6 is getting spastic ( long waits when I back out of a folder, etc. ) Is it still OK to deactivate and reinstall?

    My Photoshop and Bridge CS6 is getting spastic ( long waits when I back out of a folder, etc. ) Is it still OK to deactivate and reinstall?

    First, have you tried resetting your Preferences? It does fix a lot of problems.
    Photoshop:
    If you need a quick and dirty way to restore your preferences, here's a way you can do it using a keyboard shortcut on launch:
    Windows - CTRL-SHIFT-ALT immediately after you double-click the PS icon.
    Macintosh - CMD-SHIFT-OPTION immediately after you double-click the PS icon.
    Bridge:
    Start Adobe Bridge and immediately press Ctrl+Alt+Shift (Windows) or Command+Option+Shift (Mac OS) until the Reset Settings dialog box appears. Select all three options--Reset Preferences, Reset Standard Workspaces, and Purge Entire Thumbnail Cache--and then click OK.

  • If the flash object is placed in 0px div, the creationComplete event is fired after a long wait time

    <Problem>
    My requirement is to hide flash object on browser. However, If the flash object is placed in 0px div, the creationComplete event is fired after a long wait time. Is this a bug of Flex? (or Flash Player?)
    <Sample Code>
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
              initialize="app_initialize(event);" creationComplete="app_creationComplete(event);" >
    <mx:Script>
            <![CDATA[
            import mx.events.FlexEvent;
        private function app_initialize(evt:mx.events.FlexEvent):void
                  ExternalInterface.call("alert", "application initialize.");
        private function app_creationComplete(evt:mx.events.FlexEvent):void
                  ExternalInterface.call("alert", "application creation complete.");
        private function button_creationComplete(evt:mx.events.FlexEvent):void
                  ExternalInterface.call("alert", "button creation complete.");
            ]]>
        </mx:Script>
        <mx:Button id="testButton"  label="button"  creationComplete="button_creationComplete(event);"/>
    </mx:Application>
    <Steps to reproduce>
    1) Dowload the following samples
    MySwf-src.zip
    https://files.acrobat.com/a/preview/c6b7a191-c6c4-486f-9345-e2b5c21a4c0b
    TestSwf.zip
    https://files.acrobat.com/a/preview/98e613e1-63b1-4b2f-93f3-f6e4f4a27f24
    2) Unzip TestSwf.zip.
    3) Copy MySwf.swf, TestInvisible.html, and TestVisible.html to "c:\inetpub\wwwroot\". (Need to install the IIS.)
    4) Visit "http://localhost/TestVisible.html" via IE. notice the creationComplete event fired after initialize event immediately.  -- Correct
    5) Visit "http://localhost/TestInvisible.html" via IE. notice the creationComplete event fired a long time after initialize event.  -- Incorrect
    <Environment>
    Win8.1x64+IIS8.5+IE11+Flash player(13.0.0.182)
    <Note>
    If the flash object is placed in 1px or larger div, the creationComplete event is fired immediately.
    The problem occurs with other browsers(IE9,IE10,FF,Chrome) too.

    Thank you for your response. The computers are indeed running Flash Pro CC 13.1.0.226. I tried to generate a minidump file on four different computers where Flash Pro hung, but was not able to do so on any of them as Flash Pro makes the entire system unresponsive. I get the spinning circle cursor and then the GUI of all apps greys out and fails to update. I don't actually get any sort of error message; everything simply stops responding.
    I was probably unclear above; even if I can alt-tab I can't really interact with any other programs once Flash Pro hangs beyond one or two mouse clicks. So on some computers I could right-click on the process in Process Explorer and choose to create a minidump, which then froze, or I might right-click on the process and have it immediatly freeze. I've experienced about two dozen crashes and I've never been able to really use another program or even kill the Flash process in task manager. I also have to power off the computer by holding down the power button, since while I might be able to open the Start menu I can't reach the point of being able to shut it down without it freezing.
    From what I was able to see in Process Explorer, Flash Pro was using <1% CPU and 120M private / 170M working memory.

  • PrinterJob.lookupPrintServices() issues

    We deploy and run JBoss 5.1.0GA on windows 2003.The JBoss is running as window service.
    On the machine, we configure two printers:
    1. network printer
    2. a shared printer on another Window XP machine.
    PrintService[] printServices = PrinterJob.lookupPrintServices();
    The result did not include the shared printer, but the network printer only.
    Outside jboss on the same Windows 2003 machine,
    PrinterJob.lookupPrintServices()
    returns the two printers correctly.
    We post a thread on JBoss forum:
    http://community.jboss.org/message/8748#8748
    and got a reply: JBoss does nothing with printing.
    Thanks for help.
    Dave

    If you are using Linux (and probably other unices) you have to grant read/write-Permissions to /tmp in .java.policy.
    line:
    permission java.io.FilePermission "/tmp/*", "read,write";
    Wolfgang

  • How to handle long Waits in BPEL?

    Hi,
    We are having a requirement to include a wait of 30 mins in BPEL process. But if this is done, the calling process will time out.
    How do we handle such long waits? If we increase the transaction time out period to 30 min, will it be a performance issue?

    Hi,
    I need to call a external process that could take along time to be resolved. Basically this external process could require human procesess.
    When I call the external process, this one decides if the BPELProces must wait for a future response or could continue without wait.
    Some one has a BPEL example for this kind of process ?
    This an example of my process (The search step is complex process to evaluate and I could not call twice to the external process (cost issues))
    1. BPEL calls external process
    2. external process searchs into the stock for the required product
    2.1 if the required product exists then the external process wait for a human task to be resolved into its internal WorkFlow application. Then BPEL must wait for the future answer
    2.2 if the required product does not exist then the external Process response to BPEL with No-Stock
    Thanks In Advanced
    Edited by: Paúl Pasquel on Sep 15, 2009 10:49 AM
    Edited by: Paúl Pasquel on Sep 15, 2009 10:59 AM

  • MSI P4N SLI, Long wait before BIOS post? (nForce 4 SLI Intel)

    Does anyone else have a P4N SLI? Or maybe you might just know anyway...
    Everytime I boot the PC, before the BIOS POST even starts theres a long wait (insanely long, compared to other PCs and mobos I've had and used) around 45 sec to a minute, where nothing is shown on the monitor and the DVD and CD drives are constantly read (even though theres nothing inside em). Then the BIOS post comes and the rest of the whole process is fast as I could wish for....
    Is that normal with the P4N SLI or maybe even with nForce motherboards?
    If not, any ideas what it could be? (I tried stripping my pc down to barebones, minimal RAM, no extra cards, 1 hdd and 1 cd drive (and even without the cd drive) yet still it takes the same amount of time...)
    Please help...
    Thanks in advance.
    my specs are as follows:
    Intel P4 w/HT 3.0 Ghz LGA775 Land, 1 MB L2 Cache (530J)
    Creative SoundBlaster Audigy 2 ZS
    3 GB DDR2 @ 533 Mhz
    3 HDDs (1 WD Caviar 7200 RPM SATA I, 1 Maxtor 7200 RPM SATA I/II, 1 WD Caviar SE 7200 RPM SATA I/II)
    GIGABYTE 3DAurora Case (this case has 3 x 120mm fans)
    GIGABYTE 3D Cooler Pro Fan
    2 SONY Optical Drives (1 DVD/CD-RW, 1 DVD+/-RW)
    MSI P4N SLI mobo
    2 x XFX 7900 GTs
    Thermaltake Toughpower 600W PSU

    Quote
    Do you mean
    1GB, 512MB, 1GB, 512MB?
    Sorry, ya thats what i meant, 2 GB was a mistake. Its 1 GB, 512, 1, 512.
    Quote
    As stated before. Remove the 512meg sticks. To run properly, all sticks should be the same. Reason is due to timings and voltages. Also try to up the voltages to the cpu.
    I removed the 512 sticks before, like I said, and I'm just running with the 2 x 1GB sticks, it hasnt had any positive effect on the long wait before POST. The voltage for the RAM is 1.8v right now as according to the BIOS, is that the correct value?
    Did I mention that during this long wait my monitor is in sleep mode, then 1 short beep is heard, the lights on my keyboard reset as is usual on any PC and the BIOS does its POST (if i pause after the keyboard lights, its usually auto-detecting my HDDs, and optical drives). It's strange because during that long wait nothing is happening other than my cd drive and dvd drive intermittently flashing and my HDD light is constantly on....
    The strange thing is this same setup was working perfectly fine on my old Intel D915GEV motherboard... and it also runs perfectly fine on this mobo too, once you get past the 1 minute+ waiting time...

  • HT3964 programs hanging; long wait time

    programs hanging; long wait time for 'pie' to clear; reset the smc and still not functioning.  pls. help.

    Hello, see how many of these you can answer...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab of Activity Monitor, are there a lot of Pageouts?
    https://discussions.apple.com/servlet/JiveServlet/showImage/2-18666790-125104/AM Pageouts.jpg
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on,IPmyriadLogin Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • Long wait time for /sap/webcuif/uif_callback

    STAD shows following record indicating a very long wait time. Seems the application /sap/webcuif/uif_callback mentioned in the record is a CRM WebClient UI framework related service defined in transaction SICF. I did not observe such long wait time on other HTTP requests and applications. Why could this happen? How to analyze further? The system is CRM703 SP03.
    CPU time                       0 ms
    RFC+CPIC time                  0 ms
    Total time in workprocs        3 ms
       Response time           49.658 ms
    Wait for work process     49.655 ms
    Processing time                2 ms
    Load time                      0 ms
    Generating time                0 ms
    Roll (in+wait) time            0 ms
    Database request time          0 ms
    Enqueue time                   0 ms
    Number      Roll ins            1
                 Roll outs           1
                 Enqueues            0
    Load time   Program             0  ms
                 Screen              0  ms
                 CUA interf.         0  ms
    Roll time   Out                 0  ms
                 In                  0  ms
                 Wait                0  ms
    Frontend    No.roundtrips       0
                 GUI time            0  ms
                 Net time            0  ms
    Call number                                         6
    Connection-Id          6CAE8B34B9581ED49BF5441DA68E2F2A
    Communication step     Send/Receive
    Timestamp              20141119 131100 CST
    Host                   XXXXXXXXX
    Port                   8001
    Path                   /sap/webcuif/uif_callback
    Status phrase          OK
    Status code              200
    Protocol               HTTP
    Method                 POST
    Virtual host               0
    Calling time                                        2  ms
    Remote exec. time                                   0  ms
    Data send time                                      0  ms
    Data receive time                                   0  ms
    Idle time                                           1  ms
    Sent data                                         107  Bytes
    Received data                                   2.682  Bytes
    Thanks.
    Regards,
    Jason

    Hello Jason,
    the "Wait for work process" means the request was at the dispatcher queue waiting for a work process.
    Probably at that time all  the DIA work processes in that instance were occupied.
    was that the case?
    kind regards,
    Mercedes

  • Incredibly long wait times [SOLVED]

    anyone have any idea why I'd be getting *incredibly* long wait times on my server? [http://omploader.org/vNTRuYg]
    it only seems to affect my wordpress installation, though.. everything else seems ok. I don't get it.
    EDIT: changing the SCRIPT_FILENAME fastcgi_param to $document_root$fastcgi_script_name seemed to help quite a bit.
    Last edited by Stythys (2010-08-03 03:28:11)

    How to get to your VZ Router
    http://192.168.1.1
    User Name: admin (is the default)  or YOURS IF YOU HAVE CHANGED IT
    Password:  Enter the password that is printed next to “Default Password” on the label attached to the bottom of your FIOS Router..or YOURS IF YOU HAVE CHANGED IT
    Now you are at the main menu for your router
    EXPLORE ALL BEFORE CHANGING ANYTHING
    THEN GOT TO Wireless Settings if you want to set up WPA2
    Advanced Security Settings
    Custom Pre-Shared Key….MINE IS 20 CHARACTERS ALPHA NUMERIC      ASCII
    SUGGEST YOU RECORD ANY CHANGES THAT YOU MAKE
    Verizon FIOS Router Manuals
    http://www.verizon.com/support/residential/internet/fiosinternet/networking/user+guides/user+guides....
    Tom
    Freedom Essentials, QIP 7100 1,Bose SOLO TV Sound System,,QIP 7216 P2,M1424WR Rev F, iPad 2 WiFi,iPhone 5,TV SYST INFO Release 1.9.5 Build No. 17.45
    Data Object 39.45

  • Long wait on Startup and Hard Disk not found

    Hi. I don't know if these problems are related to each other, but they both showed up at the same time. I upgraded to Mountain Lion recently, and these appeared after that.
    I'm getting a long wait on startup (before I can select my username), which seems to be related to this timeout in system.log
    Aug 16 13:26:29 point configd[18]: InterfaceNamer: timed out waiting for IOKit to quiesce
    Aug 16 13:26:29 point configd[18]: Busy services :
    Aug 16 13:26:29 point configd[18]:   MacPro3,1 [1, 80583 ms]
    Aug 16 13:26:29 point configd[18]:   MacPro3,1/AppleACPIPlatformExpert [1, 80461 ms]
    Aug 16 13:26:29 point configd[18]:   MacPro3,1/AppleACPIPlatformExpert/PCI0@0 [1, 80436 ms]
    Aug 16 13:26:29 point configd[18]:   MacPro3,1/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI [1, 80427 ms]
    Aug 16 13:26:29 point configd[18]:   MacPro3,1/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2 [1, 80349 ms]
    Aug 16 13:26:29 point configd[18]:   MacPro3,1/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleAHCI [1, 60820 ms]
    Aug 16 13:26:29 point configd[18]:   MacPro3,1/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleAHCI/PRT3@ 3 [1, 60366 ms]
    Aug 16 13:26:29 point configd[18]:   MacPro3,1/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleAHCI/PRT3@ 3/IOAHCIDevice@0 [!matched, 1, 60366 ms]
    Also, hard drive I just bought (in "Bay 4", that is to say, port 3 in internal 0-based numbers) claimed to have been "ejected improperly" during a clone (using Restore from Disk Utility) and now doesn't show up, even in /dev/, although it is visible as "Unknown" in System Information. (It was visible for a few days before this.)

    Hi,
              Follow the steps listed in the below link
    http://h30434.www3.hp.com/t5/Notebook-Operating-Systems-and-Software/quot-Hard-Disk-3F0-BootDevice-n...
    "I work for HP."
    Please click the "White Kudos" star to say thanks for helping.
    Please mark "Accept As Solution" if my help has solved your problem.

  • Long waiting times when going back to the organizer after doing changes of images. Elements 11.

    After doing changes of images and going back to the organizer I have to wait a long time. This was not the case when I used elements 9. I have a lot of images stored around 18000. There are also often long waiting times when I move around in the organizer. Any suggestion?
    Bo Augustsson

    Please see blog: http://psekb.blogspot.in/2013/04/how-to-improve-pses-performance-please.html
    Please let me know if that doesn't helps.
    ~Andromeda

Maybe you are looking for