Printing Sometimes Works, Sometimes Doesn't

I have the most unusual problem, and I'm not expecting any answers. I was wondering, however, if anyone had any ideas about figuring this thing out.
On one computer network (mainly running 1.4.x with Windows 2000) I can print my JComponent absolutely normally with expected results. On another system (NT 1.4.x), the print dialog sometimes comes up/sometimes not. For some, it prints. For others, nothing doing.
I'm mystified and would appreciate any help and ideas. Stuff that breaks some of the time is hard to debug.
Here's the code that handles the printing:
public class PrinterObj {
private static PrinterJob printer = PrinterJob.getPrinterJob();
private static PageFormat page = printer.defaultPage();
public static void pageSetup()
          page = printer.pageDialog(page);
public static void printComponent(JComponent c)
//PrintWrapper is one of our classes
          printer.setPrintable(new PrintWrapper(c), page);
          boolean testbool = printer.printDialog();
          System.out.println("Test the print dialog: " + testbool);
          if(testbool)
          try{
                    printer.print();
          }catch(PrinterException pe){
                    System.out.println(pe.toString());

If anyone wants to know the cause of this problem, here it is:
Java can't print to one of the printers. There are multiple printers on the network, all the same exact model. For whatever reason, one of those printers does not work. It's very weird.
If the bad printer is set as the default printer, the print dialog box won't even show up.
Very weird.

Similar Messages

  • Compositing in KDE sometimes doesn't work on Nvidia hardware

    I tried searching whether similar issue was already discussed on the forums, but didn't find anything; sorry if I missed it.
    I have two different systems with Nvidia hardware, one with a 9500M GS, and another one with a GTX 580. After updating to KDE 4.11 (as far as I remember, this issue started appearing at about that time; now it still happens with KDE 4.12) compositing in KDE sometimes doesn't work. By "sometimes" I mean that once in a while I boot the computer and compositing isn't working, then I reboot and everything is fine. Sometimes hitting Alt+Shift+F12 twice helps, but sometimes it doesn't. I didn't gather statistics, but it seems to happen on the 9500M GS system more often than on the GTX580 one. On the former it happens once in about three boots, while on the latter it's something like once per ten boots, but I may be wrong.
    I use proprietary driver, since I sometimes use the computer for gaming, and the opensource driver is still not quite up to the task. Btw, games work fine even when compositing doesn't work.
    I haven't noticed any similar issue on my other machine with Intel graphics.
    If anyone could help in identifying the cause, I would be much obliged, because I have no idea where to start searching.

    Good guess but even if I miss the word or any text, in normal use it still brings up the menu (with options limited to 'zoom in' and 'zoom out'). When I'm not getting the menu for word correction I'm not getting any menu in the body of the document at all - it's strange!

  • A little uncanny situation since release of FIREFOX RC is that 'Reload option which used to come under view option is no longer visible,but appears as an icon in toolbar...which sometimes doesn't work'. Please try to fix it if its only my problem

    I have been using FIREFOX since a long time back and am quite happy with FIREFOX 4.
    But a little uncanny situation since release of FIREFOX RC is that 'Reload which used to come under view option is no longer visible,but appears as an icon(button) in toolbar...which sometimes doesn't work(becomes blur and sometimes firefox hangs)'.
    Please try to fix it if its only my problem or include it in next release.Thanks!

    I have been using FIREFOX since a long time back and am quite happy with FIREFOX 4.
    But a little uncanny situation since release of FIREFOX RC is that 'Reload which used to come under view option is no longer visible,but appears as an icon(button) in toolbar...which sometimes doesn't work(becomes blur and sometimes firefox hangs)'.
    Please try to fix it if its only my problem or include it in next release.Thanks!

  • Unload All Modules sometimes doesn't work with LabVIEW

    TestStand's File >> Unload All Modules (and its RunState.Engine.UnloadAllModules() function) sometimes works and sometimes doesn't (with LabVIEW). When it doesn't, I have to quit LabVIEW to make TestStand unload LabVIEW VIs, otherwise I can't edit them.
    Is there an "Unload All Modules" command that works all the time?

    Hm, i assume that you have callbacks defined which do call those modules. Possible callbacks to look first are: SequenceFileLoad/Unload, FrontEndCallback.
    Another possible reason is that there are components running in the LV RTE (runtime engine) calling into the VIs you try to debug/modify in the development environment.
    Can you pinpoint the "lock" to specific sequences/modules? Do they lock only after specific sequences/modules have been executed?
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • The home button of my ipt4g sometimes doesn't work

    the home button of my ipt4g sometimes doesn't work what should i do???

    I have the same proble. I have heard multiple accounts of people going to the apple store with this problem and apple gives tham a brand new ipod.

  • Finally got round to buying an iPhone 4, really excellent to start with. The sharing of music from my Mac Mini was excellent. ios6 update has ruined all that! The artist view miss's out most of my music and the sharing sometimes doesn't work at all!

    Finally got round to buying an iPhone 4, really excellent to start with. The sharing of music from my Mac Mini was excellent. ios6 update has ruined all that! The artist view miss's out most of my music and the sharing sometimes doesn't work at all!
    How do I get this feature working again? I am reluctant to move to iTunes 10.7 because I don't trust Apple at the moment.

    My suggestion:
    1) Always using MAC AIR with the power plug in.
    2)Don' let the power level of battory fall under 30% percentage.
    3)If the MAC can't be recharged now, just let it be with power plugged, WAIT...

  • Headphone jack sometimes doesn't work for my ipad air.

    Headphone jack sometimes doesn't work for my ipad air, when watching a video or listening to music the audio in the ear or head phones cuts off. It's definitely not the ear phones it's the ipad because I've tried too many different headphones. It's been 7 months that I've bought it from the apple store so would you be able to fix it. Is there a  fee?

    Hello SungSungE,
    please check out this thread: https://discussions.apple.com/thread/6288240
    It doesn't perfectly answer your question but you will see that I have an answer from Apple regarding this problem.
    regards, Elberto

  • USB Printer Sometimes Not Recognized on Reboot into OS X from Windows XP

    Thanks in advance for any help. Here's the situation:
    Everything works fine in OS X (10.5.2). In particular I have a USB laser printer that works find (Brother HL 2040).
    Then I boot via Boot Camp into Windows XP and play a few games. Then I reboot out of XP and back into OS X. At that point sometimes the printer works and sometimes it doesn't. When it doesn't work what happens is that I will send a page to be printed, but nothing happens. Then when I shut down (or restart), the page will print.
    I'd like to be able to print without having to shut down the computer - any help would be appreciated!

    Though a different USB device (myTV.PVR) I have somewhat similar problem in Leopard, Windows (Vista). If I try to watch TV in OS (x) after having used it in (y) it will not work. Solution for TV is to pull device's power or USB out & put it back. Seems like the driver sees something foreign to it which is
    re set by re plug.

  • My Macbook sometimes doesn't connect to my Wireless N network

    I had my topcase replaced by apple a few weeks ago. Since then I've noticed my macbook SOMETIMES doesn't connect to my wireless N network (from my AEBS running on 5.8ghz frequency).
    It's strange because most of the time it finds the network fine. But sometimes when i open the macbook up (awakes from sleep) it doesn't see the network (it's not available from the list of available networks). If i try to connect manually to the network when this happens i get a "connection timeout" message. If i turn off my airport connection off and then on with the macbook (thru the menu bar) it sometimes finds the N network. Sometimes that doesn't work, and i have to put the macbook to sleep and hope it finds the network when it awakes. Sometimes that solves the problem, but i may have to try it 3 or 4 times.
    If i switch my AEBS to a mixed signal (supporting G) i don't have these problems, but i shouldn't have to do that, and i'm sacrificing wireless speed if i do that. I have a stable connection when it DOES find the network (it won't drop out and will be at full strength) but as soon as i put it to sleep i run the risk it may not find the network when it awakes.
    As i said before i didn't notice this problem before I sent in the macbook to have the topcase repaired - is it possible the airport card was damaged? I was only running a N wireless network a week prior to submitting the macbook for repair, so i'm not positive that's it either.

    There's a reason why some are less than energetic in answering your question: the "pinwheel of death" could mean a lot of things. To start off, you will need to use various utilities to coax your MBP into functionality:
    1. Perform a Permisions Repair, and also Repair your disk on Disk Utilities. If this doesn't work, proceed to the next step.
    2. Using a free utility like Onyx, clean your caches.
    3. Using the free Kext Wizard, make sure your files are consistent and accurate.
    4. Use OpenDNS by connecting to this link:
    https://discussions.apple.com/thread/2478039?start=0&tstart=0
    OpenDNS is a simple way of making your online experience faster and easier.
    If these steps were successful, take the time to post here; others will profit from your experience. If you still don't have the answer, post...and we'll find the solution!

  • Sometime doesn't

    Good Morning Everyone,
    parent, child
    master, detail
    Primary, Foreign
    Attribute, column
    Entity, Table, relation
    Tuple, row, record
    Create, delete, alter, truncate,
    tables with Join - outer, inter, cross,
    Cartesian product
    nested queries
    select, From, Where, And
    Sometime works but sometime doesn't.
    Can I get a informative book, links, any?
    Thanks,
    NY

    Hi Boneist,
    I think you need to feed us with tables (create table ...; insert into ...) else nobody can help you because we do not know what your table structure is.
    If you want to learn how to write hierarchical queries, then have a look at the SQL references (links posted earlier), it pretty good explained in the Oracle docs.
    For specific cases somebody will help here if there is enough detailed information.
    best regards,
    David.

  • GNOME desktop sometimes doesn't appear

    When I start computer and load GNOME through GDM, GNOME desktop sometimes doesn't appear. Both panels appear but wallpaper and icons don't appear, only gray background. I should press Ctrl+Alt+Backspace to reload X Window and after it desktop appears. How to fix this problem?

    I removed KDE 4.1 several days ago, installed GDM and wrote it in DAEMONS list to launch in /etc/rc.conf. On my work computer I have "clean" GNOME and never installed KDE there. And on my work everything is ok. Maybe I still have any remains of KDE on my home computer which make this problem?

  • The answer helped me.But still, what are the settings that I have to change for the behavior of the mouse pointer towards finder? Also the mouse pointer sometimes  doesn't accept my command and start clicking itself.what is the problem and how to fix it?

    The answer helped me.But still, what are the settings that I have to change for the behavior of the mouse pointer towards finder? Also the mouse pointer sometimes  doesn't accept my command and start clicking itself.what is the problem and how to fix it?

    If the mouse clicks something on its own then it looks like you have a hardware problem with the trackpad or possibly the battery that is right underneath the trackpad.
    I have read that the battery can swell and that would put pressure on the trackpad.

  • I got my iPhone 5 s almost a month ago and updated its iOS but from there on I started having problems, the ph sometimes doesn't respond at all to the touch or apps start to open on their own very rapidly and this continues till it can go no further!

    I got my iPhone 5 almost a month ago and updated its iOS but from there on I started having problems, the ph sometimes doesn't respond at all to the touch or apps start to open on their own very rapidly and this continues till it can go no further!

    First steps in troubleshooting:
    Close all open apps by double-tapping the home button, then swiping up and off the screen with the app window (not the smaller icon).
    Then reset: hold down the home button along with the sleep/wake button until you see the apple, then let go. (No data loss)

  • My computer sometimes doesn't send out my e-mails

    My MacBook sometimes doesn't send out my e-mails.  I need to send them directly from the server to be certain they go out.  Random recipients and random e-mails.

    Hi CamarilloJuls,
    Welcome to Apple Support Communities.
    It sounds like there is an intermittent issue sending emails from your Mac. The article linked below provides a lot of great information and tips that should resolve most issues related to sending email on a Mac.
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/TS3276
    I hope this helps.
    -Jason

  • Upgraded to IOS 7 and phone sometimes rings and sometimes doesn't

    Upgraded to IOS 7 and phone sometimes rings and sometimes doesn't.  What's going on?  I've missed several calls but my phones been sitting right in front of me (Yes, the sound switch is turned on on the side)
    What's going on?  Its Random!
    John

    Your phone might be on do not disturb mood... So, when it's locked, you receive no calls. If you see a crescent at the top of your screen, go to setting, do not disturb, and turn off the manual
    Hope that help

  • IPad 2 / My screen sometimes doesn't go to sleep.

    I have an iPad 2.  Ever since I updated to iOS 7 my screen sometimes doesn't sleep.  I am using iOS 7.0.4.  The auto lock setting is set at 2 minutes.

    Alfred DeRose wrote:
    Somr Apps are designed to prevent sleeping. Do you have apps open or is the iPad showing its springboad pages with app icons?
    I usually do notice this when a specific application is running however it never used to cause this problem.  I have all available updates for that application.

