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

Durgesh Rajbhar

Greenhorn
+ Follow
since Jul 22, 2010
Hi
New Delhi
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 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;

import corp.broadvision.org.util.BVLog;

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();
if(!rssobj){
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());
e.printStackTrace();
}
}
}

Thanks in advance.

Regards,
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.


Regards,
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.

Regards,
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: org.apache.commons.net.ftp.FTPClient.setParserFactory(Lorg/apache/commons/net/ftp/parser/FTPFileEntryParserFactory;)V
2010-07-22 15:57:26,696 ERROR [STDERR] at com.zehon.FileTransferClient.getFileNamesInFolder(FileTransferClient.java:858)
2010-07-22 15:57:26,696 ERROR [STDERR] at com.zehon.ftp.FTPClient.getFileNamesInFolder(FTPClient.java:545)
2010-07-22 15:57:26,696 ERROR [STDERR] at com.broadvision.action.xmlrequest.XMLRequestUtil.TransferFtptolocal(XMLRequestUtil.java:461)
2010-07-22 15:57:26,696 ERROR [STDERR] at com.broadvision.action.xmlrequest.XMLRequestUtil.getXMLRequestFiles2DB(XMLRequestUtil.java:77)
2010-07-22 15:57:26,696 ERROR [STDERR] at corp.broadvision.org.XMLgeneration.SchedularServlet$1.run(SchedularServlet.java:27)
2010-07-22 15:57:26,696 ERROR [STDERR] at java.util.TimerThread.mainLoop(Timer.java:512)
2010-07-22 15:57:26,697 ERROR [STDERR] at java.util.TimerThread.run(Timer.java:462)
2010-07-22 15:57:26,697 ERROR [STDERR] Caused by: java.lang.NoSuchMethodError: org.apache.commons.net.ftp.FTPClient.setParserFactory(Lorg/apache/commons/net/ftp/parser/FTPFileEntryParserFactory;)V
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FtpClientFactory.createConnection(FtpClientFactory.java:125)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.createClient(FTPClientWrapper.java:70)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.getFtpClient(FTPClientWrapper.java:89)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.<init>(FTPClientWrapper.java:48)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.ftp.FtpFileProvider.doCreateFileSystem(FtpFileProvider.java:85)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:103)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:82)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:66)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:692)
2010-07-22 15:57:26,697 ERROR [STDERR] at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:620)
2010-07-22 15:57:26,698 ERROR [STDERR] at com.zehon.FileTransferClient.getFileObject(FileTransferClient.java:741)
2010-07-22 15:57:26,698 ERROR [STDERR] at com.zehon.FileTransferClient.getFileNamesInFolder(FileTransferClient.java:848)


Kindly help me to fix the problem.

Thanks in advance
10 years ago