Bug: Java applet cannot print, even with print permission granted.

I was not able to file this bug report at the official Apple bug report site, so...
Summary:
When a java applet initiates a print job, the user is (correctly) presented with a dialog requesting permission for printing. Once permission is granted, the printing subsystem attempts to communicate with CUPS at localhost:631, and permission is denied. To the naive user, it appears that the applet is broken.
Steps to Reproduce:
Go to
http://www.wordle.net/gallery/wrdl/921427/WordleCore_SourceCode
Once the applet has loaded, click the button labelled "Print...".
Expected Results:
After permitting printing, the user should see the print dialog, and printing should proceed as normal.
Actual Results:
Here is the relevant section of the stack trace generated when this happens:
<pre>java.security.AccessControlException: access denied
(java.net.SocketPermission localhost:631 connect,resolve)
at java.security.AccessControlContext.checkPermission
(AccessControlContext.java:264)
at java.security.AccessController.checkPermission
(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
532)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:521)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
at sun.net.www.http.HttpClient.New(HttpClient.java:304)
at sun.net.www.http.HttpClient.New(HttpClient.java:321)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient
(HttpURLConnection.java:813)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect
(HttpURLConnection.java:765)
at sun.net.www.protocol.http.HttpURLConnection.connect
(HttpURLConnection.java:690)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream
(HttpURLConnection.java:857)
at sun.print.IPPPrintService.opGetAttributes(IPPPrintService.java:
1419) </pre>
Regression:
This problem was introduced only with the most recent Java update.
Notes:
There is no workaround for the applet author, other than to use a signed applet, which is prohibitively expensive, and which should not be required for printing, anyway. It's difficult to instruct the user in how to grant the appropriate permissions via policy files, since the finder will not allow a user to create a file named ".java.policy" in their home directory, and since the system policy file is write-protected.

Jonathan Feinberg wrote:
I was not able to file a bug report
You should file a bug report with Apple at http://bugreport.apple.com if you have a developer account or at http://www.apple.com/feedback/macosx.html if you do not have a developer account.
Good luck w/your issue and please update this thread if you encounter a solution.

