sasank ch

Greenhorn
+ Follow
since Nov 07, 2007
Merit badge: grant badges
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 sasank ch

Hi ,

I have increased upto 256M and unable to increase more than that. it gives the following error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

Could you please let me know, is there any way to clear VM space, while we are running continuous builds.

Please help us to resolve the above issue.

Regards,
Sasank
13 years ago
Hi All,

I am running the ANT script at Command prompt C:\Application>, which can build around 30 applications in single shot.
So, before running the script I have set the PremGen space as follows:

C:\Application>set JAVA_OPTS="-Xms128m -Xmx1024m -XX:MaxPermSize=1024m"
C:\Application>ant buildMainApplication.


But, middle of ant build, it is giving us Out of Memory: PremGen space.

Could any body please help me to resolve this issue.

Regards,
Srinivas
13 years ago
Hi All,

I need help on excel file creation.

I have created excel file with normal data means Strings and number type of cells using Jxl API.
But i want to put Select Box(values comming from DB) in the entire column cells.

Could anybody give me sample example code for putting dynamic select box in excel cell.

Regards,
Sasank
Hi All,
I have one requirement.Could you please give me any solution.
My folder structures as follows:
Root\
Root\sub1\sample1.txt
Root\sub2\sample2.txt


I need to copy all text files into Target folder.
Please find the my Ant target as follows:
<target name="copyFiles">
<copy todir="C:/Target">
<fileset dir="C:/Root">
<includesfile name="**/*.txt"/>
</fileset>
</copy>
</target>


But it will copies the text files as well as folder sttructue on Target folder.
I am expecting Target folder as follows:
Target\
Sample1.txt
Sample2.txt


Could any body please give me solution for this.

Regards,
Sasank.

13 years ago
Hi All,

I am uisng ftp task to copy local files into Remote System and ftp task as follows:
<target name="copyFileToRemoteFTP">
<ftp server="${host}" userid="${userid}" password="${password}" remotedir="/pub/incoming" port="21" >
</ftp>
</target>


When i run the above target copyFileToRemoteFTP , it is giving me the following errror:
error during FTP transfer: java.net.ConnectException: Connection timed out: connect

But i am able to get and put using command line FTP:
c:\>ftp hostmachine

Could anybody please help me to solve this problem. It would be great help to me

Regards,
Sasank
13 years ago
Hi ,

I have one requirement.
I need to copy/take the files to remote machine from my local system.

Could you please let me know any ways to achive the above requirement using ANT scripts.

Please provide me any examples, It would be great help to me.


Regards,
Sasank
13 years ago
Hi All,

I am using scp task in my ant build file and target as follows:

<target name="copyFileToRemote">
<scp file="sample.dll" todir="user@host:/shared" port="21" trust="true" password="password" verbose="true"/>
</target>


When i call the "copyFileToRemote" target ,It is giving following error:

[scp] Connecting to host:21
java.lang.Exception: com.jcraft.jsch.JSchException: connection is closed by foreign host


I have tried both ports 21 and 22 also. The remote machine having ftp server and it up and running with read/write permissions.
Could you please guide me to resolve this problem.

Regards,
Sasank
13 years ago
Dear Amir,

Thank you for your Replay.

Could you please let me know, Where will i get the antlib.xml.

I think, because of the xml file missing, I am getting the following error:
Could not create task or type of type: trycatch.

<taskdef resource="net/sf/antcontrib/antlib.xml" />

Regards,
Sasank
13 years ago
Hi All,

I have one requirement, to copy the local files to remote system.
I have done the following steps:

download the jsch-0.1.40.jar;
E:\AntTest>set path=E:\AntTest\jsch-0.1.40.jar;%path%;
E:\AntTest>set classpath=E:\AntTest\jsch-0.1.40;%classpath%;


E:\AntTest>ant copyFileToRemote
Buildfile: build.xml

