Problem with PLIST files

I did a mistake and I moved all the files from the directory system/library/launchdeamons and system/library/launchagents to other 2 directories with the same name, but on my desktop
of course, my OS is not starting anymore, and shows me only the grey screen with the big apple and the rotating circle
I tried to start the mac using CMD+S and using the function cp -r to copy all the files from the desktop folder into the original directory, but it doesn't let me do it because it says that they are read-only system files
Does anyone know hot to help me?
Thank you very much

Perhaps you deleted its contents when you were moving things around? I assume the other folder is not empty, right?
BTW there is a lesson here: Don't mess around inside the System folder or do any moving, renaming, or deleting of anything unless you know the consequence of the action. You should never be inside the System folder unless you know what you are doing.
If you don't have any backup from which you might restore these two (or one) items, then you will need to reinstall OS X unless you want to scrounge through the installer DVD using Pacifist to find them and reinstall them. See the following for how:
How to Use Pacifist to Replace Deleted or Missing OS X Components
Insert the OS X Installer DVD into the optical drive. Use a simple utility like TinkerTool to toggle invisibility so you can see invisible items. Alternatively, open the Terminal application in your Utilities folder and at the prompt enter the following:
defaults write com.apple.finder AppleShowAllFiles Yes
Press RETURN.
To turn off the display of invisible files repeat the above command substituting No for Yes.
The install packages are located in the /System/Installation/ folder on the DVD.
Download the shareware utility Pacifist from VersionTracker or MacUpdate. Use it to extract a fresh copy of the missing item(s) from the file archives on your OS X installation DVD. The file archives are in the /System/Installations/ folder (use Go to Folder option in the Go menu of the Finder.)
Here are Four Basic ways to use Pacifist (courtesy of George Orville.)
A. Drag a .pkg icon onto the Pacifist window .....proceed to step 7.
B. Click on “Open Package ....” and navigate to package desired and click “Open” in the open/save window.....proceed to step 7.
C. Insert Mac OS X installer CD and when it mounts, navigate to .... Menu->Go->Go to Folder.
In the path field enter or paste ....
/Volumes/disc name/System/Installation/Packages (where disc name is the name of the CD/DVD that you inserted.
• Click on the "Go" button .....
• Drag a .pkg to Pacifist..... proceed to step 7.
The package you'll need will have to be discovered by trial and error, but for most applications you should start with the Essentials.pkg and/or Additional Essentials.pkg.
D. Insert your Mac OS X install disk 1 .... and open Pacifist.
1. In Pacifist, select "Open Mac OS X Install Packages" ... dialog may appear asking for disk 2, then disk 3 and finally disk 1 again.... {if DVD is not used)...If “Stop Loading” is selected...the procedure will stop!!!
2a. When loading is complete, a new window appears, click the triangle to display contents of each package...Select item and proceed to step 7.
2b. or click the “Find” icon in the Pacifist window and type the name of the software you need.
3. In the list that comes back, click the top most entry for the item that you want. ..... that is the one for the English language.
4. On the top of the Pacifist window, click “verify” .... you will probably be prompted for your password.
5. Enter checks for.... “verify permissions” and “verify file contents.” and click “verify” ....enter password when prompted.... you will get back output which may look like this:
20 files were scanned.
20 of 20 files were present on the hard disk.
0 of 20 files had file permissions that did not match those specified in the package.
0 of 20 files had checksums that did not match those specified in the package.
6. Click “close”. Go to step 7.
Extract or Install........
7. In the Toolbar (upper left), you now have the option to extract or install. Click a file in the lower list and those two icons will be enabled.
8. If “Extract to...” is selected.... navigate to the location where the file will be placed, select “choose”, select “extract” in new dialog that appears,authenicate , if prompted, click “OK”.
9. In the next dialog, click “Extract”.
10. If “Install” is selected... dialog will appear with the location/path of the installed software. Click “Install”
11. Type in your password, click “OK”
• Pacifist will begin to extract files.
12. In steps 8/10ß.... you also have the choice to “cancel”
Notes.....
• Pacifist may find that a file it is installing already exists on the hard disk. Pacifist will present you with an alert panel....
Stop
Leave original alone
Update ..... Default selection
Replace .... Replace option should only be used on full install packages
Message was edited by: Kappy

Similar Messages

  • Problem with .jnlp files

    I have an iMac running 10.6.8. I'm having a problem with .jnlp files. I've downloaded two, cgoban.jnlp and gopanda.jnlp. When I double-click the file, nothing happens. If I Control-click and select Open With Java Web Start, same. Nothing happens. Software Update says my Java is up to date. Any ideas?

    A few other similar threads were solved by this — I'd like to give credit where credit's due but I can't find the original posting.
    /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.p list
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <!--
            <key>JavaWebComponentVersionMinimum</key>
            <string>1.6.0_37-b06-435</string>
    -->
            <key>LastModification</key>
            <string>Thu, 31 Jan 2013 04:41:14 GMT</string>
            <key>PlugInBlacklist</key>
            <dict>
                    <key>10</key>
                    <dict>
                            <key>com.macromedia.Flash Player.plugin</key>
                            <dict>
                                    <key>MinimumPlugInBundleVersion</key>
                                    <string>11.3.300.271</string>
                            </dict>
    <!--
                            <key>com.oracle.java.JavaAppletPlugin</key>
                            <dict>
                                    <key>MinimumPlugInBundleVersion</key>
                                    <string>1.7.11.22</string>
                            </dict>
    -->
                    </dict>
            </dict>
            <key>Version</key>
            <integer>2028</integer>
    </dict>
    </plist>

  • Trash fills with plist files?

    Upgraded from 10.6.8 to Mavericks. Now the trash consistently gets filled with plist files. Any idea why?

    Hardware Information:
              iMac (20-inch, Early 2009)
              iMac - model: iMac9,1
              1 2.66 GHz Intel Core 2 Duo CPU: 2 cores
              8 GB RAM
    Video Information:
              NVIDIA GeForce 9400 - VRAM: 256 MB
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0
              AirPlay: Version: 1.9
              AppleAVBAudio: Version: 2.0.0
              iSightAudio: Version: 7.7.3
    Startup Items:
              Digidesign Mbox 2 - Path: /Library/StartupItems/Digidesign Mbox 2
              DigidesignLoader - Path: /Library/StartupItems/DigidesignLoader
              M-Audio Firmware Loader - Path: /Library/StartupItems/M-Audio Firmware Loader
              PACESupport - Path: /Library/StartupItems/PACESupport
    System Software:
              OS X 10.9 (13A603) - Uptime: 0 days 23:39:47
    Disk Information:
              WDC WD3200AAJS-40H3A0 disk0 : (320.07 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) /: 319.21 GB (138.99 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              HL-DT-ST DVDRW  GA11N 
    USB Information:
              Apple Inc. Built-in iSight
              Digidesign Mbox 2 
              Generic Mass Storage Device
              M-Audio USB Axiom 25
              iLok iLok
              EPSON EPSON Scanner
              Apple, Inc. Keyboard Hub
                        Apple, Inc Apple Keyboard
              Apple Computer, Inc. IR Receiver
              Novation ZeRO MkII
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
    FireWire Information:
              DMI WD1600BB-00RDA0 400mbit - 400mbit max
                        EFI (disk1s1) <not mounted>: 209.7 MB
                        Stuff (disk1s2) /Volumes/Stuff: 159.7 GB (70.04 GB free)
              OWC Mercury Elite-AL Pro unknown_device 400mbit - 400mbit max
                        EFI (disk2s1) <not mounted>: 209.7 MB
                        Sessions (disk2s2) /Volumes/Sessions: 499.76 GB (453.52 GB free)
    Thunderbolt Information:
    Kernel Extensions:
              com.Cycling74.driver.Soundflower          (1.5.1)
              net.telestream.driver.TelestreamAudio          (1.0.5)
              com.paceap.kext.pacesupport.snowleopard          (5.7.2)
              com.intego.kext.VirusBarrierKPI          (10.6.18)
              com.intego.kext.VirusBarrier.AppBarrierKPI          (10.6.18)
              com.intego.iokit.BehavioralKext          (1)
              com.intego.iokit.VBX6NKE          (1)
              com.intego.iokit.VirusBarrierX6Service          (10.6.18)
              com.digidesign.mbox2.driver          (9.0f4)
    Problem System Launch Daemons:
              [failed] com.apple.wdhelper.plist
    Problem System Launch Agents:
    Launch Daemons:
              [failed] com.adobe.fpsaud.plist
              [loaded] com.barebones.textwrangler.plist
              [loaded] com.bjango.istatmenusdaemon.plist
              [loaded] com.bombich.ccc.plist
              [loaded] com.bombich.ccc.scheduledtask.92969846-1A53-4DF9-AE0E-B7ED61AD1F4E.plist
              [loaded] com.bombich.ccc.scheduledtask.EDD66539-9F21-4C63-B839-6B09D0B4167F.plist
              [loaded] com.ciscosystems.ciscoconnect.daemon.plist
              [loaded] com.ciscosystems.ciscoconnectupgrade.daemon.plist
              [loaded] com.digidesign.fwfamily.helper.plist
              [loaded] com.intego.commonservices.daemon.plist
              [loaded] com.intego.commonservices.icalserver.plist
              [loaded] com.intego.commonservices.metrics.kschecker.plist
              [loaded] com.intego.netupdate.daemon.plist
              [loaded] com.intego.PersonalBackup.daemon.plist
              [loaded] com.intego.task.manager.daemon.plist
              [loaded] com.intego.VirusBarrierX6.daemon.plist
              [loaded] com.intego.VirusBarrierX6.scanner.daemon.plist
              [loaded] com.line6.l6ksettingmgr.plist
              [loaded] com.micromat.TechToolProDaemon.plist
              [loaded] com.novation.automap.pluginhelper.plist
              [loaded] com.paceap.eden.licensed.plist
              [loaded] com.prosofteng.DriveGenius.locum.plist
              [loaded] PACESupport.plist
    Launch Agents:
              [loaded] com.bjango.istatmenusagent.plist
              [loaded] com.hp.help.tocgenerator.plist
              [loaded] com.intego.commonservices.statusitem.plist
              [loaded] com.intego.netupdate.agent.plist
              [loaded] com.intego.personalbackup.agent.plist
              [loaded] com.intego.task.manager.notifier.plist
              [loaded] com.intego.VirusBarrierX6.alert.plist
              [not loaded] com.intego.VirusBarrierX6.statusitem.plist
              [loaded] com.micromat.TechToolProAgent.plist
              [loaded] com.wacom.wacomtablet.plist
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist
              [loaded] com.bombich.ccc-user-agent.plist
              [loaded] com.prosofteng.DGMonitor.plist
              [failed] com.zeobit.MacKeeper.Helper.plist
    User Login Items:
              Caffeine
    3rd Party Preference Panes:
              Citrix Online Plug-in
              DigidesignMbox2
              Digidesign Mbox 2 Pro
              Flash Player
              Line6AudioMIDI
              NetUpdate
              TechTool Protection
              WacomTablet
    Internet Plug-ins:
              AdobePDFViewer.plugin
              AdobePDFViewerNPAPI.plugin
              CitrixICAClientPlugIn.plugin
              Default Browser.plugin
              DirectorShockwave.plugin
              Flash Player.plugin
              FlashPlayer-10.6.plugin
              Google Earth Web Plug-in.plugin
              iLokClientHelper.plugin
              iPhotoPhotocast.plugin
              JavaAppletPlugin.plugin
              QuickTime Plugin.plugin
              Silverlight.plugin
    User Internet Plug-ins:
              WebEx.plugin
              WebEx64.plugin
    Bad Fonts:
              None
    Time Machine:
              Skip System Files: NO
              Auto backup: NO
              Time Machine not configured!
    Top Processes by CPU:
                  15%          Finder
                   2%          WindowServer
                   2%          SystemUIServer
                   1%          Folder Actions Dispatcher
                   1%          MidiAutomapClient
                   1%          EtreCheck
                   0%          fontd
                   0%          AutomapServer
                   0%          EPSON Scanner
                   0%          taskgated
    Top Processes by Memory:
              319 MB             com.apple.IconServicesAgent
              197 MB             virusbarriers
              115 MB             Finder
              98 MB              WindowServer
              90 MB              Mail
              74 MB              Dock
              74 MB              SystemUIServer
              57 MB              mds_stores
              57 MB              com.apple.WebKit.WebContent
              49 MB              Safari
    Virtual Memory Statistics:
              4.79 GB            Free RAM
              1.97 GB            Active RAM
              227 MB             Inactive RAM
              778 MB             Wired RAM
              619 MB             Page-ins
              72 KB              Page-outs
    Thanks for helping me with this!!!

  • Problems with .ARW files and auto toning

    problems with .ARW files and auto toning
    let me try to explain this because this has happened in past and never found a way to resolve but i lived with it
    now that I have a Sony A7R the problem is more serious
    Firstly i take pride it making the picture happen all in camera, i use DRO lvl 5 to get enough light, like when i'm shooting at dusk. DRO its like doing HDR but in a single file, it lightens the darks. in my camera i'm happy with results
    but when I upload them to lightroom, they come out near black.
    allow me to explain
    lets say I import 100 images
    i double check my preferences and everything is UNCHECKED when it comes to importing options, there is no auto toning, nothing.
    as the images import i see a preview in the thumbnail which looks fine.
    i double click on one to enlarge it, hence leave grid view.
    for a brief 1 or 2 seconds, i see the full image in all its glory but than lightroom does something funny, it darkens the image
    one by one as it inspects each image, if it was a DRO image it makes it too dark.
    to make this clear, the image is perfect as it was in the beginning but after a few seconds lightroom for some reason thinks it needs to correct it.
    how to prevent lightroom from doing this, i want the image exactly as it is, why must lightroom apply a correction>?
    i think it has to do something with interpreting the raw file and lightroom applies its own algorithm.
    but here is what i dont get.....before lightroom makes the change i'm able to witness the picture exactly as it was taken and want it unchanged..
    now i have to tweak each file or find a profile for it which is added work.
    any ideas how to prevent lightroom from ruining my images and just leave them as they were when first detected...
    there are 2 phases...one is when it originally imports and they look fine
    second is scanning each image and applying some kind of toning which darkens it too much.
    thanks for the help

    sorry thats the auto reply message from yahoo email.
    i've disabled it now
    thing is, there is no DRO jpg to download from the camera
    its only ARW. so my understanding is when i use DRO setting, the camera makes changes to the ARW than lightroom somehow reads this from the ARW.
    but then sadly reverts it to no DRO settings.
    because i notice if i take normal picture in raw mode its dark but if i apply dro to it, it comes out brighter, yet when i d/l the image from camera to lightroom, which is an ARW - there are no jpgs. lightroom decides to mess it up
    so in reality there is no point in using DRO because when i upload it lightroom removes it.
    is there a way to tell lightroom to preserve the jpg preview as it first sees it.
    its just lame, picture appears perfect...than lightroom does something, than bam, its ruined,.
    what do i need to do to prevent lightroom from ruining the image? if it was good in the first place.

  • Problems with compressing  files with right hand click. it does not work.

    Problems with compressing files with right hand click.
    I am using the compress function in the Mac OS (File > Compress XX) from time to time. Today it does not work anymore. OS 10.5.6
    I get a message: The content list cannot be created for compressing.
    I tried it with files and folders and keep getting this message. Anybody any idea as to how to fix this

    Thanks I love my macbook!!!!
    I also got further problems such as copy-paste not working etc.
    so I fixed it just this morning by running Applejack 1.5 and am back up running noticing your post.
    thanks for helping though!

  • Problem with Image file

    Hi,
    Iam facing with one problem.I have one swing interface through which I can upload files(back end servlet programme).Now I can upload all types of file but problem with image file it uploading perfectly that means size of the uploaded file is ok but its format damaged.It can not be open.My backend servlet programme is ok coz i tested it with html form it is working perfectly.Problem with swing interface.Plz guide me where I done a mistake.Below r my codes:-
    ImageIcon Upload=new ImageIcon("images/Upload.gif");
         Button=new JButton(Upload);
         Button.setToolTipText("Upload");
    Button.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
              int returnVal = fc.showOpenDialog(ActionDemo4.this);
              if (returnVal == JFileChooser.APPROVE_OPTION) {
              File file = fc.getSelectedFile();
    String aa=file.getAbsolutePath();
              textArea3.append(aa);
                   textArea2.append("Local URL:");
    long l=file.length();
              try
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff);
              String str1=textArea10.getText();
    url = new URL ("http://127.0.0.1:7001/servletUpload?x="+str1);
         urlConn = url.openConnection();
         urlConn.setDoInput (true);
         urlConn.setDoOutput (true);
         urlConn.setUseCaches (false);
         urlConn.setRequestProperty("Content-Type","multipart/form-data;boundry=-----------------------------7d11e410e500f2");
         printout = new DataOutputStream (urlConn.getOutputStream ());
    String content ="-----------------------------7d11e410e500f2\r\n"+"Content-Disposition: form-data;"+"name=\"upload\"; filename=\""+aa+"\"\r\n"+"Content-Type: application/octet-strem\r\n\r\n\r\n"+conffile+"-----------------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);
    printout.flush ();
    printout.close ();
    Best Regards
    Bikash

    The errors are here:
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff); (conffile is a String object containing the image)
    and here:
    String content ="-----------------------------7d11e410e500f2\r\n"+"Con
    ent-Disposition: form-data;"+"name=\"upload\";
    filename=\""+aa+"\"\r\n"+"Content-Type:
    application/octet-strem\r\n\r\n\r\n"+conffile+"--------
    --------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);conffie is sent to the server but
    it's non possible to treat binary data as String!
    Image files must be sent as byte[] NOT as String ......

  • What is the exact problem with this file?

    Hi all,
    There is an old form , which was not in use from many days.
    Now when we tried to run the form, i got the error saying "FRM-40734:Internal Error:Pl/SQL error occured.", in the login form.
    When i tried to open the fmb file in Oracle Forms Builder 6i, i got the following error:
    FRM-10102: Cannot attach PL/SQL library d2kwutil. This library attachment will be lost if the module is saved., but the fmb file got open.
    The login button has the following code:
    DECLARE
      UNAME VARCHAR2(30);
      --USER_ID PARAMLIST;
      V_USER APUSERMA.USER_NAME%TYPE;
      V_PASSWED APUSERMA.USER_PASSWD%TYPE;
    BEGIN
    select user_CD INTO :GLOBAL.USER_ID from apuserma 
    where user_CD = :TI_USER_NAME AND user_PASSWD = :IT_USER_PASSWD
    AND SYSDATE BETWEEN USER_VALID_FRM AND USER_VALID_TO;
    :global.user_id  := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
    :global.compname := :compname;
    compnm(:compname);
    --USER_ID := CREATE_PARAMETER_LIST('USER_id_NAME');
    call_form('Forms\MAIN_SCREEN',hide,DO_REPLACE);
    exception
      when no_data_found then
      MESSAGE('Incorrect Username or Password.  Please Re-Enter');
      message(' ');
      RAISE FORM_TRIGGER_FAILURE;
    END;
    EXIT_FORM;
    When i tried to compile, i got error saying ,
    Error 201 at line 10, column 28
    identifier 'WIN_API_ENVIRONMENT.READ_REGISTRY' must be declared.
    I am not getting to know What is the exact problem with this file?
    Help me with this please.
    Thank You.
    Oracle forms builder 6i.
    Oracle 9i.

    Vijetha wrote:
    I also want to know what is the use of  win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername') ??
    What does it do??
    If i comment the following line , will it be a problem??
    :global.user_id  := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
    Because i commented the above line & compiled, so it is not giving any error now.
    So please tell me what win_api_environment.read_registry does??
    it's read windows registry value. So, no problem if you comment it.
    Thanks

  • Problem with Receiver File adapter

    Hi
    I have a problem with receiver file FTP adapter, while writting file in target folder, connection is failing, after retries, it writting file again. How to avoid this situation, is there any way to write the leftout part in the file.
    VS

    Hi
    Thank u all,  Problem is solved, i changed write mode to Over write existing file. It is working fine.
    VS

  • Has anyone had a problem with TapMedia File Manage on iPhone 5. I reported a WIFI functionality problem to the developer and asked for support. Instead they have been very unprofessional by name calling me instead of logically evaluate and troubleshoot th

    Has anyone had a problem with TapMedia File Manage installed on iPhone 5? I reported a WIFI functionality problem to the developer and asked for support. Instead the company has been very unprofessional by name calling me instead of logically evaluate and troubleshoot the problem

    Hi AKE1919,
    Welcome to the Support Communities!
    The following information should help you with this:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/HT1933?viewlocale=en_US
    Cheers,
    Judy

  • Problem with import file type setting

    Problem with import file type settings - In preferences>general I select "wav encoder" But then going to tools>Create it still says "create mp3 version".
    Can't find a way to overcome this. Thanks for any help.

    Doublechecking, roy. After making the preferences change, are you leaving the General tab by clicking the OK button down the bottom-right-hand corner of the tab?

  • Problem with URL File download

    Hi every one i am facing a problem with URL File read Technique
    import java.awt.Color;
    import java.io.DataOutputStream;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.net.URL;
    import java.net.URLConnection;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JProgressBar;
    public class JarDownloader
         boolean isSuccess = false;
         public JarDownloader(String url)
              downloadJar(url);          
         public boolean isDownloadingSuccess()
              return isSuccess;
         private File deleteExistingFile(String filename)
              File jarf = new File(filename);
              if(jarf.exists())
                   jarf.delete();
              return jarf;
         public static void main(String args[]){
              new JarDownloader("url/filename.extension");
         private void downloadJar(String url)
              try
                   URL jarurl = new URL(url);
                   URLConnection urlc = jarurl.openConnection();
                   urlc.setUseCaches(false);
                   urlc.setDefaultUseCaches(false);
                   InputStream inst = urlc.getInputStream();
                   int totlength = urlc.getContentLength();
                   System.out.println("Total length "+totlength);
                   // If the size is less than 10 kb that means the linkis wrong
                   if(totlength<=10*1024)throw new Exception("Wrong Link");
                   JFrame jw =new JFrame("Livehelp-Download");
                   JPanel jp =new JPanel();
                   jp.setLayout(null);
                   JLabel jl = new JLabel("Downloading required file(s)...",JLabel.CENTER);
                   jl.setBounds(10,10,200,50);
                   jp.add(jl);
                   JProgressBar jpbar = new JProgressBar(0,totlength);
                   jpbar.setBorderPainted(true);
                   jpbar.setStringPainted(true);
                   jpbar.setBounds(10,70,200,30);
                   jpbar.setBackground(Color.BLUE);
                   jp.add(jpbar);
                   jw.setContentPane(jp);
                   jw.pack();
                   jw.setResizable(false);
                   jw.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
                   jw.setLocationRelativeTo(null);
                   jw.setSize(220,150);
                   jw.setVisible(true);
                   int readlngth=0;
                   int position=0;
                   byte[] readbytes = new byte[totlength];
                   while(totlength-position > 0)
                        readlngth = inst.read(readbytes,position,totlength-position);
                        position+=readlngth;
                        jpbar.setValue(position);
                   File jarf = deleteExistingFile(filename);
                   jarf.createNewFile();
                   //FileWriter fwriter=new FileWriter(jarf,true);
                   FileOutputStream fout = new FileOutputStream(jarf,true);
                   DataOutputStream dout = new DataOutputStream(fout);
                   dout.write(readbytes);
                   dout.flush();
                   dout.close();
                   inst.close();
                   jw.setVisible(false);
                   jw.dispose();
                   isSuccess=true;
              }catch(Exception ex)
                   isSuccess=false;
    }From the above code i received the total length of the PAGE content (i.e here url is a file) when i tried to find the size of that file it return -1.
    please help me

    I think the real problem is that you don't check the return value from read (it's probably less than data.length indicating an incomplete read). Isn't there a readFully somewhere?

  • Problem with .sitx files (Safari but not Firefox???)

    Hi All,
    I have a website online (with help from iWeb and BBEdit) but am having a problem I cant figure out (this IS my first website!)
    I am hoping that someone much more knowledgeable than me can help me with it.
    I basically have a download section. Icons and desktops.
    Now, when I (or anyone else) tries to download- everything seems to be fine in FireFox (even IE!) but not in Safari.
    My desktops are compressed as .zip files. No problems there, everyone can download and open (including Safari users!)
    My icons are compressed as .sitx files. This is where the problems come in. Firefox and IE download them no problem ('save to disk?' etc) However when one attempts to download the icons (.sitx files) with Safari it simply displays pages of gibberish (starting with the word 'Stuffit') which I am presuming is Safari trying to 'display' the contents of the actual stuffit file.
    Why is this? Why wont safari simply download the .sitx files as it does .zip files?
    Does Safari have some sort of inherent problem with .sitx files? Is it some sort of configuration within Safari preferences? or (and probably most likely!) is it something I have done wrong?
    Oh, my website (page in question!) can be found here:
    http://aoimedia.co.uk/news/news.html
    Thanks in advance for all your valuable help
    Kind regards
    John
    12 G4 Powerbook/Superdrive. (she's named Skates!) Mac OS X (10.4.4)

    Hi,
    It sounds like the server the website/file is hosted on is not identifying the type correctly. As you've seen, different browsers will handle this situation differently.
    Have a read of this article:
    http://www.macosxhints.com/article.php?story=20040211102018600
    Hope that helps.

  • Problems with updating files in the cloud

    problems with updating files in the cloud

    What kind of problems?
    Have you recently upgraded to iCloud Drive on your iOS devices with iOS 8?
    Be aware, be careful, be prepared for iCloud Drive | TUAW: Apple news, reviews and how-tos since 2004

  • Error: There is a problem with the file and it cannot be copied

    I've been trying to copy (and essentially move) the contents of an NTFS-formatted external HDD to my iMac's internal HDD so I can then format the external HDD to Mac OS Extended. However, when I simply try to drag and drop, I get an error during the transfer that states:
    There is a problem with the file and it cannot be copied.
    I tried a basic cp command in Terminal to copy all contents of the external HDD to a folder on my iMac's desktop, and found that while there were no errors, there were many individual files missing full chunks of data (ie. original file would be 4GB on my external HDD, but only 350MB on my desktop).
    Any ideas on how I can successfully copy a large amount of data (approx. 170GB) from my external HDD to my internal HDD while avoiding this error, so I can ultimately format my external HDD to Mac OS Extended? ANY help is greatly appreciated.

    That's not a good error to see. It indicates something is very wrong. Pulled out of an old programming header file:
    ioErr = -36, /*I/O error (bummers)*/
    If Apple labelled it "bummers," they had a good reason! Unfortunately, that doesn't bode well for you.
    Try running Disk Utility again. Keep repairing over and over until one of two things happens: 1) Disk Utility says no repair was needed, or 2) Disk Utility reports the same error in two sequential repair sessions and is unable to repair it both times.
    If you hit the second case, or if you hit the first but still can't copy files, then you've got two basic options:
    = Buy a third-party disk utility or two and try them. Try TechTool as a first choice.
    = Recover what files you can and write the rest off as gone.
    = Send your drive to a data recovery service and hope they can extract more than you can.
    Of course, none of this is necessary if you have a backup of the contents of that hard drive. (If you don't, this is your learning experience. Once bitten, twice shy, so they say.) Also, regardless of the outcome, once you've got your data or have decided it's gone, you're going to want to wipe that drive completely clean. Reformat the drive with Disk Utility, then when it's done, select the drive in Disk Utility and hit command-i. (Don't select the new volume you just created on that drive, select the drive itself. Mine looks like "232.9 GB Hitachi ..." with the volume name indented underneath.) Look for an item that says S.M.A.R.T. Status, and if it doesn't say Verified, you might as well throw out the drive. Don't trust any more data to it.
    If all appears safe, you can start moving data back onto it. But, as always, make sure you have a backup of everything!

  • SFTP MGET of large files fails - connection closed - problem with spool file

    I have a new SFTP job to get files from an FTP Server.  The files are large (80mg, 150mg).  I can get smaller files from the ftp site with no issue, but when attempting the larger files the job completes abnormally after 2 min 1 sec. each time.  I can see the file is created on our local file system with 0 bytes, then when the FTP job fails, the 0 byte file is deleted.
    Is there a limit to how large an ftp file can be in Tidal?  How long an ftp job can run?
    The error in the job audit is Problem with spool file for job XXXX_SFTPGet and an exit code of 127 (whatever that is).
    In the log, the error is that the connection was closed.  I have checked with the ftp host and their logs show that we are disconnecting unexpectedly also.
    Below is an excerpt from the log
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.055 : Send : Name=SSH_FXP_STAT,Type=17,RequestID=12
    DEBUG [SSH2Channel] 6 Feb 2015 14:17:33.055 : Transmit 44 bytes
    DEBUG [ChannelDataWindow] 6 Feb 2015 14:17:33.055 : Remote window size decreased to 130808
    DEBUG [PlainSocket] 6 Feb 2015 14:17:33.071 : RepeatCallback received 84 bytes
    DEBUG [SSH2Connection] 6 Feb 2015 14:17:33.071 : ProcessPacket pt=SSH_MSG_CHANNEL_DATA
    DEBUG [SFTPMessageFactory] 6 Feb 2015 14:17:33.071 : Received message (type=105,len=37)
    DEBUG [SFTPMessageStore] 6 Feb 2015 14:17:33.071 : AddMessage(12) - added to store
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.071 : Reply : Name=SSH_FXP_ATTRS,Type=105,RequestID=12
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.071 : Send : Name=SSH_FXP_OPEN,Type=3,RequestID=13
    DEBUG [SSH2Channel] 6 Feb 2015 14:17:33.071 : Transmit 56 bytes
    DEBUG [ChannelDataWindow] 6 Feb 2015 14:17:33.071 : Remote window size decreased to 130752
    DEBUG [PlainSocket] 6 Feb 2015 14:17:33.087 : RepeatCallback received 52 bytes
    DEBUG [SSH2Connection] 6 Feb 2015 14:17:33.087 : ProcessPacket pt=SSH_MSG_CHANNEL_DATA
    DEBUG [SFTPMessageFactory] 6 Feb 2015 14:17:33.087 : Received message (type=102,len=10)
    DEBUG [SFTPMessageStore] 6 Feb 2015 14:17:33.087 : AddMessage(13) - added to store
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.087 : Reply : Name=SSH_FXP_HANDLE,Type=102,RequestID=13
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.087 : Send : Name=SSH_FXP_READ,Type=5,RequestID=14
    DEBUG [SSH2Channel] 6 Feb 2015 14:17:33.087 : Transmit 26 bytes
    DEBUG [ChannelDataWindow] 6 Feb 2015 14:17:33.087 : Remote window size decreased to 130726
    DEBUG [PlainSocket] 6 Feb 2015 14:17:33.118 : RepeatCallback received 0 bytes
    DEBUG [SFTPChannelReceiver] 6 Feb 2015 14:17:33.118 : Connection closed:  (code=0)
    ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 : Disconnected unexpectedly ( [errorcode=0])
    ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 : EnterpriseDT.Net.Ftp.Ssh.SFTPException:  [errorcode=0]
    ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 :    at EnterpriseDT.Net.Ftp.Ssh.SFTPMessageStore.CheckState()
    ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 :    at EnterpriseDT.Net.Ftp.Ssh.SFTPMessageStore.GetMessage(Int32 requestId)

    I believe there is a limitation on FTP and what you are seeing is a timeout built into the 3rd party application that tidal uses (I feel like it was hardcoded and it would be a big deal to change but this was before Cisco purchased tidal)  there may have been a tagent.ini setting that tweaks that but I can't find any details.
    We wound up purchasing our own FTP software (ipswitch MOVEit Central & DMZ) because we also had the need to host as well as Get/Put to other FTP sites. It now does all our FTP and internal file delivery activity (we use it's api and call from tidal if we need to trigger inside a workflow)

Maybe you are looking for

  • Max no of connections in the RFC receiver ?

    Hi Guys, when i increse the max no of connections from 1 to 5 , i am getting the following errors, i saw we can give up to 50. why it is not taking more than 1. SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: error while processing mes

  • How to remove bought app from app store 'archive'

    since a while in the App store (both on iPhone or on the computer) it's possible to re-install old purchases of apps that you once downloaded and deleted. that's cool. more than two years ago i downloaded viber, deleted it, never re-installed or used

  • How to connect a video camera (not a webcam) in a way that Flash player sees it as webcam

    Dear All, I'm working on an interactive/augmented reality project for an exhibition, where viewers trigger a video by standing at a certain point in a room (just like BBC's Frozen Planet). My problem is that the webcam's image that we've used to capt

  • Profit center report with cumulative local currency amount

    Hi, I am working to create a report with cumulative local currency .,so that the report data should tally with GL account balance (FS10N). This report is for balance sheet accounts . Whenever we used to create report with either report painter or dri

  • CS6 (mac) will not let me update ACR.. any ideas?

    It responds that I have all the updates... but ACR is stuck at 7.3... I tried to download the ACR installer, and it indicates my version of PS is not supported... Which I figured it would be after I paid for it..haha.. Is there a quick fix to this, o