Provider !DOCTYPE ... error while printing from an applet

Hi,
I'm developing a (signed) applet that requires access to the local printer. The applet will parse an XML document using [Flying Saucer|http://xhtmlrenderer.dev.java.net/] . I'm developing it in Eclipse.
When I run the applet from Eclipse, everything works fine, and a print is produced by the printer. I then export the applet as a jar file, sign it, and put it on a local server. When I run the applet in any browser (whether its IE or Firefox) the thing crashes with this error:
Exception in thread "AWT-EventQueue-2" javax.xml.parsers.FactoryConfigurationError: Provider <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> not foundThis exception seems mangled to me - shouldn't it produce a classname as opposed to the DOCTYPE declaration String?
I've signed all the jars required (Flying Saucer's core-renderer.jar & jtidy.jar), accepted them in the browser. All dependencies should therefore be resolved.
To be sure: I am NOT referencing the DOCTYPE anywhere in the Java code, nor in the HTML source document, nor in the HTML document hosting the applet. In short, I cannot find any trace of the DOCTYPE given in my source code. Where does it come from?
Here's a stack trace. Hopefully someone has a great tip! :)
Reading certificates from 2718 http://w2668.gerben.mylocalserver/overig/awtprinting/AwtPrinting.jar | C:\Users\jeroen\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\63\7843b8ff-292dbe4c.idx
Reading certificates from 10062 http://w2668.gerben.mylocalserver/overig/awtprinting/jtidy.jar | C:\Users\jeroen\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\20\1e6e98d4-7d7b6963.idx
line 1 column 110 - Warning: inserting missing 'title' element
Reading certificates from 76688 http://w2668.gerben.mylocalserver/overig/awtprinting/core-renderer.jar | C:\Users\jeroen\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\33\62996421-47904dc4.idx
Reading certificates from 53283 http://w2668.gerben.mylocalserver/overig/awtprinting/iText.jar | C:\Users\jeroen\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\4\1a988704-442d6437.idx
Exception in thread "AWT-EventQueue-2" javax.xml.parsers.FactoryConfigurationError: Provider <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> not found
                at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
                at org.xhtmlrenderer.resource.XMLResource.newXMLReader(XMLResource.java:145)
                at org.xhtmlrenderer.resource.XMLResource$XMLResourceBuilder.createXMLResource(XMLResource.java:170)
                at org.xhtmlrenderer.resource.XMLResource.load(XMLResource.java:75)
                at org.xhtmlrenderer.pdf.ITextRenderer.setDocumentFromString(ITextRenderer.java:157)
                at com.mycompanyname.printing.Printable.print(Printable.java:193)
                at com.mycompanyname.printing.ClientPrinterApplet.print(ClientPrinterApplet.java:350)
                at com.mycompanyname.printing.ClientPrinterApplet.paint(ClientPrinterApplet.java:145)
                at sun.awt.RepaintArea.paintComponent(Unknown Source)
                at sun.awt.RepaintArea.paint(Unknown Source)
                at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
                at java.awt.Component.dispatchEventImpl(Unknown Source)
                at java.awt.Container.dispatchEventImpl(Unknown Source)
                at java.awt.Component.dispatchEvent(Unknown Source)
                at java.awt.EventQueue.dispatchEvent(Unknown Source)
                at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
                at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                at java.awt.EventDispatchThread.run(Unknown Source)

The problem was with the entity resolver, which points to the w3c.org web site. The access to the reference DTDs on this site has been restricted for application use. The solution was to implement my own entity resolver.

