Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Durgesh Rajbhar

+ Follow
since Jul 22, 2010
New Delhi
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Durgesh Rajbhar

Hi Uttam,

Thank you for reply but I have done already what have you posted.

thank you!!!
9 years ago
Hi All !!

I have written a scheduler which runs in every 30 sec. and have done some changes in file which scheduler calls repeatedly but It's calling old class files.
I have done clean build process as well as deleted all class files and created new ones but still it's reading old class files.

I am using followings --
Application server JBoss - 4.2
IDE - eclipse

code is given below --

Kindly any one tell me the reason???
9 years ago

10 years ago
Thanks Bear.
I will keep in mind from next time.
10 years ago
Good morning All,

I needed a scheduler which could upload some xml files from remot server to my server location through FTP but
when I restart the server it upload the files from remote server to my server location but when I put xml files in between
(when server running) at remote server then it does not upload the files to my server.

Can any one tell me the reason/solution.

import java.util.Timer;
import java.util.TimerTask;

import javax.servlet.ServletConfig;
import javax.servlet.http.HttpServlet;

import com.broadvision.action.xmlrequest.XMLRequestUtil;


public class SchedularServlet extends HttpServlet {
public void init(ServletConfig conf) {

try {

int initialDelay = Integer.parseInt(conf.getInitParameter("initialDelay")); // start after 30 seconds 30000
int period = Integer.parseInt(conf.getInitParameter("period")); // repeat every 5 minutes 300000300000

Timer timer = new Timer();

TimerTask task = new TimerTask() {
public void run() {

boolean rssobj=new com.broadvision.action.xmlrequest.XMLRequestUtil().getXMLRequestFiles2DB();
BVLog.error(20,"Either no file at RIL server location or getXMLRequestFiles2DB return false:"+rssobj);



timer.scheduleAtFixedRate(task, initialDelay, period);

catch (Exception e) {
BVLog.error(20,"Exception inside SchedularServlet class:::"+e.toString());

Thanks in advance.

Durgesh Pratap Rajbhar
10 years ago
Hi Deep,

Heartiest congratulations.

thnanks for sharing your experience.It will be helpfull for us who are preparing for it.

Durgesh P Rajbhar
SCJP 5.0
10 years ago
Hi all !!

I want to appear in SCWCD exam in upcoming month.
I just wanted to know which books should I go through and which simulator is good.
any kindly of advise and suggetions regarding certification is also welcome.

Thanks in advance.

Durgesh Pratap Rajbhar
m using Kukini Workbench 8.2 of BroadVision in which eclipse is inbuilt

In method getFileNamesInFolder(arg).I am passing FTPfolder name where from i have to take xml files which is correct.

10 years ago
Hello All!!

While m running my code m getting following error i.e.
while accessing methods in JAR file "zehon_file_transfer-1.1.6"

com.zehon.exception.FileTransferException: java.lang.NoSuchMethodError:;)V
2010-07-22 15:57:26,696 ERROR [STDERR] at com.zehon.FileTransferClient.getFileNamesInFolder(
2010-07-22 15:57:26,696 ERROR [STDERR] at com.zehon.ftp.FTPClient.getFileNamesInFolder(
2010-07-22 15:57:26,696 ERROR [STDERR] at com.broadvision.action.xmlrequest.XMLRequestUtil.TransferFtptolocal(
2010-07-22 15:57:26,696 ERROR [STDERR] at com.broadvision.action.xmlrequest.XMLRequestUtil.getXMLRequestFiles2DB(
2010-07-22 15:57:26,696 ERROR [STDERR] at$
2010-07-22 15:57:26,696 ERROR [STDERR] at java.util.TimerThread.mainLoop(
2010-07-22 15:57:26,697 ERROR [STDERR] at
2010-07-22 15:57:26,697 ERROR [STDERR] Caused by: java.lang.NoSuchMethodError:;)V
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FtpClientFactory.createConnection(
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.createClient(
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.getFtpClient(
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.<init>(
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FtpFileProvider.doCreateFileSystem(
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.getFileSystem(
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(
2010-07-22 15:57:26,698 ERROR [STDERR] at com.zehon.FileTransferClient.getFileObject(
2010-07-22 15:57:26,698 ERROR [STDERR] at com.zehon.FileTransferClient.getFileNamesInFolder(

Kindly help me to fix the problem.

Thanks in advance
10 years ago