FileDialog in SAVE mode does not throw file access error

Hi,
We are using FileDialog to SAVE and LOAD files.
If a file is selected to which the user has no access, then LOAD dialog throws an
error, but SAVE dialog does not.
Have I skipped something ??
Below is a sample code :
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class TestClass extends JFrame {
public TestClass() {
setSize(400, 400);
JPanel l_objPanel = new JPanel();
getContentPane().add(l_objPanel);
final JButton l_objButton = new JButton("FileOpen");
l_objPanel.add(l_objButton);
l_objButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent p_objEvent) {
FileDialog l_objDlg = new FileDialog(TestClass.this, "Save now", FileDialog.SAVE);
l_objDlg.show();
public static void main( String[] strArgs ) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch(Exception e) {
e.printStackTrace();
TestClass l_objDlg = new TestClass();
l_objDlg.show();

The bug you pointed out is pretty different: JWS should work offline if no network connection is available, but no such behaviour is provided, never the less granted, if your server is down. No matter what your 'web-distributed' app is (ASP, SaaS, SOA, RIA, cloud, ...), you may have it work without a network, but no architectural pattern would ever remotely consider it should run if the providing server is down (and is not redirecting or, at least, sending some 'manageble' error).

Similar Messages

  • Save As Does NOT Reduce File Size

    I have tried everything to reduce the file size of my Adobe Acrobat Pro X Form with Save As (Reduce File Size, As Optimized, etc...).  Unfortunately, the file size does not reduce.  I send to a friend who has Acrobat 9 and he is able to reduce the file from 45mb to 182kb...what gives?  He sent my original file to his co-worker who has Acrobat Pro X and he has the same issue that I do.  This appears to be a version issue. Any help would be appreciated as I have about 150 of these that I need to get down to a reasonable file size.

    Actually, I found something else. It's very curious.
    The form fields themselves are OK, and there is only one tiny copy of CopperPlate Light.
    There is a place in a PDF where there is supposed to be a copy of each font used a form field. This lists (presumably) every font you own and then some - over 500 fonts, all embedded. This is clearly not what you wanted and not what the software should do.
    It would be interesting to know the life cycle of this form (by which I mean how it was born and what happened along the way). It was made with Acrobat 10 from Word, but that (presumably) didn't do the bad thing. Can you remember what happened to the file in the mean time? Was it only EVER edited in Acrobat X, or were any other utilities used on it - even if they didn't seem to be related to form fields at all? Do you have any old copies before it grew in size?

  • Save as does not Create PDF Compatible File even when the creare pdf compatible files is on, Illustrator CC 2014

    save as does not Create PDF Compatible File even when the creare pdf compatible files is on, Illustrator CC 2014

    When I open is adobe acrobat I get this message.
    "This is an Adobe® Illustrator® File that was
    saved without PDF Content.
    To Place or open this  le in other
    applications, it should be re-saved from
    Adobe Illustrator with the "Create PDF
    Compatible File" option turned on. This
    option is in the Illustrator Native Format
    Options dialog box, which appears when
    saving an Adobe Illustrator  le using the
    Save As command."

  • File Save Dialog does not show web folders

    Hi.
    My system is SAP ECC 6.0. From custom abap program, I need to be able to navigate to a sharepoint folder and save a file to it. I call METHOD cl_gui_frontend_services=>file_save_dialog for this. I have already mapped/added the SharePoint site (ex. http://abc/xyz/) to My Network Places. However, when I run my program, the File Save Dialog does not show the web folders in the said sharepoint site. Any clue to what I'm missing here? In WiinExplorer, I have no issue navigating/accessing the web folders.
    Thanks in advance.

    project manager
    um, yeah.
    Should not need the project manager simply to see new files added to a directory in a Open/Save dialog window since last opening the app.
    I did a scan, a extended scan, opened all the little turn down arrows of the
    full path to the directory I knew there to be the new files and yes, Logic
    shows them there in the "Project manager".
    BUT Logic still does not show the files in the Open/Save dialog windows.
    This is strange because even simple app like TextEdit can show
    new files in it's Open/Save dialog function windows without the need of
    a project manager.
    I have to quit and re-launch each time to see any new files?

  • Java Does Not Throw Exception When Writing To Read-Only Files

    I have noticed that when I try to write to a read-only file in a window environment, Java does not throw an IOExcpetion, it just dosn't write to the file.
    I am writing an FTP server and here is the code:
         public static long copyStream(InputStream in, OutputStream out)throws IOException
              IOException exception = null;
              long copied = 0;
              try
                   byte buffer[] = new byte[1024];
                   int read;
                   while((read = in.read(buffer)) != -1)
                        out.write(buffer, 0, read);
                        copied += read;
              catch(IOException e)
                   //ensures that the streams are closed.
                   exception = e;
              try
                   in.close();//ensures output stream gets closed, even if there is an
                   //excption here.
              catch(IOException e){exception = e;}
              out.close();//try to close output.
              if(exception != null)
                   //exception is not null, an exception has occured.
                   //rethrow exception.
                   throw exception;
              return copied;//all ok, return bytes copied.
         }Is this a bug in JAVA VM? Is so, how should I report it?

    I have noticed that when I try to write to a read-only file in a window environment,
    Java does not throw an IOExcpetion, it just dosn't write to the file.C:\source\java\Markov>attrib readonly.out
    A R C:\source\java\Markov\readonly.out
    �C:\source\java\Markov>java b
    java.io.FileNotFoundException: readonly.out (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at b.main(b.java:5)
    import java.io.*;
    public class b {
        public static void main(String[] args) {
         try     {
              OutputStream os = new FileOutputStream ( "readonly.out");
         catch (Exception e) {
              e.printStackTrace();
    }

  • How can I make a CC Illustrator file open in CS6? Save as does not give an option to save as a CS6.

    How can I make a CC Illustrator file open in CS6? Save as does not give an option to save as a CS6.

  • Adobe 9 plugin save function does not always work

    This may not be a problem with Adobe Reader or Internet Explorer, but my credit card company says it is, so I need to look.
    When I try to get my on-line statements from a particular credit card company, a new IE window with Adobe Reader running "underneath" comes up fine. When I press the "Save" icon (the floppy disk icon) nothing happens.
    I have done this recently with another similar site (brokerage account) successfully, so my version of Reader and/or IE7 do not seem to be the problem. Note that in all cases the bank/broker do not give direct access to the pdf file, which is probably for security reasons -- in other words, "right-click/save-as" does not work for on-line statements. Instead they run a server-end script which "presents" the pdf to the new browser window. All of this indicates that they have control over the security and therefore disallow me from saving locally.
    If anyone knows of a setting I need to make, or if they can confirm that the problem is on the server end, I could use the help. I want to stay paperless, so you'll be helping the environment if you help me :)
    My alternative is to print the statement, then scan it and throw it out, which is obviously ridiculous :)

    I am having much the same problem as the OP and Martin.
    Currently I am running Reader 9 on a Vista computer. This is a new computer and I was able to save my credit card statement in January. Then after I saved my statement in January, I believe I upgraded Reader at some point, and when I tried to save my February statement it wouldn't work.
    I have tried to right click on the document, and there is no "Save As..." option. But like someone else posted, it's just a long gibberish type name in IE address bar.
    I also tried printing the document to a file, but that does not work either. It fails to bring up the dialog box asking the usual queations. I can print the document on my printer.
    I have spent several sessions with the credit card company website tech support people. Per their suggestions I have uninstalled and reinstalled Reader 9, they also had me delete cookies, change popup blocker settings, add security certificates, etc.
    None of that worked, and they tell me it's an Adobe problem.
    Like other posters I can save this same statement using my laptop with an earlier version of Reader. In my case Reader 7.
    Like Martin posted, and the credit card tech people suggested, I believe this is a Reader 9 problem.
    I hope someone has a fix.
    Thanks,
    Don Sepanski

  • I have a mac which plays the boot sound but the screen stays black. Recovery mode does not work, as the keyboard is wireless. What do I do?

    What it says in the title.
    I have an older mac and it worked perfectly until about an hour ago when I shut it down because we needed the room dark for a presentation and the screen saver was putting out light.
    Now it won't turn back on. It plays the start up music but the screen stays blank.
    The CMD+OPT+R for recovery mode doesn't do anything, the keyboard is wireless so the command doesn't get to the computer and that's the only keyboard I have since that's the one it came with.
    I'm looking at making a USB recovery disk but it says that I should click on "Options" in the Disk Utility but there is no options button or menu to click.
    From here: OS X: About Recovery Disk Assistant in step 3 I get stuck.
    Also it says that if I make a drive on this computer which has an older OS it might not work on the broken machine with Mavericks.
    This machine literally worked and I turned it off and now it does not work and there seems to be nothing I can do... ***...

    kodemage wrote:
    well, then recovery mode does not work. I've tried all the key combinations I've seen on line. Command+R, Command+Option+R, Command+Option+P+R, none of these work.
    I don't believe there is anything we can do on a forum to help then, you need to take it into a AASP and have it professionaly diagnosed. If you don't know how to locate an AASP in your area you can begin by using Contact Apple for support and service
    Good luck.

  • Consistently does not open, gives the error: "C:\Program Files (x86)\Mozilla\firefox.exe Windows cannot access the specified device, path, or file. You may no

    Installed FF 16, 17, 18. Will not open in normal administrator login, nor with "Run as administrator" but will in W7 safe mode. Changed permissions (had to do it in W7 Safe Mode, normal login would not allow (logged in as an administrator) could not delete the Mozilla files in normal login. On rare occasions, with a new install, I could get it to open once, then not again. Searched the reg for any mention of Mozilla or FF and cleaned it. Tried FF safe mode, no luck. Checked permissions after taking ownership and propagating full ownership rights to all FF files, many reboots, no luck. Chrome, IE and SeaMonkey work fine. Using a fairly new install of W7 Professional 64 bit, on a Dell Optiplex 990 i7, 16GB ram. Had the same problem with another user on an identical box. No problem on other computers No other program problems.

    I should have been a bit more definitive.
    I have uninstalled FF, with the windows uninstaller, by manually cleaning the files and the registry of any mention of FF or Mozilla, and by running Revo uninstaller - always rebooting and checking to see if the files are indeed gone. (I have set windows file preferences to see all files, including system files.) I have run 4 AV/malware scanners and found nothing but a few tracking cookies. I download, from Mozilla.org, (http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/18.0/win32/en-US/Firefox%20Setup%2018.0.exe) a fresh copy of the Firefox Setup 18.0.exe each time and install when logged in as an administrator and choose "Run as Administrator". I get the same result each time I try to open Firefox. Consistently does not open, gives the error: "C:\Program Files (x86)\Mozilla\firefox.exe Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item." This happens even when I run the .exe file from the x86 program directory. I have also attempted to run in XPsp3 compatibility mode to no avail,
    I make the following assumptions:
    The system is not infected
    I am doing clean installs
    There is no existing trace of FF on the system
    I get identical results on one other W7 64 bit Optiplex 990 system with an i7 processor and 16 GB or ram.
    I CAN run in windows safe mode with networking.
    I have no other software or hardware issues.

  • WriteDomain( dir ) does not throw an error!

    we are trying to automate our domain creation using wlst. If there is an error in the script we expect our program to throw an error such that we can take some preventive measures. That said, we have such script that loads a template and writes the domain to a directory. If for some reason writeDomain fails it does not throw an error!. Which lets our script continue and fail miserably later.
    Is this a bug??
    Thanks,
    /pete

    I have not had that problem. In my script (using WLST on WebLogic 8.1sp5 on Solaris 9) I specified a directory that my user could not create and the return code to UNIX was 255:
    Trace:
    INFO: Writing domain
    Error: writeDomain() failed.
    Traceback (innermost last):
    File "/usr/local/met/btwlst/0_50/bin/load_template.py", line 78, in ?
    File "initWls.py", line 70, in writeDomain
    com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.ScriptException: com.bea.
    plateng.domain.GenerationException: Unable to create domain directory: /wls_domain/ecommware2a
    at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHan
    dler.java:33)
    at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:897)
    at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:465)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
    at org.python.core.PyMethod.__call__(PyMethod.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at org.python.core.PyInstance.invoke(PyInstance.java)
    at org.python.pycode._pyx0.writeDomain$14(initWls.py:70)
    at org.python.pycode._pyx0.call_function(initWls.py)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyFunction.__call__(PyFunction.java)
    at org.python.pycode._pyx3.f$0(/usr/local/met/btwlst/0_50/bin/load_template.py:78)
    at org.python.pycode._pyx3.call_function(/usr/local/met/btwlst/0_50/bin/load_template.py)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyCode.call(PyCode.java)
    at org.python.core.Py.runCode(Py.java)
    at org.python.core.__builtin__.execfile_flags(__builtin__.java)
    at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java)
    at com.bea.plateng.domain.script.jython.WLST_offline.main(WLST_offline.java:67)
    Caused by: com.bea.plateng.domain.script.ScriptException: com.bea.plateng.domain.GenerationException: Unabl
    e to create domain directory: /wls_domain/ecommware2a
    at com.bea.plateng.domain.script.ScriptExecutor.runGenerator(ScriptExecutor.java:2143)
    at com.bea.plateng.domain.script.ScriptExecutor.writeDomain(ScriptExecutor.java:531)
    at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:459)
    ... 21 more
    Caused by: com.bea.plateng.domain.GenerationException: Unable to create domain directory: /wls_domain/ecomm
    ware2a
    at com.bea.plateng.domain.DomainGenerator.generate(DomainGenerator.java:137)
    at com.bea.plateng.domain.script.ScriptExecutor$2.run(ScriptExecutor.java:2120)
    com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.jython.WLSTException: com
    .bea.plateng.domain.script.ScriptException: com.bea.plateng.domain.GenerationException: Unable to create do
    main directory: /wls_domain/ecommware2a
    Script Exit code = 255

  • Mail- Save Icon does not work

    I have noticed with mail since 10.5.2 that the small save icon on the email document does not save attachments / does not work anymore. I have to go to file menu and select "Save Attachments"
    Is this a bug or what ??

    John,
    I only now saw your first post. Have you looked in Mail Downloads folder to see if the attachments were saved there? In Mail 3.x, a quick click of the Save button would be expected to result in an unannounced save to that downloads folder. However, a click and brief hold on the Save button would be expected to result in a Save dialogue.
    More info, please.
    Ernie

  • "File does not exist or access denied"

    Hi
    I am new to FDM. I am trying to import a .csv file in FDM using Import Format Builder. When i select the file in the Inbox folder of my application, it gives me the message "Error: File does not exist or access denied".
    Any ideas why this error is coming. I have been struggling with this error for some time now.
    Thanks in advance

    Hello,
    I do not think it has anything to do with the configured ID for the AppPool and would not suggest tinkering around in it, as it can damage the application significantly.
    Some concerns that I have are the following:
    1. When you get the error, do you get a 'white' fish?
    2. What does your UserError Log state? Clear it and reproduce the issue and post the results.
    3. What does the Import Log state? (Import button on the View File tab of the Import Fish)
    Thank you.

  • Java does not get file list from shared folder in another server.

    Hi,
    I'm using java 1.4.2.16,
    Command below does not get file list.
    import java.io.;*..
    File file = new File("\\\\10.242.22.28\\SapMII");
    File[] files = file.listFiles();
    SapMII folder is Everyone full Control permission.
    How can i solve this problem?
    Thanks.

    Could you please post replies in a more helpful way? Just informing me that it was an NPE doesn't really tell me anything. Post the stacktrace (Exception#printStackTrace()). And the listFile() methods API has this to say:
    Returns null if this abstract pathname does not denote a directory, or if an I/O error occurs.I'm able to run this sample code easily:
    import java.io.File;
    public class TestFileList {
         public static void main(String[] args) {
              File file = new File("\\\\10.40.55.33\\shared");
              File [] files = file.listFiles();
              for(File currentFile: files )
                   System.out.println(currentFile.getName());
    }

  • Adobe Reader does not recognize file name (filename10.5.11.pdf) but does in Adobe Standard 9.  Why?

    I post documents to our Intranet site and found out recently that Adobe Reader does not recognize certain file names in PDF files.  For instance,  when trying to open a PDF file with the name
    filename10.5.11.pdf  in Adobe Reader, the web browser will not open the PDF and the display is blank.   When I'm using another computer with Adobe Standard 9, I do not have a problem opening the file.
    I would like to know if anyone else has had a similar issue and why Reader will not recognize the file name and Standard does.

    The version is Adobe Reader 10.1.0    I will request the latest version
    and let you know if that fixes the problem
    Actually I had changed the name of the file so our associates could access
    the file (changed the  .  to a hyphen)  It still made me wonder why Reader
    wouldn't open it at that time.
    Thanks again for you assistance and I will let you know if this resolves
    the  issue.
    Regards,
    Susan
    From:   Ankit_Jain <[email protected]>
    To:     SusanPleso <[email protected]>
    Date:   10/19/2011 12:56 AM
    Subject:        Adobe Reader does not recognize file name
    (filename10.5.11.pdf) but does in Adobe Standard 9.  Why?
    Re: Adobe Reader does not recognize file name (filename10.5.11.pdf) but
    does in Adobe Standard 9. Why?
    created by Ankit_Jain in Adobe Reader - View the full discussion
    Hi Susan,
    Thanks for providing the information.
    Could you also let me know what is the exact version of Adobe Reader on
    your system. You can check the same y clicking on Help > About Adobe
    Reader X.
    In case its not 10.1.1, please try updating to the latest version and see
    if the problem persists.
    Also, does any other PDF with a different filename open in Internet
    Explorer correctly?
    Thanks
    Ankit
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page: [
    http://forums.adobe.com/message/3979020#3979020]
    To unsubscribe from this thread, please visit the message page at [
    http://forums.adobe.com/message/3979020#3979020]. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Reader by email or at Adobe Forums
    For more information about maintaining your forum email notifications
    please go to http://forums.adobe.com/message/2936746#2936746.

  • Bridge does not shows file info, just thumbnails, what's going on? already adjusted in preferences, but still only thumbnails and not the info of the file

    Bridge 8.5 does not shows file info, already adjusted in preferences but still just showing thumbnails only.
    Can anyone please help?
    Thanks

    The single download means that you won't be able to redownload it from the store without paying, either on a computer's iTunes or an iOS device - it doesn't stop you from copying the audiobook to your other computers or syncing it to your iOS devices, you just can't redownload it. (I believe that they are all supplied to Apple by audible.com, so I assume that it's them requiring the one-time download.)
    You can download audiobooks on your computer's iTunes and sync them to iOS devices, you do not have to buy them directly on the device (if you do then you can copy them back to your computer's iTunes library by connecting the device and using the File > Devices > Transfer Purchases menu option on your computer's iTunes).
    What you are doing to sync them should work i.e.
    - connecting the iPad to your Mac
    - selecting the iPad on your Mac's iTunes
    - selecting its Books tab and selecting the audiobooks that you want to sync to the iPad and syncing/applying that selection.
    You should then get an audiobooks option in the Music app on your iPad. If they aren't appearing there  then do they show in Settings > General > Usage > Music on the device - if you have audiobooks on the iPad then they should be listed there under an 'audiobooks' heading.
    By 'restart the iPad' do you mean a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    You could also try closing its Music app via the iPad's taskbar : Force an app to close in iOS.
    And do a soft-reset and retry syncing.
    I assume that music and other items sync ok ?

Maybe you are looking for