Problem FTP Stor with iSeries

Hello,
Here is my problem. I try desperately to upload the content of a file to an IBM iSeries (AS400) in a java program.
I have found the way to download the content of a file from iSeries to PC, that's made by the method getFileContent, and it works fine.
But I cannot upload the content of a text file in my PC to the iSeries and I don't know why. I use for this the
setFileContent method. The file specified on the iSeries to receive my datas is well created or cleared (if it aready exists), but it stays desperately empty. No data seem to be written in. I have also tried to use the appe command, but it doesn't work anyway.
Please can someone help me and find what's wrong in my code, and how to do this?
Thank you very much
import java.net.Socket;
import java.io.BufferedReader;
import java.io.PrintWriter;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.regex.*;
import java.io.*;
public class FTPClient {
static int portDatas;
private BufferedReader in = null;
private BufferedReader in2 = null;
private PrintWriter out = null;
private BufferedWriter out2 = null;
private Socket socket = null;
private String hostName;
private int hostPort;
private String user;
private String password;
private String library;
private String file;
private String member;
private boolean isPASV;
private FTPClient commandPort;
private FTPClient datasPort;
static StringBuffer fileContent = new StringBuffer();
private static boolean stopped = false;
private int mode;
static BufferedWriter bufferedWriter;
private File fileMember = null;
private String fileSeparator = System.getProperty("file.separator");
// Constructeur priv�
private FTPClient(boolean isPASV) {
this.isPASV = isPASV;
// Constructeur publique
public FTPClient(String hostName, int hostPort, String user, String password)
this.hostName = hostName;
this.hostPort = hostPort;
this.user = user;
this.password = password;
commandPort = new FTPClient(true);
datasPort = new FTPClient(false);
// M�thode servant � rappatrier sous forme d'une String, le contenu d'un membre AS400
public String getFileContent(String library, String file, String member){
commandPort.library = library;
commandPort.file = file;
commandPort.member = member;
if (commandPort.open(hostName, hostPort)) {
commandPort.login(user, password);
commandPort.passive();
if (datasPort.open(hostName, portDatas)){
commandPort.retrieve();
return datasPort.getContent();
// M�thode servant � rappatrier sous forme d'un Fichier txt, le contenu d'un membre AS400
public String getFile(String library, String file, String member, String folderPath){
boolean fileOk = false;
commandPort.library = library;
commandPort.file = file;
commandPort.member = member;
if (! folderPath.trim().endsWith(fileSeparator)) {
folderPath += fileSeparator;
if (commandPort.open(hostName, hostPort)) {
commandPort.login(user, password);
commandPort.passive();
if (datasPort.open(hostName, portDatas)){
fileMember = new File(folderPath + member + ".txt");
try {
fileOk = fileMember.createNewFile();
bufferedWriter = new BufferedWriter(new FileWriter(fileMember));
commandPort.retrieve();
bufferedWriter.write(datasPort.getContent());
bufferedWriter.close();
catch (IOException ex) {
fileOk = false;
if (fileOk) {
return fileMember.getAbsolutePath() ;
else {
return "";
// M�thode servant � rappatrier vers l'AS400, un DSPF se trouvant dans un fichier
public void setFileContent(String library, String file, String member, String filePath){
commandPort.library = library;
commandPort.file = file;
commandPort.member = member;
if (commandPort.open(hostName, hostPort)) {
commandPort.login(user, password);
commandPort.passive();
if (datasPort.open(hostName, portDatas)){
commandPort.store(filePath);
datasPort.meuh(filePath);
private boolean isMsgValid(String msg, String code) {
if (msg != null && msg.startsWith(code)) {
return true;
return false;
private boolean readWelcomeMessage() {
String msg = waitLine();
//System.out.println(msg);
return isMsgValid(msg,"220");
// Ouverture du Socket vers la machine host
private boolean open(String server, int port) {
try {
socket = new Socket(server, port);
catch (IOException ex) {
//System.out.println(ex.getMessage());
return false;
try {
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
catch (IOException ex) {
//System.out.println(ex.getMessage());
return false;
try {
out = new PrintWriter(socket.getOutputStream());
out2 = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
catch (IOException ex) {
//System.out.println(ex.getMessage());
return false;
if(isPASV) // si port de commandes
readWelcomeMessage();
else // si port des donn�es
stopped = true;
new Thread()
public void run()
try {
String line=null;
while (true) {
line = in.readLine();
if (null != line) {
fileContent.append(line + "\n");
}else
stopped=false;
break;
catch (IOException ex1) {
ex1.printStackTrace();
}.start();
return true;
private synchronized String getContent()
while(stopped)
try {
Thread.sleep(200);
catch (InterruptedException ex) {
break;
String ret = fileContent.toString();
fileContent.setLength(0);
return ret;
// Fermeture de la connexion
private void close() {
try {
out.close();
in.close();
socket.close();
catch (Exception fe) {
//System.out.println("RESOURCE CLOSE EXCEPTION " + fe.getMessage());
private String waitLine() {
try {
return in.readLine();
catch (IOException ex) {
return null;
// Connexion � la machine avec utilisateur et mot de passe
private boolean login(String user, String pass) {
if (sendUser(user)) {
return sendPass(pass);
else {
return false;
// Passage du nom d'utilisateur
private boolean sendUser(String user) {
out.println("user " + user);
out.flush();
try {
String line = in.readLine();
//System.out.println(line);
return isMsgValid(line,"220");
catch (IOException ex) {
return false;
// Passage du mot de passe
private boolean sendPass(String pass) {
try {
String line = in.readLine();
//System.out.println(line);
if (line != null && isMsgValid(line,"331")) {
else
return false;
catch (IOException ex) {
return false;
out.println("pass " + pass);
out.flush();
try {
String line = in.readLine();
//System.out.println(line);
if (line != null && isMsgValid(line,"230")) {
return true;
catch (IOException ex) {
return false;
return false;
// Passage en mode passif avec r�cup�ration du port de transfert de donn�es
private boolean passive(){
out.println("pasv" );
out.flush();
try {
String line = in.readLine();
Pattern p2 = Pattern.compile("((\\d)+,(\\d)+,(\\d)+,(\\d)+,((\\d)+),((\\d)+))", Pattern.CASE_INSENSITIVE);
Matcher m2 = p2.matcher(line);
if (m2.find(1)) {
portDatas = (Integer.parseInt(m2.group(6)) << 8) + Integer.parseInt(m2.group(8));
//System.out.println(line);
return true;
catch (IOException ex) {
return false;
// R�cup�ration du contenu du fichier pass� en param�tre � la m�thode getSource
private boolean retrieve(){
out.println("retr "+ library + "/" + file + "." + member);
out.flush();
try {
String line = in.readLine();
//System.out.println(line);
return true;
catch (IOException ex) {
return false;
// Copie du contenu du fichier en direction de l'host
private boolean store(String filePath){
out.println("stor "+ library + "/" + file + "." + member);
out.flush();
/*try {
String line = in.readLine();
System.out.println(line);
BufferedReader bufferedReader = new BufferedReader(new FileReader(filePath));
String str;
while ((str = bufferedReader.readLine()) != null) {
out.write(str);
out.flush();
System.out.println(str);
bufferedReader.close();
return true;
catch (IOException ex) {
return false;
return true;
private void meuh(String filePath){
try {
BufferedReader bufferedReader = new BufferedReader(new FileReader(filePath));
String str;
while ((str = bufferedReader.readLine()) != null) {
out2.write(str);
out2.flush();
System.out.println(str);
bufferedReader.close();
catch (IOException ex) {
System.out.println(ex.getMessage());
// Finalisation (fermeture des ports)
protected void finalize() {
commandPort.close();
datasPort.close();
}

any problem with using the builtin ftp url abilities in jdk1.5 or any of the available ftp libraries?
If you have to do it yourself, I would seriously recommend investigating the difference between binary and ascii transfer and not always using the BufferedReader/PrintWriter technique.
use formatting as described here http://forum.java.sun.com/faq.jsp#format

Similar Messages

  • FTP STOR command with REST capability

    Hi folk,
    I have a cRIO on a remote field, and I need that the program running on that platform periodically uploaded, through the internet, the data files to an FTP server.
    I have used the FTP VIs included in the Internet Toolkit to develop this functionality and I am experiencing some problems.
    During the uploading of files of medium or large size, via FTP, can happen that the FTP server closes the connection.
    The reasons can be different, network operation exceeded the user-specified or system time limit, bandwidth usage is restricted or the bandwidth is limited, etc..
    To overcome this issue the correct strategy is to reopen the FTP connection and to restart the upload from the point where it was interrupted.
    It is very important to finish to upload only the remaining part of the file, and not to restart from the beginning, otherwise you could not end the upload if the FTP server closes the connection again and again.
    For implementing the resume, the FTP protocol supports a number of commands:
    SIZE <remote file-name>  Returns the size of a file (Binary mode) .
    REST <file-size>         Sets the following STOR command to restart transfer
                             from the specified point.
    STOR <remote file-name>  If anticipated from a REST command, store (upload)
                             only the part of the file starting from the
                             specified point.
    At the present, it seams to me that the LabVIEW Internet Toolkit does not support the capability of FTP resume.
    Furthermore, if during a FTP upload the connection is closed by the FTP server, the FTP [STOR].vi exits sometime with ambiguous errors.
    Exit with a correct error:
    Error 56 occurred at TCP Read in NI_InternetTK_Common_VIs.lvlib:TCP Read xTP Reply.vi:2->NI_InternetTK_FTP_VIs.lvlib:FTP Get Command Reply.vi:1->NI_InternetTK_FTP_VIs.lvlib:FTP Data Send.vi->NI_InternetTK_FTP_VIs.lvlib:FTP [STOR].vi
    Possible reason(s):
    LabVIEW:  The network operation exceeded the user-specified or system time limit.
    Exit with an ambiguous error:
    Error 54 occurred at TCP Open Connection in NI_InternetTK_FTP_VIs.lvlib:FTP Open Data Connection.vi->NI_InternetTK_FTP_VIs.lvlib:FTP Data Send.vi->NI_InternetTK_FTP_VIs.lvlib:FTP [STOR].vi
    Possible reason(s):
    LabVIEW:  The network address is ill-formed. Make sure the address is in a valid format. For TCP/IP, the address can be either a machine name or an IP address in the form xxx.xxx.xxx.xxx. If this error occurs when specifying a machine name, make sure the machine name is valid. Try to ping the machine name. Check that you have a DNS server properly configured.
    Do you have idea or suggestion of how  realize an FTP STOR command with REST capability?
    Thanks,
    Asper

    Unfortunately the best advice I could give you would be to make a copy of the FTP toolkit and add this functionality yourself. You should have most of the building blocks available to you so it should be fairly starightforward. You could reference the RFC (RFC 959 and RFC 3659 for extensions) for any specifics you need on the packet format. You will need to save some state information so you can resume your download from the correct point.
    Would it be possible to use TFTP? This is much leaner and more likely to succeed if the other ends supports it. I recently wrote a very basic TFTP Write. I'm sure I could do the TFTP Read in short order. I'm still working on packaging it up in a distributable form but I could provide you with a basic VI if needed.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • My apple keyboard had some problems, the store replaced it for me. I had to sign in to my computer, and couldn't get to pair the keyboard with the computer, as could not sign in. I know there is a command that lets you override this, does anyone know whic

    My apple keyboard had some problems, the store replaced it for me. I had to sign in to my computer, and couldn't get to pair the keyboard with the computer, as could not sign in. I know there is a command that lets you override this, does anyone know which buttons to  press.  I gather when you do this, a box comes up and pairs the two with a number you have to type in.

    Hi rpaspinall,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    Apple Wireless Keyboard: Difficulty during pairing process
    http://support.apple.com/kb/ts1569
    Best of luck,
    Mario

  • HT4009 I am trying to purchase in a app and it will not let me. I have just changed my credit card details now I can buy in my apps. I have purchased from App Store with no problem . Please help

    I am trying to purchase in a app and it will not let me. I have just changed my credit card details now I can buy in my apps. I have purchased from App Store with no problem . Please help

    Contact iTune Support
    http://www.apple.com/emea/support/itunes/contact.html

  • I have been having problems downloading apps with my cellular data. I try installing apps from the app store and when it starts loading it just stays loading for a while but all of a sudden it loads all the way and then it restarts It goes back to waiting

    I have been having problems downloading apps with my cellular data. I try installing apps from the app store and when it starts loading it just stays loading for a while but all of a sudden it loads all the way and then it restarts. It goes back to waiting

    https://discussions.apple.com/message/19584729#19584729

  • Problem with trying to buying apps from uk app store with hk credit card

    i am having a hard time trying to buy apps from uk app store with my hk credit card and wondering if i could get help from anyone?
    i tried to sign up another apple account which i put as a hk apple ID but the same issue still came up
    many thanks.

    I'd repost the question over in the App Store forum.  Somebody there might know.
    Here's the link:
    https://discussions.apple.com/community/mac_app_store/using_mac_apple_store
    Regards,
    Captfred

  • Problem when syncing with MobileMe

    I am using iPhone 3G, software 2.1. I use GMail for email (no problems) but my contacts, and only my contacts, sync through MobileMe.
    The problem is that with MobileMe active, my Contact list, "Mail, Contacts and Calendars" settings and several other minor features simply do not work - they open, pause for a few seconds, then crash. The Mail application also hangs and crashes every other time I open it.
    My local Apple Store restored 2.1, after which my Contact list and Email worked perfectly until I re-activated my MobileMe syncing, after which the problems resumed.
    As the problems occurred only after MobileMe syncing is turned on, I assume this is the cause of the problem, but because "Mail, Contacts..." settings crashes every time I open it I cannot disable MobileMe syncing.
    Any suggestions please? All help gratefully received...

    This was resolved by completely removing the MobileMe account from the iPhone, rebooting it and adding the account again.

  • The problem is occurred with J2ee server node which is disabled it from MMC

    Dear SAP Consultants,
    The problem is occurred with J2ee server node which is disabled J2ee server node from MMS Console and the abap work process is working fine but the dispatcher is yellow status and I can login to the abap system but Iu2019m not able to start the j2ee from Tcode u201CSmicmu201D as well
    The system parameters are:
    BI 7.0 System as ABAP & JAVA add on, windows 2003 on Oracle database, 24 GB Ram
    Paging files: Driveu201D Os system: minimum: 1525, maximum: 3048
    Driveu201DEu201D application: minimum: 70855, maximum: 70855
    I can see the log files as follow:
    From dev_disp:
    Sun Jun 21 13:10:28 2009
    J2EE server info
      start = TRUE
      state = STARTED
      pid = 2892
      argv[0] = E:\usr\sap\BWD\DVEBMGS00\exe\jcontrol.EXE
      argv[1] = E:\usr\sap\BWD\DVEBMGS00\exe\jcontrol.EXE
      argv[2] = pf=E:\usr\sap\BWD\SYS\profile\BWD_DVEBMGS00_cai-bwdev
      argv[3] = -DSAPSTART=1
      argv[4] = -DCONNECT_PORT=64990
      argv[5] = -DSAPSYSTEM=00
      argv[6] = -DSAPSYSTEMNAME=BWD
      argv[7] = -DSAPMYNAME=cai-bwdev_BWD_00
      argv[8] = -DSAPPROFILE=E:\usr\sap\BWD\SYS\profile\BWD_DVEBMGS00_cai-bwdev
      argv[9] = -DFRFC_FALLBACK=ON
      argv[10] = -DFRFC_FALLBACK_HOST=localhost
      start_lazy = 0
      start_control = SAP J2EE startup framework
    DpJ2eeStart: j2ee state = STARTED
    DpJ2eeLogin: j2ee state = CONNECTED
    Sun Jun 21 13:10:29 2009
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 6 / sock 1032
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:1362) [nixxi.cpp    4424]
    DpJ2eeMsgProcess: j2ee state = CONNECTED (NIECONN_BROKEN)
    DpIJ2eeShutdown: send SIGINT to SAP J2EE startup framework (pid=2892)
    ERROR => DpProcKill: kill failed [dpntdisp.c   371]
    DpIJ2eeShutdown: j2ee state = SHUTDOWN
    Sun Jun 21 13:10:48 2009
    DpEnvCheckJ2ee: switch off j2ee start flag
    From dev_jcontrol :
    [Thr 2124] Sun Jun 21 13:10:29 2009
    [Thr 2124] *** ERROR => invalid return code of process [bootstrap] (exitcode = 66) [jstartxx.c   1642]
    [Thr 2124] JControlExecuteBootstrap: error executing bootstrap node [bootstrap] (rc = 66)
    [Thr 2124] JControlCloseProgram: started (exitcode = 66)
    [Thr 2124] JControlCloseProgram: good bye... (exitcode = 66)
    From dev_bootstrap :
    JHVM_BuildArgumentList: main method arguments of node [bootstrap]
    -> arg[  0]: com.sap.engine.bootstrap.Bootstrap
    -> arg[  1]: ./bootstrap
    -> arg[  2]: ID0072573
    -> arg[  3]: -XX:NewSize=57M
    -> arg[  4]: -XX:MaxNewSize=57M
    -> arg[  5]: -Xms256M
    -> arg[  6]: -Xmx256M
    -> arg[  7]: -XX:+DisableExplicitGC
    -> arg[  8]: -verbose:gc
    -> arg[  9]: -Djava.security.policy=.java.policy
    -> arg[ 10]: -Djava.security.egd=file:/dev/urandom
    -> arg[ 11]: -Djco.jarm=1
    [Thr 5216] JLaunchIExitJava: exit hook is called (rc = 66)
    [Thr 5216] **********************************************************************
    ERROR => The Java VM terminated with a non-zero exit code.
    Please see SAP Note 943602 , section 'J2EE Engine exit codes'
    for additional information and trouble shooting.
    [Thr 5216] JLaunchCloseProgram: good bye (exitcode = 66)
    From server.0.log :
    #1.5 #001E4F208703008A0001C7470000092000046A4414D60A1F#1242740546634#/System/Server##com.sap.caf.eu.gp.schedule.impl.ScheduleWorker#J2EE_GUEST#0##n/a##27772ea0447811deb9bf001e4f208703#SAPEngine_Application_Thread[impl:3]_25##0#0#Error#1#com.sap.caf.eu.gp.schedule.impl.ScheduleWorker#Plain###ERROR_ACQUIRE_CONNECTION
    com.sap.caf.eu.gp.base.exception.EngineException: ERROR_ACQUIRE_CONNECTION
         at com.sap.caf.eu.gp.base.db.ConnectionPoolJ2EE.getConnection(ConnectionPoolJ2EE.java:92)
         at com.sap.caf.eu.gp.schedule.impl.ScheduleDbImpl.getScheduleToProcess(ScheduleDbImpl.java:1936)
         at com.sap.caf.eu.gp.schedule.impl.ScheduleService.getScheduleToProcess(ScheduleService.java:432)
         at com.sap.caf.eu.gp.schedule.impl.ScheduleWorker.work(ScheduleWorker.java:77)
         at com.sap.caf.eu.gp.schedule.impl.ScheduleWorker.run(ScheduleWorker.java:63)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: com.sap.engine.services.dbpool.exceptions.BaseSQLException: ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: com.sap.sql.log.OpenSQLException: Error while accessing secure store: File "
    cai-bwdev
    sapmnt
    BWD
    SYS
    global
    security
    data
    SecStore.properties" does not exist although it should..
         at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:59)
         at com.sap.caf.eu.gp.base.db.ConnectionPoolJ2EE.getConnection(ConnectionPoolJ2EE.java:89)
         ... 8 more
    Caused by: com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: com.sap.sql.log.OpenSQLException: Error while accessing secure store: File "
    cai-bwdev
    sapmnt
    BWD
    SYS
    global
    security
    data
    SecStore.properties" does not exist although it should..
         at com.sap.engine.services.dbpool.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:193)
         at com.sap.engine.services.connector.jca.ConnectionHashSet.match(ConnectionHashSet.java:338)
         at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:267)
         at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:51)
         ... 9 more
    Caused by: com.sap.sql.log.OpenSQLException: Error while accessing secure store: File "
    cai-bwdev
    sapmnt
    BWD
    SYS
    global
    security
    data
    SecStore.properties" does not exist although it should..
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:106)
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:145)
         at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:226)
         at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:197)
         at com.sap.engine.services.dbpool.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:117)
         ... 12 more
    Caused by: com.sap.security.core.server.secstorefs.FileMissingException: File "
    cai-bwdev
    sapmnt
    BWD
    SYS
    global
    security
    data
    SecStore.properties" does not exist although it should.
         at com.sap.security.core.server.secstorefs.StorageHandler.openExistingStore(StorageHandler.java:372)
         at com.sap.security.core.server.secstorefs.SecStoreFS.openExistingStore(SecStoreFS.java:1946)
         at com.sap.sql.connect.OpenSQLConnectInfo.getStore(OpenSQLConnectInfo.java:802)
         at com.sap.sql.connect.OpenSQLConnectInfo.lookup(OpenSQLConnectInfo.java:783)
         at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:209)
         ... 14 more
    Please advice with the right solution,
    Regards,
    Ahmed

    thanks

  • My mac is running slow, the spinning beach ball constantly appears. it seems that when i am in the apple store with fast wifi its a bit better. genius at the apple store checked the hard drive, it's all fine. what can it be?

    my mac is running slow, the spinning beach ball constantly appears. it seems that when i am in the apple store with fast wifi its a bit better. genius at the apple store checked the hard drive, it's all fine. what can it be? can it be a software issue with the wifi?
    also i noted that it has only been doing this since quite recently, before it was fine
    please help!

    First, back up all data immediately, as your boot drive might be failing.
    Step 1
    This diagnostic procedure will query the log for messages that may indicate a system issue. It changes nothing, and therefore will not, in itself, solve your problem.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Triple-click anywhere in the line below on this page to select it:
    syslog -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|find tok|n Cause: -|NVDA\(|timed? ?o' | tail | open -ef
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key.
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    A TextEdit window will open with the output of the command. Normally the command will produce no output, and the window will be empty. If the TextEdit window (not the Terminal window) has anything in it, stop here and post it — the text, please, not a screenshot. The title of the TextEdit window doesn't matter, and you don't need to post that.
    Step 2
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Reset the System Management Controller.
    Run Software Update. If there's a firmware update, install it.
    If you're booting from an aftermarket SSD, see whether there's a firmware update for it.
    If you have a portable computer, check the cycle count of the battery. It may be due for replacement.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane. See whether there's any change.
    Check your keychains in Keychain Access for excessively duplicated items.
    Boot into Recovery mode, launch Disk Utility, and run Repair Disk.
    If you have a MacBook Pro with dual graphics, disable automatic graphics switching in the Energy Saverpreference pane for better performance at the cost of shorter battery life.
    Step 3
    When you notice the problem, launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the View menu or the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for User, System, and Idle at the bottom of the window.
    Select the Memory tab. What value is shown in the bottom part of the window for Swap used?
    Next, select the Disk tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in andWrites out.)
    Step 4
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard by pressing the key combinationcommand-C. Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • FTP upload with Flex 3

    Is it possible to upload a partiular file, in this case a
    users answer file, to an FTP site with out any interaction from the
    user. For example, when they are done the test, upload the answer
    file to an FTP site (without using cold fusion or asp or
    .net)?

    I have downloaded the coded and converted it to work with
    Flex 3 (changed it to WindowedApplication, and updated the
    FlexFTP-app.xml file). When i run it, I get the following:
    220 jpl Microsoft FTP Service (Version 5.0).
    USER jhughes
    331 Password required for jhughes.
    PASS *****
    230 User jhughes logged in.
    PASV
    227 Entering Passive Mode (66,109,241,93,12,42).
    LIST
    125 Data connection already open; Transfer starting.
    226 Transfer complete.
    TYPE I
    200 Type set to I.
    PASV
    227 Entering Passive Mode (66,109,241,93,12,43).
    STOR //test.txt
    550 /test.txt: Access is denied.
    It allows me to connect when I have the correct password but
    it will not allow me to upload or download files. Any ideas?

  • ACE FTP inspect with port range

    Hi everyone,
    I have a problem with passive FTP with fixed port range.
    I configured a ftp server with a fixed port range of 60000 - 60500 for the data channel.
    And the ace is configured with "inspect ftp" on policy of ftp-serverfarm.
    A tcpdump on server I can see that the server uses the portrange in response packet.
    (x,x,x,x,34,195) = 60099
    But on client I can see that the port on packet is change to another port. The ace is between server and client.
    On CCO I found a document "http://www.ciscosystems.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA1_7_/command/reference/policy.html#wp1006925" ->> Enables FTP inspection. The ACE inspects FTP packets, translates the address and the port that are embedded in the payload, and opens up a secondary channel for data.
    I don't understand why the ace change the port in ftp payload.
    Is it possible to  create the same port range on ace configuration of connectio to client?
    Thanks
    René

    You don't need inspect ftp with one server because you can avoid it.
    You can for example configure a loopback on the server with the vip address and configure the serverfarm as transparent on ACE.
    Then for the data channel, since your range of ports is quite small, you can catch it with a class-map and simply forward to the server.
    Like this, the server will use the vip address in all packets exchange with the cleint (no need to nat the payload) and when the client opens a data connection, the traffic is matched with the class-map and the connection can be forwarded to the server using the same transparent serverfarm.
    Less chance to run into compatibility issue.
    Better performance since we can switch traffic with inspecting its content.
    Gilles.

  • Ftp/networking with uverse

    So back in June I had an issue with my ftp not being able to reach servers while on my home att uverse network. Archived here: http://discussions.apple.com/thread.jspa?threadID=2048726&tstart=180
    After several weeks of restarting the att wireless router/modem and creating new networks, it finally worked. Now I'm back to where I started, unable to connect to ftp serves, with the exact same issues. The created network is the exact same.
    Also the apple software update server is inaccessible for the same reasons.
    Edit: All other network issues work fine, i.e. internet, email, etc.
    Any clues as to why this problem occurs with uverse? Solutions? Purely an issue with uverse?
    Message was edited by: John Littrell

    Well, I did not attempt to utilize this potential solution because everything is working again. So for three days, I couldn't connect to software update or my ftp servers, and now, without changing any settings, it's working fine.
    I'm inclined to agree that it's an issue with Uverse in general. Which is a shame, because there bundled packages and the actual service has been outstanding, barring this issue. As a whole, much better than my experiences with Time Warner.

  • I can't download apps from the store with my ipad2 anymore

    I can't download apps from the store with my ipad2 anymore. It was working fine the other day. I tried signing out and back in with no luck.

    I am having the same problem I enter my password it says I have to go to a website my info.apple for additional security then goes to website an get safari cannot open the page bc it could not establish a secure connection to server..... I'm online with it right now.... Since I got my iPhone 4s I can't use the ipad2 what can I do?

  • HT1541 i purchased mission impossible ghost protocol from hmv store with a free digital copy. I have redeemed it on itunes and downloaded it to my ipod touch but no matter what i do I cannot download it to my ipad, any advise please.

    I purchased mission impossible ghost protocol from hmv store with a free digital copy.
    I have redeemed my free copy from itunes.
    I have dowloaded it to my ipod touch, but no matterwhat I do I cannot download it to my ipad2.
    Any advise please?

    I am having a similar problem.  I can't get the digital copy to sync to the ipod touch.  The "Create iPod version" under the Advanced menu is grayed out.  Any other tips?

  • After installing Mavericks (from Mountain Lion) on my iMac 20"  mid 2007 I cannot read musical cd on the internal drive neither on external. No problems at all with my macbook air.

    When I put a musical CD into the reader (no matter if it is the internal Matshita or an external drive) the system write a message like :" this computer cannot read the disk" (in italian "il disco inserito non è leggibile da questo computer").
    I have also a macbook air : no problem at all with the same CD and the same external reader.
    Please help me.....

    Followup: on a business trip. Booked ahead for Genius Bar appointment. Fixed in half an hour. His hardware test found nothing wrong with the MacBook. He flashed Mountain Lion onto the laptop with no hiccups. Right there in the store the MB connected to iCloud and I had all my personal information back. Back in the hotel room it only took me 3 hours to fully reinstall all my purchased software over the hotel's wired LAN from the App Store and third party sites, without needing a single DVD like in the bad old days. Even re-installing MS Office was painless. I just searched with Google, then the MS page I clicked on served up a form with my information on it automatically and sent me an email with the product key when I clicked download. Obviously their server recognized this device. I cloned the MB to a small PassPort backup portable external hard drive and then used the MacBook normally  in meetings next day. Very impressive service. We've come a long way from portable computing two decades ago.
    Still a mystery why the installation would not complete at home, but problem resolved.

Maybe you are looking for

  • How do I find out the spec of my old iPod ?

    How do I find out the spec of my old iPod ... I can't remember if it's 2nd or 3rd generation ... it's an 8gb, and that's as much info as I can remember/find in the 'About' area of the iPod ... is there a way to find out please?

  • Apple unable to unlock replacement unlocked iPhone 4S

    This is especially important to anyone who purchased an unofficial unlocked iPhone 4S in the USA with an AT&T micro-sim rather than the official unlocked iPhone 4S SKU packages (starting on 11/11/11). On Oct 17th I purchased a 32gb iPhone 4S at an Ap

  • Running multiple VI's from one data source

    Hello, I am newer to Labview, and currently stuck on a problem. I have created a program to serial read from an RS232 port and extracted multiple points of the string and display it to the web. I would like to create a second VI from the same RS232 p

  • What's the error message 1004

    What does error 1004 mean

  • Setting and holding White balance during tethered shooting

    I came to Apeture from Capture One Pro.  I used Capture when working for a photo studio, when I started shooting for myself I went with the much more affordable Apeture.  I have been very happy with the workflow, but Apeture seems to be missing one o