Could not load file/URL (file not found) error for JNLP file

I am completely baffled in trying to figure out why I am getting the following error for some JNLP files but not others:
Error: could not load file/URL specified: C:\Users\tom\AppData\Local\Temp\javaws2
java.io.FileNotFoundException: C:\Users\tom\AppData\Local\Temp\javaws2 (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(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)I have Googled around this forum and elsewhere, and have seen reports that this error is IE-specific, and seems to have something to do with no-cache headers being sent, or with the client browser's cache being full or turned off (which is not my case). I saw the information in the JavaWS FAQ, which recommended turning off security constraints for the JNLP's URI. I tried that, and it didn't help. One of the very baffling things is that I have created several variations of the JNLP file, with varying combinations of jars and property resources, and some combinations always work while other combinations never work. Here's an example:
<jnlp spec="1.0+" codebase="$$codebase">
   <information>
      <title>demo app</title>
      <description>illustrates weird bug</description>
   </information>
   <resources>
      <j2se version="1.5+"/>
      <jar href="randomFile.jar"/>
      <property name="xxx" value="xxxx"/>
      <property name="swing.metalTheme" value="steel"/>
   </resources>
</jnlp>The above file always fails with the error shown at the top of this message. However, if I remove either of the two properties, it works fine. And I have created other variations with lots of properties, some of which work. All of these variations are in the same directory in the war file, served by the exact same servlet (a slightly modified version of the jnlp.sample.servlet.JnlpDownloadServlet provided with JDK 1.6.0_3). Assuming that a no-cache header is the problem, what on earth could be causing some JNLP files to always be served with a no-cache header, while others are never served with a no-cache header?
On a related note, any recommended debugging techniques for seeing what headers are being transmitted? I tried adding a simple check for a "debug=true" parameter in the servlet that causes it to set the content type to "text/plain" instead of JNLP, and that allows me to see (rather than execute) the JNLP XML that's being returned, but it doesn't show me the HTTP headers that are being sent back. If any caching headers are being set, I think it must be being set by the servlet container itself, as it's nothing being set in the servlet code that I can see. So I don't see any way on the server side Java code to output or log the actual HTTP response (or is there?). Any tips in that regard much appreciated.
Edited by: TomC125468 on Aug 19, 2009 1:35 PM

Hi Luca-Sanna,
Thanks for the response. Re browsers, yes, it fails in IE but it succeeds in Firefox. The info on the JavaWS FAQ and other places all seem to indicate that it's an IE issue concerning handling of the cache-control headers.
I should check in my webserver forum (Sun WebServer 7) to see about logging options. Sniffing on the client side is not possible, as my app is required to use HTTPS exclusively, and unfortunately that also precludes a telnet GET request.

Similar Messages

  • In Quicktime Pro I try to create a mov file and I get an error "-43 a file could not be found".  Any ideas?

    In Quicktime Pro I try to create a mov file and I get an error "-43 a file could not be found".  Any ideas?

    I have a similar problem which i did not have before...and it exists only in some powerpoint files which i want to print as a pdf file...and i get the same message as above.
    the log says the bellow details...what's the problem and how can i resolve it? thanks.
    %%[ ProductName: Distiller ]%%
    %%[Page: 1]%%
    %%[Page: 2]%%
    Cambria not found, using Courier.
    %%[ Error: invalidfont; OffendingCommand: show ]%%
    Stack:
      %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%

  • This is an error from my HP scanner. How can I fix the problem? An error has occurred saving the file because it could not be written to. Check the properties for the file to make sure it is not read-only.

    I recently uploaded the Maverick operating system. I wanted to scan some things on my HP Printer/Scanner and could not . This is the error message I received: An  error has occurred saving the file because it could not be written to.   Check the properties for the file to make sure it is not read-only. I am a novice with the computer and have no one to help. I hope someone knows an easy fix.
    Thank you

    This worked for me:
    "Although it is not a 'fix' for the HP issue, I did find a workaround that helped me. In the Preferences Panel in MacOS X you can pull up the Printer/Scanner preferences and scan directly from OS X. I'd not known of this prior to posting here and it worked like a charm."
    "Of course, HP should still update their software, but it's good to know that Apple has it covered for them."
    I found it here:
    http://h30434.www3.hp.com/t5/Mac-Printing-and-Scanning/MAVERICKS-WONT-SCAN-HP-C3 09A/td-p/3052105

  • I have Maverick 10.9.1 installed I scanned a photo on my HA D 110 series but it won't let me print or save it: An error has occurred saving the file because it could not be written to.  Check the properties for the file to make sure it is not read-only.

    I have Maverick 10.9.1 installed I scanned a photo on my HP D 110 series but it won't let me print or save it: An error has occurred saving the file because it could not be written to.  Check the properties for the file to make sure it is not read-only.

    Read the user manual that came w/the scanner and/or contact HP Support.
    http://support.apple.com/kb/PH14141 OS X Mavericks: Reset the printing system 
    http://support.apple.com/kb/HT3669 Printer and scanner software available for download 
    A scanner driver you may wish to consider:  VueScan Scanner Software

  • After downloading Maverick I cannot save or email scans from my HP L7780. I receive  error message "An error has occurred saving the file because it could not be written to.  Check the properties for the file to make sure it is not read-only. "

    After downloading Maverick I cannot save or email scans from my HP L7780. I receive  error message "An error has occurred saving the file because it could not be written to.  Check the properties for the file to make sure it is not read-only.

    Read the user manual that came w/the scanner and/or contact HP Support.
    http://support.apple.com/kb/PH14141 OS X Mavericks: Reset the printing system 
    http://support.apple.com/kb/HT3669 Printer and scanner software available for download 
    A scanner driver you may wish to consider:  VueScan Scanner Software

  • Firefox will not load certain url's/websites that work in other browsers

    Whenever I try to load a website beginning with stk.co (e.g. stks.co/q1CqL ) Firefox gives the following error message:
    The HTTP header field "Accept" with value "hc/url;*/*" could not be parsed.
    The same URL loads easily in Internet Explorer and other browsers.
    How can fix this and/or configure firefox to load this url?
    Thanks!

    Just for documentation, here's what I see in the Fiddler debugging proxy for this shortened URL:
    (1) Firefox requests: http://stks.co/q1CqL
    GET http://stks.co/q1CqL HTTP/1.1
    Host: stks.co
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip, deflate
    DNT: 1
    Connection: keep-alive
    Response is a 301 redirect with a new address
    (2) Firefox requests: http://tinyurl.com/lkef9l2
    GET http://tinyurl.com/lkef9l2 HTTP/1.1
    Host: tinyurl.com
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip, deflate
    DNT: 1
    Connection: keep-alive
    Response is a 301 redirect with a new address
    (3) Firefox requests http://traderfeed.blogspot.com/2014/12/trading-success-lies-on-other-side-of.html
    GET http://traderfeed.blogspot.com/2014/12/trading-success-lies-on-other-side-of.html HTTP/1.1
    Host: traderfeed.blogspot.com
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip, deflate
    DNT: 1
    Connection: keep-alive
    Response is 200 OK with HTML of the page

  • Not a valid URL: Unexpected character found - Installation of SLD

    During the installation of SAP Solution Manager 4.0 Support Release 3 I am installing a local SLD (this is a test environment). When at the "Configure System Landscape Directory" phase of the installation I get the following error, java.net.MalformedURLException: Not a valid URL: Unexpected character found ['-' at position 18].
    Any help would be appreciated.
    ConfigMainExt state200
    TYPE=A<BR>STATE=<BR>INFO_SHORT=java.net.MalformedURLException: java.net.MalformedURLException: Not a valid URL: Unexpected character found ['-' at position 18]
         at com.tssap.dtr.client.lib.protocol.impl.URLScanner.next_token(URLScanner.java:587)
         at com.tssap.dtr.client.lib.protocol.URL.parse(URL.java:518)
         at com.tssap.dtr.client.lib.protocol.URL.<init>(URL.java:63)
         at com.sap.ctc.util.SLDConfig.importSldContent(SLDConfig.java:765)
         at com.sap.ctc.util.SLDConfig.performFunction(SLDConfig.java:154)
         at com.sap.ctc.util.ConfigServlet.doGet(ConfigServlet.java:74)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    //   => Importing Data : D:/usr/sap/A12/SYS/global/sld/model/CR_Content.zip URL=http://usbfg046dev-:50000 USER=J2EE_ADMIN ...
    ERROR: Not a valid URL: Unexpected character found ['-' at position 18]
    <BR>CONFIGURATION=

    During the installation of SAP Solution Manager 4.0 Support Release 3 I am installing a local SLD (this is a test environment). When at the "Configure System Landscape Directory" phase of the installation I get the following error, java.net.MalformedURLException: Not a valid URL: Unexpected character found ['-' at position 18].
    Any help would be appreciated.
    ConfigMainExt state200
    TYPE=A<BR>STATE=<BR>INFO_SHORT=java.net.MalformedURLException: java.net.MalformedURLException: Not a valid URL: Unexpected character found ['-' at position 18]
         at com.tssap.dtr.client.lib.protocol.impl.URLScanner.next_token(URLScanner.java:587)
         at com.tssap.dtr.client.lib.protocol.URL.parse(URL.java:518)
         at com.tssap.dtr.client.lib.protocol.URL.<init>(URL.java:63)
         at com.sap.ctc.util.SLDConfig.importSldContent(SLDConfig.java:765)
         at com.sap.ctc.util.SLDConfig.performFunction(SLDConfig.java:154)
         at com.sap.ctc.util.ConfigServlet.doGet(ConfigServlet.java:74)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    //   => Importing Data : D:/usr/sap/A12/SYS/global/sld/model/CR_Content.zip URL=http://usbfg046dev-:50000 USER=J2EE_ADMIN ...
    ERROR: Not a valid URL: Unexpected character found ['-' at position 18]
    <BR>CONFIGURATION=

  • Mozila3.6 not load properly . it is not redirect my action page.When fill my enquiry form.

    Mozila3.6 not load properly . it is not redirect my action page.
    I am submiting my enquiry form that time mozila 3.6 is not work properly .it not load fully .it is not redirect my action page again .it is not load properly .always show done and loding is stope but it is not done .please help.
    This is my web URL and enquiry form: http://kormanmdorg.perfectyourself.net/consultation
    It is work fine in IE and chrome browser .Please check.

    Bad code on the page. The error console reveals:
    Error: document.frm1 is undefined
    Source File: http://kormanmdorg.perfectyourself.net/confirmation.php
    Line: 11

  • Recent iOS update has made my iPad 2 unusable. The screen locks up. It's very laggy and web pages do not load correctly.  Is there a fix for this or are they even working on a fix.

    Recent iOS update has made my iPad 2 unusable. The screen locks up. It's very laggy and web pages do not load correctly.  Is there a fix for this or are they even working on a fix.

    Try some basic troubleshooting:
    (A) Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    (B) Try reset all settings
    Settings>General>Reset>Reset All Settings
    (C) Setup as new (data will be lost if you do not have backup)
    Settings>General>Reset>Erase all content and settings

  • The file size of selected file in input file control is shown as 0 for multiple file selection in Safari 5.1

    The file size of selected file in input file control is shown as 0 for multiple file selection in Safari 5.1. If you select single file, then it is able to return file size correctly. However, if you select multiple files, then the file size of each of the selected file is always returned as 0 from javascript. This works correctly in Safari 4.0 but it does not work in Safari 5.1.
    How do I get the correct file size in Safari 5.1 ?

    If you want to post (or send me) a link to the lrcat file, I'd take a look at it for you, and give you a break-down what's consuming all the bytes. But it might be fun to learn how to do that yourself (e.g. using SQL). I use SQLiteSpy, but other people have their favorites.. (or you can use a command-line client if you prefer..). One way: just run "drop table "{table-name}" on each table then look at filesize (do this to a copy, not the real thing).
    Anyway, it's hard to imagine keywords and captions etc. taking much of the space, since even if you had 1000 10-character words of text metadata per photo average that still only adds up to 117MB, which isn't a substantial portion of that 8G you're seeing occupied.
    Anyway, if you've painted the heck out of most of them and not cleared dev history, that'll do it - that's where I'd put my money too...
    One thing to consider to keep file-size down:
    ===================================
    * After reaching a milestone in your editing, take a snapshot then clear edit history, or the top part of it anyway (e.g. leave the import step), using a preset like:
    Clear Edit History.lrtemplate
    s = {
        id = "E36E8CB3-B52B-41AC-8FA9-1989FAFD5223",
        internalName = "No Edit",
        title = "Clear Edit History",
        type = "Develop",
        value = {
            settings = {
                NoEdit = true,
            uuid = "34402820-B470-4D5B-9369-0502F2176B7F",
        version = 0,
    (that's my most frequently used preset, by far ;-})
    PS - I've written a plugin called DevHistoryEditor, which can auto-consolidate steps and reduce catalog size - it's a bit cumbersome to use a.t.m. but in case you're interested...
    Rob

  • Return The remote server returned an error: (403) Forbidden error for some file types

    hi
    am using below code to get the byte array 
    byte[] myDataBuffer = client.DownloadData((new Uri(sourceUrl)));
    for source of type .txt/.jpg no problem with accessing.but the file type with .master/.wsp/.cs
    it is returning "The remote server returned an error: (403) Forbidden error for some file types" Error.how can i get rid of this.please help me
    Thanks in Advance

    Hi,
    It seems there is something wrong with your code, from your code the account and key are the same, because their appsetting name are the same.
    string account = ConfigurationManager.AppSettings["StorageAccountName"];
    //string account = CloudConfigurationManager.GetSetting("StorageAccountName");
    //string key = CloudConfigurationManager.GetSetting("StorageAccountAccessKey");
    string key = ConfigurationManager.AppSettings["StorageAccountName"];
    string connectionString = String.Format("DefaultEndpointsProtocol=https;AccountName={0};AccountKey={1}", account, key);
    return CloudStorageAccount.Parse(connectionString);
    If you use CloudConfigurationManager.GetSetting, please consider set azure project as the startup project, if not, this value will be null, this resulted in solution being started as a web project that didn't run inside the Azure emulator. Since CloudConfigurationManager.GetSetting
    tries to get setting by contacting Azure (or Azure emulator in this case), and it is not running, it returns null.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • When I open up an e-mail attachment a box pops up PRINT TO FILE below that line OUTPUT FILE NAME with an empty line for the file name vs. simply going to my default printer?

    when I open up an e-mail attachment a box pops up PRINT TO FILE below that line OUTPUT FILE NAME with an empty line for the file name vs. simply going to my default printer?

    Make sure that '''''Print to File''''' isn't selected in the native print dialog box ''(see screenshot below)'' middle-right, and make sure your Printer is selected at the top of that dialog box.
    ''I'm a little confused why an email attachment would need to go directly to the printer, but that's what you asked about.''

  • File not found error for /lib/masks.js

    Hi Everyone,
    We keep getting a file not found (404) error for
    /lib/masks.js and favicon.ico. I did a complete search on our site
    and could not find reference to them anywhere, does anyone know
    what these files are and why we would be linked to them.
    Kind Regards

    Hi Dan,
    If you had searched you would have found out how to make this work.
    Search on "crdb_adoplus.dll" or "useLegacy" and you'll find the answer. As well as setting your framework to full and not the client.
    Don

  • File not found error when checking file into SCC

    I am attempting to setup the built in source code control features in Labview 7.0. I set up the master directory and my working directory. I copied the project I was working on into my working directory and opened the top level V.I.. I was able to successfully add it to the SCC. Then I was able to check it out and modify it. However when I check it back in I get the following error:
    Error 7 occurred at Invoke Node in Version Control CIN.vi->SCC Enter Change Comments.vi->Builtin SCC Checkin.vi->Builtin SCC Checkin GUI.vi->Check In.vi
    Possible reason(s):
    LabVIEW: File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use
    \ as path separators on Windows, : on Mac OS, and / on UNIX.
    NI-488: Non-existent board.
    The path for my master directory is C:\temp\TestSCC and the path for the working directory is C:\temp\LVWD. I am able to undo check out, but I cannot check it back in with out getting this error.
    I am using Windows 2000 5.00.125
    Can anyone help?
    Josh

    There are some strange things that occur with the SCC. See the following posting and the comment from NI which suggests to clear the revision history.
    http://exchange.ni.com/servlet/ProcessRequest?RHIV​EID=101&RPAGEID=135&HOID=506500000008000000FEE2000​0&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONT​EXT_QUESTION_0=Error+7+SCC&USEARCHCONTEXT_QUESTION​_S=0
    If the link doesn't work search on terms Error 7 and SCC it will be one of the first ones.
    See also DevZone article titled: "LabVIEW 6.1 Source Code Control Doesn't Recognize Local Changes when Revision History is Used"
    I found that the same thing still ccurred in LabVIEW 7. Not sure about LabVIEW 7.1

  • File URLs -  do not accept spaces in folder/direcotry name?

    Version of US used is: 1.0.3
    I tried to create a file data source with the following file URL from the Administration Application under the Sources/File tab:
    file://localhost/c:/myDir/New Folder/
    But I got the following error:
    Oracle Ultra Search Error
    Invalid file protocol URL:Folder/
    URL does not begin with file://
    Note: It is not a problem if the folder name does not have a space. E.g. when I renamed "New Folder" to "New_Folder", it was fine.
    My questions: Is that correct that US does not accept file URLs with spaces in the folder/directory names? If so, is it the same with the newer release US 9.0.2?
    Thanks.

    Currently space is used as a delimiter in file seed URL.
    Therefore, user can not crawl files located in directory containing space. This is the case for 9.2, 1.0.3, 9.0.2. You raise a good point, I will evaluate the possibility to remove this restriction in our next release (iAS 9.0.4). If we decide to support this, I will update this question.
    Thanks ! ^_^
    Cindy
    This is the text on Create File Source Step 2:
    ===================================================
    Enter a list of URLs separated by valid delimiters. A valid delimiter can be any one of the following characters: a space, tab, newline or comma.

Maybe you are looking for

  • USER-EXIT - sales order, credit block

    Moderator message: moved to correct forum.  In future please use meaningful subject. my requiremnet is, Delivery for an sales order should be created even if it is a credit block i.e even the credit check is unsuccessful the order should be deliverd

  • How do I access an external hard drive that is plugged into an AirPort Extreme

    I have an external hard drive connected to my AirPort Extreme and I wanted to know how to access the photos and videos on it while using an iPhone or iPad while connected to the network.  When I go to the airport utility app on my phone or iPad I can

  • JARs inside my JAR

    Hi Folks, I'm creating a JAR file for my application. My app uses another JAR file and I want to package it inside my jar. I tried to use "Path-Class" attribute in MANIFEST.MF file but without success. Any help would be appreciate. TIA. Romualdo Rube

  • Comment rétablir acrobat 9 standard en français

    Bonjour, Un an après avoir installé adobe acrobat 7 en français, après des mises à jour toute l'interface est en anglais. Comment revenir au français. Merci de votre aide Pierre

  • Cannot see an open hub table as an external data in data services

    Basically an open hub has been built in SAP BW. I have configured a datastore to acess it ( connection ok ) however I am not able to see it in the external data  window ( Data Services)...has anybody a list of reason why  the open hub tables are not