Similar Messages

  • Re: [Fwd: Java Applet IIOP Call-In with Release 3C--How dowe speed up d

    Hi Michael,
    We have done exactly what you describe and have avoided the slow applet
    download times. Although it can be a bit tricky, it is possible to use
    the ORB bundled inside the Netscape 4.0 browser (Visibroker for Java by
    Visigenic). Most of the code should follow Netscape's examples (on
    http://developer.netscape.com)--just remember to initialize the ORB by
    passing a reference to the current applet in orb_init() (so that you
    invoke something like orb_init(this) [assuming you are extending
    java.applet.Applet]). Pulling up the Java console within your web
    browser should help debug quite a bit (a lot of debug messages will get
    printed there the ORB is having problems).
    Netscape has just implemented the applet caching schemes you describe,
    so it probably shouldn't matter too much if you use another vendor's
    ORB (we've done this with Iona's OrbixWeb). If you use ZIP files, they
    have to be uncompressed, and I don't think that the browser will cache
    them between browser sessions. Netscape 4.0 does seem to handle
    compressed JAR files just fine and it does indeed cache them between
    browser sessions. I'd go with the JAR format anyway since the ZIP
    bundling was just a workaround until Sun got their act together in the
    1.1 JDK.
    By the way, you also might want to take advantage of the code-signing
    and capabilities APIs of Netscape if you are going to invoke methods on
    objects not resident on your web server. Otherwise, you will probably
    run into the (in)famous browser applet security restrictions and you may
    have other problems doing things like callbacks from Forte, etc.
    If you want more detail on how it works, let me know and I can post some
    examples.
    Oh, one last thing: we are a consulting firm specializing in these kinds
    of things :)
    Bill
    Subject: Java Applet IIOP Call-In with Release 3C--How do we speed up download time.
    Date: Wed, 2 Jul 1997 09:10:31 -0500
    From: Michael Nelson <[email protected]>
    To: "'[email protected]'" <[email protected]>
    We have successfully implemented a simple Java Applet that calls into
    Forte Services via IIOP. However, the duration of the download time
    for
    Applet and its required class files is UNACCEPTABLE in a typical
    INTERNET environment where 28.8K modems and multiple hops around the
    net
    are not uncommon. We dialed into our network at 28.8K (but no
    hopping),
    and found that download times varied from 1.5 - 2.0 minutes. This is
    unacceptable, even by internet standards. We have been using the
    Visigenic Visibroker product as the ORB.
    After doing some investigation, we've come up with several ideas to
    speed up download time:
    1. Figure out how to use the Visigenic components (CORBA/IIOP class
    files) that come bundled with the latest version of the Netscape
    Navigator browser, so that they don't have to be downloaded
    2. Figure out how to use ZIP files. Here's what I've read: "Since
    the
    introduction of Netscape Navigator 3.0, you can specify an
    uncompressed
    .zip file as an addition to the code base of your application. By
    specifying a ZIP file, the browser will load your applet's classes
    from
    a specified ZIP file before it searches the code base. This ZIP can
    improve applet download time by reducing the number of HTTP
    connections
    required to fetch applet code. As an added benefit, Netscape caches
    the
    single ZIP file so that it will not reload your applet unless the date
    of the ZIP file has changed."
    3. Figure out how to use JAR files. Here's what I've read: "JAR
    stands for Java archive. It's a file format based on the popular ZIP
    file format and is used for aggregating many files into one. Although
    JAR can be used as a general archiving tool, the primary motivation
    for
    its development was so that Java applets and their requisite
    components
    can be downloaded to a browser in a single HTTP transaction, rather
    than
    opening a new connection for each piece. This greatly improves the
    speed with which an applet can be loaded onto a web page and begin
    functioning. The JAR format also supports compression, which reduces
    the
    size of the file and improves download time still further."
    Unfortunately, we've been unable to get any of these approaches to
    work.
    Has any one used these or other approaches to speed up applet
    download
    time? Or, does anyone know of consulting firms that specialize in
    this
    sort of thing?
    Thanks in advance for your help.
    Mike Nelson, Project Leader
    Metrix, Inc.
    [email protected]
    414-798-8560 x1157
    Billy L. Williams, Jr. | email: [email protected]
    Sage Solutions, Inc. | Tel: (415) 392-7243 (x506) Fax: (415) 391-3899
    | Pager: (415) 605-1791 (page me if urgent)

    Hi Michael,
    We have done exactly what you describe and have avoided the slow applet
    download times. Although it can be a bit tricky, it is possible to use
    the ORB bundled inside the Netscape 4.0 browser (Visibroker for Java by
    Visigenic). Most of the code should follow Netscape's examples (on
    http://developer.netscape.com)--just remember to initialize the ORB by
    passing a reference to the current applet in orb_init() (so that you
    invoke something like orb_init(this) [assuming you are extending
    java.applet.Applet]). Pulling up the Java console within your web
    browser should help debug quite a bit (a lot of debug messages will get
    printed there the ORB is having problems).
    Netscape has just implemented the applet caching schemes you describe,
    so it probably shouldn't matter too much if you use another vendor's
    ORB (we've done this with Iona's OrbixWeb). If you use ZIP files, they
    have to be uncompressed, and I don't think that the browser will cache
    them between browser sessions. Netscape 4.0 does seem to handle
    compressed JAR files just fine and it does indeed cache them between
    browser sessions. I'd go with the JAR format anyway since the ZIP
    bundling was just a workaround until Sun got their act together in the
    1.1 JDK.
    By the way, you also might want to take advantage of the code-signing
    and capabilities APIs of Netscape if you are going to invoke methods on
    objects not resident on your web server. Otherwise, you will probably
    run into the (in)famous browser applet security restrictions and you may
    have other problems doing things like callbacks from Forte, etc.
    If you want more detail on how it works, let me know and I can post some
    examples.
    Oh, one last thing: we are a consulting firm specializing in these kinds
    of things :)
    Bill
    Subject: Java Applet IIOP Call-In with Release 3C--How do we speed up download time.
    Date: Wed, 2 Jul 1997 09:10:31 -0500
    From: Michael Nelson <[email protected]>
    To: "'[email protected]'" <[email protected]>
    We have successfully implemented a simple Java Applet that calls into
    Forte Services via IIOP. However, the duration of the download time
    for
    Applet and its required class files is UNACCEPTABLE in a typical
    INTERNET environment where 28.8K modems and multiple hops around the
    net
    are not uncommon. We dialed into our network at 28.8K (but no
    hopping),
    and found that download times varied from 1.5 - 2.0 minutes. This is
    unacceptable, even by internet standards. We have been using the
    Visigenic Visibroker product as the ORB.
    After doing some investigation, we've come up with several ideas to
    speed up download time:
    1. Figure out how to use the Visigenic components (CORBA/IIOP class
    files) that come bundled with the latest version of the Netscape
    Navigator browser, so that they don't have to be downloaded
    2. Figure out how to use ZIP files. Here's what I've read: "Since
    the
    introduction of Netscape Navigator 3.0, you can specify an
    uncompressed
    .zip file as an addition to the code base of your application. By
    specifying a ZIP file, the browser will load your applet's classes
    from
    a specified ZIP file before it searches the code base. This ZIP can
    improve applet download time by reducing the number of HTTP
    connections
    required to fetch applet code. As an added benefit, Netscape caches
    the
    single ZIP file so that it will not reload your applet unless the date
    of the ZIP file has changed."
    3. Figure out how to use JAR files. Here's what I've read: "JAR
    stands for Java archive. It's a file format based on the popular ZIP
    file format and is used for aggregating many files into one. Although
    JAR can be used as a general archiving tool, the primary motivation
    for
    its development was so that Java applets and their requisite
    components
    can be downloaded to a browser in a single HTTP transaction, rather
    than
    opening a new connection for each piece. This greatly improves the
    speed with which an applet can be loaded onto a web page and begin
    functioning. The JAR format also supports compression, which reduces
    the
    size of the file and improves download time still further."
    Unfortunately, we've been unable to get any of these approaches to
    work.
    Has any one used these or other approaches to speed up applet
    download
    time? Or, does anyone know of consulting firms that specialize in
    this
    sort of thing?
    Thanks in advance for your help.
    Mike Nelson, Project Leader
    Metrix, Inc.
    [email protected]
    414-798-8560 x1157
    Billy L. Williams, Jr. | email: [email protected]
    Sage Solutions, Inc. | Tel: (415) 392-7243 (x506) Fax: (415) 391-3899
    | Pager: (415) 605-1791 (page me if urgent)

  • Itunes cannot connect even with wifi on? help?

    Itunes cannot connect even with wifi on. Any ideas? I have reset wifi connection and that didn't work.

    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    If an Update Appears Install it... if not... you are up to date for your particular Device...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch

  • File Uploader Java Applet cannot be run

    I have a website that I need to upload PDFs to, but since ugrading to Lion, I cannot do it any more.  I have downloaded the separte Java app, but it still does not work.
    This is the error message I get:
    File Uploader Java Applet cannot be run. Make sure that Java is installed on your PC and Java applets are permitted in browser settings. Use this link to download and install appropriate version of Java:

    Thank you etresoft - that did not solve the problem.  However, I did fix it by changing something in Java Preferences (which is located in the Utilities Folder).
    I first deleted the cache files as you suggested in the Network tab.  Then I quit and restarted Firefox.  I still got the same error message when I tried to upload.
    Then, I went back into Java Preferences and checked the box, "Enable Appplet Plug-in and Webstart Applications" located in the General Tab.  I then quit and restarted Firefox.  Now I am able to upload documents as I could before Lion.
    Thank you!!

  • Printing problem with Print Layout Border:

    I can't get Pages to recognize the Border: function under Layout when I go to Print. I'm using an HP Photosmart C6280 with Driver Version 2.3.1 (which I believe is the latest version).
    It appears that I have everything set up correctly. A month or so ago I had problems printing shadows and two-sided pages. The driver update fixed those problems. So I'm caught between wondering if I've got something set incorrectly or have stumbled across another bug.

    MWU,
    I received the following response from HP. I use a C7280, so the references here are to that model. You would need to substitute downloads appropriate to your C6280. Their recommendation is obviously quite involved, and it would be your choice as to whether you would want to do all this. I guess some of it depends on balancing your needs with what they suggest. I do not want to go through all this for my own printer, even though I have experienced the same border problem. In these forums, it is important that we only post suggestions that have been tried and evaluated. I have NOT evaluated what they suggest, but I said I would relay to you what they recommended, and that is what I'm doing. Your work-around may be the simpler choice. This is what they wrote:
    There are pre-installed generic drivers called Guten drivers within the Macintosh os 10.5 which may be causing the software conflict or corruption leading to this issue. The most effective way of resolving this situation is to remove all files relating to HP printers and then install the latest drivers that are available from the HP website.
    You may wish to copy the web address below and paste it to your web browser. This address will take you directly to the most up-to-date drivers for your unit, scroll to Step 3. Obtain Software and press the DOWNLOAD ONLY button.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-55650-2 &lc=en&cc=us&dlc=en&product=3204785&os=219&lang=en
    Please copy the web address below and paste it in your web browser's address bar. Once again, scroll to Step 3. Obtain Software and press the DOWNLOAD ONLY button.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-56883-1 &lc=en&cc=us&dlc=en&product=3204785&os=219&lang=en
    Please complete the steps below to perform a manual uninstall:
    Double-click the Macintosh hard drive (labeled Macintosh HD by default).
    Open the Applications folder.
    Open the Utilities folder.
    Double-click Activity Monitor. The Activity Monitor window should open.
    When Activity Monitor opens, look for the following processes:
    **NOTE: Not all of these processes may be running.
    HP Communications
    HP Director
    HP Image Zone
    HP Trap Monitor
    pipedaemon.
    HPIO Classic Proxy
    HPIO Classic Proxy 2
    Hpdot3d
    HP AiO Notifications.app
    Print daemon
    Any other HP or Hewlett-Packard entries
    Highlight them one at a time and click the Quit Process icon above.
    Click Force Quit to quit the process.
    After you quit all of the above items found, close Activity Monitor.
    Go back to the Applications folder.
    Drag the HP AiO Software or the Hewlett-Packard folder to the Trash.
    **NOTE: Some of the files described in the following steps may not be found.
    Go back to the Macintosh hard drive.
    Open the Library folder.
    Open the Application Support folder.
    Drag the hp folder to the trash.
    Return to the Library folder.
    Open the Caches folder.
    Drag the following files to the trash:
    any files beginning with HP or hp
    any files beginning with Hewlett-Packard
    any files beginning with com.hp
    Go back to the Library folder.
    Open the Documentation folder.
    Open the Help folder.
    Drag Hp Photo and Imaging Help to the trash.
    Go back to the Library folder.
    Open the Frameworks folder.
    Drag the HPServicesInterface.framework to the trash, HPPml.framework and HPSMART.framework
    Return to the Library Folder.
    Open the Image Capture Folder.
    Open the TWAIN Data Sources folder.
    Drag the HP All-in-One Scan.ds file to the trash.
    Return to the Image Capture folder.
    Open the Scripts folder.
    Drag the Import and View with iPhoto file to the trash.
    Drag the View with HP file to the trash.
    Go back to the Library folder.
    Open the Preferences folder.
    Drag the Hewlett-Packard Preferences folder to the trash.
    Drag the HP Registry file to the trash.
    Trash any files that begin with com.hp.
    Drag the file located at Macintosh HD>Library>Preferences>loginwindow.plist to the desktop. Not removing this file during the manual uninstallation can cause the uninstall to be unsuccessful.
    Return to the Library folder.
    Open the Printers folder
    Double-click the hp folder
    Drag the aio folder to the trash.
    Drag the cups folder to the Trash
    Drag the Frameworks folder to the trash.
    Drag the hpio folder to the trash.
    Drag pipedaemon to the trash.
    Drag Print Daemon to the trash.
    Drag the Utilities folder to the trash.
    Go back to the Library folder
    Open the StartupItems folder.
    Drag the HP IO folder to the trash.
    Drag the HP Trap Monitor folder to the trash.
    Go back to the Macintosh hard drive.
    Open the Users folder.
    Double-click your username (this should have a symbol of a house next to it).
    Open the Library folder.
    Open the Preferences folder.
    Drag the following files to the trash:
    any files beginning with com.apple.print
    any files beginning with com.hp
    any files beginning with Hewlett-Packard
    any files beginning with HP or hp
    Return to the Library folder.
    Open the Printers folder.
    Drag any All-in-One printers listed here to the trash.
    Drag any HP icons from the Dock and drop it on an empty space on the desktop. The icon(s) will disappear.
    Close all open windows.
    Restart the Macintosh.
    Empty the Trash.
    **NOTE: In order to verify and repair any permissions that might have been affected by this removal of software:
    Double-click the Macintosh HD. (by default called Macintosh HD).
    Double-click the Applications folder.
    Double-click the Utilities folder.
    Double-click the Disk Utility.
    On the left side, select the Macintosh HD. (It will be indented and usually is the second entry in that list)
    On the right side beneath the white box select Verify Disk Permissions.
    When you see the message that the Verification is complete, click on Repair Disk Permissions.
    This process may take several minutes, afterwards close the Disk Utility by single-clicking the red dot from the trio at the top left of this dialog box.
    Now install the software for the printer. If there is other HP hardware that needs to be re-installed we recommend doing so afterwards.
    Double-click the downloaded file containing the software for the printer.
    Double-click the Installation file; it will be either All-in-One Installer or Vise Installer.
    Proceed through the questions asked, if prompted for an account and password this will be the password for the user account you are currently logged into.
    Here is an online document that further explains the Setup Assistant which will run after the software has been installed onto the Mac:
    http://h10025.www1.hp.com/ewfrf/wc/genericDocument?lc=en&cc=us&docname=c00219459
    In some situations the All-in-One Setup Assistant will ask you to open the Printer Setup Utility in order to add the printer manually. If prompted with this please do the following:
    As the HP All-in-One is connected through a network using Ethernet or wireless:
    Click the button labeled Printer Setup Utility.
    When the Printer Setup Utility opens, click the Add button.
    Click the More Printers button at the bottom; a new dialog box will open.
    Now select HP IP Printing from the drop down menu
    Select your unit from the list of printers available.
    Now you may close the Printer Setup Utility by clicking the red dot at the top-left corner of this window. Complete the installation by registering the product if you have not already done so and choosing whether you wish to see the Product tour or not.
    Now double-click on the downloaded Update file and follow the prompts to install it.
    We recommend trying both printing and scanning to prove the functionality of both.
    **NOTE**
    When the updated software has been completely installed and all functions are verified, you may trash the loginwindow.plist as it is no longer required.
    This should resolve the issue. If you need further assistance, please reply to this message and we will be happy to assist you further.
    I'm back....good luck!
    nhuser

  • Java Applet HelloWorld "Getting Started With Applets" example not working

    Hi there,
    It's been ages since I ran my Linux CentOS boot of Linux but I am going through the official oracle java applet tutorials, just every time I try and run the "Hello World" applet in Firefox 17.0.3 and I am running the Iced Tea thing for java applets.
    Every time I try and run the example from the following code:
    import javax.swing.JApplet;
    import javax.swing.SwingUtilities;
    import javax.swing.JLabel;
    public class HelloWorld extends JApplet
      // called when the user enters the html page:
      public void init() // keep apps within the init() function very small as per the http://docs.oracle.com/javase/tutorial/deployment/applet/appletMethods.html
        try{
          SwingUtilities.invokeAndWait(new Runnable()
            public void run()
           JLabel myLabel = new JLabel("Hello World");
           add(myLabel);
            } // end running the application
          }); //end of swing invokeand wait
        } catch (Exception error){ // end user running the app in page
           // System.err.println("GUI didn't work on initial run");
    }It keeps bringing up the error "Start: Applet not initialized" I did google that basic error and from what I found I should consult the JavaConsole, I know the console was removed from the Firefox menu quite a while ago. So went to find a way of loading it using the IcedTea one but it keeps bringing up a load of errors in even trying to run that.
    Is there anyway of sorting this out? I mean I have even tried installing the one on the oracle website, the plain JDK but nothing seems to work.
    Is there anyone that can help me get applets working? I was even going to go as far as to reinstall my distro but I want to avoid that as much as possible.
    Thanks and I look forward to any replies,
    Jeremy.

    in the Getting Started with Java DB tutorial they
    tell u how to set ur "DERBY_HOME" (what is that?).
    once i press enter after typing this command:
    set DERBY_HOME=D:\Java\Java
    Phonebook\javadb in my command prompt do i get
    any message or does it just go to the next line?type env or set or whatever in the command line to see what your environment variables are set to
    they also tell u how to set ur "JAVA_HOME" (what is
    that?). The Java installation you want to use
    in their example they give u this: set
    JAVA_HOME=C:\Program Files\Java\j2se1.4.2_05but in my java folder i have jdk1.6.0 and jre1.6.0
    but no j2se1.4.2_05, so which 1 must i choose?It's up to you. I'd go with 1.6
    also once ive done this: set
    DERBY_HOME=D:\Java\Java Phonebook\javadb this
    set JAVA_HOME=D:\Program
    Files\Java\jre1.6.0 and this set
    PATH=%DERBY_HOME%\bin;%PATH% and then type
    sysinfo to verify that the variables were set
    correctly i get these errors: 'D:\Java\Java' is
    not recognized as an internal or external command,
    operable program or batch file and '""'
    is not recognized as an internal or external command,
    operable program or batch file any help would
    really be appreciated because this is really killing
    me!you need to set your path variable - so something like:
    set PATH=C:\Program Files\Java\j2se1.4.2_05\bin

  • Java Applet IIOP Call-In with Release 3C--How do we speed updownload ti

    We have successfully implemented a simple Java Applet that calls into
    Forte Services via IIOP. However, the duration of the download time for
    Applet and its required class files is UNACCEPTABLE in a typical
    INTERNET environment where 28.8K modems and multiple hops around the net
    are not uncommon. We dialed into our network at 28.8K (but no hopping),
    and found that download times varied from 1.5 - 2.0 minutes. This is
    unacceptable, even by internet standards. We have been using the
    Visigenic Visibroker product as the ORB.
    After doing some investigation, we've come up with several ideas to
    speed up download time:
    1. Figure out how to use the Visigenic components (CORBA/IIOP class
    files) that come bundled with the latest version of the Netscape
    Navigator browser, so that they don't have to be downloaded
    2. Figure out how to use ZIP files. Here's what I've read: "Since the
    introduction of Netscape Navigator 3.0, you can specify an uncompressed
    .zip file as an addition to the code base of your application. By
    specifying a ZIP file, the browser will load your applet's classes from
    a specified ZIP file before it searches the code base. This ZIP can
    improve applet download time by reducing the number of HTTP connections
    required to fetch applet code. As an added benefit, Netscape caches the
    single ZIP file so that it will not reload your applet unless the date
    of the ZIP file has changed."
    3. Figure out how to use JAR files. Here's what I've read: "JAR
    stands for Java archive. It's a file format based on the popular ZIP
    file format and is used for aggregating many files into one. Although
    JAR can be used as a general archiving tool, the primary motivation for
    its development was so that Java applets and their requisite components
    can be downloaded to a browser in a single HTTP transaction, rather than
    opening a new connection for each piece. This greatly improves the
    speed with which an applet can be loaded onto a web page and begin
    functioning. The JAR format also supports compression, which reduces the
    size of the file and improves download time still further."
    Unfortunately, we've been unable to get any of these approaches to work.
    Has any one used these or other approaches to speed up applet download
    time? Or, does anyone know of consulting firms that specialize in this
    sort of thing?
    Thanks in advance for your help.
    Mike Nelson, Project Leader
    Metrix, Inc.
    [email protected]
    414-798-8560 x1157

    We have successfully implemented a simple Java Applet that calls into
    Forte Services via IIOP. However, the duration of the download time for
    Applet and its required class files is UNACCEPTABLE in a typical
    INTERNET environment where 28.8K modems and multiple hops around the net
    are not uncommon. We dialed into our network at 28.8K (but no hopping),
    and found that download times varied from 1.5 - 2.0 minutes. This is
    unacceptable, even by internet standards. We have been using the
    Visigenic Visibroker product as the ORB.
    After doing some investigation, we've come up with several ideas to
    speed up download time:
    1. Figure out how to use the Visigenic components (CORBA/IIOP class
    files) that come bundled with the latest version of the Netscape
    Navigator browser, so that they don't have to be downloaded
    2. Figure out how to use ZIP files. Here's what I've read: "Since the
    introduction of Netscape Navigator 3.0, you can specify an uncompressed
    .zip file as an addition to the code base of your application. By
    specifying a ZIP file, the browser will load your applet's classes from
    a specified ZIP file before it searches the code base. This ZIP can
    improve applet download time by reducing the number of HTTP connections
    required to fetch applet code. As an added benefit, Netscape caches the
    single ZIP file so that it will not reload your applet unless the date
    of the ZIP file has changed."
    3. Figure out how to use JAR files. Here's what I've read: "JAR
    stands for Java archive. It's a file format based on the popular ZIP
    file format and is used for aggregating many files into one. Although
    JAR can be used as a general archiving tool, the primary motivation for
    its development was so that Java applets and their requisite components
    can be downloaded to a browser in a single HTTP transaction, rather than
    opening a new connection for each piece. This greatly improves the
    speed with which an applet can be loaded onto a web page and begin
    functioning. The JAR format also supports compression, which reduces the
    size of the file and improves download time still further."
    Unfortunately, we've been unable to get any of these approaches to work.
    Has any one used these or other approaches to speed up applet download
    time? Or, does anyone know of consulting firms that specialize in this
    sort of thing?
    Thanks in advance for your help.
    Mike Nelson, Project Leader
    Metrix, Inc.
    [email protected]
    414-798-8560 x1157

  • Dropdown of Printer destination with Print button

    Hi,
    I am trying to create a dropdown list on a form that contains about a dozen different printer destinations. I need to users to select a printer from the dropdown, the click a button that will send the completed form to the printer. I am a newbie so any help is appreciated.
    Kevin

    Hi Kevin,
    Acrobat forms (AcroForms) can access a printParams object which has several parameters, including printerName.
    Here is an example: https://acrobat.com/#d=fzE2tPnpvftws68XwdjTtA
    It is not much of a time saver as the user is still presented with the print dialogue. Please note that you cannot get it to print silently for security reasons (afaik).
    I hope that helps,
    Niall

  • Java Applets cannot work in IE when PAC file is in shared folder

    I have a PAC file (proxy auto config) residing in a shared folder, i.e. \\fileserver\share\proxy.pac. My IE and firefox is configured to point to the PAC file. Java applet is working fine in Firefox but fails to run in IE.
    From the Java console, the applet seems to be trying to access the internet via DIRECT connection. The applet works properly when I configured IE to point to a PAC file in a web server, ie http://webserver/proxy.pac or in the local drive, ie file://c:\proxy.pac. My objective is to configure IE to point to a PAC file in a shared folder and make it work. Can anyone help?
    Below are the logs from both IE and Firefox Java Console (thrimed):
    1) IE:
    Java Plug-in 1.6.0_13
    Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\xxx
    network: No certificate info for unsigned JAR file: https://internet-banking.dbs.com.sg/IB/Login2.jar
    network: Cache entry found [url: https://internet-banking.dbs.com.sg/IB/Login2.jar, version: null]
    network: Connecting https://internet-banking.dbs.com.sg/IB/Login2.jar with proxy=DIRECT
    network: CleanupThread used 299461 us
    network: Connecting http://internet-banking.dbs.com.sg:443/ with proxy=DIRECT
    network: Connecting https://internet-banking.dbs.com.sg/IB/Login2.jar with proxy=DIRECT
    network: Connecting http://internet-banking.dbs.com.sg:443/ with proxy=DIRECT
    java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
         at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)
         at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)
         at sun.plugin.PluginURLJarFileCallBack$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
         at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
         at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)
         at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
         at sun.misc.URLClassPath$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    network: Connecting https://internet-banking.dbs.com.sg/IB/Login2.jar with proxy=DIRECT
    network: Connecting http://internet-banking.dbs.com.sg:443/ with proxy=DIRECT
    2) Firefox:
    Java Plug-in 1.6.0_13
    Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\xxx
    network: No certificate info for unsigned JAR file: https://internet-banking.dbs.com.sg/IB/Login2.jar
    network: Cache entry found [url: https://internet-banking.dbs.com.sg/IB/Login2.jar, version: null]
    network: Connecting https://internet-banking.dbs.com.sg/IB/Login2.jar with proxy=HTTP @ mocwsg01.m1.com.sg/10.33.90.91:8080
    network: CleanupThread used 306588 us
    security: Loading Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
    security: Loading SSL Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
    security: Loaded SSL Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
    security: Loading Deployment SSL certificates from C:\Documents and Settings\xxx\Application Data\Sun\Java\Deployment\security\trusted.jssecerts
    security: Loaded Deployment SSL certificates from C:\Documents and Settings\xxx\Application Data\Sun\Java\Deployment\security\trusted.jssecerts
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Checking if certificate is in Deployment denied certificate store
    network: ResponseCode for https://internet-banking.dbs.com.sg/IB/Login2.jar : 200
    network: Encoding for https://internet-banking.dbs.com.sg/IB/Login2.jar : null
    network: Disconnect connection to https://internet-banking.dbs.com.sg/IB/Login2.jar
    basic: Applet loaded.
    basic: Applet resized and added to parent container
    basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 1677884 us, pluginInit dt 1844261 us, TotalTime: 3522145 us
    basic: Applet initialized
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@15ee671
    basic: Applet made visible
    basic: Starting applet
    basic: Applet started
    basic: Told clients applet is started

    Did you ever resolve this issue ? We have recently moved from a http based pac file to using file://netlogon share/proxy.pac. Recievng similar errors as you describe with various applets. Seems to work ok when using the same pac file launched by http rather than file. Seems to be various BUG's marginally related to similar issues but nothing to confirm that its a real problem.
    Be great if anyone has an answer to this.
    Thanks

  • HP C309a All in one Printer - Problems with printing documents the correct size.

    Hi I recently purchased an HP 309a as a replacement for an EPSON printer which had to be replaced a couple of times so I thought I would change manufacturer.
    The HP printer prints well in post places but when I print from Excel on an A4 scale it only prints 3/4 size on an A4 page.  I tried everything to get it to print the correct size.  I have adjusted the settings to scale to A4, print boderless etc and it just will not print correctly.
    It seems to be ok in Word and many other programs so I don't know why there is an issue with Excel.  Iam I missing something, please help.
    Also is there any way to default the printer to A4 automatically instead of 8" x 11".

    I also have issues using this printer with Excel/ Word.
    When I am using Excel or Word I have to remove the HP 309a as my default printer.
    when set as default, excel and word just "hang" for up to 3 minutes when opening or saving.
    I called HP who said the printer works with all other files so basically it's tough. One of their tech guys tried to sort it out but couldn't.
    Has anyone else had this same problem? If so, how was it resolved?
    £300 for a printer that doesn't work with MS. It's not funny and I won't buy HP product again.

  • HP 4622 All in One Printer: Problem with Printer or Ink System

    Problem with Printer or Ink System Error OXC19a0027.

    charleshia wrote:
    Thanks so much for replying to my post. I tried the fist suggestions and they did not work. So, I attempted to move on Dow to the cleaning of my printer. I am the the first to admit that I'm not the genius when it come to electronics buys, my printer do not seem to have what is described in the photos. I'd like to upload a photo of my ink cartage but do not know how.
    Charleshia, you can upload a photo here to reply. Click Reply, then on the window you'll see the image below..
    click the one which has the red box, it's where you insert the photo
    Going back on your issue.. the basic step would be.. take out the inks then close the door... what error message you  got? If it's saying "Missing Ink Cartridge" just hit OK. Unplug the power cable at back of the printer, plug it back in.. Clean the copper contacts on the ink cartridges using a lint free cloth then reinstall them. Let me know if it resolved it or not.. I can only give basic troubleshooting here

  • Signed java applet is very slow with 1.4.2_06

    We have an application which has a signed jar applets was working fine with Java Plug-in (JPI) version 1.4.1_02.
    Due to customer requirement they want to run the same applet with JPI version 1.4.2_06, After JPI upgrade the applet is running slow.
    I am not sure what sun has changed the security settings in 1.4.2_06. So, Can some one give there thoughts on why would it run slow because of JPI changes.
    Thanks in advance.
    Aj

    Hi,
    It is nothing to do with Signed applet.
    If URL Connection 's setDefaultCacheUses is set to false then this is causing to run the Applet slow. As it require to download complete jar(if any) everytime.
    From 1.4.1_02 (CachedJarURLConnection.class in jaws.jar):
    public void connect()
    throws IOException
    if(!connected)
    jarFile = JarCache.get(jarFileURL);
    if(jarFile != null)
    {�.
    From 1.4.2_06 (CachedJarURLConnection.class in plugin.jar):
    public void connect()
    throws IOException
    if(!connected)
    if(getUseCaches())
    jarFile = JarCache.get(jarFileURL);
    if(jarFile != null)
    {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • What are the limitations of Java,what cannot be done with Java?

    Hello.I want to ask, is there anything which cannot be done with Java related to computer programming ,does Java have limitations?

    BIJ001 wrote:
    You need a JVM to run Java applications.Usually yes but nothing prevents you from writing a compiler to compile Java sources right into native code.@Everyone: Sorry folks, I meant to say "Never say unequivocally that something cannot be done. Time will more than likely prove you wrong."... which I think you all got the gist off, despite what I actually said.
    @BIJ: Hmmm yep, so that sort-of brings writing a device driver in the Java language into the realms of practicality, except you'd still have to work-around the fact that Java is by design a device/OS idependant language, so one suspects that you'd probably end-up using to JNI to call a large and complex library of assembler (or something) functions, which actually do the work... hence you'd probably be better of in assembler, C, or indeed any "native" language, or combination thereof.
    Java excels at writing "large and complex business systems". Java pretty much sucks at writing "low-level CS stuff", which C (and assembler) both excel at... Hence some knowledge of both helps you pick the tool for the task, and create "complementary" layers of abstraction in your application, which (the theory goes) make it robust and flexible.
    I do think that it's interesting that Java excels in exactly the places where C is/was "undercooked".... I do sometimes wonder if that was by design; like the language designers intended them to be complementary tools or something.
    Cheers. Keith.

  • HP Printer problems with printing in one ink colour

    My printer is only printing in a single colour, which is Red.

    Hey ,  Thanks for posting in the HP Support Forum.  I see that you're encountering a print quality issue with your HP printer.  I would like to help.  In order to provide the most relevant information I need to know which printer model you're working with.  When I search 'J250 Series Printer' on our website it brings up several different models.    Please clarify this information and I'll be sure to reply with steps you can try.  Thanks, 

  • No sound in java applets in 32bit firefox with bin32-jre plugin.

    I got sound in flash, but not in java applets. Is this a known issue? Any workarounds?

    I should probably make a wiki article (or ad to the Java wiki article) about this, since it seems to come up quite often (especially on Ubuntu forums, actually). The only good solution I've found is to use Pulseaudio, and rename the java executable to java.bin, and make a script called java in the same folder, and put this in the script:
    #!/bin/sh
    padsp /opt/java/jre/bin/java.bin "$@"
    By the way, the path to the java executable is /opt/java/jre/bin/ I've tried using the same method with plain ALSA by using aoss, and it works sorta, but it causes random crashes of Java, so that's a no go, have to use Pulse.

Maybe you are looking for

  • Cannot create audio CDs

    Since upgrading to v. 7, there is no way to burn an audio CD of my playlists. I get a message that says either I can't burn music purchased from the iTunes store to CD, or a message that tells me my aiff files can't be burned to an mp3 cd. HELP. imac

  • 2 phones, different contact lists

    Hi, I wonder if someone can help? I have an iphone 4, we have just upgraded my wife to my old iphone 4. I have a mega list of contacts, my wife has a sensible list of contacts - we do not want to share them but we want to share itunes, how do we do t

  • The method of leaving cursor at selecting item of list box.

    Hello. Pleas let me ask about the subject!!! Concerning the screen by web-dynpro, I have a problem that when I select one listbox after selecting another listbox, the screen moves up to the top automatically. I would like to prevent from above moving

  • N8 DAB Radio available

    Just ran updates on my phone and it says DAB radio. Not sure if this has been posted elsewhere. You need a digital headset. Not sure why no internet radio yet.

  • Unable to deploy portlet into standalone oc4j

    Hi, I am very new to the portal development and I have been following the portal development/deployment instructions given on oracle for developing a Struts based portlet. I have created the a new application server connection to the standalone oc4j