Unauthorised use of this FTP server ( 530)
Hello,
By accessing the Apex the following message is displayed:
"220 - serv-tst
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 serv-tst FTP Server (Oracle XML DB / Oracle Database) ready.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
221 Command Too Long. 2048 bytes maximum. Goodbye. '
Please Help me.
PauloFlesch wrote:
Hello,
By accessing the Apex the following message is displayed:
"220 - serv-tst
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 serv-tst FTP Server (Oracle XML DB / Oracle Database) ready.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
221 Command Too Long. 2048 bytes maximum. Goodbye. 'What APEX? Where? How? Why?
Similar Messages
-
Can we use Windows IIS FTP server in SOA
Can anyone help me out whether we can use windows IIS FTP server in SOA for ftp adapter file transfer operations.
910764
1:- I have not begged or requested for marking all answers as helpful. If answers are helpful then post author can do that.
2:- I also follow same practice. I dont blindly mark all answers correct or helpful. It can waste other's time. Correct marking is very important. Hence my all question are not having close end.Few are still open for correct answers. I will happily mark them correct if you can help me in that.
In the end , I will say Kindly refrain yourself using this platform as facebook or other social networking websites.
I hope you will understand seriousness of this forum and utilize its member's posts at the most.
Thanks,
Ashu -
Can latest TC BE USED AS A FTP server
Can the latest TC be used as a FTP server. I need to send video files from my Cctv DVR via FTP to my TC.
Many thanks
AshApple do not tell us why or why not, in any of their products.. so we really cannot answer that question.
FTP has never been available.. and with modern internet security risks, I expect it never to be. Even SFTP or some SSH variation.. nope.. because Apple do not want you to use the TC as anything but what they intend.. a backup location for Time Machine.
Good luck with finding alternative.. almost everything else on the market will have FTP. -
How to implement logger in this ftp server
I have written a FTP Server that is used by the clients to upload xml over to the server.
Currently it is using a console and it is printing stuff out on a console.
I have tried a lot to implement a logger class so that all console messages get written to a file.
But it has not been working out at all.
I would deeply appreciate if all you java gurus out there could modify the code given below to correctly log messages to a log file.
Please do Explain if possible ...I will try to rectify this issue in several other applications i developed as well.
import java.net.*;
import java.io.*;
import java.util.*;
import java.util.Date;
import java.text.SimpleDateFormat;
import java.text.DateFormat;
import java.text.Format;
import java.lang.Object;
import java.lang.*;
import javax.crypto.*;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.spec.PBEParameterSpec;
import java.security.spec.AlgorithmParameterSpec;
import java.security.spec.KeySpec;
public class FTPServer
{ public static void main(String args[]) throws Exception
{ ServerSocket soc=new ServerSocket(5217);
System.out.println("FTP Server Started on Port Number 5217");
while(true)
System.out.println("Waiting for Connection ...");
transferfile t=new transferfile(soc.accept());
class transferfile extends Thread
Socket ClientSoc;
DataInputStream din;
DataOutputStream dout;
transferfile(Socket soc)
{ try
{ ClientSoc=soc;
din=new DataInputStream(ClientSoc.getInputStream());
dout=new DataOutputStream(ClientSoc.getOutputStream());
System.out.println("FTP Client Connected ...");
System.out.println("External IP of Client ..." + ClientSoc.getInetAddress());
//System.out.println("FTP Client Connected ..." + ClientSoc.getRemoteSocketAddress());
start();
catch(Exception ex)
//encrypto routine starts
class DesEncrypter {
Cipher ecipher;
Cipher dcipher;
// 8-byte Salt
byte[] salt = {
(byte)0xA9, (byte)0x9B, (byte)0xC8, (byte)0x32,
(byte)0x56, (byte)0x35, (byte)0xE3, (byte)0x03 };
// Iteration count
int iterationCount = 19;
DesEncrypter(String passPhrase) {
try {
// Create the key
KeySpec keySpec = new PBEKeySpec(passPhrase.toCharArray(), salt, iterationCount);
SecretKey key = SecretKeyFactory.getInstance(
"PBEWithMD5AndDES").generateSecret(keySpec);
ecipher = Cipher.getInstance(key.getAlgorithm());
dcipher = Cipher.getInstance(key.getAlgorithm());
// Prepare the parameter to the ciphers
AlgorithmParameterSpec paramSpec = new PBEParameterSpec(salt, iterationCount);
// Create the ciphers
ecipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);
dcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);
} catch (java.security.InvalidAlgorithmParameterException e) {
} catch (java.security.spec.InvalidKeySpecException e) {
} catch (javax.crypto.NoSuchPaddingException e) {
} catch (java.security.NoSuchAlgorithmException e) {
} catch (java.security.InvalidKeyException e) {
// Buffer used to transport the bytes from one stream to another
byte[] buf = new byte[1024];
public void encrypt(InputStream in, OutputStream out) {
try {
// Bytes written to out will be encrypted
out = new CipherOutputStream(out, ecipher);
// Read in the cleartext bytes and write to out to encrypt
int numRead = 0;
while ((numRead = in.read(buf)) >= 0) {
out.write(buf, 0, numRead);
out.close();
} catch (java.io.IOException e) {
public void decrypt(InputStream in, OutputStream out) {
try {
// Bytes read from in will be decrypted
in = new CipherInputStream(in, dcipher);
// Read in the decrypted bytes and write the cleartext to out
int numRead = 0;
while ((numRead = in.read(buf)) >= 0) {
out.write(buf, 0, numRead);
//added later on
in.close();
out.close();
} catch (java.io.IOException e) {
} //encryptor routine ends
//not implemented right now as we arent using the ftp server to download stuff...can be activated later on if we want
void SendFile() throws Exception
String filename=din.readUTF();
File f=new File(filename);
if(!f.exists())
dout.writeUTF("File Not Found");
return;
else
{ dout.writeUTF("READY");
FileInputStream fin=new FileInputStream(f);
int ch;
do
ch=fin.read();
dout.writeUTF(String.valueOf(ch));
while(ch!=-1);
fin.close();
dout.writeUTF("File Received Successfully");
String Compare(String filename) throws Exception
///dout.writeUTF("entering compare");
String dateTempString=new String();
Date dateValue=new Date();
SimpleDateFormat formatter = new SimpleDateFormat ("hhmmss");
dateTempString = formatter.format(dateValue);
File dir1 = new File("C:\\FTPnew");
boolean success2 = dir1.mkdir();
if (!success2) {
// Directory creation failed /Already Exists
File dir = new File("C:\\FTPnew\\server");
boolean success = dir.mkdir();
if (!success) {
// Directory creation failed /Already Exists
File ftemp=new File(dir,dateTempString + filename);
File fnewtemp=new File(dir,"new-enc-"+filename);
// Create encrypter/decrypter class
DesEncrypter encrypter = new DesEncrypter("My Pass Phrase!");
FileOutputStream fout=new FileOutputStream(fnewtemp);
int ch;
String temp;
do
{ temp=din.readUTF();
ch=Integer.parseInt(temp);
if(ch!=-1)
fout.write(ch);
}while(ch!=-1);
fout.close();
//dout.writeUTF("written temp en file");
// Decrypt
encrypter.decrypt(new FileInputStream(fnewtemp),
new FileOutputStream(ftemp));
//String Option;
dout.writeUTF("Delete");
System.out.println("File Upload Successfull--Duplicate file with timestamp Created");
boolean success1 = fnewtemp.delete();
return "hello" ;
void ReceiveFile() throws Exception
String ip=din.readUTF();
System.out.println("\tRequest Coming from Internal IP Address : "+ ip);
String filename=din.readUTF();
if(filename.compareTo("File not found")==0)
return;
// Destination directory
File dir11 = new File("C:\\FTPnew");
boolean success22 = dir11.mkdir();
if (!success22) {
// Directory creation failed /Already Exists
File dir = new File("C:\\FTPnew\\server");
boolean success21 = dir.mkdir();
if (!success21) {
// Directory creation failed /Already Exists
File f=new File(dir ,"enc-"+filename);
File fe=new File(dir,filename);
String option;
if(fe.exists())
//dout.writeUTF("File Already Exists");
String compvalue = Compare(filename);
//dout.writeUTF(compvalue);
if(compvalue.compareTo("hello")==0)
//dout.writeUTF("Transfer Completed");
return;
option=din.readUTF();
else
//dout.writeUTF("SendFile");
option="Y";
if(option.compareTo("Y")==0)
// Generate a temporary key.
// Create encrypter/decrypter class
DesEncrypter encrypter = new DesEncrypter("My Pass Phrase!");
FileOutputStream fout=new FileOutputStream(f);
int ch;
String temp;
do
{ temp=din.readUTF();
ch=Integer.parseInt(temp);
if(ch!=-1)
fout.write(ch);
}while(ch!=-1);
fout.close();
// Decrypt
encrypter.decrypt(new FileInputStream(f),
new FileOutputStream(fe));
boolean success2 = f.delete();
dout.writeUTF("Delete");
System.out.println("File Upload Successfull");
else
return;
public void run()
while(true)
try
String Command=din.readUTF();
if(Command.compareTo("SEND")==0)
System.out.println("\tSEND Command Received ...");
ReceiveFile();
continue;
catch(Exception ex)
//System.out.println("\tClient Terminated Abnormally ...........");
continue;
}Stick a
Logger log = Logger.getLogger( "me ftp server" );at the top.
Checn Sys.out.println to log.info( ... )
Add a logging prefs file.
http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/overview.html -
Java ftp server which can use LDAP, how to integrate with WLS' implementation of LDAP?
Howdy.
I'm setting up a java ftp server
(http://www.mycgiserver.com/~ranab/ftp/index.html) which is capable of using
LDAP for it's user security. I would like to integrate this ftp server with
wls' implementation of LDAP so I only have to admin one user list.
Does wls put it's user list in the LDAP or in it's own proprietary setup? I
tried playing around with it, but the users don't seem to appear in the JNDI
tree. Is this where the LDAP stuff is located? I thought it was in there?
If it's in it's own setup, is there a way to propagate the users to LDAP?
If these look like newbie Q&A, I guess they kind of are, I'm new to LDAP.
Thanks for any input you might have.Peter,
If you are talking about using the embedded LDAP server in WLS 7.0 for this purpose
I think you are going done the wrong path.
Look at the following URL on how to use an external LDAP server for your custom
application
http://e-docs.bea.com/wls/docs70/secmanage/realm.html#1172008
Chuck Nelson
DRE
BEA Technical Support -
Unable to send file in binary mode to ftp server using AIR application
Hi, Can any one help me. i am trying to send local files to ftp server in binary mode from AIR application using sockets.
I cant use PASV mode for this FTP server because security restrictions. when i am trying to send Binary command i am always getting
error code 500 which is unrecognized command. I googled for solutions but i cant find any one using Binary mode to send data every example is using PASV mode to send
file.
code example:
private function upload():void{
sendCommand("binary ");
private function sendCommand(arg:String):void {
arg +="\n";
s.writeUTFBytes(arg);
s.flush();
in response i am getting unrecognized command.I'm successfully using an ftp example from http://http://projects.maliboo.pl/FlexFTP/
that I converted to spark and uses a popup progress window.
If you don't need to use sockets I can post a sample project.
I believe I still connect with PASV, but have no problems sending Binary files.
I don't think they're commands that are dependent on each other -
File transfer from a FTP server to another External FTP server
Hi,
I have one FTP server , I need to transfer a file from this FTP server to aother external FTP server. Could any one please help me how to write a batch file on FTP server so that my file is transfered to another FTP server by executing the Batch file. I don't want to use SAP server for this.
best regards
bobbyCREATE CONTROLFILE
Caution:
Oracle recommends that you perform a full backup of all files in the database before using this statement. For more information, see Oracle9i User-Managed Backup and Recovery Guide.
Purpose
Use the CREATE CONTROLFILE statement to re-create a control file in one of the following cases:
All copies of your existing control files have been lost through media failure.
You want to change the name of the database.
You want to change the maximum number of redo log file groups, redo log file members, archived redo log files, datafiles, or instances that can concurrently have the database mounted and open.
Note:
If it is necessary to use the CREATE CONTROLFILE statement, do not include in the DATAFILE clause any datafiles in temporary or read-only tablespaces. You can add these types of files to the database later.
An alternative to the CREATE CONTROLFILE statement is ALTER DATABASE BACKUP CONTROLFILE TO TRACE, which generates a SQL script in the trace file to re-create the controlfile. If your database contains any read-only or temporary tablespaces, that SQL script will also contain all the necessary SQL statements to add those files back into the database.
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_54a.htm#SQLRF01203 -
How can I registry an FTP server in SLD ?
Dear all,
In the web site: ****************/Tutorials/XI/XIMainPage.htm, I find many integration scenarios which use an FTP server as a sender or a receiver or both. I would like to configure one of them, but i don't know how can i registry an FTP server in SLD, and use this FTP server as a Business Service in Integration Directory.
If you know and have the document about this topic, could you please help me?
Many thanks and best regards,
Vinh VoHello Vinh,
In the SLD Create a Technical System of ThirdParty Type.
Choose Home ® Technical Systems.
2. Choose New Technical System.
The System Type screen appears.
3. Select the Third-Party indicator and choose Next.
The General screen appears.
4. Enter system details and choose Next.
The Installed Products screen appears.
5. On the left, select installed software products by selecting the Installed indicator.
On the right, all software components that are part of the selected software products appear.
6. On the right, select installed software components by selecting the Installed indicator.
7. Choose Finish.
Check this :
http://help.sap.com/saphelp_nw70/helpdata/EN/fa/0aad3efa11b300e10000000a114084/content.htm -
File Receiver channel, Append issue on Linux FTP server
Hi,
I have a File_ReceiverChannel_FTP_Order that is using the File Content Conversion message protocol.
I have setup the adapter to use File Construction Mode Append
When I run this on a windows FTP server, it is working as designed.
But when Im trying to use our Linux FTP server the append function does not work.
My adapter does not append but it is overwriting the content of the file!
Does any one know what to do about this?Hi
i think you need to change the protocol as the linux system understand the NFS .
Thanks
sudhir sharma -
Unable to send file to FTP server
Hi All,
I am using a File to File scenario. In that i am using FTP. The file is not reaching the target side. It is displaying the following error. I have checked the Target directory, it is correct.I am able to send manually FTP File to the same target directory.
Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: An error occurred while connecting to the FTP server 'acmxrtdb:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 C:\BankFiles\FromSAP\Wells: The filename, directory name, or volume label syntax is incorrect. '. For details, contact your FTP server vendor..
Please help me in solving this. It would be very helpful to me.
Thanks & Regards,,
Raju.DHi,
the path specified is not correct.
The value "0 C:\BankFiles\FromSAP\Wells" is not valid if the protocol is FTP. This is the physical directory on the operating system.
If you're using an FTP server you need to know the path to the file on the FTP.
To do this I suggest to connect to the FTP using Internet Explorer and navigating the FTP folders until reaching the right one.
Then on the url bar you should got something like this: "ftp://server:21/path/to/file/". Use "/path/to/file" as value for the file adapter configuration.
Hope this help
Francesco -
Receive file by FTP (Server is restricted to get command only)
Dear all,
I would like to receive a file from a very special FTP server. And I am not sure if the File Adapter is able to handle this:
The FTP server I wand to connect to is a very special one. This server allows only to log in and to receive a specific file. This means that the only allowed command is
get file.dat
It is not possible to change directory or to get the directory listing. When the file was received it is not necessary (and not possible) to delete the catched file. The FTP server notices that the file was received and removes its content. This means that the file will not be removed. So it is always possible to get the file. But in most cases the file is empty (but that should not be a problem - the File Adapter can handle or ignore empty files.).
From my point of view it seems that SAP XI 3.0 SPS17 does not support to interact with this special kind of FTP Server. In RWB I can see the following error message:
"An error occurred while connecting to the FTP server 'XXX.XXX.XX.X:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 500 -3002 : command : invalid command'. For details, contact your FTP server vendor."
I connected to this FTP server manually. I get this error message when I try a command which is not allowd by the FTP server ("ls" for example). So I guess that SAP XI uses "ls" before catching the file.
Do you have an idea how I can configure the File Adpater to work with this FTP Server properly?
Many thanks
MichaelHi Michael,
This is a tricky one. The set of required ftp commands that need to be supported to be RFC compliant is quite small (see RFC 959) but it seems that the file adapter assumes a certain minimum set (including CWD and LIST, both of which are optional).
There are several options, varying in complexity immensely:
1) Scripting the transfer process so that files are transferred to a local filesystem, from where they can be processed by XI
2) Adjusting the "special ftp server" so that it ignores commands it doesn't understand - I'm guessing this isn't possible?
3) Creating a "more relaxed" ftp JCA adapter, one that doesn't assume a certain minimum set of commands
4) Something else I'm not thinking of so early in the morning
Hope that helps a little...
Regards, MJ -
Which comm. channel is configured with a certain ftp server?
Hi,
i wold like to have a list of all comm.channels which are using a certain ftp server. How can i get this listi dont think we have any shortes way to find..by checking manually then only we can differentiate else if your company follwoing proper naming standards then they will create individual bussiness component for every FTP.
Regards,
Raj -
XI cannot act as an FTP server
Hi All,
I have doubt on XI, Is XI operate as an FTP Server (i meen XI done not function as an FTP server)? pls give me some Links on this
Thanks in advance,
Venkat.Hii
XI can very well used as an FTP server
XI as a FTP server only
Use of SAP XI as "on demand" FTP Server
XI in the role of a FTP
Similar Threads:
Using XI as FTP without mapping
Use of SAP XI as "on demand" FTP Server
Using XI as a FTP Server ?
Re: Using XI as a FTP Server ? -
Mac FTP Server Help??
Hi
I have a whole bunch of movies and TV series' on my Macbook Pro. I am wanting to put them on my WD Mybook external HD. My question is; Is it possible to setup an FTP server to host the movies that are on my external Drive? If so how do I go about doing this. I want to setup this FTP server for streaming purposes only. The purpose for this FTP server is to watch movies inside my house and when im outside of my house.
Thanks in advance.Ok Nathan, now that we have the requirements sorted out, I can tell you that using an FTP server this way is probably not going to work well, and is more difficult to set up than using software you already have. What I mean is that you can use your iTunes media library on your mac as a shared library; your iPad can connect to it using wi-fi. There is an article here on how:
http://www.wikihow.com/Watch-Shared-Videos-from-a-Computer-on-an-iPad
So, in your case, the only other thing you will need to achieve is to move your iTunes media folder to the external drive, as per your very first sentence in this discussion. There are steps for doing that here:
http://support.apple.com/kb/ht1449
Note that from then on, you will need the external disk to be connected in order to access any iTunes content (songs, videos, mobile apps etc). If the external drive is not connected and you start iTunes, it will default the iTunes media folder back to your internal drive and you will have to choose the external drive again as per the apple article. -
Settings and usage of external FTP Server in ECC 6.0
Dear all,
I work in ECC 6.0, and I want to configure and use an external FTP Server for upload, download and delete file from FTP Server.
My questions are:
1) Which are steps for configure an FTP connection?
2) How can I read, delete and send a flat file to the FTP Server? Can you send a sample code?
Thanks in advance for your help.
Best Regards,
GiulioPlease check program RSFTP002 is a good example given by SAP .
a®
Maybe you are looking for
-
I have about 3,500 photos sitting in dropbox and just purchased my first mac yesterday. My husband and I each have our own Ipad and our own user id's on the mac. I moved two of the folders to Iphoto and it shows up on my screen in the right folders
-
Adding photos to .Mac gallery....Auto add to iphoto?
I have created a web gallery via iphoto '08. A family member has added their photos from the trip (their upload experience was perfect... FYI) . What I'm needing to know is will those photos automatically be added to my iphoto '08 library.....or just
-
Recently my pc crashed and I had to have a new profile built. Now when syncing my iphone 4s to the computer the sync gets stuck on step 8 and "syncing artwork" It never finishes syncing...just sits there for hours. Subsequently most of my music an
-
Well, It because I am a newbie with JSF. If I am understanding well the way ${...} EL expressions works, this is not the case for #{...} ones. Therefore everywhere I use an expression, I surround it with ${ }. I only change this for action methods a
-
Hello. I am uisng Apex 4.1 on Oracle 10.2.0.5 and Oracle App Server. Would someone please tell me why the following LOV query is causing the dreaded error: LOV query is invalid, a display and a return value are needed, the column names need to be dif