Maybe you are looking for

  • Help!  iTunes has completely disappeared off my iPhone 4s, yes the program, not just the app, and all my music has gone!  How can I get this back?  Thanks!!

    Help!  iTunes has completely disappeared off my iPhone 4s.  Yes the Program, not just the app!  All my music has just vanished!  How do I get this back!! (p.s. I do suspect a deletion has occurred courtesy of my 4 year old nephew, some other stuff ha

  • Cannot access security & privacy

    hey all please can you help me with this 'all of a sudden" problem that i have encountered that is driving me absolutely insane. i am trying to access the security and privacy setting under the system preferences tab but when i click on the icon a me

  • Got a new computer without a CD drive, can't move my CS6.

    I recently got a computer without an optical drive, and the way I set up CS6 previously was using the disc. I've tried copying the files over a flash drive but it just says uninstall and reinstall. I've tried downloading trials from CC but they finis

  • Small question

    i have a question related to Java Native Interface ...i.e lets us suppose v r assembling java n c code ..in java v hv to declare as native n those methods r implemented in c lang ..now my question here is can c lang only contains those Native methods

  • Prompts and Multi-Select Picklists

    Hi all, I'm trying to find a neat way of prompting and doing a "contains any" filter a report i have on a multi select picklist within accounts. e.g. Field can have values A, B, C Account 1: A Account 2: A, B Account 3: B, C Account 4: A, C Account 5