How conform that a receiving file is completly received.

i am sending a file.
how conform that a receiving file is completly received?

server code
package server;
import java.beans.XMLEncoder;
import java.io.*;
import java.net.*;
import java.nio.channels.FileLock;
import java.sql.ResultSet;
import java.util.ArrayList;
public class Server2 {
    public static void main(String args[]) {
        int port = 6789;
        Server2 server = new Server2(port);
        server.startServer();
    // declare a server socket and a client socket for the server;
    // declare the number of connections
    ServerSocket echoServer = null;
    Socket clientSocket = null;
    int numConnections = 0;
    int port;
    public Server2(int port) {
        this.port = port;
    public void stopServer() {
        System.out.println("Server cleaning up.");
        System.exit(0);
    public void startServer() {
        // Try to open a server socket on the given port
        // Note that we can't choose a port less than 1024 if we are not
        // privileged users (root)
        try {
            echoServer = new ServerSocket(port);
        } catch (IOException e) {
            System.out.println(e);
        System.out.println("Server is started and is waiting for connections.");
        System.out.println("With multi-threading, multiple connections are allowed.");
        System.out.println("Any client can send -1 to stop the server.");
        // Whenever a connection is received, start a new thread to process the connection
        // and wait for the next connection.
        while (true) {
            try {
                clientSocket = echoServer.accept();
                numConnections++;
                Server2Connection oneconnection = new Server2Connection(clientSocket, numConnections, this);
                new Thread(oneconnection).start();
            } catch (IOException e) {
                System.out.println(e);
class Server2Connection implements Runnable {
    //BufferedReader is;
    ObjectInputStream is;
    ObjectOutputStream os;
    XMLEncoder xml;
    Socket clientSocket;
    String numConn;
    int id;
    Server2 server;
FileLock fl ;
    public Server2Connection(Socket clientSocket, int id, Server2 server) {
        this.clientSocket = clientSocket;
        this.id = id;
        this.server = server;
        numConn = "Connection " + id + " established with: " + clientSocket;
        System.out.println("Connection " + id + " established with: " + clientSocket);
        try {
            is = new ObjectInputStream(clientSocket.getInputStream());
            os = new ObjectOutputStream(clientSocket.getOutputStream());
            //xml = new XMLEncoder(new BufferedOutputStream( new FileOutputStream("first.xml")));
          //  xml = new XMLEncoder(new BufferedOutputStream( new FileOutputStream("first.xml")));
            FileOutputStream fs = new FileOutputStream("first.xml");
            BufferedOutputStream br = new BufferedOutputStream(fs);
            xml = new XMLEncoder(br);
            //fl =  fs.getChannel().lock();
        } catch (IOException e) {
            System.out.println(e);
    public void run() {
        Object line;
        try {
            boolean serverStop = false;
            int n = 0;
            while (true) {
                line = is.readObject();
                if (line instanceof String) {
                    String s = (String) line;
                    System.out.println("In Server :: The input is " + s);
                    UserData ud = new UserData();
                    ud.setAdd("karachi");
                    ud.setId("123");
                    ud.setName("XML testing..");
                    System.out.println("Tring to lock locked..");
                    fl.channel().tryLock();
                    System.out.println("File locked..");
                    xml.writeObject(ud);
                    xml.flush();
                    //os.writeObject(ud);
                    n = Integer.parseInt(s);
                if (n == -1) {
                    serverStop = true;
                    break;
                if (n == 0) {
                    break;
            //  System.out.println("Connection " + id + " closed.");
            fl.release();
            is.close();
            os.close();
            xml.close();
            clientSocket.close();
            if (serverStop) {
                server.stopServer();
        } catch (Exception e) {
            System.out.println("Exception..." + e);
client code
* To change this template, choose Tools | Templates
* and open the template in the editor.
package scoket1;
import java.beans.XMLDecoder;
import server.UserData;
//import server.MyRS;
import java.io.*;
import java.net.*;
import java.sql.ResultSet;
import java.util.ArrayList;
import javax.swing.JOptionPane;
public class Client {
    public static void main(String[] args) {
        String hostname = "localhost";
        int port = 6789;
        // declaration section:
        // clientSocket: our client socket
        // os: output stream
        // is: input stream
        Socket clientSocket = null;
        ObjectOutputStream os = null;
        ObjectInputStream is = null;
        XMLDecoder de = null;
        // Initialization section:
        // Try to open a socket on the given port
        // Try to open input and output streams
        try {
            clientSocket = new Socket(hostname, port);
            os = new ObjectOutputStream(clientSocket.getOutputStream());
            is = new ObjectInputStream(clientSocket.getInputStream());
            de = new XMLDecoder(new BufferedInputStream(new FileInputStream("first.xml")));
        } catch (UnknownHostException e) {
            System.err.println("Don't know about host: " + hostname);
        } catch (IOException e) {
            System.err.println("Couldn't get I/O for the connection to: " + hostname);
        // If everything has been initialized then we want to write some data
        // to the socket we have opened a connection to on the given port
        if (clientSocket == null || os == null || is == null) {
            System.err.println("Something is wrong. One variable is null.");
            return;
        try {
            while (true) {
                System.out.print("Enter an integer (0 to stop connection, -1 to stop server): ");
                BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                String keyboardInput = br.readLine();
                os.writeObject(keyboardInput);
                int n = Integer.parseInt(keyboardInput);
                if (n == 0 || n == -1) {
                    break;
//                Object responseObj = null;
//                responseObj = is.readObject();
                Object test = null;
                test = (Object) de.readObject();
                if (test instanceof String) {
                    String msg = (String) test;
                    System.out.println(msg);
                } else if (test instanceof UserData) {
                    System.out.println("XML File Test succesful .. be happy ..");
                    System.out.println("Array of User Data ..");
                    UserData ud = (UserData) test;
                    System.out.println("Name:-    " + ud.getName());
                    System.out.println("ID :-     " + ud.getId());
                    System.out.println("Address:- " + ud.getAdd());
            // clean up:
            // close the output stream
            // close the input stream
            // close the socket
            os.close();
            is.close();
            clientSocket.close();
        } catch (UnknownHostException e) {
            System.err.println("Trying to connect to unknown host: " + e);
        } catch (Exception e) {
            System.err.println("Exception:  " + e);
}

Similar Messages

  • File adapter - how to make shure a file is complete for sender/receiver?

    Hi everybody,
    I want to use the file adapter and a question arises for both sender and
    receiver:
    On the sender: How does the PI know when a file is complete for reading?
    Can this be a problem (PI starts reading the file when it is not complete?)
    On the receiver: How does the receiver know when a file written by
    PI is complete? Does PI support some kind of write to tmpfile then rename
    schema?
    Thanks for any suggestions
    Best regards
    Stefan

    Hi Stefan,
    On the sender: How does the PI know when a file is complete for reading?
    Can this be a problem (PI starts reading the file when it is not complete?)
    Yes, it could be a problem: Have a look at below from help.sap
    Advanced Mode
    To specify additional parameters in the adapter configuration, set the Advanced Modeindicator.
    ●      Msecs to Wait Before Modification Check
    Enter the number of milliseconds that the adapter must wait before it checks whether the files have been changed.
    This parameter is not available if you have selected File Content Conversion as the Message Protocoland then made an entry under Recordsets per Message that splits an input file into several messages.
    This parameter is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.
    Regards,
    Carlos

  • How to set a trail file as completed?

    I am using GoldenGate to do an initial load, using parameters like:
    EXTFILE /tmp/aa, MAXFILES 1000, MEGABYTES 2000
    I don't understand why all the files except the last one are marked as completed.
    In my use case, I need all the generated files to be completed.
    What is the reason for the initial load extract not to do that?
    That seems like a bug to me?!
    What options / tools do I have to either:
    - configure the initial load extract to complete the last file;
    - complete the last file by hand after the initial load extract process exits.
    According to the "Logdump Reference for Oracle GoldenGate," it seems like it's only a matter of setting the FileSize token to the file's size, in the FileHeader record.
    I could develop a tool that does that, but I would rather find a better way.
    Thanks in advance!

    A trail file's "completed" status has a specific meaning, which is independent from the file's size. This status is indicated by setting the FileSize record (type 0x39) in the FileHeader record with flag 0x00 and the file's actual size as its value. I have verified this experimentally.
    You are right that a trail file is marked as completed by the trail's writer once the file reaches the configured limit.
    In the case of an initial load, the last file is not marked as completed. The last file is typically below the configured size limit, but no additional data is expected to be written into that file. Therefore, I don't see any reason for the last file in an initial load not to be marked as completed?!
    I wrote a small script that marks a trail file as completed, by setting the FileSize record to the file's actual size, and by clearing the flag on that record.
    When I run this script on the last file of an initial load, this file is considered as completed by any reader, as expected.
    I was hoping not to have to write my own script to mark trail files as completed. Is there a standard way to make an initial load extract mark the last file as completed?

  • How to check if a file is completely written?

    Hi
    My question relates to polling for a file in a particular directory written by an external process (maybe FTP ...). What I need to know is whether there is a way of determining whether the file has been completely written to the disk by the external process.
    I need to find a way so that I do not end up processing partial files in the polling process.
    Thanks
    Raghu Warrier

    My question relates to polling for a file in a
    particular directory written by an external processNot particularly, one can implement some type of lock file or even maybe some OS-specific locking mechanisms, but none of which which one would enable/control from within Java. One simple method to dramatically reduce contention time in this manner for most OSs (and to emprically introduce some level of atomicity) is to write to a separate directory on the same filesystem, then once the other process knows the file is complete, then move it to the new directory which generally involved just index pointer addition/moving into the directory entry which is of course much more `atomic' than polling on directory entries themselves.
    is a way of determining whether the file has been
    completely written to the disk by the external
    process. Some OSs don't write the file size until the writing process is done, but this is not guaranteed across OSs. Anyway to introduce a socket semaphore?
    I need to find a way so that I do not end up
    processing partial files in the polling process.You can also poll the filename->size mappings and with a sufficient poll delta determine if the file is no longer being written. This is not perfect, but a fail-foul solution at that.

  • Unable to Receive Files at the Receiver end

    Hello All,
    I have configured scenario Proxy to File with 1:2 transformation (Interface collections) ie
    1 Sender and  Receiver Service
    1 Sender interface
    2 Receiver interface
    1 Message and interface mapping
    1 Receiver determination
    1 Interface determination
    2 Receiver file channel with FCC
    The QoS is Exactly Once.
    My scenario is failing at Adapter Engine (Receiver end) failing to create 2 text files.
    My Question is
    1. The Status of the File Receiver channel in monitoring are in error status displaying "Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error: invalid receiver channel 'a3478068e95133a8ad28777a3fe1344d'" What is the reason for this ? I checked the Cache update and cache is upto date.
    2.In SXMB_MONI , When Checked the trace part of Receiver Determination it correctly displays
    "<Trace level="2" type="T">Number of Receivers:1</Trace> "
    But when i checked Trace for Interface Determination it is displaying " InterfaceCollection</Trace>
      <Trace level="2" type="T">...valid InbIf without Condition: InterfaceCollection</Trace>
      <Trace level="2" type="T">Number of receiving Interfaces:1</Trace> "
    Here it should display "Number of receiving Interfaces:2 " Right?   What is the reason for this ? do we have todo multimapping?
    3.In Message monitoring for Adapter Engine i could see messages in Holding state. what is the specific reason in his case (I know the literal/functional meaning) of messages going to holding state  . "Maintain Order at Runtime" is checked in Interface Determination?
    May I know in which situation the messages would goto into holding state (isit because IE was not able to find 2 receiver interface)  and without unchecking the "Maintain Order at Runtime" option and manual intervention isit possible to process the scenario successfully?
    Many thanks in Advance .
    Regards,
    Pavithra

    Hello Ninad,
    Since I am using EHP 1 SAP NetWeaver PI 7.11 , there is no explicit option of selecting "Enhanced Interface Determination" ( Its understood implicitly through the Signature tab in Message mapping (1:n transformation)) and I have done multimapping as message mapping (In the mapping editor, switch to the Signature tab page) for my scenario
    The cache (AE) is perfectly fine
    I am noting down my observation here.
    My scenario uses QoS EO and the " Maintain Order at Runtime" option was checked. There were many System error messages due to other issues for the previous month and holding messages for this month.
    I guess due to this the channels were in  error though the channels' status were in green but it was displaying message " Message processing failed. Cause:com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error: invalid receiver channel '1ac04de4d1103d09b5b9c764c8895e98'"
    Now I filtered all the 'system error' messages with Sequence Id and deleted all of them and Resent all the holding messages and there were no message in holding .Now again i tried sending some data's ...the channel are functioning fine and no such error messages are displayed
    Regards,
    Pavithra

  • How to check if a file is complete?

    Hi all,
    My problem is simple. I want to make sure that the file I am about to FTP from remote server to a local server (thru java) is complete. The file (lets call it TESTFILE.001) is sent by the client ( not at fixed time) few times a day. My process runs every hour and grabs this file if it exists. If no file is found then process just terminates. But I dont want to grab it if its still being populated. How do I do this?
    I cannot setup a file object for this file as I only have FTP login for the remote server.
    Thanks in advance.
    -Chirag

    Hi all,
    Since I was trying to access the file on remote server, there is no way in java to set up a direct File object. (It works on windows machine to windows but not with Unix)
    The way I finally did it was by using ftp. As a rule, when a file is being written to, it is locked and reports size 0.
    So I check if file size is zero. If it is then I know that either there is no file or the file is currently being written to (hence not complete)

  • How to give a dynamic File Name for Receiver File/FTP Adapter.

    Hi Experts,
        I have one scenario in which we are creating a flat file of IDOC which is coming from R/3 & sending it to FTP location. For this we have configured Receiver FTP adapter with File Name Scheme as "NT.out"  & in File Consturction mode i have given as "Add Time Stamp".
        therfore while creating a file it is creating as NTyyyyMMdd-HHmmss-SSS.out
    where as my requirement is only to to add Time & not the Date. (NThhmmss.out)
        How to do this ?
        for your info we are using ABAP Mapping.
        Pl help me
    Regards,
    Umesh

    Hi Umesh,
          Add one more field to your target structure for your file name and populate that field as per your requirement like NTyyyyMMdd.out. In receiver communication channel use Variable subtiution option and give the refrence of Payload and file construction mode set as create.
    And refer the below weblogs for Variable Subtiutuion File Name Scheme
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i - Dynamic File Name Part 1
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii - Dynamic File Name Part 2
    Hope this way would be solve u r problem.
    Cheers
    Veera
    >>>Reward points, if it is needful

  • How to keep same sender file name for receiver mail attachement

    Hi,
      i am working with File to Mail scanario. There i want to pick a flat file from native file system and then send it as email attachment. Now i am able to send the file but the flat is getting converted as an xml file. is there any method to keep the same sender file name and type for receiver mail attachment. i am not using any mail package. i am using XI payload and keep attachments.
    Thanks in advance.
    -Siva

    Hi,
    Yes,With out using the mail package u can send the Mail Attachments to the receiver side,
    In that case no need of Integration Repository objects.
    Chck this links.
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    /people/community.user/blog/2006/09/07/email-reporting
    /people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    If u dont get ur requirement then let me know ur Mail id i will send u a Doc.
    Regards,
    Phani
    Reward points if Helpful

  • HOW to send the SPlitted files to multiple Receiver On some Condition ?

    Hi all,
    It's Urgent,
    Aim of our scenario
    the single file is splited according to company code and creates as separate file
    previously it was sending to same server..
    we have got the CHANGE REQUEST ON THIS SCENARIO that to route to TWO FTP servers which is splitting according to company code.
    But we are not changing any objects in IR
    we have only need to change in ID
    as now we are using on BUSINESS SERVICE which we have created in ID itself we are not using the BUSINESS SYSTEM created in SLD
    We are using ONLY one INBound interface , Interface MApping , Message MAPPing .(no cahnges in IR)
    Sender XML Structure
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    <ns0:Message1>
    <ns1:MT_FileEwadCompany occurence1-1
    xmlns:ns1="http://bridgegcs.com/HR/EmployeeWorkforceAdminDataXI_IHR004">
    <COMPANYEWADDATA> 0 -unbound occurence
    <AUDIT_STAMP/>
    <SEQNO/>
    <SE_TYPE/>
    <RECNAME_AUDIT/>
    <FLD_NAME/>
    <OLDVALUE/>
    <NEWVALUE/>
    <KEY1/>
    <KEY2/>
    <KEY3/>
    <KEY4/>
    <COMPANY/>
    <SCE_PAYROLL_CODE/>
    <ALTER_EMPLID/>
    </COMPANYEWADDATA>
    </ns1:MT_FileEwadCompany>
    </ns0:Message1>
    </ns0:Messages>
    Receiver XML Structure
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    <ns0:Message1>
    <ns1:MT_FileEwadCompany 0-to-unbound
    xmlns:ns1="http://bridgegcs.com/HR/EmployeeWorkforceAdminDataXI_IHR004">
    <COMPANYEWADDATA>0-unbound
    <AUDIT_STAMP/>
    <SEQNO/>
    <SE_TYPE/>
    <RECNAME_AUDIT/>
    <FLD_NAME/>
    <OLDVALUE/>
    <NEWVALUE/>
    <KEY1/>
    <KEY2/>
    <KEY3/>
    <KEY4/>
    <COMPANY/>
    <SCE_PAYROLL_CODE/>
    <ALTER_EMPLID/>
    </COMPANYEWADDATA>
    </ns1:MT_FileEwadCompany>
    </ns0:Message1>
    </ns0:Messages>
    IN Integration Directory We have to route to 2 FTP servers based on Company code .
    WE have used XPATH with particular company codes TO one target Business service which we have created in ID where we are using one FTP server(FTP server 1).
    For all other company codes it has to send to second FTP server for Second business system which has been created in SLD .
    previously they used INTERFACE DETERMINATION as ENHANCED TYPE
    IF we change to STANDARD its not DISPLAYING INTERFACE MAPPING in pop up window.
    As now we created now .
    One receiver determination
    Two Interface DETERMINATIONs(As enhanced type).
    Two REceiver Agreements.
    As now we have tested
    it is sending all files to both servers.
    But we need to send to specfied FTP servers on the basis of COmpany code which we declare in XPATH expression.
    could any one can guide us
    POINTS WILL BE REWARDED FOR BEST ANSWERS..It's urgent
    THanks in ADvance
    Nandan

    Hi nandan,
    u said that u r using
    1) business service for FTP1
    2)business system for FTP2
    u have given X-path condition in Rec determination...i.e depending upon the company code it will route to business service or business system .
    so i guess there should be two reciver determination
    2 interface dtermination
    And also check ur Xpath....make sure that its like....
    if (Comp code == 1)
    go to FTP1
    if (comp code == 2)
    go to FTP2
    regards
    biplab

  • Output CSV File Naming Convention - Receiver File Adapter

    Dear SAP experts,
    I need help regarding my scenario.
    My scenario is this, Customer will send EDI message to XI. XI will then translate the message and convert it into XML.. After, a Receiver File Adapter will receive the XML then convert it into .csv file.
    I've already configured the Receiver File Adapter to convert the XML into .csv file.
    But, my problem now is how will I configure to have my output .csv file has a File Naming Convention.
    The output .csv file must be "CustomerName_YearMonthDate".
    From the EDI message, there is indicated Sender GLN in which, each customer has its own Sender GLN.
    E.g., Globus --> 200, Karstadt --> 300,  Metro --> 400.
    How will I configure so that I can have an output .csv file of,
    If Globus sends the EDI message, the output .csv file is Globus_20080304.csv.
    If Karstadt, Karstadt_20080304.csv.
    If Metro, Metro_20080304.csv.
    Kindly advise for a clear and complete solution.
    Thank you very much for your usual support.
    Fred

    Hi Nisar,
    My target message (XML) in the mapping is this,
    - <ns0:CSV>
        -  <SLI>
               <PERIO> </PERIO>
               <ILN> </ILN?
               <EAN> </EAN>
    perio, iln, and ean was rooted on SLI field. and the CSV is the rootnode of the target message.
    I have created a UDF on the message mapping to accomodate the output customer name, here is the codes:
    String fname="";
    if(GLN.equals("23456"))
    fname ="Globus" +dat;
    else if(GLN.equals("5678"))
    fname ="Karstadt"+dat;
    else if(GLN.equals("6789"))
    fname ="Metro"+dat;
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/File",
        "FileName");
        conf.put(key,fname );
    E.g.,
    Globus --> 23456 (Sender GLN)
    Karstadt --> 5678 (Sender GLN)
    Metro --> 6789 (Sender GLN)
    This UDF i've made in the Message Mapping was mapped in the root node CSV.
    Is this UDF correct?
    Then on the File Receiver Configurations, here are the configs,
    Transport Protocol: File System (NFS)
    Message Protocol: File Content Conversion
    Adapter Engine: Integration Server
    File Access Parameters
    Target Directory: /var/opt/gsss/sample/csv
    File Name Scheme: .csv
    Processing Parameters
    File Construction Mode: Create
    - Overwrite Existing File
    Write Mode: Directly
    File Type: Text
    Variable Substitution --> ???
    Adapter Specific Message Attributes
    - Use Adapter-Specific Message Attributes
    - Fail if Adapter-Specific Message Attributes Missing
    - File Name
    Run Operating System Command After Message Processing
    Command Line: chmod 664%F
    Content Conversion Parameters
    Recordset Structure: SLI
    SLI.addHeaderLine: 3
    SLI.headerLine: PERIO;ILN;EAN
    SLI.fieldSeparator: ;
    SLI.endSeparator: 'nl'
    Adapter Status:
    Status: Active
    Kindly advise if my configs are correct.
    Thank you very much!
    Fred

  • Receiver File Adapter with File content Conversion

    I have a requirement to send 2 different files to the target directory. Source is the same and different mapping for the 2 files.
    This I can achieve through multi-mapping but there is a problem. How can I use the File content for receiver File adapter which is using Multimapping.
    The structure of the 2 files also different.

    Why would you need FCC on receiver file adapter? If you need different files to be generated from the source, you could create two receiver channels with different mappings and just add them to the same Receiver Detemination. Isn't feasible?

  • I have multiple apple ids was backing up everything to iCloud from iPhone 5. I just bought iPhone 6 and perform a iCloud restore. I received a message that all files did not restore.   How can I restore apps, files manually?

    I have multiple apple ids was backing up everything to iCloud from iPhone 5. I just bought iPhone 6 and perform a iCloud restore. I received a message that all files did not restore.   How can I restore apps, files manually?

    Yes - I connected my phone to my computer / Itunes and went into the apps section, but from there I have no idea how to manage the push notifications.  I even tryied going into itunes that is installed on my phone.  I still cannot find anyplace to manage these popups.  I have also gone into settings - notifiations - and tried turning all notifications for these apps all off but that didnt work either.  Any guidance is MUCH appreciated - Im not sure where to go from here.

  • I've been receiving an error message, "That the .itl file is locked, on a locked disc or you do not have write permission". Can someone tell me how to unlock the file or disc?

    I've been receiving an error message, "That the .itl file is locked, on a locked disc or you do not have write permission". Can someone tell me how to unlock the file or disc?

    theres no - in "itunes" its all one word
    try right clicking and running itunes as adminstrator or try on a different user account

  • I cannot download OS X Mountain Lion, I get an error message that says: "We could not complete your purchase. The product distribution file could not be verified. It may be damaged or was not signed." Why am I receiving this message?

    I cannot download OS X Mountain Lion, I get an error message that says: "We could not complete your purchase. The product distribution file could not be verified. It may be damaged or was not signed." Why am I receiving this message?

    Servers may be overloaded.
    One user reported:
    Deleted file com.apple.appstore in /var/folders/, dissabled VirusBarrier X6: problem solved!

  • I received a Pages attachment in email, but I can't open it. Says it's missing an "index.mlx" -- any idea what that is and how I can open the file?

    Received a Pages attachment in email, but can't open it. Error message says it's missing an "index.mlx" -- any idea what that is and how I can open the file?

    Many thanks ... after many trials and effort, the sender admitted he doesn't know what he did - he's new to Apple - so guess he'll have to get some training!  

Maybe you are looking for

  • My bookmarks will not "sort" on one list, instead they make a short list right before the main list, so how do I get them to all go into the same list?

    When I put my bookmarks in "Bookmarks Menu", and sort them by "name", there is a short list of alphabetized names, then the main list of alphabetized names. They are all in the "Bookmarks Menu" file, but won't merge, for some reason. It is as if they

  • JSF & JDev error: The page cannot be displayed

    I'm trying to use JSF with JDeveloper. When I make my project no errors are reported, when I run it a browser opens up with an error. I added 'faces/' to the url and refreshed but still get same error message i.e. 'The page cannot be displayed' Here

  • Finding valid values of a Parameter name in Powershell

    I am a beginner in PowerShell. I was working with this command: Get-EventLog -Logname Security Is there any place PowerShell help or otherwise that lists all the valid values of the Logname parameter. I think the following are valid "-Logname" values

  • Full screen / .flv problem

    hi all I'm placing a "green-screened" .flv over the top of some other animation (the background has been eliminated w/ color key removal in premiere).  It seems to work fine until I enter full screen mode-- at which time the keyed out background come

  • Cisco CCX support for TTY/TDD

    All; I need to deploy a CCX 9x solution that supports TTY/TDD.  I can find documents that describe our phone asscessability and how to connect a device to a FXS port. but I cannot find anything that says a hearing imparied person can communicate with