No print service found

After turning <applet> tag into <object> tag, no print service found. How to figure out the problem? Thanks

Sorry for the other post (really bad mood).
Try to sign the applet or change the java.policy (set allpermission for all code and test it).
In IE you can change msjvm security settings and this will change the way an applet behaves.
SUN jre has a different setup, you either sign the applel or contact the sys admin
of your consumer and ask them to change java.policy for your applet.
Signing applets:
http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
second post and last post for the java class file using doprivileged

Similar Messages

  • Applet starting to give 'No print service found' exception !!

    My applet access the local default printer on the client. We moved to 1.4.2_08 recenlty and i am using the AccessController class inside the applet to access the local printer...It was working the last time we tested but today it started giving this problem ...
    java.lang.RuntimeException: java.io.IOException: Unable to print: java.awt.print.PrinterException: No print service found.
         at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
         at org.apache.crimson.parser.Parser2.parse(Unknown Source)
         at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
         at org.apache.xalan.transformer.TrAXFilter.parse(Unknown Source)
         at org.apache.fop.apps.Driver.render(Driver.java:498)
         at PrintApplet$2.run(PrintApplet.java:215)
         at java.security.AccessController.doPrivileged(Native Method)
         at PrintApplet.callMeSucker(PrintApplet.java:201)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
         at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.com.DispatchImpl.invoke(Unknown Source)

    sun.plugin.javascript.invoke.JSInvoke.invoke(UMethod called from javascript?
    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and reply 18 for the java class file using doprivileged
    http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
    4th post explaining how to set up your own policy with your own keystore
    Still problems?
    A Full trace might help us out:
    http://forum.java.sun.com/thread.jspa?threadID=656028

  • Print service error

    Hello Everyone,
    I am trying to print an image from from a jdialog . It compiles fine but when I try to run, the print dialog box appears from where I can choose a printer. But after that, nothing is printed. I tried to log the error and this is what I found:
    java.awt.print.PrinterException: No print service found
    Can anyone help me with this?
    Thanks,
    Riddhi.

    HI:
    I am trying to print an image from a printDialog . It compiles fine but when I try to run, the print dialog box appears from where I can choose a printer. But after that, nothing is printed. I tried to log the error and this is what I found:
    java.awt.print.PrinterException: No print service found
    The console show me this error :
    java.awt.print.PrinterException: No print service found.
         at sun.print.RasterPrinterJob.print(Unknown Source)
         at sun.print.RasterPrinterJob.print(Unknown Source)
         at PrinterGUI.printMyJob(PrinterGUI.java:303)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
         at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
    I found this fix BUG ID: 5024816 and Related Bugs 4930594 but my problem continue.
    Can anyone help me with this?

  • I can't go further "waiting for Printer Services" on Mac OS X 10.3 can U?

    Evening, I'm a new user, and ocassionally use my iBook.I turned it on but it takes ONE HOUR to get to the prompt Waiting for Printing Services. I was advised to re boot but no success, I guess this all happened after i tried to update latest version.
    I appreciate if you can help!!!

    I am working on a friend's Ibook, I am a PC IT, and know very little about Mac's so please bare with me in helping (1st grade Mac user).
    In my Mac fixing journey, I have used:
    1. Repair Disk = no repairs found to fix
    2. Repair Permissions = stalls and gives a prompt disconnected quit and restart, did that same prompt
    3. Booted in safe mode, gets to the same point "waiting for Printing Services" and then fades out and shuts itself down after a long period.
    4. I have tried to holding down opt, apple, p & r keys to reset "pram" = no go.
    5. Removed the power source and batter to reset computer.
    6. Booted computer connected into the printer and not connected to the computer. Same freeze place.
    After all this being done,and reading alot in here, I purchased disk warrior, it corrected a few errors, rebuilt and rebooted...only to come back to "waiting for Printing Services" and then freeze.
    Anyone have anything else they can help me with, that might get me passed this problem??
    Thanks in Advance for any advice!!
    Sav
    Ibook G4   Mac OS X (10.0.x)  

  • How does one print to enterprise Windows print services in Yosemite? CUPS 2.0 problem?

    One of my co-workers upgraded to Yosemite yesterday and it broke his ability to print to our corporate printing services (which are built around a Windows print server). Obviously, the printer discovery in the System Preferences can't find the Windows print server - that's never worked. However, we had previously been able to add a printer through the CUPS web front-end by adding a Windows printer and specifying an SMB URL in the format:
    smb://DOMAIN;USER:[email protected]/QUEUE-NAME
    ... which worked like a charm in Mavericks. However, Yosemite has upgraded to CUPS 2.0.0 and this no longer seems to work. Print jobs enter the CUPS queue, but authentication fails and they are not accepted by the remote server.
    I've consulted the CUPS 2.0.0 documentation, and there's not really anything helpful there. In fact, there's no mention of SMB / Windows printing at all in the 2.0.0 documentation. Unfortunately our campus print services does not support IPP, LP, LPR, or JetDirect as options -- just Windows printing.
    Does anyone have a suggestion?

    Just finished testing 10.10 printing via a Windows 2008 R2 print share. I also found that when trying to add the printer using CUPS I would get an authentication error. But if I added the printer using the Windows section of the Add printer pane, then I was able to print fine.
    So with you mentioning that using the Windows section of the Add printer window has never worked (which is interesting because it's always worked for me) I want to suggest another approach to adding the printer, still using the Add printer window. With this window open you can right-click on the toolbar and select Customize Toolbar. You can then drag the Advanced icon to the toolbar. Then when you select this, you can set the Type menu to "Windows via spoolss" and then enter the URL as smb://servername/sharename. Select the supporting driver and click Add to complete.
    Then when you select to print for the first time using this printer you will be prompted to authenticate. Enter the account details, set the save to Keychain option and OK to send the print job.
    This worked fine for me and creates the same queue as using the Windows add printer setting. Curious to hear if this gets your co-worker printing again.

  • Printers showing up after Printer Service has been stop or printers deleted

    I started setting up the Print service on one of our Mac OS X.5 Servers.
    Very simple to do.
    At the printer configure and disable all sharing options mDNS, AppleTalk or EtherTalk...
    On the server add the printer via IP address and select the correct PPD. In my case I have a couple of the same printer and wanted to setup a print center in a lab. So I disabled all sharing protocols on the server for each printer and then created a Printer Pool...
    For some reason the particle printers weren't adding correctly to the clients so I deleted the printers and the pool (not sure in what order I did this).
    Now on the client I can still see the Printer Pool and one of the printers from the server even when the service is disabled. The only way they disappear is when I shut the server down or pull it offline.
    I found a website that describes this and how to fix it but it's based on Mac OS X.3.x. There must be more steps on Mac OS X.5?
    http://macos-x-server.com/wiki/index.php?title=Myprint_queues_behave_erratically,_how_do_I_start_over_and_clear_out_the_oldqueues%3F

    I observed the very same behaviour. One more reason not to use Apple's built-in print service.
    Try deleting /System/Library/LaunchDaemons/com.apple.printserviceLPR_mDNSxxxxxxx.plist (where xxxxxxx is the name of the print-queue) and restart the server.
    Regards
    Michael

  • I need to tell Print services to use the 2nd ethernet port

    I need to tell Print services to use the 2nd ethernet port
    Thanks in advance to anyone who can shed some light. My research has led me to a dead-end so far. Running 10.3.9 on my server. XServe Dual 2.3
    I want to have File services and the various other duties pushed through one ethernet port, and print services on the other. I know there is probably a config file to make one simple edit, but I can not find it, or perhaps a "defaults" type command.
    Also, where is this "command-line administration guide" that I keep running across on Apple's support?
    Thanks in advance.
    Matt

    Similar issue here too. Is it the subnet? Basically, I'm having a problem printing to an AirportExpress-served printer. Our network looks like this:
    (From Outside...>>>...to Inside)
    (Public IP) DSL Modem
    ...(10.0.0.x) Airport Express -- HP DesignJet 100 USB -- Airtunes/stereo
    ...(10.0.0.x) NetGear Wireless Router
    ...(10.0.0.x nic 0) Mac OS X Server (192.168.0.x nic1)
    ......(192.168.0.x) Mac OS X client
    ......(192.168.0.x) Mac OS X client
    ......(192.168.0.x) Mac OS X client
    The printer driver does not appear to be able to do IP printing, it assumes a direct USB connection. We can setup the OS X Server with the printer served by the Airport Express, as it is found via Bonjour, and then we share its queue via Server Admin. The problem is that the LAN clients cannot print to this server queue. The printer gets stopped at the server.
    If we turn OFF the OS X Server's firewall, printing works from both the clients and obviously from the Server. I think my question is this: what ports or services need to be turned on in order for the clients to print? There is no clear checkbox for "Bonjour Printer Sharing", and I'm curious what ports this would open, and if it would be safe. I thought it would work because we're pushing the print job up through the firewall, but apparently some response needs to come back through the firewall, and that's what's not happening.
    And to tack onto this, how could we also push iTunes to the Airport Express from the Clients? Assuming the music goes over different ports than the print jobs. ?
    Thanks in advance for any help.

  • Where can i get Third party plugIns of Print Service

    JPS----Java Print Service API has provided the Service
    Provider Interface through which plugins can be created to provide ones own implementation of the PrintServiceLookup........i am unable to locate any such print service Api thru NET..if somebody can tell me where can i find such resources i shall be obliged...........

    I think that if someone has ever found an interesting way to print pdf files from java, especially if this uses the 1.4 JPS API, It would be nice to put it on this forum and not share it via e-mail with some happy-fews (just my 2 cents).
    I have been looking at this for a while and could not find any decent solution (spawning an Acrobat Reader with the /t option does not allow to control enough printer options like 2-sided, n-up, paper trays, ...).
    I think of a solution that would convert the pdf to a plain ps document and stream it with JPS to the printer. I am trying to integrate Ghostscript with my app using JNI to do so. Has anyone used this or another solution to get a PS file out of a pdf document within java?
    Did anybody find or write a java pdf renderer that could be used to implement the Pageable and Printable interfaces?
    Please let me (and us all) know...
    Daniel

  • Java Print Service API in Java Stored Procedure (Linux)

    Hi
    We are running an Oracle 10g database on Linux and I am in the proces of developing a java stored procedure which should utilize the Java Print Service API.
    I have made a simple stored procedure to list all available printers and the DocFlavors they support (se the code below).
    My problem is that no printers are listed. I have made a standalone java app. with the same code and executed it directly on the OS level of the Linux box through the Sun JDK 1.4.2 and here I get two printers.
    Is there any specific configuration I need to do to make it work?
    I am wondering if I need to grant specific authorisations through dbms_java for it to work...?
    Any help is greatlyh appreciated.
    ************************************** CODE BEGIN *************************************
    import javax.print.DocFlavor;
    import javax.print.PrintService;
    import javax.print.PrintServiceLookup;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    public class TestPrintService {
    public TestPrintService() {
    public static void listPrinters() {
    // Get all available printers and their supported DocFlavors
    PrintService[] pservices =
    PrintServiceLookup.lookupPrintServices(null, null);
    System.out.println("Printer services: " + pservices.length);
    for (int i = 0; i < pservices.length; i++) {
    PrintService pservice = pservices;
    System.err.println("Printer: " + pservice);
    DocFlavor[] docFlavors = pservice.getSupportedDocFlavors();
    for (int j = 0; j < docFlavors.length; j++) {
    DocFlavor docFlavor = docFlavors[j];
    System.err.println("DocFlavor " + docFlavor.toString());
    System.err.println();
    ************************************** CODE END *************************************
    Cheers,
    Jacob Vennervald

    Found this on Oracle support:
    Cannot List Available Printers From The Database Using A Java Stored Procedure [ID 372694.1]
    Applies to:
    Oracle Server - Enterprise Edition - Version: 10.1.0.4.0
    This problem can occur on any platform.
    Symptoms
    Able to list available printers on a machine when running Java code outside the Database.
    When running the same Java code inside the Database as a Java Stored Procedure, no printers are found.
    Cause
    Due to security restrictions, this is expected results.
    The Java Docs state:
    "Services which are registered by registerService(PrintService) will not be included in lookup
    results if a security manager is installed and its CheckPrintJobAccess() method denies access."
    Also from the documentation it states:
    "A PrintServiceLookup implementor is recommended to check for the SecurityManager.checkPrintJobAccess() to deny access to untrusted code. Following this recommended policy means that untrusted code may not be able to locate any print services. Downloaded applets are the most common example of untrusted code."
    Using the checkPrintJobAccess(); call, it does produce a Security Exception when run inside the Database but not when run outside. The exception can be viewed within the log file found in the UDUMP directory.
    Solution
    Run the following code to confirm obtaining available __printers can not be done...__
    This is the code to create the Java Stored Procedure
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "ListPrinters" AS
    import javax.print.*;
    public class ListPrinters {
    public static String AvailablePrinters(){
    String strList;
    PrintService[] pservices =PrintServiceLookup.lookupPrintServices(null,null);
    if (pservices.length > 0 )
    strList = pservices[0].getName();
    else
    strList = "No printers found";
    return strList;
    public static String listprinters() throws Exception {
    String listofprinters;
    try {
    SecurityManager sm = System.getSecurityManager();
    if (sm != null) sm.checkPrintJobAccess();
    catch (SecurityException ex) {
    System.err.println("Sorry. Printing is not allowed.");
    listofprinters = AvailablePrinters();
    return listofprinters;
    This is the PL/SQL Wrapper
    CREATE OR REPLACE FUNCTION Get_Printer_Test RETURN VARCHAR2 IS
    LANGUAGE JAVA
    NAME 'ListPrinters.listprinters() return String';
    This executes the code
    SQL> SELECT Get_Printer_Test FROM DUAL;
    GET_PRINTER_TEST
    No printers found
    This is the output found in the trace file in the UDUMP directory
    *** SESSION ID:(144.28) 2006-07-08 09:02:25.518
    Sorry. Printing is not allowed.

  • Unable to start Print Service

    I think am facing the same situation as in this old forum post:
    Error(1042006) Network error [10048]: Unable to connect
    I tried to increase the Heap size of print Server (HyS9FRPrint) in registry to Xmx - 2048 MB and Xmx 2048 MB. After this I'm not able to start the PRINT SERVICE.
    PATH: HKEY_LOCAL_MACHINE\SOFTWARE\Hyperion Solutions\Hyperion Reports\HyS9FRPrint: Xmx2048m and Xms2048m.
    When I modify the Heap setting to Xmx1538m and Xms1024m, I'm able to start the print service.
    Messages recorded in the EVENT viewer is copied below:
    ======================================================================================================================
    The description for Event ID ( 0 ) in Source ( HyS9FRPrint ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Could not initialize the Java Virtual Machine..
    ======================================================================================================================
    Could you please let me know if I have missed any thing in increasing the heap size tp 2048mb. Is there any particular steps for the same?
    Thanks,
    Vinay.

    It is 32bit windows process so maximum you will provably get it to set the JVM to around 1.6GB which you have already found, setting it any bigger and it wont start.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

    Hello,
    I'm getting an error when trying to add Print Services role in Windows 2012 Standard. I'm getting the same error whether I use the GUI or from PowerShell.
    This is a new server install.
    The PowerShell error follows:
    add-windowsfeature : The request to add or remove features on the specified server failed.
    Installation of one or more roles, role services, or features failed.
    The referenced assembly could not be found. Error: 0x80073701
    At line:1 char:1
    + add-windowsfeature print-services
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
        Exception
        + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
       owsFeatureCommand
    Success Restart Needed Exit Code      Feature Result
    False   No             Failed         {}
    Any help with this issue will be greatly appreciated.

    Hi,
    I think you should start with chkdsk C: /F and sfc /scannow.
    Regards.
    Vivian Wang

  • HP P1102W printer crashes print service on 64 bit Windows 7

    My P1102W randomly causes the print service to crash taking support of all other printers with it. I found a way to restart the print service manually, but this is a real pain. Also, printing two sided works on my 64 bit windows machine, but doesn't work from my other PC (a Windows XP HP Laptop).  Single sided printout works from the Windows XP machine most times, but occasionally nothing shows up on the the printer, but there are no error messages.
    Any chance that HP will fix the problems with this printer driver?

    Hello-
    I don't think your printer has network ability.
    Also, remember a click on the Kudos star to the left is a quick "Thanks" for a helpful post.
    Please select the "Accept as Solution" button on the post that best answers your question.
    I appreciate your input !
    Thank You,
    Donald

  • Setting aperture & apple printing services

    Hello
    I am working in Aperture and plan to order a book (my first one !) from Apple printing services and still have questions about monitor calibration... I want to be sure I do the thing properly in order to get the right results :
    - Should I calibrate the monitor using the gamma 1,8 (mac) or gamma 2,2 (most commonly used) ? From what I read, experts and professionals recommends gamma 2,2 but will it works when ordering book from Apple when the mac world is using a 1,8 gamma (or is it taken into account automatically when ordering books ?)
    - Apart from choosing the calibrated profile in System Preferences / Monitors / colors is there anything else to do in Aperture to work on the picture and order a book which photos will look the same ? I presume it would be good to select a proofing profile like Adobe RGB (1998) to work on the photos ? Which one is best to use for ordering books from the apple printing service ?
    Thanks !

    Hello Kenneth,
    Thanks for the quick feedback
    Indeed I had read this article before posting on the forum, and this one get me even more confused. Gamma 2,2 is recommended, but I am wandering if it is the right choice when ordering prints from Apple, when we know that Apple products are using gamma 1,8 ???
    Concerning the proofing profile I found this article : http://www.apple.com/support/photoservices/preparation_tips/ : it is written that when ordering prints, "the image should be in RGB mode, not CMYK." So I would conclude that I should use a RGB setting for the Proofing profile, right ? The thing is I see 2 RGB profile type : Adobe RGB and sRGB. In that case which one to use for proofing in order to check my work before ordering the book ?
    Thanks !

  • XP clients can't see printers made available via Print Services on 10.4.10

    Hi
    Having problems attaching XP clients to an HP4730mfp via Print Services on OS X Server 10.4.10.
    I've enabled SMB and LPR for the required queue but when browsing for the printer on an XP machine, while the print server is listed, no printers are available.
    I have tried enabling Bonjour and running Bonjour for Windows and, while it claimed to have set up correctly, a print job completes successfully on the XPP machine but never arrives at the print server, let alone the printer.
    Any suggestions?

    I do not have guest access on, because I want to monitor who is printing, but also have no file shares either - I want to keep separation between file and print servers.
    Finally found an (the?) answer.
    1. Set up a standard TCP/IP port pointing to the IP address.
    2. When the "Additional port info required" message turns up, choose 'Custom'.
    3. Set to LPR (and tick 'LPR Byte Counting Enabled" - optional?)
    4. Continue...
    Strangely, this didn't appear to work will SMB was enabled in the print queue but it did when the queue was LPR only (maybe I just imagined that).
    Not the best solution but it works for my situation.

  • Print service lookup, and permissions

    I have written up an application which prints out text to the printer, using the new java print services API. The problem I have is that the i don't get any retuurned services from the lookup, unless i enable all permissions in my java.policy file (it usually has some security settings in there). Does anyone know the kind of permissions that is required for printers to be visible to the application?

    Hi, i've the same problem and i allready use the security option RuntimePermission "queuePrintJob" into the java.policy file.
    The problem is : if i specify in the java.policy "AllPermision". i get a PrintService array from PrintServiceLookup.lookupPrintServices(null,null). But if i only specified "queuePrintJob" RuntimePermission option, the funtion return an array of length 0.
    i guess that i need specified more java policy options to gain access to the printer information, but i can found information about it ....

Maybe you are looking for

  • Accounting postings for subcontract PO goods receipt

    Hi, Can someone please explain the accounting postings that occur when a subcontract PO is received?  I understand the usual inventory and GR/IR account entries.  But there are 2 additional account entries for transaction keys FRL and BSV.  These app

  • Time Out Settings in OSB

    Hi All, I have a service which calls DB via DB adapter. For the webservice call, I have an option of read time out settings in the business service, so that it will get time out after the configured time period. But for the DB call I dont have this o

  • Brushes in PS CS5 paints somewhere else?

    Hi, I am using Photoshop CS5 to paint my textures and sometimes when I do a brush stroke, Photoshop is painting that brush stroke somewhere else on the canvas, NOT where I am painting. This is really weird, I have never heard of any glitch/bug like t

  • Pack() method behaves differently with JRE1.5 and JRE1.6?

    Any diffrence in pack() in JRE 1.5 and JRE 1.6.

  • How can I assign Boot Camp more GB?

    How can I assign Boot Camp more GB?