Having troubles with exception handling

Do you have Objective-C exception handling turned on?

etresoft wrote:
Den B. wrote:
I'm sorry, but how do you do that?
Double-click the project entry at the top of your Xcode file list.
Click the Build tab
Search for "exception"
Yeah, I did this in the first place but I still can't catch that exception in the code block I posted above. In the console window they call it NSInvalidArgumentException but when I put it specifically into the @catch statement it doesn't want to compile...

Similar Messages

  • I am having trouble with the handle bars for music fade in and fade out.  It doesn't work.  I also cannot see wave forms for music.   Cannot select - it is grey.  On a deadline and really having problems.

    I am trying to finish a video and I want to fade the music in and out.  I have read every tutorial I can get and the help info in iMovie.  Nothing helsp.   I cannot get it to fade by just sliding the handle bars.   Other times, the music mutes completely when I try to add a fade.   I try to view wave forms for music and it does not allow me to select .   it remains grey.   I am getting frustrated.  I had no problem with 11 version.   I now have 10.0.2 version.   Can anyone help?   my computer is latest Mac Book Pro 2013

    This is described in:
    http://help.apple.com/imovie/mac/10.0/#mov3b5ded23e
    A tip though - if you have a transition at the start or end of a clip it often obscures the fade handle.  Trick is to temporarly move the transition (or delete it), move the fade handle then replace the transition.
    Geoff.

  • Im having trouble with error 13019 I have read the previous discussions about this matter and have tried to do them except for the fact that under the music tab when clicking on my ipod every thing is frozen. It s not my comp. and i dont wish to restore.

    Im having trouble with error 13019 I have read the previous discussions about this matter and have tried to do them except for the fact that under the music tab when clicking on my ipod every thing is frozen. It s not my comp. and i dont wish to restore. Please help!

    If you are wondering why you are not getting any responses, it is because you have vented a complaint without any details that make any sense or give anyone something to work on.
    If you want help, I suggest actually detailing what has happened, with versions of software etc. Anything that would let us assist.
    As a start I am guessing that you have not really got the hang of "How it all works". Firstly download the Pages09_UserGuide.pdf from under the Help menu. Read that and view the Video Tutorials in the same place. A good addition would be the iWork 09 Missing manual book and something to help you learn how to use your Mac.
    If there are specific tasks you need help with:
    http://www.freeforum101.com/iworktipsntrick/index.php?mforum=iworktipsntrick
    Is a good resource.
    Peter

  • Having trouble with my signed applet(if it's properly signed that is)

    hi
    I'm having trouble with my supposedly signed applet. I'm trying to execute a specific program in this case trilian from my browser. i'm using firefox
    first my java code
    package applet;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    public class RunApplet extends JApplet {
        JButton jButton = new JButton();
        FlowLayout flowLayout1 = new FlowLayout();
        public RunApplet() {
            try {
                init();
            } catch (Exception ex) {
                ex.printStackTrace();
        private void init() throws Exception {
            try {
                this.getContentPane().setLayout(flowLayout1);
                this.setSize(new Dimension(100, 200));
                jButton.setText("Trillian");
                jButton.addActionListener(new RunApplet_jButton_actionAdapter(this,
                        "\"C:\\Program Files\\Trillian\\trillian.exe\""));
                this.getContentPane().add(jButton, null);
            } catch (Exception e) {
                e.printStackTrace();
    class RunApplet_jButton_actionAdapter implements ActionListener {
        private RunApplet adaptee;
        private String programPath;
        RunApplet_jButton_actionAdapter(RunApplet adaptee, String programPath) {
            this.adaptee = adaptee;
            this.programPath = programPath;
        public void actionPerformed(ActionEvent e) {
            try {
                Runtime.getRuntime().exec(this.programPath);
            } catch (IOException ex) {
    }And my applet code
    <html>
    <body>
    <!--"CONVERTED_APPLET"-->
    <!-- HTML CONVERTER -->
    <object
        classid = "clsid:CAFEEFAC-0015-0000-0005-ABCDEFFEDCBA"
        codebase = "http://java.sun.com/update/1.5.0/jinstall-1_5_0_05-windows-i586.cab#Version=5,0,50,5"
        >
        <PARAM NAME = CODE VALUE = "applet.RunApplet.class" >
        <PARAM NAME = ARCHIVE VALUE = "myfile.jar" >
        <param name = "type" value = "application/x-java-applet;jpi-version=1.5.0_05">
        <param name = "scriptable" value = "false">
        <comment>
         <embed
                type = "application/x-java-applet;jpi-version=1.5.0_05" \
                CODE = "applet.RunApplet.class" \
                ARCHIVE = "myfile.jar"
             scriptable = false
             pluginspage = "http://java.sun.com/products/plugin/index.html#download">
             <noembed>
                </noembed>
         </embed>
        </comment>
    </object>
    <!--
    <applet CODE = "applet.RunApplet.class" ARCHIVE = "myfile.jar">
    </applet>
    -->
    <!--"END_CONVERTED_APPLET"-->
    </body>
    </html>Creating my key:
    keytool -genkey -alias sitekey -keystore "C:\Program Files\Java\jdk1.5.0_05\jre\lib\security\cacerts"Now the process of creating the jar file and signing it:
    1. jar cf myfile.jar *.class
    2. jarsigner -keystore "C:\Program Files\Java\
    jdk1.5.0_05\jre\lib\security\cacerts" myfile.jar sitekeyNow this is the way i've been using then and the first time i get the "do you want to trust" screen but still i get a security exception.
    Exception in thread "AWT-EventQueue-10" java.security.AccessControlException: access denied (java.io.FilePermission <<ALL FILES>> execute)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkExec(Unknown Source)
         at java.lang.ProcessBuilder.start(Unknown Source)
         at java.lang.Runtime.exec(Unknown Source)
         at java.lang.Runtime.exec(Unknown Source)
         at java.lang.Runtime.exec(Unknown Source)
         at applet.RunApplet_jButton_actionAdapter.actionPerformed(RunApplet.java:73)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)Is there anybody who have an idea what can be wrong?
    regards
    thallish

    ok i solved i myself. i assigned a different and thereby correct keystore and now it works like it should
    regards
    thallish

  • Having trouble with persist

    I have created a simple application where a user can order items and then i'm saving the order and all the items (details of order) to the dataBase.
    i'm using jdk1.5 with jboss and mySql (also hibernate).
    i'm having troubles with saving the details of the order, the relevant code is-
    order entity -
    @Entity
    public class Orders implements Serializable
        @Id @GeneratedValue
        private long orderId;                    //generated in db
        private String name;
       public Orders(String userName)
            this.userName=userName;
        public long getOrderId() { return orderId; }
        //getters and setters...
    detailsOfOrder entity -
    @Entity
    public class DetailsOfOrders implements Serializable
    @Id
    private long orderId;
    @Id
    private int productId;
    private int quantity;
    public DetailsOfOrders(long orderId,int productId)
         this.productId=productId;
         this.orderId=orderId;
    public long getOrderId() { return orderId; }
    public int getProductId() { return productId; }
    //getters and setters...
    }session bean (order method) -
            List<SCItem> listOfItems;                         //SCItem is a regular class
            Orders order=new Orders(userName);
            manager.persist(order);
            long orderId=order.getOrderId();   //get order id after persisting
            for(SCItem item : listOfItems)    //save details of order
             DetailsOfOrders detail=new DetailsOfOrders(orderId,"1");
             manager.persist(detail);                                                   //exception occures here
           }when i'm trying to make an order i'm getting the exception-
    javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state
    what is the problem?
    thanks in advanced.

    yes, the entity classes have no-arg constructors (i just tried to write it shortly here...)
    about the other thing , well i'm sorry , the right code is-
    session bean (order method) -
       List<SCItem> listOfItems;                         //SCItem is a regular class
       Orders order=new Orders(userName);
       manager.persist(order);
       long orderId=order.getOrderId();   //get order id after persisting
       for(SCItem item : listOfItems)    //save details of order
         DetailsOfOrders detail=new DetailsOfOrders(orderId,item.getProductId());
         manager.persist(detail);                                                   //exception occures here
         }what else could it be?

  • Having trouble with image processor...help please!

    HI there...First off I just bought a new iMac and haven't a clue what I'm doing so my problem could be related to that.  While I'm waiting for Adobe to transfer over my platform I downloaded the trial of CS5 Extended to get me started.  I'm having trouble with the image processor...I choose file/scripts/image processor...the dialog box comes up and I choose use open files and then try and choose the folder I want to save them in.  I choose my folder and hit run and it keeps telling me specify folder destination.  I can't for the life of me figure this out...what am I doing wrong?  It always worked fine for me on my PC and CS3.  I can't handle saving each image individually in the new folder...
    Thanks!!

    I haven't renamed anything as far as I know.  I made a new folder when I hit Folder option and it's highlighted as well as the path shows up in the processor box.  Just when I choose run it tells me to specify a folder.  The only thing I can think of is that maybe something messed up b/c I'm copied the files and folders over from my PC but it let me save as on the mac.  Also the folder I'm choosing to put them in is on the Mac harddrive.  IDK...

  • Is anyone having trouble with iCloud email?

    I am using iCloud for all of my mail.  I use it on iCloud.com and also with iMail.  I use it for my iPhone, iMac and MacBook Pro.  For the past three days I have been having a terrible time receiving email from my personal friends.  I can get email from commercial entities like DirectTV, Facebook, ASPCA, etc. but nothing when my friends try to email me.  I have spent several hours on the phone with Apple advanced tech support but it's still not working and I am supposed to call them back today.  After changing many settings, the tech told me it might be a corrupt email address and we would completely remove my email address from my computer and type it in fresh which we did.  I then was able to send myself a test email and I did receive that.  I am still able to send and receive to myself.  I then went to my neighbor and did the same thing on his computer with my email address, removed it completely and then put it in anew.  Then I sent myself an email from his computer but it didn't work.  I haven't received the email.  I have asked several people to email me today.  I did not receive any of their emails but am still receiving emails from other entities.  A friend of mine said they are having trouble with iCloud but when I asked the tech, he said he wasn't aware of it.  So, I have no idea if it's something on my computer or if there is a problem with iCloud.  Can anyone help me out?  It's so discouraging.  Thanks much.
    By the way, this problem exists on all my products -- iPhone, MacBook Pro as well as my iMac

    I'm having the same problem, except I'm not receiving ANY email (not even from businesses etc).  This has been going on for a week now.  I had not upgraded my OS, so that cannot be the cause.  It was just suddenly not receiving emails.  I can send, but cannot receive.  I can log in to icloud.com but when I select MAIL, it will not load, and says application not availble.  Today, I opened Mail Preferences and added a email account using my same email address ([email protected]) and it worked fine, gathered all my missing emails.  But it was using the name iCloud instead of my name, and created a new mailbox for all the mail.  I want to use my mailbox I've used for years...so I deleted it.  It was just a test, but don't really know what was accomplished because my original email still does not receive mail. 
    Last week I had sent a msg to Apple Support about the problem, and got a reply...so I think they know there is a problem.  Perhaps they just don't know what the solution is so will not acknowledge the issue yet. 
    I'm still waiting for a solution, too.  Extremely inconvenient, most of us rely heavily on email.

  • Having trouble with Flash Player in regards to youtube

    Hello,
    Recently I started having trouble with Flash Player in regards to using it with youtube. Sometimes all I see is a blank white screen and sometimes I do see the video with no surrounding youtube webpage or suggested videos etc. Nothing has changed on my computer as far as I know except the usual updates etc. I have tried uninstalling Flash Player and reinstalling with no luck. I even tried an older version. I am running windows XP and IE and have McAfee for my anti-virus. I am not the most computer savy person in the world and could sure use some help.
    Thanks,
    Ron

    Hitomi,
    Thanks for the links. I am pretty sure it is not a problem with Flash Player itself but something else that is causing this. I don't know how to do a "screen shot", but even if I did I don't know that it would do anygood to show that because the youtube video screen and surrounding webpage only show for a second and then it goes totally white.
    Pat,
    Here is what I found:
    Intel(R) 82915G/GV/910GL Express Chipset Family
    Driver Provider          Intel corporation
    Driver Date               6/8/2005
    Driver Version          6.14.10.4332
    Digital Signer               Microsoft Windows Hardware Compatability Publis
    Update:
    This morning after doing some further reading and research on the Internet I tried running youtube in the  "InPrivate Browsing" window and youtube worked fine. So thinking I should delete my Internet Browing History, Cache, and Cookies, based on what I read I went ahead and did that but it still doesn't want to work. I think I did the deletions correctly? As I mentioned above I am not very computer savvy but can get by on the basics. Where should I go from here based on this info?
    Thanks,
    Ron                

  • I'm having trouble with a multi channel acquisition and download with PXI-5922

    I am having trouble with getting data out from both channels of a PXI-5922.  My software seems to be working, but when I do the fetch there is no data for the second channel.  I am using the same format for all of the channelList inputs (0,1).  I've checked the instrument handles and anything else I can think of, but this is my first time trying to collect data on 2 channels of a digitizer.  Any help would be appreciated.

    Hi schliepe,
    Try checking your code against an existing example. The
    Developer Zone Example: Independent
    Channel Configuration with NI-SCOPE is a good VI to reference. Also note
    that there are several examples that come with the NI-SCOPE driver. They can be
    found in Windows by going to Start »
    Programs » National Instruments » NI SCOPE » Examples. Additionally, if you find that the examples are not working either, verify that both channels are functioning by running the
    NI-SCOPE Soft Front Panel.
    Please post back if you have any questions. Have a great
    day!
    Ryan D.
    District Sales Manager for Boston & Northern New England
    National Instruments

  • Hi, having trouble with my iMac on startup. Background screen appears, but no icons,

    Having trouble with my iMac- on startup, the background screen appears, but no icons. The spinning beach ball appears for quite a long while, then when the icons finally come up, when I open a finder window, the only icons to appear are the Network and Macintosh HD icons. I've tried to repair disk permissions: this came up with heaps of errors, which it then fixed, but the original problem remains.
    Any suggestions on how to fix this?
    thanks

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Same problem(s) in safe mode?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Having trouble with Tiscali/TalkTalk site when accessed with 'FireFox', can't 'reply' to emails or report 'spam', other functions seem ok

    Having trouble with Tiscali/TalkTalk site when accessed with 'FireFox',
    can't 'reply' to emails or report 'spam', other functions seem ok
    == This happened ==
    Every time Firefox opened
    == On/Off few months now all time

    Try deleting cookies and cache:
    1. Tools| Clear recent history
    2. Time range to clear: Everything
    3. If it isn't already selected, select '''Cookies''' and '''Cache'''
    4. '''Clear now'''
    <u>Check cookie exceptions</u>
    1. Tools | Options | Privacy Panel
    2. Set '''Firefox will: Use custom settings for history''' Insure Accept cookies for sites and accept third-party cookies is selected
    3. Click '''Exceptions'''. If the misbehaving site is in that list, select it and click '''Remove site'''
    Also see [[Updating Firefox]]

  • Having trouble with throws...

    Hey there.
    I'm fairly new to java so bear with me here.
    I'm having trouble with a program that, in short, reads from a file.
    Let me shorten a show the code to you...
    //main opens up and in a bit we get to...
    if (loginVerify())
    //and the if continues.
    fileIn.close();
    //main ends
    public boolean loginVerify() throws IOException
         openIn(); //Checks for validity - It's a long story why I //didn't just put the code in loginVerify(). I //don't think it should matter.
    String str = verifyLog(); //Does the actual reading
         str = str.substring(1);
         if (str == placeHold) //Don't worry about not making placeHold,
    //I made it global for testing reasons.
              return true;
         else
              return false;
    private String verifyLog() throws IOException
         String str;
         while (true)
              str = fileIn.readLine();
              if (str == null)
                   break;
              else if (str.charAt(0) == 1)
                   return str;
              //ADDITION OF OTHER NUMBERS
              else
                   return str = "invalid";
    private void readIn() throws IOException
         BufferedReader console =
    new BufferedReader(new InputStreamReader(System.in));
    openInputFile(fileName);
    if (fileIn == null)
    System.out.println("*** Can't open " + fileName + " ***");
    return;
    private static void openInputFile(String fileName)
    try
    fileIn = new BufferedReader(new FileReader(fileName));
    catch (FileNotFoundException e)
    So it's fairly simple. It checks for validity and then reads lines until it finds one with the first char as '1' when it finds it, it reads the rest of the line off.
    The error I'm getting is as follows: Exception java.io.IOException must be caught, or it must be declared in the throws clause of this method.
    I've added throws IOException to them in attempts to fix the error but to no avail. I've tryed putting the catch in different spots... again, doesn't work.
    I'm using codewarrior IDE version 5. I'm fairly sure it's the newest. I installed Java SDK 1.3 with codewarrior originally but I installed 1.4.1 recently.
    If you need to see anything else about it, please tell me. I'd be more than happy to post a little more if it'll help.
    Thanks

    Ok. I worked through a bunch of throws and now I've found one I can't seem to conquer.
    private String verifyLog()
           String str = "";
           while (true)
                try {
                str = fileIn.readLine();
                catch (FileNotFoundException g) {
                if (str == null)
                     break;
                else if (str.charAt(0) == 1)
                     return str;
                //ADDITION OF OTHER PEOPLE
                else
                     return str = "invalid";
           return str = "invalid";
      }This time the error is at the reference to readLine() and it tells me the same error as before. I have a catch set up there, don't I?
    readLine() is something I didn't create so I don't know how I'd tell it to throw an exception if I had to...
    Thanks

  • I have 64-bit Vista on an HP laptop, and am having trouble with P4

    I have 64-bit Vista on an HP laptop, and am having trouble with P4. When I go to the "Compatibility" tab in for the P4 .exe file, 32-bit Vista does not show up as a compatibility option. The latest version shown is XP with SP2. Am I missing something? Is there a patch or download that updates P4?(The problem I'm having is stuttering and stopping in the imported avi2 files I have downloaded from my Panasonic digital camcorder and converted from avi to avi2 using DVDate. Also, I get stuttering with digital photos - jpg files - that I want to insert in the movie with added narration.)

    A.T. Romano
    It gets a little complicated. This is a simplification, but I hope this
    helps to visualize what's happening.
    The 32 bit and 64 bit environments are separated from each other.
    There are separate program files directories, separate shared dll library
    directories, and even separate registry entries. You can't mix 32 and
    64 bit modules, and some applications, like Internet Explorer, install
    both a 32 bit and a 64 bit version on the same computer. (IE does that
    so it can process web pages that use 32 bit executable controls).
    Vista 64 has 32 bit emulation built-in using a subsystem called Windows
    on Windows 64 or WOW64 for short. WOW64 intercepts 32 bit
    application calls to the operating system and handles the 32 to 64 bit
    conversions and the redirection of the file and registry locations.
    The program files themselves contain flags that indicate whether they
    are 32 bit and whether the file uses the 64 bit version of the file
    structure.
    If the program is marked 32 bit, it will run in 32 bit using WOW64.
    Programs are generally installed by an installer program which places
    the application files in the proper locations and writes the registry
    entries and any other setup tasks that are needed. To install a 64
    bit program, a 64 bit installer is needed. For 32 bit installers, the files
    and registry entries are redirected to the 32 bit locations.

  • I am having trouble with disk space,

    I am having trouble with disk space, I am always getting the error message that I need to delete files on my start up disk, I am all out of space. I cant even save a file to my desktop without getting the message, Is there a way I can free up space. I am not very computer savvy, being a pensioner I  cannot afford expensive options.  I was familiar with the old apple imac, but I was given a macbook pro for my birthday, and am trying to work it out.  I use it mostly for photos and web.

    Jillian,
    I'm assuming this is a second-hand machine.  If it is brand new, get it to Apple because it's their problem, not yours.
    First thing you should do is go to Programs: Utilities: Disk Utlity and choose "Repair Permissions."  If you don't have the OS X system disk (a DVD) go ahead and verify the Disk. It can't fix itself, so to speak, but can tell you if there is a problem.  iIf you have the OS X system disk then boot off the disk, go to Disk Utility, and run Repair Disk.  Assuming all is OK:
    You don't need to download any programs to get started on figuring out why all your space is gone.  Try this first:
    Oh, when deleting, especially at first, you may have to move only small folders or even files, of 100 MB or so to the trash, then empty the trash.  As the free space increases, you can trash progressively larger files.  To delete files, the computer needs to create even more files to tell it what files it is deleting before it deletes them.  I know, go figure.;)
    It would not be a bad idea, and is in fact a very good idea, to run the disk utility "Repair permissions" after every half-dozen trash/empty trash cycles and then restart the computer.
    The basic plan is to search for unreasonably sized folders. 
    From the Finder:
    Open a window, click in the window and then:
    Go to menu item View. (If you click on the desktop instead of a window, you'll get a different set of view options, none of which is the one you want.)
    Click on it and move the cursor to the bottom choice, Show View Options (alternative Apple (Command)-J).  Make sure the checkbox "Calculate all sizes" is checked. If it isn't, check it and then click on "Use as default" When checked, it will show you the size of a folder.  If it was unchecked, don't be surprised if nothing seems to be happening as it will take awhile for the computer to calculate the size of, literally, thousands of folders.  But some will start to show up right away. If you open a new window and don't see any folder sizes, Repeat the Show View Options routine above and if Calculate all sizes is checked, just wait.
    I've heard you Aussies enjoy a beer or two.  If your Mac has to calculate all the folder sizes, this might well be a good time to have a cold one or two, as it will take some time.
    Go to the root level, which is "Computer" or "_Your Disk Name_," generically Macintosh under Devices in the sidebar.
    Make sure you are in list view and can have the size column visible.  Click on it (turns blue-grey) and it will sort by size, large to small or the reverse.  Click again to reverse the sort order.
    On my 10.6.8 machine, I have
    98 GB under Users.
    22 GB under Applications. If you only have the Apple-supplied applications, you probably have between 4 and 6 GB here.
    Library is 24.5 GB
    System is 4.6 GB
    Other than a few trivially small files or folders, that should be about it for the root level.
    If you have two System files, you shouldn't, and will need to get rid of one.  Ask for advice before deleting one or the other.  If you have a, "Previous System," or "Old System," -- can't remember the language, you can proably safely delete it if you are satisified with how your computer is working. 
    The Library is a candidate for bloat.  Some applications, especially those that manipulate audio or video, store the bulk of their code, generally resources of one type or the other, in the Application Support folder. For instance, I have a 10.5 GB folder of Live Type in my Application Support folder.  Honestly, I don't know what program it is for, but don't care because I upgraded to a 3/4 TB drive.  In contrast, on my 10.7.1 computer, which has little more than the Apple supplied software on it at this point, uses only 1.5 GB for Application Support.  The support folders will remain even if the program itself is deleted.  As a general rule, I wouldn't bother checking out anything under 300 MB or so.  Any folders over that, you should note for possible deletion _but_ be sure to ask someone with more knowledge about this what it is used for before deleting.  If it is used for some program that isn't on your machine, meaning the program has been deleted, you can safely delete it.  If the program is still on the machine, decide if you will use that program and, if not, delete the program and its application support files.
    My next largest folder in the Library is Audio at 2.7 GB.  I have audio editing programs, so that makes sense. You probaby have one also, but shouldn't be over 500 MB or so.
    Next is Printers at 1.4 GB.  This is a good place to clear up space.  You'll see folders with various printer brands.  Do you have a Brother printer?  No?  Trash it.  Just keep the folder with your printer brand and the PPD folder and trash the rest.  If you want to get real fancy, open your brands folder and delete the files for every model other than the one you have. 
    My next largest is Fonts at 490 MB.  Leave that alone. In fact, unless Fonts is something insane like 2 GBs, stop deleting from the Library.
    Go to Users.  There could be between one and more than one user.  (Fudge of an answer there.)  There is no such thing as a guideline for user folder size.  Is there a previous user?  If so, check with them and see if you can delete it.  I have a "dummy" administrative - level user that can be used for some esoteric rescue operations and it takes up a trivial 33 KB or something like that while my own account is pushing 100 GB.
    You'll see several folders, Music, Pictures, Desktop, etc.  This is stuff you or the previous user have created.  If you don't want it, delete it.  You will also see, aha! another Library folder.  There shouldn't be many folders over 100 MB here except for Mail and our friend Application Support.  I get a lot of mail, rarely delete any, and have carried it over from 10.3 and measures out at 3.7GB.  Still, if its someone elses mail and you don't want it, you can delete it, but again, check with more knowledgable people as there are probably some files and folders you absolutely should not delete, others that you should delete from within Mail, and some you can manually delete. 
    My Application Support Folder weighs in at 1.4 GBs, of which 1.2 GBs is for Final Vinyl.  That's a lot.  Sneaky sucker stored some untitled audio files in there.  Bye! OK, now the Application Support folder is down to 145 MB.  So, I'd say anything much over that should be investigated for possible deletion.  Close up Library and move on.
    Downloads may be very small or very large.  Depends on how meticulous the previous user was in deleting or moving to a more appropriate location.  Ask them if there is anything they want, and if no, delete it.
    My Application folder has Zero KB because I always install at the root, administrative level.  If there is anything there, figure out if you want to use it or not.  If not, trash it.
    Overall:
    1) Don't sweat the small stuff.  The days are long gone when searching a hard drive for a 100 K file to delete is worthwhile.
    2) Start small.  A disk that full is going to be pretty touchy, so once you have identified a bloated folder, go inside of it and trash the smaller files and folder, then empty the trash, then delete a few more files, empty the trash, etc. 
    3) Don't forget to periodically Repair Permissions and restarting the computer.
    4) If you are unsure about whether a folder or file can be safely deleted, ask someone knowledgable or just knock off for the day and hit it again tomorrow.  Seriously, an unanswerable question you have might well be answered by sleeping on it and attacking it the next day.
    5) As Douglas Adams wrote: DON'T PANIC!
    Best of luck! 
    Chris

  • Having trouble with FileUploader

    I am having trouble with the FileUploader control.   The use case is to upload a picture for a user to display on a user profile page.
    The first thing I did was take the code from the SAPUI5 DemoKit and modify the uploadUrl to a local directory in my project. This works on the DemoKit and I can see that my file gets uploaded to the ../../../../../uploads directory on the sapui5.ondemand site.   But when I try it locally on my project, it fails to post to the directory.
    I figured I would skinny it down to the least amount of code to test it.
    var layout = new sap.ui.commons.layout.MatrixLayout();
      layout.setLayoutFixed(false);
    var oUpload = new sap.ui.commons.FileUploader( {
      mimeType: "image,text",
      fileType: "jpg,png,gif",
      uploadUrl:      "../images/devices",
      name:           "Uploader",
      width:      '500px',
      buttonText:   "..",
      tooltip:    "File Name",
      value:          '',
      uploadOnChange: true
      layout.createRow( oUpload );
    return layout;
    When it does the POST, I get a 405 Method Not Allowed error on my local server.   Is there something that needs to be configured on the server-side?
    I tried putting in an .xsaccess file in the upload folder and parent folder(s) but it does not seem to help.
    I have seen some of the other posts on SCN:
    This one claims we need a server-side servlet to handle the file.   FileUploader 
    This post has a similar 405 error down in the comments: Import text file from JS to XSJS
    So the questions are:
    1) Can someone confirm if I can simply write an image to the folder like in the DemoKit?  What is needed to make this work?
    2) If I cannot write to the folder directly, can someone share their "FileUpload.xsjs" code logic to help me get jumpstarted?
    3) What have I missed with the FileUploader?
    Thank you,
    Jim Giffin
    Edit - my current environment is HANA DB 1.00.70.386119, SAPUI5 points to the sapui5.hana.ondemand.com version which is currently 1.20.6, but I have checked out openUI5 1.20.8.
    Message was edited by: Jim Giffin
    I also failed to mention this is a Developer instance on AWS.

    Hi Jim,
    answer from discussion you mentioned is correct. You need some server-side handler that will take care of the file and uploads it to directory.
    Demokit example does not point to directory "upload", but it is a relative url address.
    If you type sapui5.hana.ondemand.com/sdk/test-resources/sap/ui/commons/demokit/../../../../../upload
    you will see that it is actually url address sapui5.hana.ondemand.com/sdk/upload which points to some server-side handler.
    For you second question, this could be what you are looking for - Upload data to HANA table with SAPUI5 FileLoader and HANA Extended Services
    Best regards,
    Peter

Maybe you are looking for