neeraj nandwana

Greenhorn
+ Follow
since Sep 17, 2007
Merit badge: grant badges
For More
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 neeraj nandwana

Thanks Martijn for reply
i am running ant in debug mode and it's showing this extra information


Apache Ant version 1.7.1 compiled on June 27 2008
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.5 in: C:\Program Files\Java\jdk1.5.0_09\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.file -> D:\test\upload\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile D:\test\upload\build.xml with URI = file:/D:/test/upload/build.xml
Setting ro project property: ant.project.name -> alogix
Adding reference: alogix
Setting ro project property: ant.file.alogix -> D:\test\upload\build.xml
Project base dir set to: D:\test\upload
+Target:
+Target: scp.about
+Target: scp.config
+Target: scp.deploy
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
Setting project property: ant.configFile -> D:\test\upload\antconfig.txt
Setting project property: scp.server -> 10.52.107.142:22
Setting project property: scp.dir -> /u/username/builds/
Setting project property: scp.password -> password
Setting project property: scp.user -> username
Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
Build sequence for target(s) `scp.deploy' is [scp.about, scp.config, scp.deploy]
Complete build sequence is [scp.about, scp.config, scp.deploy, ]
...



but still can't figure it out what is the problem.
host is running on SunOs and i am using sftp to upload the file.
Is some problem with the authentication ???
Any guess ...

14 years ago
i am trying to push a file to server by sftp but i am getting error


scp.deploy:
[scp] Connecting to x.x.x.x:22
[scp] Sending: myfile.txt : 20
[scp] File transfer time: 0.97 Average Rate: 20.66 B/s

BUILD FAILED
com.jcraft.jsch.JSchException: 2: No such file
at org.apache.tools.ant.taskdefs.optional.ssh.ScpToMessageBySftp.doSingleTransfer(ScpToMessageBySftp.java:137)
at org.apache.tools.ant.taskdefs.optional.ssh.ScpToMessageBySftp.execute(ScpToMessageBySftp.java:125)
........



here is my code


and i am using
Apache Ant version 1.7.1
Java version: 1.5
jsch-0.1.42.jar

Any help please

Thanks in advance

14 years ago
Ok that�s the problem

C3 = C1.go(C2); // which returns null
Hence, C3 was NEVER assigned to a New Object!


Thanks for your help
this will make you more clear.

13. String x = new String("xyz"); //2 object(one is refer by x and second is placed in pool)
14. y = "abc";//1 object
15. x = x + y;//1 object


total 4 object created.
hi srinivas
thanks for your help. But i am still confuse.
because c3 hold the null value, and i think It is not mater through which reference it got the value only mater the value, it hold at run time.


and the Answer is: Only one CardBoard object (c1) is eligible, but it has an associated Short wrapper object that is also eligible

why "c3" not eligible for GC?
Object "c3" is also have the null value.