Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #32266

Re: Eclipse RCP application: USB print hang

From Martin Gregorie <martin@address-in-sig.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Eclipse RCP application: USB print hang
Date 2015-08-06 21:35 +0000
Organization A noiseless patient Spider
Message-ID <mq0jvh$ldg$1@dont-email.me> (permalink)
References <mq0fh1$dht$1@Gaia.teknon.de>

Show all headers | View raw


On Thu, 06 Aug 2015 20:19:45 +0000, Volker Borchert wrote:

> Power on printer, wait until in powersave.
> Start virtual Windows.
> Start RCP application.
> Try to let the application print something.
> Printing hangs in native StartDocW GDI API function.
> Printing works after opening the printer setup/properties dialog,
>          even if cancelled immediately.
> Printing from e.g. WordPad instead, works.
>
I don't use virtualbox, so apologies in advance if any of these are 
stupid suggestions, but these are the things I'd look at:

- How does virtualbox connect to the printer, i.e.
  - is it talking direct to the printer via a network interface?
  - if its connecting via the Linux spooler, is it using IPP or
    is it piping the printfile through lpr?

- What happens if you don't wait for the printer to go into powersave? 

- does printing from Wordpad still work if that's the first thing you
  do after starting Windows in virtualbox?

- does the problem occur if you print from a Java 1.8 app running
  directly under Linux?

I use an old LaserJet 5, with a parallel port and an Emulex NETjet card 
listening on port 2501 and connected to a Linux box running Fedora 22 via 
a parallel port. This works without any problems.

However, talking to the LJ5 from this laptop (also running Fedora 22) 
doesn't currently work regardless of whether I try to use the NetJet card 
or to send printfiles via the other host's spooler. In the past both 
methods worked from this laptop, but since upgrading to F22 it hasn't 
worked and I haven't made the time / got annoyed enough to give it some 
attention because SCPing the file to other host and printing from there 
does the job.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Eclipse RCP application: USB print hang v_borchert@despammed.com (Volker Borchert) - 2015-08-06 20:19 +0000
  Re: Eclipse RCP application: USB print hang Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-06 21:35 +0000
    Re: Eclipse RCP application: USB print hang v_borchert@despammed.com (Volker Borchert) - 2015-08-07 04:10 +0000
      Re: Eclipse RCP application: USB print hang Martin Gregorie <martin@address-in-sig.invalid> - 2015-08-07 10:00 +0000
      Re: Eclipse RCP application: USB print hang Jeff Higgins <jeff@invalid.invalid> - 2015-08-07 09:01 -0400
  Workaround found (was: Re: Eclipse RCP application: USB print hang) v_borchert@despammed.com (Volker Borchert) - 2015-08-07 22:30 +0000
    Re: Workaround found (was: Re: Eclipse RCP application: USB print hang) Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2015-08-08 14:05 +0000

csiph-web