sarathchandra chandala

Greenhorn
+ Follow
since Sep 06, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sarathchandra chandala

I am using PrintStream class(print()) whenever I want to execute a command on the ftp connected server through java. The print function is taking input as string and that string's characters are converted into bytes according to the platform's default character encoding.

With reference to the above whenever I want to execute a command , the first word of the command is printing in capital letters. for example

"find . -mtime -1" is changing to "FIND . -mtime -l" because of this the command is not recognized by the unix server.

I want to know how to change the character encoding of the printstream so that the command will print properly on the server.
Could anyone please guide me for the above.
12 years ago
The requirement to track the remote client IP address in public domain, in order to authenticate the client locally, is not being met as when the Client Public IP is hitting the local firewall. As it passes through a load balancer(to which 2 servers are connected, In a LAN), The public IP address of the client request is being replaced by the private IP of the load balancer.

How can the original public IP address of the client be traced to use it for authentication purposes.
I am using getRemoteClient() function to obtain the remote client IP.
Is there any other way to get the original public address of the Client.

Thanks in advance
13 years ago
I am getting a out of memory error, when I tried to increase the jvm size, then the problem is not coming for one program and for other it is still facing the same problem(both programs are having same logic almost for different purpose)
As I couldn't increase my jvm size according to my wish I tried to close all the objects that I am using in the program.what additional things I need to consider to overcome this problem?
13 years ago
Hai

I have to insert around 80 lacs of rows in to the table,while inserting suddenly i got this exception ----->Exception in thread "main" java.lang.OutOfMemoryError<--------

i increased the heap size to 1024m, but same problem is coming

is there any alternative to solve this problem or any other solutions
13 years ago
Is there a way to print a string in Java without using System.out.println ?
13 years ago
class Test
{
public static void main(String[] args)
{
final int a = 1;
final int b;
b = 2;
int x = 0;
switch (x) {
case a: // ok
case b: // compiler error
}
}
}
Please explain me why the above code is giving error
13 years ago
I have a subclass named Orange which extends Fruit class.. Now when I make an object of Orange,it will call the constructor of superclass fruit and then up till Object Class..

Does this mean that actually Objects are created for Super classes when i make an object for my subclass??
13 years ago
when we want to provide both the services, we generally use like the above .
13 years ago
I want to difference between web container,servlet container and web server
14 years ago