FTP Operations
Hello, I am trying to do FTP Operations using the sun.net.ftp.*; package. But I am unable to get what I am looking for. I am trying to send a file to the server when I click on a button. Could any one see the code and correct me where I am wrong please?
protected FtpClient m_client;
protected String m_sLocalFile;
protected String m_sHostFile;
public static int BUFFER_SIZE = 10240;
JTextField directory = new JTextField();
String jtf6 = directory.getText();
public void checkTF();
// Parse URL
int index = jtf6.indexOf("//");
if (index >= 0)
jtf6 = jtf6.substring(index+2);
index = jtf6.indexOf("/");
String host = jtf6.substring(0, index);
jtf6 = jtf6.substring(index+1);
String sDir = "";
index = jtf6.lastIndexOf("/");
if (index >= 0) {
sDir = jtf6.substring(0, index);
jtf6 = jtf6.substring(index+1);
m_sHostFile = jtf6;
protected void putFile()
byte[] buffer = new byte[BUFFER_SIZE];
try
File f = new File(jtf1);
int size = (int)f.length();
FileInputStream in = new FileInputStream(jtf1);
System.out.println("fileinputstream:"+in);
OutputStream out = m_client.put(m_sHostFile);
System.out.println("outputstream:"+out);
int counter = 0;
while(true)
int bytes = in.read(buffer);
if (bytes < 0)
break;
out.write(buffer, 0, bytes);
counter += bytes;
out.close();
in.close();
catch (Exception ex)
ex.printStackTrace();
//System.out.println("Error: " + ex.toString());
protected void disconnect()
if (m_client != null)
try
m_client.closeServer();
catch (IOException ex) {}
m_client = null;
Runnable runner = new Runnable()
public void run()
FTPtest.this.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
SwingUtilities.invokeLater(runner);
// in action performed
if(ae.getSource() == JButton1)
checkTF();
putFile();
disconnect();
Please help me.
Thanks
Hi
It is not advisable to use sun.net.ftp package, if you want i can give a custom code which i have written using the java.net package. Add some duke dollars to the post if you want the code..
Thanks
Swaraj
Similar Messages
-
I am using the internet tookit FTP vis. Is there any way to cancel an FTP operation while you are in the middle of it? For instance, if the user has requested a get file for a large file on an RT device but then you need to close the program or somemthing.
Right now we have a program on the pc communicating with a vi running on an RT device by shared variable. When the pc side wants to download files, it indicates this over shared variable to the RT device. The device prepares the list of files to request and sends that to the pc, it then goes into a wait state so that it isn't trying to record while the pc is downloading files. The pc goes through the list of files and FTP 'get file' s each one. When the pc is finished it indicates this to the RT device so it can continue recording. I would like to be able to cancel the ftp get file operation in the middle of it downloading a large file and then tell the crio to get back to what it was doing.
[will work for kudos]rex1030 wrote:
Is there any way to pass data between a vi and a subvi that is running? Changing the value of a boolean while the subvi is running would be enough. Maybe shared variables?
There are lots of ways just like Raven mentioned. The trick though is that the subVI will need to have the programming support to detect the new data. If the subVI isn't looking for the data then it really doesn't matter if you change it. This is where a good design and some forethought come into play.
Message Edited by Mark Yedinak on 03-10-2010 02:58 PM
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 -
StringIndexOutofBounds Exception while doing FTP operation
Hello, I got this exception at run time when I am doing my FTP operations
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:455)
at FTPConnection.getFullServerReply(FTPConnection.java:312)
at FTPConnection.getServerReply(FTPConnection.java:296)
at FTPConnection.executeCommand(FTPConnection.java:329)
at FTPConnection.login(FTPConnection.java:107)
at JEditor$FTPUpload.checkTF(JEditor.java:2755)
at JEditor$FTPUpload.actionPerformed(JEditor.java:2783)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
67)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ctButton.java:1820)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:258)
at java.awt.Component.processMouseEvent(Component.java:5021)
at java.awt.Component.processEvent(Component.java:4818)
at java.awt.Container.processEvent(Container.java:1380)
at java.awt.Component.dispatchEventImpl(Component.java:3526)
at java.awt.Container.dispatchEventImpl(Container.java:1437)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
at java.awt.Container.dispatchEventImpl(Container.java:1423)
at java.awt.Window.dispatchEventImpl(Window.java:1566)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:190)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
The file that I used for my FTP is
* File: FTPConnection.java
* Author: Bret Taylor <[email protected]>
* $Id$
* Parts of this code were adopted from a variety of other FTP classes the
* author has encountered that he was not completely satisfied with. If you
* think more thanks are due to any particular author than is given, please
* let him know. With that caveat, this class can be freely distributed and
* modified as long as Bret Taylor is given credit in the source code comments.
import java.io.*;
import java.net.*;
import java.util.*;
* <p>A wrapper for the network and command protocols needed for the most common
* FTP commands. Standard usage looks something like this:</p>
* <pre> FTPConnection connection = new FTPConnection();
* try {
* if (connection.connect(host)) {
* if (connection.login(username, password)) {
* connection.downloadFile(serverFileName);
* connection.uploadFile(localFileName);
* connection.disconnect();
* } catch (UnknownHostException e) {
* // handle unknown host
* } catch (IOException e) {
* // handle I/O exception
* }</pre>
* <p>Most FTP commands are wrapped by easy-to-use methods, but in case clients
* need more flexibility, you can execute commands directly using the methods
* executeCommand and
* executeDataCommand,
* the latter of which is used for commands that require an open data port.</p>
* @author Bret Taylor
* @version 1.0
public class FTPConnection extends Object {
* If this flag is on, we print out debugging information to stdout during
* execution. Useful for debugging the FTP class and seeing the server's
* responses directly.
private static boolean PRINT_DEBUG_INFO = false;
* Connects to the given FTP host on port 21, the default FTP port.
public boolean connect(String host)
throws UnknownHostException, IOException
return connect(host, 21);
* Connects to the given FTP host on the given port.
public boolean connect(String host, int port)
throws UnknownHostException, IOException
connectionSocket = new Socket(host, port);
outputStream = new PrintStream(connectionSocket.getOutputStream());
inputStream = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));
if (!isPositiveCompleteResponse(getServerReply())){
disconnect();
return false;
return true;
* Disconnects from the host to which we are currently connected.
public void disconnect()
if (outputStream != null) {
try {
outputStream.close();
inputStream.close();
connectionSocket.close();
} catch (IOException e) {}
outputStream = null;
inputStream = null;
connectionSocket = null;
* Wrapper for the commands <code>user [username]</code> and <code>pass
* [password]</code>.
public boolean login(String username, String password)
throws IOException
int response = executeCommand("user " + username);
if (!isPositiveIntermediateResponse(response)) return false;
response = executeCommand("pass " + password);
return isPositiveCompleteResponse(response);
* Wrapper for the command <code>cwd [directory]</code>.
public boolean changeDirectory(String directory)
throws IOException
int response = executeCommand("cwd " + directory);
return isPositiveCompleteResponse(response);
* Wrapper for the commands <code>rnfr [oldName]</code> and <code>rnto
* [newName]</code>.
public boolean renameFile(String oldName, String newName)
throws IOException
int response = executeCommand("rnfr " + oldName);
if (!isPositiveIntermediateResponse(response)) return false;
response = executeCommand("rnto " + newName);
return isPositiveCompleteResponse(response);
* Wrapper for the command <code>mkd [directory]</code>.
public boolean makeDirectory(String directory)
throws IOException
int response = executeCommand("mkd " + directory);
return isPositiveCompleteResponse(response);
* Wrapper for the command <code>rmd [directory]</code>.
public boolean removeDirectory(String directory)
throws IOException
int response = executeCommand("rmd " + directory);
return isPositiveCompleteResponse(response);
* Wrapper for the command <code>cdup</code>.
public boolean parentDirectory()
throws IOException
int response = executeCommand("cdup");
return isPositiveCompleteResponse(response);
* Wrapper for the command <code>dele [fileName]</code>.
public boolean deleteFile(String fileName)
throws IOException
int response = executeCommand("dele " + fileName);
return isPositiveCompleteResponse(response);
* Wrapper for the command <code>pwd</code>.
public String getCurrentDirectory()
throws IOException
String response = getExecutionResponse("pwd");
StringTokenizer strtok = new StringTokenizer(response);
// Get rid of the first token, which is the return code
if (strtok.countTokens() < 2) return null;
strtok.nextToken();
String directoryName = strtok.nextToken();
// Most servers surround the directory name with quotation marks
int strlen = directoryName.length();
if (strlen == 0) return null;
if (directoryName.charAt(0) == '\"') {
directoryName = directoryName.substring(1);
strlen--;
if (directoryName.charAt(strlen - 1) == '\"')
return directoryName.substring(0, strlen - 1);
return directoryName;
* Wrapper for the command <code>syst</code>.
public String getSystemType()
throws IOException
return excludeCode(getExecutionResponse("syst"));
* Wrapper for the command <code>mdtm [fileName]</code>. If the file does
* not exist, we return -1;
public long getModificationTime(String fileName)
throws IOException
String response = excludeCode(getExecutionResponse("mdtm " + fileName));
try {
return Long.parseLong(response);
} catch (Exception e) {
return -1L;
* Wrapper for the command <code>size [fileName]</code>. If the file does
* not exist, we return -1;
public long getFileSize(String fileName)
throws IOException
String response = excludeCode(getExecutionResponse("size " + fileName));
try {
return Long.parseLong(response);
} catch (Exception e) {
return -1L;
* Wrapper for the command <code>retr [fileName]</code>.
public boolean downloadFile(String fileName)
throws IOException
return readDataToFile("retr " + fileName, fileName);
* Wrapper for the command <code>retr [serverPath]</code>. The local file
* path to which we will write is given by <code>localPath</code>.
public boolean downloadFile(String serverPath, String localPath)
throws IOException
return readDataToFile("retr " + serverPath, localPath);
* Wrapper for the command <code>stor [fileName]</code>.
public boolean uploadFile(String fileName)
throws IOException
return writeDataFromFile("stor " + fileName, fileName);
* Wrapper for the command <code>stor [localPath]</code>. The server file
* path to which we will write is given by <code>serverPath</code>.
public boolean uploadFile(String serverPath, String localPath)
throws IOException
return writeDataFromFile("stor " + serverPath, localPath);
* Set the restart point for the next download or upload operation. This
* lets clients resume interrupted uploads or downloads.
public void setRestartPoint(int point)
restartPoint = point;
debugPrint("Restart noted");
* Gets server reply code from the control port after an ftp command has
* been executed. It knows the last line of the response because it begins
* with a 3 digit number and a space, (a dash instead of a space would be a
* continuation).
private int getServerReply()
throws IOException
return Integer.parseInt(getFullServerReply().substring(0, 3));
* Gets server reply string from the control port after an ftp command has
* been executed. This consists only of the last line of the response,
* and only the part after the response code.
private String getFullServerReply()
throws IOException
String reply;
do {
reply = inputStream.readLine();
debugPrint(reply);
} while(!(Character.isDigit(reply.charAt(0)) &&
Character.isDigit(reply.charAt(1)) &&
Character.isDigit(reply.charAt(2)) &&
reply.charAt(3) == ' '));
return reply;
* Executes the given FTP command on our current connection, returning the
* three digit response code from the server. This method only works for
* commands that do not require an additional data port.
public int executeCommand(String command)
throws IOException
outputStream.println(command);
return getServerReply();
* Executes the given FTP command on our current connection, returning the
* last line of the server's response. Useful for commands that return
* one line of information.
public String getExecutionResponse(String command)
throws IOException
outputStream.println(command);
return getFullServerReply();
* Executes the given ftpd command on the server and writes the results
* returned on the data port to the file with the given name, returning true
* if the server indicates that the operation was successful.
public boolean readDataToFile(String command, String fileName)
throws IOException
// Open the local file
RandomAccessFile outfile = new RandomAccessFile(fileName, "rw");
// Do restart if desired
if (restartPoint != 0) {
debugPrint("Seeking to " + restartPoint);
outfile.seek(restartPoint);
// Convert the RandomAccessFile to an OutputStream
FileOutputStream fileStream = new FileOutputStream(outfile.getFD());
boolean success = executeDataCommand(command, fileStream);
outfile.close();
return success;
* Executes the given ftpd command on the server and writes the contents
* of the given file to the server on an opened data port, returning true
* if the server indicates that the operation was successful.
public boolean writeDataFromFile(String command, String fileName)
throws IOException
// Open the local file
RandomAccessFile infile = new RandomAccessFile(fileName, "r");
// Do restart if desired
if (restartPoint != 0) {
debugPrint("Seeking to " + restartPoint);
infile.seek(restartPoint);
// Convert the RandomAccessFile to an InputStream
FileInputStream fileStream = new FileInputStream(infile.getFD());
boolean success = executeDataCommand(command, fileStream);
infile.close();
return success;
* Executes the given ftpd command on the server and writes the results
* returned on the data port to the given OutputStream, returning true
* if the server indicates that the operation was successful.
public boolean executeDataCommand(String command, OutputStream out)
throws IOException
// Open a data socket on this computer
ServerSocket serverSocket = new ServerSocket(0);
if (!setupDataPort(command, serverSocket)) return false;
Socket clientSocket = serverSocket.accept();
// Transfer the data
InputStream in = clientSocket.getInputStream();
transferData(in, out);
// Clean up the data structures
in.close();
clientSocket.close();
serverSocket.close();
return isPositiveCompleteResponse(getServerReply());
* Executes the given ftpd command on the server and writes the contents
* of the given InputStream to the server on an opened data port, returning
* true if the server indicates that the operation was successful.
public boolean executeDataCommand(String command, InputStream in)
throws IOException
// Open a data socket on this computer
ServerSocket serverSocket = new ServerSocket(0);
if (!setupDataPort(command, serverSocket)) return false;
Socket clientSocket = serverSocket.accept();
// Transfer the data
OutputStream out = clientSocket.getOutputStream();
transferData(in, out);
// Clean up the data structures
out.close();
clientSocket.close();
serverSocket.close();
return isPositiveCompleteResponse(getServerReply());
* Transfers the data from the given input stream to the given output
* stream until we reach the end of the stream.
private void transferData(InputStream in, OutputStream out)
throws IOException
byte b[] = new byte[1024]; // 1K blocks I guess
int amount;
// Read the data into the file
while ((amount = in.read(b)) > 0) {
out.write(b, 0, amount);
* Executes the given ftpd command on the server and writes the results
* returned on the data port to the given FilterOutputStream, returning true
* if the server indicates that the operation was successful.
private boolean setupDataPort(String command, ServerSocket serverSocket)
throws IOException
// Send our local data port to the server
if (!openPort(serverSocket)) return false;
// Set binary type transfer
outputStream.println("type i");
if (!isPositiveCompleteResponse(getServerReply())) {
debugPrint("Could not set transfer type");
return false;
// If we have a restart point, send that information
if (restartPoint != 0) {
outputStream.println("rest " + restartPoint);
restartPoint = 0;
// TODO: Interpret server response here
getServerReply();
// Send the command
outputStream.println(command);
return isPositivePreliminaryResponse(getServerReply());
* Get IP address and port number from serverSocket and send them via the
* <code>port</code> command to the ftp server, returning true if we get a
* valid response from the server, returning true if the server indicates
* that the operation was successful.
private boolean openPort(ServerSocket serverSocket)
throws IOException
int localport = serverSocket.getLocalPort();
// get local ip address
InetAddress inetaddress = serverSocket.getInetAddress();
InetAddress localip;
try {
localip = inetaddress.getLocalHost();
} catch(UnknownHostException e) {
debugPrint("Can't get local host");
return false;
// get ip address in high byte order
byte[] addrbytes = localip.getAddress();
// tell server what port we are listening on
short addrshorts[] = new short[4];
// problem: bytes greater than 127 are printed as negative numbers
for(int i = 0; i <= 3; i++) {
addrshorts[i] = addrbytes;
if (addrshorts[i] < 0)
addrshorts[i] += 256;
outputStream.println("port " + addrshorts[0] + "," + addrshorts[1] +
"," + addrshorts[2] + "," + addrshorts[3] + "," +
((localport & 0xff00) >> 8) + "," +
(localport & 0x00ff));
return isPositiveCompleteResponse(getServerReply());
* True if the given response code is in the 100-199 range.
private boolean isPositivePreliminaryResponse(int response)
return (response >= 100 && response < 200);
* True if the given response code is in the 300-399 range.
private boolean isPositiveIntermediateResponse(int response)
return (response >= 300 && response < 400);
* True if the given response code is in the 200-299 range.
private boolean isPositiveCompleteResponse(int response)
return (response >= 200 && response < 300);
* True if the given response code is in the 400-499 range.
private boolean isTransientNegativeResponse(int response)
return (response >= 400 && response < 500);
* True if the given response code is in the 500-599 range.
private boolean isPermanentNegativeResponse(int response)
return (response >= 500 && response < 600);
* Eliminates the response code at the beginning of the response string.
private String excludeCode(String response)
if (response.length() < 5) return response;
return response.substring(4);
* Prints debugging information to stdout if the private flag
* <code>PRINT_DEBUG_INFO</code> is turned on.
private void debugPrint(String message) {
if (PRINT_DEBUG_INFO) System.err.println(message);
* The socket through which we are connected to the FTP server.
private Socket connectionSocket = null;
* The socket output stream.
private PrintStream outputStream = null;
* The socket input stream.
private BufferedReader inputStream = null;
* The offset at which we resume a file transfer.
private long restartPoint = 0L;
Please help me where am I wrong?
ThanksI would guess the error happens at this line:
} while(!(Character.isDigit(reply.charAt(0)) && ...
because apparently reply.length() is 0 at the point of failure, so charAt(0) is beyond the end of the string. You need to check the length first. -
Hi All,
We are using FTP Connection in our SSIS Package which will take a flat file from the sharepath to another FTP Path.
We used SqlServerTableConfiguration to store all the connection. Initally we have stored only the below connection int he
SqlConfiguration table. ie only the server name
Note : We are not using XML Configuration.
ConfigurationFilter
ConfiguredValue
PackagePath
Filter_ftp
pqrft- pcmnt.uk.acenentcapmc.com:21
\Package.Connections[FTP Connection Manager].Properties[ConnectionString]
while running the job we have found that we have not stored the UserName and password so we have added the below entries in the Sql Configuration table
In the Configurationtable we have the following entires
ConfigurationFilter
ConfiguredValue
PackagePath
Filter_ftp
pgrotmlceni
\Package.Connections[FTP Connection Manager].Properties[ServerUserName]
Filter_ftp
21
\Package.Connections[FTP Connection Manager].Properties[ServerPort]
Filter_ftp
abcdXYZ
\Package.Connections[FTP Connection Manager].Properties[ServerPassword]
Filter_ftp
pqrft-pcmnt.uk.acenentcapmc.com
\Package.Connections[FTP Connection Manager].Properties[ServerName]
Filter_ftp
pqrft-pcmnt.uk.acenentcapmc.com:21
\Package.Connections[FTP Connection Manager].Properties[ConnectionString]
In the package properties we have selected "DontSaveSentivity" Option.
We are getting the below error message when we run the package through jobs after deployment and also we are getting the same error message even when we run the package from Bids
Message
Executed as user:abc_xyz-proxy. Microsoft (R) SQL Server Execute Package Utility Version 10.50.4000.0 for 32-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. Started: 06:53:16 Error: 2013-12-16 06:53:20.69
Code: 0xC001602A Source: SSIS_ABC_GT_GRoots_Export Connection manager "FTP Connection Manager" Description: An error occurred in the requested FTP operation. Detailed error description: The password
was not allowed . End Error Error: 2013-12-16 06:53:20.71 Code: 0xC002918F Source: FTP Task FTP Task Description: Unable to connect to FTP server using "FTP Connection
Manager". End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 06:53:16 Finished: 06:53:20 Elapsed: 3.822 seconds. The package execution failed. The step failed.
ilikemicrosoftHi Surendiran,
The issue should occur because the syntax of the ConnetionString property of the FTP Connection Manager is incorrect. In fact, the ConnectionString property is unnecessary. I suggest that you only use the four properties instead: ServerName, ServerPort,
ServerUserName, and ServerPassword.
Reference:
http://stackoverflow.com/questions/3888170/ftp-connection-string-using-expression-in-ssis
Regards,
Mike Yin
If you have any feedback on our support, please click here
Mike Yin
TechNet Community Support -
I want to use the ftp-operator in an OWB-Workflow. Thats why i use the OWB as the client to implement the workflow.
I want to use a script, that is managed in the owb itself.
I configure the ftp operator in this way:
COMMAND: /usr/bin/ftp (i can start the command at the command line on the server)
PARAMETER_LIST: ?"${Task.Input}"?
SUCCESS_THRESHOLD: 0
SCRIPT: [my script with the ftp Commands]
After the execution of the workflow i get the error message: "/usr/bin/ftp -n: not found"
in Runtime Audit Browser of the OWB.
I think it is perhaps an installation or permission issue concerning workflow server.
Thats why: Does anybody know what i have to do to get the ftp operator running?
The operating system of the database server is HP UX.
Thanks in advance
AlexanderHi,
why do you want to use ftp? As against going directly to the source database? (So much faster and easier). I haven't used ftp since the last century.
Regards,
Donna -
Hi,
I try to collect data of an IPSLA probe through SNMP on a Cisco 1900 with IOS 155.1T , when I create a DNS and FTP probes and run those probes, I look at rttMonStatsCollectTable (.1.3.6.1.4.1.9.9.42.1.3.2) to get the result as I did before on IOS 12, but there's no record for DNS nor FTP.
The other probe (TCP, UDP ...) has statistic records here, but not for DNS, FTP.
Could you help to show me where to get the result of DNS, FTP probe (number of disconection, timeout, no connection ...) or this is a bug?
ThanksTo get the MOS score i'm using this:
1.3.6.1.4.1.9.9.42.numberoftheoperation and then you must divide it by 100
"ip sla monitor 1" the operation number is 1 -
I tried to sign in to my Muse website via Adobe® Muse™ CC In-Browser Editing to edit my website with In-browser editing. But it keeps show me
I have done these steps:
Installed fresh Muse CC 2014
Verify enable "In-browser Editing" in site's properties.
No warning while I upload my website to hosting
The program tell me succeed in upload website to hosting
I can access my website via common URL address
I double checked my FTP account which is the same that I used to sign in to In Browser Editing.
In your suggestion: "check with your hosting provider."
The information is not specific and almost hosting provider don't know how to deal with this "Muse" things.
Question is:
What info I have to tell hosting provider? Should it be "My Muse website cannot be login by In-browser editing"?
Is there anything I can check and tell you or my hosting provider to solve this problem?
Is it possible that some server configuration prevent In-browser Editing website to access the remote Muse website?I tried to sign in to my Muse website via Adobe® Muse™ CC In-Browser Editing to edit my website with In-browser editing. But it keeps show me
I have done these steps:
Installed fresh Muse CC 2014
Verify enable "In-browser Editing" in site's properties.
No warning while I upload my website to hosting
The program tell me succeed in upload website to hosting
I can access my website via common URL address
I double checked my FTP account which is the same that I used to sign in to In Browser Editing.
In your suggestion: "check with your hosting provider."
The information is not specific and almost hosting provider don't know how to deal with this "Muse" things.
Question is:
What info I have to tell hosting provider? Should it be "My Muse website cannot be login by In-browser editing"?
Is there anything I can check and tell you or my hosting provider to solve this problem?
Is it possible that some server configuration prevent In-browser Editing website to access the remote Muse website? -
SSIS - Getting the detailed error message from a FTP Task
Greetings all,
I'm working on a SSIS package that pulls a file down from an FTP server, then has its way with it.
Under expected conditions, everything is working perfectly. However, I never want to download the same file twice. In order to enforce this, I just set the OverWriteFileAtDest option to false. Obviously, if the file has already been brought over, the package
fails. This is the intended functionality.
However, in such a case I want to handle the error separately. Now, when I setup a EventHandler to deal with it, the error message that's passed over is:
"Error: An error occurred in the requested FTP operation"
Oh joy. Ambiguity at its finest. However, the detailed description is:
"Receiving file "/server/folder/file.XLS". File "\\server\folder\file.XLS" already exists.
Try as I might, I can't seem to capture the detailed error message so that I can act on it. I'm looking for a way to capture this info, pass it to an expression, and then handle it from there.
Thanks!Did you try enabling logging for the package and capturing it in SQL table which case you should get error messages in sysssislog table
http://msdn.microsoft.com/en-IN/library/ms186984(v=sql.110).aspx
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Problem in FTP adapter ( Duplicate)
Hi all,
We have a composite that query the events from Oracle on demand CRM. Event contains key column which is used to fetch all related values.
Using FTP adapter, we are placing the file in SAP and also one copy using file adapter in our local server for our reference.
Problem :
SAP is receiving two files in their inbound folder at same time stamp for one transaction.
But in our local server, we are receiving one file only.
So we isolated the problem to FTP adapter.
When we analyzed the process and its audit trail, everything looks fine and FTP operation is called one time only.
We are clueless regarding this problem.
Also same interface works well in Production instance. We even tried deploying new composite that is freshly downloaded from Production.
We need this to fix this by Wednesday as UAT begins in Test environment and that needs this interface to work fine.
We have clustered environment and 2 SOA servers.
Please someone help us identifying the problem. Its very urgent
Thanks,
SundarHi it may be the problem with the environment. Try adding the property <property name ="singleton">true</property name> in the composite.xml for the FTP adapter or at the server level.
Swami -
How to handle FTP request in Servlet
Hi,
can anyone tell me how to handle FTP operations in Servlet? I mean to ask whether we can handle FTP request in Servlet.
Thanks
SubsYour servlet should extend from GenericServlet and not HttpServlet to handle ftp requests.
-
Need to send an email (after the FTP adapter does the transfer)
I have a simple ESB project. It uses FTP adapter to pick a file and encrypt it (by using a webservice) and then transfers that
file to a different server. As mentioned FTP (SFTP) adapter is used to do this.
After the file is transfered ( by using the PUT mode of the FTP adapter) , i
need to send an email to a given address telling about the succes of the file
transfer. But the problem is I can not link or attach a router to FTP adapter
in PUT Mode. A FTP adapter in Get mode comes with a Router but a FTP adapter
with PUT mode does not come with a router. How can I attach a router (or a web
service to a FTP adapter which is in PUT mode)
PrakashI'm fairly certain you'll have to use BPEL to accomplish this. I'd put the FTP Adapter inside a BPEL process then you can drop the email activity in after the ftp operation.
-
FTP task runs fine from SSIS Package Store, always times out in scheduled job
SQL Server 2012
VS 2010 SQL Server data tools
FTP Connection Manager
- port 21, chunk size 1kb, passive mode=false, saved plain text pw
Downloads 1 csv file to local directory on SQL Server box
This always works when run from the package. And always gives a timeout error when scheduled.
Message
Microsoft (R) SQL Server Execute Package Utility
Version 11.0.2100.60 for 64-bit
Started: 11:04:59 AM
Error: 2014-03-27 11:05:31.12
Code: 0xC001602A
Source: xxx Connection manager "FTP Acme1"
Description: An error occurred in the requested FTP operation. Detailed error description: The operation timed out
End Error
Error: 2014-03-27 11:05:31.14
Code: 0xC002F304
Source: Acme FTP Task
Description: An error occurred with the following error message: "An error occurred in the requested FTP operation. Detailed error description: The operation timed out".
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 11:04:59 AM
Finished: 11:05:31 AM
Elapsed: 31.949 seconds
SQL Server Agent is set to Logon As my domain account, and in the package history it says "logged on as " my account.
Any suggestions? Thank youYou're right, Arthur. Earlier when I tried running the package with dtexecui it did popup a Win7 firewall warning. Agreed with prompt to allow "SQL Server 2008 Integration Services Package Execution Utility" and it added C:\program
files (x86)\microsoft sql server\110\tools\binn\managementstudio\dtexecui.exe, to allowed programs. No problem with dtexec after that.
Do you know of any other firewall exceptions that would be good to try? Thanks!
Yeah, this pop up resulted in the timeout because it was hidden but awaiting acknowledgement.
The other thing off the top of my head would be the FTP port 21 if TCP is used.
Arthur My Blog -
Dreamweaver FTP still doesn't work
So I've been trying to get FTP to work in (Mac) Dreamweaver
-- and I've tried every version since MX 2004. But they all fail.
This problem has been posted in this forum (and many others) in the
past. Whenever you try to connect/test an FTP server, you
immediately get this exact error:
"An FTP error occurred -- cannot make connection to host."
This error happens instantly. There is nothing to see in the
FTP log. It is not related to any FTP timeouts, firewall settings,
etc. I have stayed at Dreamweaver MX 2004 because it's FTP works
(and continues to work). Every version of Dreamweaver I've tried
since then, CS, CS 2, CS 3, etc. all give this same error. I've
tried deleting ssh_hosts. I've deleted keychains. I've tried
reinstalling. I've deleted preferences. Rebuild site caches. I've
tried different servers, hosts, etc. FTP (with and without all the
Passive, etc. options, SFTP, etc. I've tested FTP/SFTP in other
programs, in the Terminal etc. I've turned off Firewalls, removed
routers, etc. What am I missing?
Why is Dreamweaver MX 2004 the last version able to perform
FTP operations on our Mac?Thanks. For what it's worth, I cannot connect to that gov
site in CS4
either. I'm checking to see if there's any info available for
this
problem....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"jca1138" <[email protected]> wrote in
message
news:gqqm4f$glj$[email protected]..
>
quote:
Originally posted by:
Newsgroup User
> Tell me what you have in the Remote site definition
fields for a site that
> doesn't work, please.
>
> I created a new site in both Dreamweaver 2004 MX and
Dreamweaver CS 3 with
> these same settings for testing/comparison:
>
> ----------------
> Access type: FTP
> FTP host: ftp.irs.gov
> Host directory:
> Login: anonymous
> Password:
>
> [X] Use passive FTP
> ----------------
>
> In Dreamweaver 2004 MX, clicking the "Test" button gives
this message:
>
> "Dreamweaver connected to your server successfully."
>
> In Dreamweaver CS 3, clicking the "Test" button gives
this message:
>
> "An FTP error occurred - cannot make connection to
host."
>
> (Saving the site and trying to connect via the
Files/Site pane produces
> the
> same results.)
>
> As I mentioned in the previous post, this problem
doesn't change when
> trying
> different settings.
>
> To answer the original poster, the reason I'm using
ftp.irs.gov as an
> example
> is it is a public/anonymous FTP server people often use
to test making FTP
> connections, and is even mentioned by adobe:
>
>
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14834
> -
Apache Commons Net - Retrieve File - Extension, Compare , Move - FTP Server
Dear All,
I am using Apache Commons net FTP Library for FTP Operations. I had a few doubts
1) I like to retrieve ftp files only with some extensions like *.txt or *.jpg etc. How can we retrieve files with specifying file extension?
2) I need to compare the FTP Files with the local files before downloading from the FTP Server?
3) I need to move files from the ftp server to local directory. Is there is anyway to move the files rather than first retrieve files from the FTP Server and then deleting the file in the FTP Server using FTP delete()
Thanks,
J.Kathiresan1) I like to retrieve ftp files only with some
extensions like *.txt or *.jpg etc. How can we
retrieve files with specifying file extension?
List the files and then filter the list to those that you want to process.
2) I need to compare the FTP Files with the local
files before downloading from the FTP Server?Think about this one! To compare two files you nead to read both. If you do this on the client then you will have to copy the file from the server first!
>
3) I need to move files from the ftp server to local
directory. Is there is anyway to move the files
rather than first retrieve files from the FTP Server
and then deleting the file in the FTP Server using
FTP delete()What is wrong with copy then delete? -
Not able to send file Using FTP in SSIS 2005
I am using SSIS 2005
I am trying to send file to ftp server using FTP task in SSIS but i am getting following error.
Error Message-:An error occurred in the requested FTP operation.
Detailed Description-:550 /FileName.txt: Access is denied.
RemotefilePath is /
I need a advice.
Thanks in advance.I got this error recently from the FTP task in SSIS:
Unable to send files using "FTP".
I had everything correct, by the book. I was trying to send a file, but I got the same error when trying to receive a file.
I already verified that I could send the file via command line FTP, so the FTP was not "secure FTP" (which wouldda required FileZilla or WinSCP or something similar) and my credentials were fine.
But I still got the above error. Heck, I was beginning to thing that the FTP task in SQL Server 2008 was broken and just couldn't send files.
Well, this issue is now resolved. The problem was in the
destination folder. I was assuming that the root folder for my FTP account held the files.
So I entered the destination folder as this:
/data_in/
But... the FTP task sees the root folder as one up from that.
So I had to use my account name in the path... meaning I had to change the destination folder to this:
/myaccountname/data_in/
(where "myaccountname" was my login to the FTP site.)
I hope this post helps someone else.
Donna
Maybe you are looking for
-
Problem On Windows-XP of Swing App
The problem of the Heavy-weight Swing appication in the following Operating environment - Operating System : Microsoft Windows XP [Version 5.1.2600] Processor : Intel Pentium-4 2.20 GHz RAM : 256 MB Graphics Adapter : RADEON IGP 340M / Intel 82845 Ja
-
How can I transfer binary data from a database to another database?
Hi all. I want to transfer binary data from a MS SQL Server 2000 to anohter SQL Server 2000. I created JDBC(table) to JDBC(stored procedure) scenario,and I uploaded a JPG image file to the sender table using the java program I developed. The JPG data
-
Starting Managed server problem ......
Hi All, I need you guy's help in this regard, that I am using solaris 8 and installed Weblogic8.1 Server. My Scenario is; Have configured Admin Server and Managed server with nodemanager on one unix machine. So, what am facing the problem; I am not a
-
Getting video from Sony Handycam DVD 403
Hello everyone. I'm hoping somebody has experience getting video from a Sony Handycam DVD 403 into iMovie6. I'm having troubles getting what I expect to happen to actually happen. I hooked up my Handycam to my PowerBook which the OS recognized as a D
-
I have two sensors on a conveyor system that will determine if an object needs to be rejected or not. Another sensor is located 80 cm away where the object will be kicked off the conveyor belt. I was told to use queues but haven't had any luck so far