Similar Messages

  • Internal error, while printing from a IE (IE 10, 11)

    Helo,
    issue:
    while printing from an webbrowser IE 11, than I get an error:
    - There was an internal error, and Internet Explorer is unable to print this document-
    Please, who knows an solution so that I can resolve the problem.
    P. Verboom

    Hi @ITEB,
    Welcome to the HP Forums!
    I noticed that you are getting an internal error when printing from IE 10, and IE 11. I am happy to look into this for you!
    For further assistance, I will need some additional information:
    The Product/Model Number of your printer. Follow instructions in this link. Finding Your HP Product Model Number.
    If you are using a Windows or Mac Operating System, and the version number. To find the exact version, visit this link. Whatsmyos.
    If the printer is able to make copies.
    If the power cable is plugged into a surge protector, or directly to the wall outlet. Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector. This applies to Inkjet printers as well. 
    If the printer is connected, Wireless, Ethernet, or USB.
    Please see this post, Want Good Answers? Ask Good Questions, by @Bob_Headrick, so you can get the most out of these forums.  
    If you are using Windows, please try our HP Print and Scan Doctor, and let me know what happens!
    Hope to hear from you soon, and thank you for posting!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • PDF export from Pages fails "Print - error while printing"

    Every month I have been generating PDF versions of my invoices by using the 'export' function of Pages. This has always worked fine without any problems.
    Today (end of Feb 08), the pdf export function always fails with 'Print - error while printing". A pdf file is saved to disc but it is corrupted and unreadable. I can still export as rtfd.
    I don't see anything about this in the logs, but I do notice that there was a Pages software update to 3.0.2 earlier this month.
    Anybody know how to fix this?

    Hello
    Before re-installing, it may be useful to
    a - repair permissions with Disk Utility
    b - trash the preferences file: <bootVolume>:Users:<yourAccount>:Library:Preferences:com.apple.iWork.Pages.plis t
    if it's not sufficient, try to print from an other user account.
    If it works this way, you will know that the application's files are not the wrongdoers as every account calls the same application file.
    Yvan KOENIG (from FRANCE samedi 1 mars 2008 15:33:41)

  • Smartform error while printing page wise.

    Hi gurus! 
    while printing from smartforms , if i select particular page in page selection option.
    its giving error - No output request open. End not possible.
    i have used SSF_OPEN and SFF_CLOSE functional module.
    No output request open. End not possible.
    Message no. SSFCOMPOSER154
    Diagnosis 
    You tried to close an output request using function module SSFCOMP_CLOSE, but no output request is active.
    System response
    The system issues an error message.
    Procedure
    Check the sequence in which you call the function modules SSFCOMP_OPEN and SSFCOMP_CLOSE.
    Message was edited by:
            rahul deshmukh

    hi Andrea !
    i have used SSF_OPEN and SSF_close functions.Its displays all pages but Its giving error for page selection printing.
    Message was edited by:
            rahul deshmukh

  • "Printing: Error while printing" when I tries to Save - How?

    Since recently, whenever I tried to save a Pages document, Pages freezes for a few minutes, then show me a system message that says "Printing: Error while printing". I did not ask Pages to print anything! Please advice. Thank you very much.

    You have not provided exact system info, no details about your documents, your save locations nor even told us what version of PS, so nobody can even begin to guess.
    Mylenium

  • Error while printing (while saving?)

    Whenever I try to save my book I always get the error:
    Print
    Error while printing.
    However, I'm not trying to print, I'm trying to SAVE.  From what I can tell the file is saving just fine, however I hope that there is nothing actually wrong with the file for when I go to hit "publish"
    Anybody else run into this and solve it?  Should I worry?

    Maybe there is an extension or OS widget that's acting up...
    'save' is for an .iba file - 'publish' is for an .ibooks file. I don't think you'll have issues, but you'll know when you try

  • "error while printing" when saving

    A really odd thing started happening today: when I hit Apple + S to save a document, it first pops up the save progress box, but after a few seconds a 2nd box appears with a mesage saying "Print. error while printing."
    I'm just trying to save, not to print. Any ideas what's going on?

    on the wife's g4 powerbook, added a network-shared printer, attempts to print to it result in:
    PMSessionValidatePrintSettings failed (error code = -50)
    Invalid PMPrintSettings in print info
    this same n-s-p works fine on my g4 powerbook, also 10.4.11...
    and i haven't been able to print to this printer from my core duo minimac running 10.6.2:
    3/1/10 6:55:37 PM AddPrinter[21005] Error loading /Library/Printers/hp/aio/PMs/hpaio_print_pm.plugin/Contents/MacOS/hp_aio_printpm: dlopen(/Library/Printers/hp/aio/PMs/hpaio_print_pm.plugin/Contents/MacOS/hp_aio_printpm, 262): no suitable image found. Did find: /Library/Printers/hp/aio/PMs/hpaio_print_pm.plugin/Contents/MacOS/hp_aio_printpm: mach-o, but wrong architecture
    3/1/10 6:55:37 PM AddPrinter[21005] Cannot find function pointer HPPMPluginFactory for factory 00425E6D-6656-11D7-966D-0003934BEDFE in CFBundle/CFPlugIn 0x1444f750 </Library/Printers/hp/aio/PMs/hpaio_printpm.plugin> (bundle, not loaded)

  • Error while printing message

    Hi
    I'm hoping someone can help me I have a Macbook and have been using a HP Deskjet D5560 printer with it since i bought it and now it will not let me print each time i go to print it says error while printing. I have gone into some settings and had a little look but can't seem to fix the problem. Has anyone got any ideas? I am very basic with computers with things like this so please keep it simple if possible!
    Thanks
    Anna

    You may have a file permissions error or some other corruption.
    Try these one at a time (restart and try adding after each) -
    Reset Printing System - a menu choice in Printer Setup Utility.
    Download the 10.4.10 COMBO updater and re-update with that.
    Try the free trial of Printer Setup Repair from www.fixamac.net.

  • "Error while printing" when sharing printer under 10.6

    This just started yesterday. When attempting to print from either of two other computers (both 10.4.11) to a printer (HP LJ 1160) connected via USB to a MacBook Pro (10.6.2), the print fails with the cryptic error message: "Error while printing."
    I have searched these help forums and have tried repairing permissions on all computers. I have also verified that the /tmp symbolic link is in place on all computers.
    I have also tried resetting the print systems on all computers. I am able to add the shared printer on the client computers, but when attempting to print to the selected shared printer I still get the error.
    The Console on the client computer generates the following items in the log:
    2010-01-18 08:59:49.452 TextEdit[423] PMSessionValidatePrintSettings failed (error code = -50)
    2010-01-18 08:59:50.812 TextEdit[423] Invalid PMPrintSettings in print info
    Any ideas?

    on the wife's g4 powerbook, added a network-shared printer, attempts to print to it result in:
    PMSessionValidatePrintSettings failed (error code = -50)
    Invalid PMPrintSettings in print info
    this same n-s-p works fine on my g4 powerbook, also 10.4.11...
    and i haven't been able to print to this printer from my core duo minimac running 10.6.2:
    3/1/10 6:55:37 PM AddPrinter[21005] Error loading /Library/Printers/hp/aio/PMs/hpaio_print_pm.plugin/Contents/MacOS/hp_aio_printpm: dlopen(/Library/Printers/hp/aio/PMs/hpaio_print_pm.plugin/Contents/MacOS/hp_aio_printpm, 262): no suitable image found. Did find: /Library/Printers/hp/aio/PMs/hpaio_print_pm.plugin/Contents/MacOS/hp_aio_printpm: mach-o, but wrong architecture
    3/1/10 6:55:37 PM AddPrinter[21005] Cannot find function pointer HPPMPluginFactory for factory 00425E6D-6656-11D7-966D-0003934BEDFE in CFBundle/CFPlugIn 0x1444f750 </Library/Printers/hp/aio/PMs/hpaio_printpm.plugin> (bundle, not loaded)

  • "Error while printing." over network

    I am trying to print from a mac mini running 10.4.11 to a printer on a macbook pro running 10.5.3. The printer is using the Laserjet 4 Gutenprint driver. When I connect the printer directly to the mac mini, everything works fine. I can use the PDF export options on the print dialog just fine. When I try to print over the network "Processing..." flashes up and I immediately get "Error while printing." I have tried resetting the print queue on both machines, (turning sharing off and on) rebooting, deleting and installing the printer on either machine multiple times. I've repaired permissions on both machines and the cups error_log gives me literally no information when that message pops up. Help!?

    I've also noticed that while the network printer is selected, I can't use the preview feature in the print dialogue, nor do the PDF features work. I get the same "Processing..." then "Error while printing." In addition, with the network printer selected, when I try to print from page 1 to 1 of a multipage document it tells me "Error: Invalid Page Range. The number is out of range. Resetting back to last known valid entry." it resets it to 1 to 1 and gives me the same error if I click print.

  • Error While Printing II

    Just wanted to supply a fix to a previously archived post concerning an error message while trying to print from any application and receiving the message "Error While Printing."
    I fixed this issue by rebooting into safe mode (without extensions - hold down shift while starting up) and fixed permissions in the Disk Utility.
    Hope this helps others with the same issue!
    J.

    Check that table j_1iewt_cert_n and j_1iewt_certno are filled up.
    If maintained, then it should work.
    If not working then check the putting the breakpoint in the program J_1IEWT_CERT_F01 on statement "SELECT SINGLE * FROM j_1iewt_cert_n" and see where it is failing. It is easy to debug this error message.
    Regards,
    Gaurav

  • "Error while Printing" on ethernet network connected iMac.

    Have 2 iMacs sharing a Canon MP530, one directly connected, the other via a Linksys ethernet router. Upon a print request, the networked computer locates the MP530 and displays the standard print page, but shortly after clicking Print (or Preview) the "Error while Printing" message is displayed. Under some conditions in the past we have been able to print from the networked machine, but now we're stuck and nothing seems to fix the problem.

    Since you have 10.4.10 installed, I'm betting that you were able to print before this update was installed. Anyway, the first thing I would do is delete the printer from the 'client' (the iMac connecting to the shared printer). Open Printer Setup Utility, select the MP530 and delete it. Then click on Printer Setup Utility and select Reset Printing System. This should remove the Canon MP driver files. Then run the printer driver installer again and once completed, add the printer via the Printer Setup Utility, by clicking Add > Default Browser and select the Shared Printer.
    I would also try running a Repair Disk Permissions and if that doesn't help then try using Fixamac's Printer Setup Repair utility.

  • "Error while printing" in non-Admin user

    I have a non-admin account (for my wife) in my iMac G5, and from some days ago, all applications refuse to print. A msg telling "Error while printing" appears, and the application trying to print crash in some sort of way.
    I can print the test page from the Printer Utility, so the printer (a Canon MP130) is fine.
    Entering with my Admin account, i have no problem printing.
    I check some help in Apple support, and as there is stated, i repaired permissions on both accounts.
    And the problem doesn't solve. Still, ALL applications gives this message.
    I'm not very tech in this, but i just note that the msg appears while the doc info is "going" to the printer, after i accept "Print" (spooling??)
    Does anyone knows what i can do to correct this?

    I never solved this...and still having troubles to print from the other user

  • Can't Print "Error while printing."

    Suddenly I can't print.
    When I try, I get the warning: "Error while printing."
    I also get this same warning if I try to create a PDF, or Preview.
    The printer (HP 6890xi) has been working fine in all applications and is able to print a test page from the HP printer utility.
    Drivers are fine (I think), but I replaced them anyway.
    Any thoughts?
    Thanks,
    John

    I had four documents open in OmniOutliner Pro, and did a CMD-P on each of them in turn. The first two printed, and the second two did not, without an error message. Since then, I get an "Error while printing" message in OmniOutliner Pro, whether I attempt to print to the printer or save to a PDF; Adobe Reader will not print, and does not display an error message, and Firefox fails to print with an "Unknown error occurred while printing" message. I have run repair disk permissions on my startup volume, followed the Printer Troubleshooting guide on the Apple Support page, including updating printer drivers, I have verified that the CUPS software sees the printer, the printer can print a test page, and have used Printer Utility to Reset the printing. Nothing has changed.
    Now what?

  • "Save As PDF" in Safari only Results in "Error While Printing"

    Hi, first time poster. I searched through the forum and didn't find anything like my problem specifically on topic. I still Hope this isn't being redundant with anything else that has been posted.
    Problem:
    When I go to Print->Save as PDF the normal dialogue comes up without a problem. Its when I click on the save button that I an error saying "Error While Printing" pops up. Pulling up the console nets me with the following:
    5/25/08 11:36:12 AM Safari[95216] Printing failed because PMSessionEndDocumentNoDialog() returned -30871.
    And from CUPS:
    I [25/May/2008:11:35:06 -0700] Listening to ::1:631 (IPv6)
    I [25/May/2008:11:35:06 -0700] Listening to ::1:631 (IPv6)
    I [25/May/2008:11:35:06 -0700] Listening to 127.0.0.1:631 (IPv4)
    I [25/May/2008:11:35:06 -0700] Listening to /private/var/run/cupsd (Domain)
    I [25/May/2008:11:35:06 -0700] Loaded configuration file "/private/etc/cups/cupsd.conf"
    I [25/May/2008:11:35:06 -0700] Using default TempDir of /private/var/spool/cups/tmp...
    I [25/May/2008:11:35:06 -0700] Configured for up to 100 clients.
    I [25/May/2008:11:35:06 -0700] Allowing up to 100 client connections per host.
    I [25/May/2008:11:35:06 -0700] Using policy "default" as the default!
    I [25/May/2008:11:35:06 -0700] Full reload is required.
    I [25/May/2008:11:35:06 -0700] Loaded MIME database from '/private/etc/cups': 52 types, 49 filters...
    I [25/May/2008:11:35:06 -0700] Loading job cache file "/private/var/spool/cups/cache/job.cache"...
    I [25/May/2008:11:35:06 -0700] Full reload complete.
    I [25/May/2008:11:35:06 -0700] Cleaning out old temporary files in "/private/var/spool/cups/tmp"...
    I [25/May/2008:11:35:06 -0700] Listening to ::1:631 on fd 4...
    E [25/May/2008:11:35:06 -0700] Unable to bind socket for address ::1:631 - Address already in use.
    I [25/May/2008:11:35:06 -0700] Listening to 127.0.0.1:631 on fd 6...
    I [25/May/2008:11:35:06 -0700] Listening to /private/var/run/cupsd on fd 8...
    I [25/May/2008:11:35:06 -0700] Resuming new connection processing...
    *What I've Tried*
    I haven't had any luck with the solutions others have posted online (like Little Snitch being a culprit) when I've searched for either the "Save As PDF", "Error While Printing", or the console log error. I've run the printer reset function in system preferences and I've never had any printer installed on the system.
    I should note that prior to any of these problems with Safari, I installed the Firefox 3 RC1. I've since uninstalled it, because I was suspicious of it having an effect (being a little buggy as an RC). Removing it with AppCleaner hasn't changed the problem.
    Thanks all,
    -d

    I could print/save as .pdf until I did my latest software upgrade. Now I get "error while printing", and have been unable to find a solution. this is quite a problem for me, because I do a lot of research on the Web and have saved my results for years in pdf. Have you found a solution?
    Best regards,