copyFileToRemote:
[echo] 2222222222 copyFileToRemote Examples:::::::::::::

BUILD FAILED
E:\AntTest\build.xml:28: Could not create task or type of type: scp.
Ant could not find the task or a class this task relies upon.
This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
- You have misspelt 'scp'.
Fix: check your spelling.
- The task needs an external JAR file to execute
and this is not found at the right place in the classpath.
Fix: check the documentation for dependencies.
Fix: declare the task.
- The task is an Ant optional task and the JAR file and/or libraries
implementing the functionality were not found at the time you
yourself built your installation of Ant from the Ant sources.
Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
task and make sure it contains more than merely a META-INF/MANIFEST.MF.
If all it contains is the manifest, then rebuild Ant with the needed
libraries present in ${ant.home}/lib/optional/ , or alternatively,
download a pre-built release version from apache.org
- The build file was written for a later version of Ant
Fix: upgrade to at least the latest release version of Ant
- The task is not an Ant core or optional task
and needs to be declared using <taskdef>.
- You are attempting to use a task defined using
<presetdef> or <macrodef> but have spelt wrong or not
defined it at the point of use

The Build file as follows:

<project name="ImportedBuild" default="all">
<target name="copyFileToRemote">
<echo>2222222222 copyFileToRemote Examples:::::::::::::</echo>
<scp file="sample.txt" todir="${username}:${password}@${hostname}:/shared"/>
</target>
</project>


Could you please give me any solution to resolve this issus and provide any examples . It would be great help to me.

Regards,
Sam
13 years ago
Hi All,

I have one replace.xml with Task1 and MainBuild.xml , SubBuild1.xml , SubBuild2.xml

The replace.xml:
<target name="task1"></target>
<target name="task2"></target>

In the MainBuild.xml
<import file="replace.xml">
<target name="">
<ant antfile="/sample/SubBuild1.xml" target="build"/>
<ant antfile="/sample/SubBuild1.xml" target="build"/>
</target>

But i need to call replace.xml targets from the Sub Build files and need not imported replace.xml in sub build files.
Is it posiible by using ANT script and could you please let me know any other ways to achive this task.
It would be great help.

Regards,
Sam

13 years ago
Hi!

I want to rename the content of some files (by replacing a string with another) of a specific type (.htm) in a directory including all subdirectories.

Running an "Ant replace task" will do the work:

<target name="rename">
<replace dir="mydir" token="one" value="two">
<include name="**/*.htm"/>
</replace>
</target>

This works fine, however I want the replace to be NON-casesensitive, so that e.g. 'ONE' is also replaced by 'two'.

How do I do that?

Regards,
Sasank
13 years ago
Hi All,

I am new to JMeter. I am using jakarta-jmeter-2.3.2, Tomcat 4.0.28 and I have configured My Web Application on JMeter for load testing. But I am unable to test my Login page using JMeter.

The Login Page requries user credentials, but I don't know how to configure user credentials in my login pagethrough JMeter.

It gives "User Account is Inactive", means Login failure.

But I am able to login to my application directly without using JMeter, ie, Web Browser.

Please help anybody to solve this problem or guide me and provide any documents for JMeter Configuration. Please It is very urget requirment.


Thanks & Regards,
Sasank
14 years ago
Hi all,

Does anyone redirect me information on JMeter to configure for application login.

Your help is truly appreciated.

Regards,
Sasank.
14 years ago
Hi

I have two versions of servers installed on my machine , URL Encoder is working in one version and in other it is not working.

I am using the following snippet in my code:

URLEncoder.encode(QIPExportProgram.toString(), "UTF-8")

Here "QIPExportProgram" is a URL


Version1 Working Version:

JDK1.4
Tomcat 5.0.28
Vignette : 7.2

Version 2:

JDK1.5.15
Tomcat 6.0
Vignette : 7.4.1
14 years ago
how about inserting code in your program something like this to know if there is an error

if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
15 years ago