Offline allowed - Perplexed

I am using JWS 1.4.2 and the question pertains to the usage of
<offline-allowed/> tag.
The requirements for the project are quite straight forward. First time
install of the application and download of updates if available.
Our application will be deployed on about 100 workstations(PC's) and
under no circumstance can we risk that few of the workstations have
older application and few have latest updated version when production fixes are implemented. So if an update
is available either it is downloaded on all workstations or none.
In light of the above, what is the recommdentation about usage of
<offline-allowed> tag in the JNLP file.
I have researched the Sun forums it says that if using
<offline-allowed> the update is ot guarenteed and further if this tag is ommitted than the JWS may hang forever checking for updates.
(http://forum.java.sun.com/thread.jspa?forumID=38&threadID=452567)
Kindly suggest for my requirements should I be using the tag in JNLP or not.
Looking forward for Andy to come to my rescue.

The way offline-allowed is supposed to work is that the application will not run if JavaWS can't connect to the server. What happens is a dialog is displayed saying the app won't run.
This is not hung, it's just waiting for the user to acknowledge it. There was a problem in 1.4.2 with some of the modal dialog. The problem was that dialogs that we modal were not being brought to the front correctly. Sometimes the dialog would get completely hidden by another JavaWS window. The app would then seem to be hung. I can't remember if this dialog was one of them or not. Anyway, that bug is fixed.
The best way to find out how your app will behave is to run it once, so you have a shortcut, then just unplug your network cable. ;-)
Mike.

Similar Messages

  • If I include offline-allowed  then creation of shortcuts will be disabled?

    Hi,
    I noticed that if in a JNLP file I included the element <offline-allowed/> element, then in my JWS cache viewer the "install shortcuts" function would be disabled (grayed out).  I had to remove this element to regain that function.  This was true no matter I set the other element attribute online for the shortcut element to be "true" or "false".
    I was using JRE/JDK 1.6.0_03 (build 1.6.0_03-b05)
    Clement
    Here are the snippet of my code that did not work (i.e. no shortcut function)
    <jnlp spec="1.0+"
          codebase="...">
       <information>
          <title>Some GUI Client</title>
          <vendor>Some company</vendor>
          <description>Some product
          </description>
          <homepage href="http://www.company.com"/>
          <description kind="short">Some Client</description>
          <icon kind="splash" href="../images/JWS-splash.jpg"/>
          <icon href="../images/JWS-icon.64x64.gif"/>
          <offline-allowed>
          <shortcut online="false">
            <desktop/>
            <menu submenu="Some Product"/>
          </shortcut>
       </information>
       <resources>... Here is the snippet of my code that worked (i.e. shortcut function allowed). Note that if I set online="true" the test result was the same.
    <jnlp spec="1.0+"
          codebase="...">
       <information>
          <title>Some GUI Client</title>
          <vendor>Some company</vendor>
          <description>Some product
          </description>
          <homepage href="http://www.company.com"/>
          <description kind="short">Some Client</description>
          <icon kind="splash" href="../images/JWS-splash.jpg"/>
          <icon href="../images/JWS-icon.64x64.gif"/>
          <shortcut online="false">
            <desktop/>
            <menu submenu="Some Product"/>
          </shortcut>
       </information>
       <resources>
         ...

    Hi,
    I double checked my typing. I retested and made sure that <offline-allowed/> is ended correctly with the "/>" but still I could not install shortcut. I must take out that line to get back my option of "install shortcuts".
    However, now I've found a workaround. I omit the (trouble-making) line of <offline-allowed/> but turn the online attribute of the shortcut element to "false". That is
          <shortcut online="false">
            <desktop/>
            <menu submenu="Some GUI"/>
          </shortcut>And this would work (i.e. I can install shortcuts)
    If I am not missing something, that I believe there may be a bug introduced very recently. I am using JRE/JDK of 1.6.0 (build 1.6.0_03-b05)
    Thanks!
    Clement

  • Questions on offline-allowed

    Hey guys,
    Our application needs to have the ability to work offline. Hence i put the <offline-allowed/> element in the jnlp file.
    However I was seeing some cases, where I was not getting the latest version of the application even while online.
    The web start developer docs say :
    If offline-allowed is specified, Java Web Start will also check to see if an update is available. However, if the application is already downloaded the check will timeout after a few seconds, in which case the cached application will be launched instead. Given a reasonable fast server connection, the lastest version of the application will usually be run, but it is not guaranteed. The application, however, can be run offline.
    Is there any way to guarantee that the latest version of the application is downloaded if the user is online ? Writing an application that clears the cache possibly ?
    What experiences have y'all had with compatability problems with different versions of the app on the users machine and on the server ?
    Thanks

    The problem is the <offline-allowed> is overloaded.
    w/o it a program will wait infinately for the download host to determine if there is an update. (this can greatly slow down launching, even when online and there is no update available)
    with <offline-allowed>, Java Web Start still dosn't really know if it is being run offline or online (unless launched with arg "-offline" which will not check for update at all). In this case it will check for finite amount of time (in 1.4.2 is 1.5 seconds). If it can't determine in that much time if there is an update, it will launch from cache, and continue to check in background.
    in 1.4.2, you can put in deployment.properties the value:
    deployment.javaws.forceUpdate=true
    this will cause all apps to never timeout checking for updates (assuming not launched with "-offline")
    or you can increese the timeout with:
    deployment.javaws.updateTimeout=5000 (this would change from 1.5 to 5 seconds
    unfortunately you can only do this on the indivual clients.
    /Dietz

  • offline-allowed/ is not interpreted

    Hello,
    I've tried to deploy an application with JWS, which worked fine so far. I did NOT specify the <offline-allowed/> element within the <information> tag, anyway, JWS starts the application even if I stop the server and pull the network cable out.
    But what I actually want is that JWS refuses to start the application when no connection to the originating server is available.
    Could anyone give me a hint?
    Thanks, Rod.

    What version of Java Web Start are you running. ?1.4.2_05
    I think, since version 1.4.2, if network is disabled
    and app has no <offline-allowed> tag, Web Start will
    wait forever at the Download Window checking for
    updates.On my box it just starts, no matter online or offline.

  • How do I allow offline use AND check for updates if online?

    I am actually not sure if this is a bug or not, as the behavior changed when I updated from 1.6u20 to u21. I have an application in a single JAR, and a JNLP file. I am testing with Windows 7 64-bit (with both the 32- and 64-bit version of the JVM installed, 1.6u20-b06 on both). The application cache is enabled. Here is my JNLP file:
    <?xml version="1.0" encoding="us-ascii"?>
    <jnlp
      spec="6.0+"
      codebase="http://hidden"
      href="Librarian.jnlp">
      <information>
        <title>Librarian</title>
        <vendor>Vendor</vendor>
        <homepage href="http://hidden"/>
        <description>Description.</description>
        <offline-allowed/>
        <shortcut online="false">
          <desktop/>
          <menu submenu="Vendor"/>
        </shortcut>
        <icon href="Librarian.gif"/>
      </information>
      <security>
        <all-permissions/>
      </security>
      <resources>
        <j2se version="1.6+"/>
        <jar href="Librarian.jar" main="true"/>
      </resources>
      <application-desc main-class="com.vendor.apps.librarian.Librarian"/>
    </jnlp>I am observing the following behavior wrt updates and allow-offline:
    When allow-offline is present:
    - JWS does not download updates to the JAR file when the desktop link is clicked.
    - The application can run when I disable the network connection.
    - The "-offline" switch is passed to javaw in the desktop shortcut.
    When allow-offline is not present:
    - JWS does download JAR updates when the desktop link is clicked.
    - The application can not run when I disable the network connection (HostNotFoundException).
    - The "-offline" switch is not passed to javaw in the desktop shortcut.
    What I want to happen is for JWS to check for updates if it can, and if it times out, instead of barfing, just go ahead and run the cached version. What I can get right now is either no updates + offline allowed, or updates + offline disallowed. However, I can obtain the behavior I want if I specify allow-offline then hand-edit the desktop shortcut and remove "-offline":
    When allow-offline is present but I remove "-offline" from the desktop shortcut:
    - JWS does download updates to the JAR file.
    - The application can run when I disable the network connection, after a short timeout.
    Now, I was under the impression that this behavior is the intended behavior of allow-offline: attempt to download update, on error, silently start the cached version instead. This does not seem to be the case. I actually wonder if this is a bug, as with 1.6u20, it seemed to download JAR updates just fine when allow-offline was specified (I had issues when the cache was disabled with 1.6u20, and so I moved to u21).
    How can I make this work the way I want without having to hand edit the desktop shortcut?
    Is this a bug, or am I misconfiguring (OED says this is a real word!) the application?
    Is there something else I have to do to indicate that the JAR is updated besides just uploading a new version to the server?
    It should be noted that I am not doing any web page magic here, I'm testing by simply downloading the JNLP file off the server and opening it. This is actually my first JWS experience and I haven't gotten to properly embedding it in a web page yet. I do not know if this is significant or not.
    Thanks!
    M

    Well, I solved that quick. I've been staring at it for over an hour but it popped out at me as soon as I looked at my JNLP file in my post here (guess it's the red text, heh).
    All I need to do is set online="true" in the shortcut, and also specify allow-offline, and all works exactly as I want it to. :-)
    Perhaps it was a bug in u20 that was causing it to check for updates anyways even with an offline shortcut... I'm not sure, and I don't have it in me to test it any more at the moment.
    Thanks,
    M

  • Java Web Start(the program itself) doesn't start in offline mode

    Hi,
    My Java Web Start doesn't start when my internet connection is not on??? I have a program that needs also offline access so it's crucial to get JWS work without internet connection as well.
    The problem might be in those sun's example programs you can't remove? Maybe the program crashes when trying to get some information for those programs?
    (please read the question well. My problem IS NOT in the .jnlp-files <offline-allowed/>)
    And by the way those sun's demo programs that are supposed to start in offline mode(Internet connection not required) don't start even if you have started them once with the connection on.....
    -orainio

    I have the SAME problem -
    BUT....
    it NEVER works for me (online & offline)
    this stupid logon pops up and after a while disappears and nothing happens!
    got no fire wall, proxy etc...
    (win XP)
    plz helppppppppp

  • Bug: JWS App won't start offline

    Hello,
    I have specified <offline-allowed/>, and if the client can not connect via TCP it works as expected.
    However, if the client connects to the JnlpDownloadServlet - which never responds sometimes because of bugs - the client hangs forever.
    The bug is that the JWS launcher never sets the socket read timeout. I wonder if it also sets the connect timeout. Because of the bugs in the JnlpDownloadServlet, this is a critical problem.
    Cheers.

    OK - this seems to be happening to me on a regular basis now. I have caught the bug in action with a kill -3 so Sun can see the exact line where the bug is in the JnlpDownloadServlet:
    The stack trace (from kill -3) shows the JnlpDownloadServlet stuck in SimpleDateFormat during a JWS scanDirectory(ResourceCatalog.java:281).
    It is stuck on this exact line forever. The major problem with this is:
    *** Tomcat accept()s connections successfully, and the JWS client locks forever waiting for some sort of response. Perhaps if there was a socket read timeout set the client would be able to continue after the timeout (a 5 second timeout (or configurable) would be nice).
    "Thread-4" daemon prio=1 tid=0x081db610 nid=0x58ec waiting on condition [54602000..54603854]
    at java.text.SimpleDateFormat.format(SimpleDateFormat.java:782)
    at java.text.SimpleDateFormat.format(SimpleDateFormat.java:775)
    at java.text.DateFormat.format(DateFormat.java:314)
    at java.util.Date.toString(Date.java:987)
    - locked <0x45b5d8a0> (a java.text.SimpleDateFormat)
    at java.lang.String.valueOf(String.java:2131)
    at java.lang.StringBuffer.append(StringBuffer.java:370)
    - locked <0x44840288> (a java.lang.StringBuffer)
    at com.sun.javaws.servlet.JnlpResource.toString(JnlpResource.java:142)
    at java.lang.String.valueOf(String.java:2131)
    at java.lang.StringBuffer.append(StringBuffer.java:370)
    - locked <0x44840218> (a java.lang.StringBuffer)
    at com.sun.javaws.servlet.ResourceCatalog.scanDirectory(ResourceCatalog.java:281)
    at com.sun.javaws.servlet.ResourceCatalog.lookupResource(ResourceCatalog.java:87)
    at com.sun.javaws.servlet.JnlpDownloadServlet.handleVersionRequest(JnlpDownloadServlet.java:120)
    at com.sun.javaws.servlet.JnlpDownloadServlet.locateResource(JnlpDownloadServlet.java:141)
    at com.sun.javaws.servlet.JnlpDownloadServlet.handleRequest(JnlpDownloadServlet.java:94)
    at com.sun.javaws.servlet.JnlpDownloadServlet.doGet(JnlpDownloadServlet.java:50)
    at javax.servlet.http.HttpServlet.doHead(HttpServlet.java:313)

  • Offline Mode - command line

    Hi,
    How can i launch my app in offline mode from a command line ? I have added
    <offline-allowed/> to my Jnlp and use the following
    java -Djnlpx.home="c:/program files/java web start" -cp "c:\program files\java web start\javaws.jar" com.sun.javaws.Main http://localhost/tech/tech.jnlp
    The application gets downloaded and runs fine. Now if i turn of the Web Server (IIS), then try the above command it won't work. Shoudn't it work as the offline tag is present in local jnlp ? I thought webstart would be using its local cache if the web server is down, as long as the offline tag is present.
    With the Offline tag, Offline mode does work fine from webstart application manager even when the Web server is down. Is there a switch to do the same using the above command line ?
    Any response is much appreciated.
    Best regards,
    zap

    Marc, thanks for the prompt reply.
    I guess its a subtle confusion on my part with the use of offline-mode. From the webstart app manager, i did click the connector plug-icon and the application got launched from the local cache correctly. The scenario is that the the web server is down but the machine still connected to the network and hence my program even does network stuff. Now when i tried to launch the application from command line and still providing a URL argument instead of a path of the Jnlp in the cache, it didn't work. I had thought that either there might be an offline switch in the command line or javaws would automatically launch the jnlp from the local cache even when provided with a bad Url argument. But in the absence of the above, i have now explicitly indicated the local Jnlp path and the following is working fine from the command line in the above context (web server down).
    java -Djnlpx.home="c:/program files/java web start" -cp "c:\program files\java web start\javaws.jar" com.sun.javaws.Main "file:///C:/Program Files/Java Web Start/.javaws/cache/http/Dlocalhost/P80/DMtech/AMTechClient.jnlp"
    Thanks again.
    Best,
    zap

  • Launching an app offline (without -offline)

    Hi Guys,
    I've a problem launching MY application while
    the apacheserver where the codebase lies is down.
    First: I HAVE put the <offline-allowed/> tag to
    my jnlp!!
    At the first start, JWS (1.2) is downloading the
    jars and constructs the local jnlps. When the
    server is online it runs pretty good.
    BUT if it is offline JWS tries to connect and
    coundn't find the ressources (what else!).
    If I launch for example "Draw" it works offline.
    I explored the ALxxx.jnlp and set the tag
    _default.forcedUpdateCheck=false
    Doesn't work!!
    The only way to launch the app offline is
    from commandline typing ...
    ... javaws -offline AMxxx.jnlp
    WHY doesn't it work under applicationmanager?
    Regards
    J�rgen

    remove the "href" attribute from the jnlp tag in your
    .jnlp file. That should work.I've tried it but it still doesn't work!!
    The jnlp file looks like the AMdraw.jnlp!
    It doesn't matter that I switch JWS itself
    on- or offline. In both cases the app
    won't be launched.
    Regards
    J�rgen

  • Java Web Start crashes when I'm offline

    I'm using java web start 1.0.1_01 on windows NT 4.0
    I've downloaded an application on my laptop and it works fine.
    I'd like to make a demo of the application while I'm offline (this appli has the <offline-allowed /> tag in its jnlp).
    The problem is that java web start crashes when I try to start it offline: I get a dialog box saying:
    "Splash: sysCreateListenerSocket failed" instead of the usual splash screen.
    Any ideas...?

    There is a little plug at the bottom of the webstart console. Have you tried clicking on that plug? Make sure it is not like this
    ---<>---
    you want it like
    ---<= =>---
    Then try starting it up. If that doesn't work try doing the same thing with an application that doesn't have the <offline-allowed/> tag? Does it fail in the same way? My guess is that it is trying to compare versions or communicate back with the server that you installed the app from, and it's failing because you are not connected.
    charlie

  • Deploying an offline JavaFx application

    Hey guys,
    I have an issue deploying an offline JavaFx program I wrote a while back. What I used to do before 1.3.1 to deploy it was to modify the jnlp file (codebase and href) to point to my local files, but after 1.3.1 it doesn't work anymore (Sometimes the file will launch the first time and not subsequent times or sometimes the file won't launch at all)
    my current modified JNLP file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="File:." href="XLS2RQM.jnlp">
    <information>
    <title>XLS2RQM</title>
    <vendor>murillod</vendor>
    <homepage href=""/>
    <description>XLS2RQM</description>
    <icon kind="splash" href="http://dl.javafx.com/1.3/splash.png"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5+"/>
    <property name="jnlp.packEnabled" value="true"/>
    <property name="jnlp.versionEnabled" value="true"/>
    <extension name="JavaFX Runtime" href="http://dl.javafx.com/1.3/javafx-rt.jnlp"/>
    <jar href="XLS2RQM.jar" main="true" size="59916"/>
    <jar href="lib/jxl.jar" size="755849"/>
    </resources>
    <application-desc main-class="com.sun.javafx.runtime.main.Main" progress-class="com.javafx.progressbar.ProgressManager">
    <argument>MainJavaFXScript=xls2rqm.Main</argument>
    </application-desc>
    <update check="always"/>
    </jnlp>
    any thoughts?
    Thanks!

    stormer13 wrote:
    <jnlp spec="1.0+" codebase="File:." href="XLS2RQM.jnlp">Please ensure that your codebase is pointing to right directory/server.
    For server
    e.g. <jnlp spec="1.0+" codebase="http://example.com/javafx/" href="jnlp_file_name.jnlp">
    For local
    e.g. <jnlp spec="1.0+" codebase="file:///c:/javafx/" href="jnlp_file_name.jnlp">

  • Error in JavaHelp

    Hello:
    I have JWS app I've been working on for a long time. I just added JavaHelp to it. I got it all working nicely on my local machine. When I went to deploy in JWS, I ran into a permission problem. JavaHelp is included as an extension, and I've set <security> to <all-permissions/> in both JNLPs, but I still get the following exception:
    Parsing failed for null
    Exception caught while parsing nulljava.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
    java.lang.NullPointerException
      at javax.help.plaf.basic.BasicFavoritesNavigatorUI.reloadData(BasicFavoritesNavigatorUI.java:297)
      at javax.help.plaf.basic.BasicFavoritesNavigatorUI.installUI(BasicFavoritesNavigatorUI.java:235)
      at javax.swing.JComponent.setUI(JComponent.java:647)
      at javax.help.JHelpNavigator.setUI(JHelpNavigator.java:257)
      at javax.help.JHelpNavigator.updateUI(JHelpNavigator.java:276)
      at javax.help.JHelpNavigator.<init>(JHelpNavigator.java:105)
      at javax.help.JHelpFavoritesNavigator.<init>(JHelpFavoritesNavigator.java:62)
         ... more omitted
    Here are my JNLP files:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
    codebase="http://www.mydomain.com/"
    href="mydomain.jnlp"
    version="0.14">
      <information>
        <title>My Client</title>
        <vendor>MyCompany, LLC</vendor>
        <description>MyCompany rules.</description>
        <homepage href="http://mydomain.com"/>
        <offline-allowed/>
      </information>
      <resources>
        <jar href="mydomain.jar"/>
        <j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se"/>
        <extension name="Java Help" href="lib/javahelp.jnlp"/>
      </resources>
      <application-desc main-class="com.mydomain.core.Main"/>
      <security>
        <all-permissions/>
      </security>
    </jnlp>
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
    codebase="http://www.digibunker.com/"
    href="lib/javahelp.jnlp"
    version="2.0">
      <information>
        <title>Java Help</title>
        <vendor>Sun Microsystems</vendor>
        <description>Java Help System.</description>
        <homepage href="http://java.sun.com/javase/technologies/desktop/javahelp"/>
        <offline-allowed/>
      </information>
      <resources>
        <jar href="lib/jh.jar" download="lazy" part="JavaHelp" />
        <jar href="lib/jhall.jar" download="lazy" part="JavaHelp" />
        <jar href="lib/jhbasic.jar" download="lazy" part="JavaHelp" />
        <jar href="lib/jsearch.jar" download="lazy" part="JavaHelp" />
        <j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se"/>
      </resources>
      <component-desc>
      <security>
        <all-permissions/>
      </security>
    </jnlp>
    Any and all help welcomed.
    Thanks, Dan
    Edited by: dlamet on Jan 8, 2010 5:40 PM

    AndrewThompson64
    Thanks for the quick response. I downloaded your app (very good idea BTW!) and ran it against my JNLP file. It reported a number of issues to me, but I don't understand them. I subsequently located the JNLP spec 6.0.10 here and went through it carefully. (I ended up discovering some nice features I added to my file.) I ended up with the following file, but the errors seem to be the same. The output is below the JNLP.
    Is it possible that your app is analyzing against an outdated version of the JNLP spec? It's all that I can figure. Perhaps you could explain just one or two of the node errors to get me started. Thanks again! Dan
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
    codebase="http://www.digibunker.com/"
    href="digibunker.jnlp"
    version="0.14">
      <information>
        <title>DigiBunker Client</title>
        <vendor>DigiBunker, LLC</vendor>
        <homepage href="http://www.digibunker.com"/>
        <description kind="tooltip">Automated media back up.</description>
        <description kind="one-line">The DigiBunker client makes protecting your media files easy.</description>
        <icon href="http://www.digibunker.com/images/icon-32.png"
    version="1.0"
    width="32"
    height="32"
    size="6243" />
        <offline-allowed/>
        <shortcut>
          <desktop />
          <menu />
        </shortcut>
      </information>
      <security>
        <all-permissions/>
      </security>
      <resources>
        <j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se"/>
        <jar href="digibunker.jar" main="true" />
        <extension name="Java Help" version="2.0" href="lib/javahelp.jnlp">
          <ext-download download="lazy" />
        </extension>
      </resources>
      <application-desc main-class="com.judedavid.eros.core.Main"/>
    </jnlp>
    Content type application/xml does not equal expected type of application/x-java-jnlp-file
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'homepage'. One of '{description, icon, offline-allowed, shortcut, association, related-content}' is expected.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'j2se'. One of '{jar, nativelib, extension, property, package}' is expected.
    cvc-complex-type.2.4.d: Invalid content was found starting with element 'security'. No child element is expected at this point.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'homepage'. One of '{description, icon, offline-allowed, shortcut, association, related-content}' is expected.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'j2se'. One of '{jar, nativelib, extension, property, package}' is expected.
    cvc-complex-type.2.4.d: Invalid content was found starting with element 'security'. No child element is expected at this point.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'homepage'. One of '{description, icon, offline-allowed, shortcut, association, related-content}' is expected.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'homepage'. One of '{description, icon, offline-allowed, shortcut, association, related-content}' is expected.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'j2se'. One of '{jar, nativelib, extension, property, package}' is expected.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'j2se'. One of '{jar, nativelib, extension, property, package}' is expected.
    cvc-complex-type.2.4.d: Invalid content was found starting with element 'security'. No child element is expected at this point.
    cvc-complex-type.2.4.d: Invalid content was found starting with element 'security'. No child element is expected at this point.
    XML encoding not known, but declared as utf-8
    Codebase + href 'http://www.digibunker.com/digibunker.jnlp' is not equal to actual location of 'file:/Y:/Moonlighting/JudeDavid/site/athena/public/digibunker.jnlp'.
    Downloads can be optimized by specifying a resource size for 'digibunker.jar'.
    The resource download at digibunker.jar can be optimized by removing the (default) value of download='eager'.
    The resource download at digibunker.jar can be optimized by removing the (default) value of main='false'.
    It might be possible to optimize the start-up of the app. by specifying download='lazy' for the digibunker.jar resource.
    Lazy downloads might not work as expected for digibunker.jar unless the download 'part' is specified.
    Resource type com of resource http://digibunker.com is not one of the allowable types of jar.
    Report for http://www.digibunker.com/lib/javahelp.jnlp

  • Feature or a Bug - App launched with n/w cable unplugged

    I have tested the following behaviour with both JWS 1.4.2 and JWS 1.5.0_06
    The JNLP does NOT have a <offline-allowed> tag.
    Expected behaviuor:
    When I unplug the network cable from my PC and launch the application (already in the cache), Java Web start should give an error (this is as per SUN's documentation) and should not launch the application from the cache.
    Observed behaviuor:
    For both JWS 1.4.2 and 1.5.0_06, I unplugged the network cable from my PC and still JWS launched the application from cache.
    This is very weird behaviuor and need immediate assistance. Has anyone else performed this test.

    This looks like a bug (5075953) that was fixed for mustang but is still there in tiger.
    I can confirm this , so I am opening a tiger version of the bug, and will ask that it is included in a future update release.
    /Andy

  • Application Error: Unable to launch application

    Hi guys,
    My name is Jay Sun and I am new this this Forums.  I am told by my professor to migrate from this Java application to Java Web Start.
    I read all about it but I'm still struggling.  I have an example program called Traffic Light.  From the TrafficLight class,
    I created a .jar file from .java file.  The jar file runs perfectly fine and I created a .jnlp file using this.<?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
    codebase="file:///C:/Documents and Settings/HP_Administrator/Desktop/TrafficLight" href="TrafficLight.jnlp">
    <information>
    <title>Traffic Light</title>
    <vendor>Java Developer Connection</vendor>
    <homepage href="/jdc" />
    <description>Demonstration of JNLP</description>
    </information>
    <offline-allowed/>
    <resources>
    <j2se version="1.6+" />
    <jar href="TraffcLight.jar"/>
    </resources>
    <application-desc main-class="Traffic Light" />
    </jnlp>That's my .jnlp file.
    My .java file is below it.import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class TrafficLightFrame extends JFrame {
    // These are the window's components
    private JRadioButton[] buttons = new JRadioButton[3];
    private JButton advButton;
    private JProgressBar progressBar;
    private JSlider slider;
    private JComboBox actionList;
    private JCheckBox autoButton;
    public TrafficLightFrame(String title) {
    super(title);
    buildWindow();
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setSize(400, 250);
    // Add all components to the frame's panel
    private void buildWindow() {
    GridBagLayout layout = new GridBagLayout();
    GridBagConstraints constraints = new GridBagConstraints();
    setLayout(layout);
    // Add all the labels
    JLabel label = new JLabel("Manual");
    constraints.gridx = 0;
    constraints.gridy = 0;
    constraints.gridwidth = 1;
    constraints.gridheight = 1;
    constraints.weightx = 0;
    constraints.weighty = 0;
    constraints.fill = GridBagConstraints.NONE;
    constraints.anchor = GridBagConstraints.NORTHWEST;
    constraints.insets = new Insets(5, 5, 0, 0);
    layout.setConstraints(label, constraints);
    add(label);
    label = new JLabel("Action");
    constraints.gridx = 1;
    layout.setConstraints(label, constraints);
    add(label);
    label = new JLabel("Advance");
    constraints.gridx = 2;
    layout.setConstraints(label, constraints);
    add(label);
    label = new JLabel("Timer Progress");
    constraints.gridx = 0;
    constraints.gridy = 4;
    layout.setConstraints(label, constraints);
    add(label);
    // Add the Radio Buttons
    ButtonGroup lights = new ButtonGroup();
    JPanel aPanel = new JPanel();
    aPanel.setLayout(new BoxLayout(aPanel, BoxLayout.Y_AXIS));
    aPanel.setBackground(Color.black);
    for (int i=0; i<3; i++) {
    buttons[i] = new JRadioButton("", false);
    buttons.setBackground(Color.black);
    lights.add(buttons[i]);
    aPanel.add(buttons[i]);
    buttons[0].setText("Red");
    buttons[1].setText("Yellow");
    buttons[2].setText("Green");
    buttons[0].setForeground(Color.red);
    buttons[1].setForeground(Color.yellow);
    buttons[2].setForeground(Color.green);
    constraints.gridx = 0;
    constraints.gridy = 1;
    constraints.gridheight = 3;
    constraints.fill = GridBagConstraints.BOTH;
    layout.setConstraints(aPanel, constraints);
    add(aPanel);
    // Make the Actions List
    String[] actions = {"Stop", "Yield", "Go"};
    actionList = new JComboBox(actions);
    constraints.gridx = 1;
    constraints.gridy = 1;
    constraints.gridheight = 1;
    constraints.weightx = 1;
    constraints.fill = GridBagConstraints.HORIZONTAL;
    layout.setConstraints(actionList, constraints);
    add(actionList);
    // Make the Slider
    slider = new JSlider(JSlider.HORIZONTAL, 0, 20, 1);
    slider.setMajorTickSpacing(5);
    slider.setMinorTickSpacing(1);
    slider.setPaintTicks(true);
    slider.setPaintLabels(true);
    constraints.gridx = 1;
    constraints.gridy = 3;
    layout.setConstraints(slider, constraints);
    add(slider);
    // Add the auto checkbox button
    autoButton = new JCheckBox("Auto Advance");
    constraints.gridx = 1;
    constraints.gridy = 2;
    constraints.fill = GridBagConstraints.BOTH;
    layout.setConstraints(autoButton, constraints);
    add(autoButton);
    // Add the Advance Picture button
    advButton = new JButton(new ImageIcon("RedLight.jpg"));
    constraints.gridx = 2;
    constraints.gridy = 1;
    constraints.gridheight = 3;
    constraints.weightx = 0;
    constraints.weighty = 1;
    constraints.fill = GridBagConstraints.BOTH;
    constraints.insets = new Insets(5, 5, 0, 5);
    layout.setConstraints(advButton, constraints);
    add(advButton);
    // Add the progress bar
    progressBar = new JProgressBar(JProgressBar.HORIZONTAL, 0, 8);
    constraints.gridx = 0;
    constraints.gridy = 5;
    constraints.gridwidth = 3;
    constraints.gridheight = 1;
    constraints.weightx = 1;
    constraints.weighty = 2;
    constraints.fill = GridBagConstraints.BOTH;
    constraints.insets = new Insets(5, 5, 5, 5);
    layout.setConstraints(progressBar, constraints);
    add(progressBar);
    public static void main(String args[]) {
    TrafficLightFrame frame = new TrafficLightFrame("Traffic Light");
    frame.setVisible(true);
    }When I launch the Java appliation, I get the dialog box error saying "Application Error - Unable to launch the application"
    Exception:
    com.sun.deploy.net.FailedDownloadException: Unable to load resource: file:/C:/Documents and Settings/HP_Administrator/Desktop/TrafficLight/TrafficLight.jnlp
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.launch(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Wrapped Exception
    java.io.FileNotFoundException: C:\Documents and Settings\HP_Administrator\Desktop\TrafficLight\TrafficLight.jnlp (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
         at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.launch(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    actually there are 2 problems here:
    file:///Documents and Settings/... will work, but this means the path:
    /Documents and Settings/... on the current path.
    if you have to include the "c:" part first, then there needs to be only 2 leading slashes, because "/C:/Documents and Settings/..." is not a leagle pathname (even after replacing the file separators).
    However the colon (":") char is not legal in a URL, so has to be escaped.
    Best to just use: "file:///Documents and Settings/..."
    /Andy

  • Java Web Start Error in through codebase url with SSL

    I have created one Java web-start plugin application in swing which is launched from PHP site at browser plugin.
    All things were working fine, but when we implemented SSL in our site it stopped working. And when we try to start the application from browser it thorws error like:
    Unable to launch Application.
    In Java console it puts following log:
    JNLP Ref (...): NULL !
    #### Java Web Start Error:
    #### null
    Following is my JNLP file:
    <jnlp spec="1.0+" codebase="https://<<server_domain>>/MyPlugin/">
      <information>
        <title>Test Plugin</title>
        <vendor>The Java(tm) Tutorial</vendor>
        <homepage href="null"/>
        <description>Test Plugin</description>
        <description kind="short">Test Plugin</description>
        <offline-allowed/>
      </information>
      <security>
        <all-permissions/>
      </security>
      <update check="timeout" policy="always"/>
      <resources>
        <java version="1.7+"/>
        <jar href="http://<<server_domain>>/MyPluginJar.jar" download="eager" main="false"/>
      </resources>
      <application-desc>
        <argument>test</argument>
        <argument>test</argument>
        <argument>test</argument>
        <argument>test</argument>
        <argument>test</argument>
      </application-desc>
    </jnlp>
    The issue started only after implementation of SSL in our site. Please provide any solution for this. Many thanks in advance.
    P.S. My Jar file is signed by third party authorized certificate.

    Have you tried using Rosetta?

Maybe you are looking for

  • Records not matching in RSA3 and my  ODS(Urgent)

    Hi All, I am aware of that data in the ODS will be aggreagated in the ODS accordingly to key fields by which the records loaded in the ODS will be lesser, My request is, Plz walk me through the best possible way in step wise to compare the records in

  • Manged to get separate test ant - can't understand error log

    Hi, I managed to get a simple example of Junit running through ANT building but not testing correctly. my example test class looks like: package com.sims.test; public class HelloWorldTest extends junit.framework.TestCase {     public void testNothing

  • GOS / TOA01 & ArchiveLink

    Hi, I would like to add my own entries in the GOS, save the file saved with this link in a specific place using the TOA01 table. so... what I have done -> Trans. SWO1 create my own entries -> Trans. OAC2 : create my doc type : ZBA_CC link to PDF file

  • I just installed Adobe Acrobat XI Pro software. trial version is full, but still sys.

    I just installed Adobe® Acrobat® XI Pro software. trial version is full, but still system does not aloud me to convert files!!! Some one can help??? BR CFG

  • CALICULATED COLUMN RANGE SELECTION

    Good day, I)  I need to give  range for  measure in Analytic view & How to create "Expression" in  Caliculated column.       Eg : amount  ( 100,200, -10, 1100, -40 )          i need to give range on ( -10 to 100). Dynamically II)  can i give range fo