Maybe you are looking for

  • Mail send error in Oracle UCM Test Mail/Notifications

    Hi Everyboby, I have configured workflows which need approval. While the documenr is checked in the notification should be fired to the reviewer. But the mail notification is not working. Also I have tried to login as sysadmin and tried the Administr

  • ...monitoring HD...

    ...I will be filming a project in HD and would like to monitor the result on HDTV. 720P or 1080i? Can monitoring work with a Canopus ADVC110 converter? If anything else I would like to know. Thanks to all.

  • Consignment Deliveries: Handling Unit Changes to Non Assigned HU

    Hell Experts, We are having an issue with the consigment deliveries. After doing the PGI, the handlling unit assignment changes to Non Assigned Handlling Unit. Situation Before PGI: VEKP-VBOBJ = 01 VEKP-VBOBLKEY = <Delivery Number> After PGI: (Moveme

  • Fantastic O2 Customer Service O2 Cheapside

    Hello, I wanted to leave my feedback on a recent visit to your O2 branch in cheapside. Your staff made me a very happy customer! I'd like to compliment one of your employees, James for the excellent service he provided me last week. James helped me t

  • Removing AOL Instant Messenger

    How would I remove AOL Instant Messenger from my G5. I do not see an uninstall option and am not familiar with the Apple O/S.