Bug 778632 (SOA-1108)

Summary: "Can't retrieve file list" error on static_router QS
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: Jehudi Castro Sierra <jcastro>
Component: JBossESB, ExamplesAssignee: Default User <jbpapp-maint>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.2 CP03CC: mvecera
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-1108
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-07 14:55:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jehudi Castro Sierra 2009-01-06 10:51:48 UTC
Date of First Response: 2009-01-06 12:57:48
project_key: SOA

I have tried two different ftp servers, in both cases I'm seeing "Can't retrieve file list" error, but the root cause is different in each case.

trying manually the command works fine:
Command:	LIST
Response:	150 Here comes the directory listing.
Response:	226 Directory send OK.



2009-01-06 11:31:32,362 ERROR [org.jboss.soa.esb.listeners.gateway.AbstractFileGateway] Can't retrieve file list
org.jboss.soa.esb.listeners.gateway.GatewayException: org.jboss.soa.esb.util.RemoteFileSystemException: EdtFtpImpl can't list *.dat due to: [425] Failed to establish connection.
	at org.jboss.soa.esb.listeners.gateway.RemoteGatewayListener.getFileList(RemoteGatewayListener.java:193)
	at org.jboss.soa.esb.listeners.gateway.AbstractFileGateway.onSchedule(AbstractFileGateway.java:111)
	at org.jboss.soa.esb.listeners.lifecycle.AbstractScheduledManagedLifecycle$1.onSchedule(AbstractScheduledManagedLifecycle.java:68)
	at org.jboss.soa.esb.schedule.SchedulerJob$ESBScheduledJob.execute(SchedulerJob.java:289)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: org.jboss.soa.esb.util.RemoteFileSystemException: EdtFtpImpl can't list *.dat due to: [425] Failed to establish connection.
	at org.jboss.internal.soa.esb.util.EdtFtpImpl.getFileListFromRemoteDir(EdtFtpImpl.java:381)
	at org.jboss.soa.esb.listeners.gateway.RemoteGatewayListener.getFileList(RemoteGatewayListener.java:183)

----------------------------------------------------------------

2009-01-06 11:20:53,710 ERROR [org.jboss.soa.esb.listeners.gateway.AbstractFileGateway] Can't retrieve file list
org.jboss.soa.esb.listeners.gateway.GatewayException: org.jboss.soa.esb.util.RemoteFileSystemException: com.enterprisedt.net.ftp.FTPException: Failed to change directory.
	at org.jboss.soa.esb.listeners.gateway.RemoteGatewayListener.getFileList(RemoteGatewayListener.java:193)
	at org.jboss.soa.esb.listeners.gateway.AbstractFileGateway.onSchedule(AbstractFileGateway.java:111)
	at org.jboss.soa.esb.listeners.lifecycle.AbstractScheduledManagedLifecycle$1.onSchedule(AbstractScheduledManagedLifecycle.java:68)
	at org.jboss.soa.esb.schedule.SchedulerJob$ESBScheduledJob.execute(SchedulerJob.java:289)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: org.jboss.soa.esb.util.RemoteFileSystemException: com.enterprisedt.net.ftp.FTPException: Failed to change directory.
	at org.jboss.internal.soa.esb.util.EdtFtpImpl.setRemoteDir(EdtFtpImpl.java:611)
	at org.jboss.soa.esb.listeners.gateway.RemoteGatewayListener.getFileList(RemoteGatewayListener.java:182)
	... 5 more
Caused by: com.enterprisedt.net.ftp.FTPException: Failed to change directory.
	at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:923)
	at com.enterprisedt.net.ftp.FTPClient.chdir(FTPClient.java:2542)
	at org.jboss.internal.soa.esb.util.EdtFtpImpl.setRemoteDir(EdtFtpImpl.java:602)
	... 6 more

Comment 1 Len DiMaggio 2009-01-06 17:57:48 UTC
Hey Jehudi,

   I can run the quickstart successfully with a local FTP server (RHEL5, 4.2 CP03 CR5, vsftpd):

12:54:18,977 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
12:54:18,977 INFO  [STDOUT] 
Body: Hello World In A File (for static router test) - to file with suffix=.01FromRouter
12:54:18,977 INFO  [STDOUT] 
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
12:54:19,287 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
12:54:19,287 INFO  [STDOUT] 
Body: Hello World In A File (for static router test) - to file with suffix=.02FromRouter
12:54:19,287 INFO  [STDOUT] 
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
12:54:19,392 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
12:54:19,392 INFO  [STDOUT] 
Body: Hello World In A File (for static router test) - to file with suffix=.03FromRouter
12:54:19,392 INFO  [STDOUT] 
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

But - I'm having problems with the ftp server on reports.qa.atl.jboss.com - the QS is able to create the StaticRouter.dat file, but the listeners never see it. Which ftp servers are you using? 

(Can you also attach the full server.log?  Thanks...   ;-)


Comment 2 Jehudi Castro Sierra 2009-01-07 10:46:15 UTC
Just worked for me using reports.qa.atl.jboss.com

2009-01-07 11:40:31,450 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
2009-01-07 11:40:31,450 INFO  [STDOUT]
Body: Hello World In A File (for static router test) - to file with suffix=.01FromRouter
2009-01-07 11:40:31,450 INFO  [STDOUT]
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
2009-01-07 11:40:31,451 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
2009-01-07 11:40:31,451 INFO  [STDOUT]
Body: Hello World In A File (for static router test) - to file with suffix=.03FromRouter
2009-01-07 11:40:31,451 INFO  [STDOUT]
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
2009-01-07 11:40:31,455 INFO  [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
2009-01-07 11:40:31,455 INFO  [STDOUT]
Body: Hello World In A File (for static router test) - to file with suffix=.02FromRouter
2009-01-07 11:40:31,455 INFO  [STDOUT]
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&



seems like a FTP server configuration problem, but Len is using the same server, can you please confirm is now is OK?

Thanks!