|
From: Meredith, D. (STFC,DL,ESC) <dav...@st...> - 2009-09-04 08:01:20
|
hi Markus,
i have seen a similar error before - it originated because of an invalid file name (started with a \ char) which upset vfs and caused exceptions like below. however, i subsequently added a patch that i thought? addressed this (unless there is a different cause). I'll take a look over the weekend - currently out of office, back next monday.
dave
------------------------
David Meredith
STFC eScience Centre
Daresbury Laboratory
Warrington Cheshire
WA4 4AD
Tel: 01925 603762(Direct Line)
email: dav...@st...
-----Original Message-----
From: Markus Binsteiner [mailto:ma...@vp...]
Sent: Tue 01/09/2009 11:19 PM
To: com...@li...
Subject: [Commonsvfsgrid-developers] File listing error
Hi. Me again....
I'm having another one of those problems I can't reliably reproduce:
I wrote this method which recursively lists (gridftp-)directories in
order to get a listing of all the children files of a root folder and
their absolute paths. That works most of the time without a problem.
But, approximately once in ten times it fails with an error that looks like:
org.apache.commons.vfs.FileSystemException: Could not list the contents
of folder "{0}".
at
org.apache.commons.vfs.provider.gridftp.cogjglobus.GridFtpMlsxFileObject.statChildren(GridFtpMlsxFileObject.java:376)
at
org.apache.commons.vfs.provider.gridftp.cogjglobus.GridFtpMlsxFileObject.doListChildrenResolved(GridFtpMlsxFileObject.java:280)
at
org.apache.commons.vfs.provider.AbstractFileObject.getChildren(AbstractFileObject.java:589)
at
org.vpac.grisu.control.serviceInterfaces.AbstractServiceInterface.getFolderListing(AbstractServiceInterface.java:1749)
at
org.vpac.grisu.control.serviceInterfaces.AbstractServiceInterface.ls(AbstractServiceInterface.java:1820)
at
org.vpac.grisu.frontend.model.job.JobObject.listJobDirectory(JobObject.java:708)
at
org.vpac.grisu.frontend.model.job.MultiPartJobObject.downloadResults(MultiPartJobObject.java:673)
at
org.vpac.grisu.clients.blender.GridBlenderCheck.execute(GridBlenderCheck.java:140)
at
org.vpac.grisu.clients.blender.GrisuBlender.main(GrisuBlender.java:41)
Caused by: org.globus.ftp.exception.ServerException: Server refused
performing the request. Custom message: (error code 1) [Nested
exception message: Custom message: Unexpected reply: 451 active
connection to server failed
java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at java.net.Socket.<init>(Socket.java:367)
at java.net.Socket.<init>(Socket.java:267)
at org.globus.net.SocketFactory.createSocket(SocketFactory.java:74)
at org.globus.net.SocketFactory.createSocket(SocketFactory.java:53)
at
org.globus.ftp.dc.GridFTPActiveConnectTask.execute(GridFTPActiveConnectTask.java:70)
at org.globus.ftp.dc.TaskThread.run(TaskThread.java:71)
at java.lang.Thread.run(Thread.java:595)
] [Nested exception is
org.globus.ftp.exception.UnexpectedReplyCodeException: Custom message:
Unexpected reply: 451 active connection to server failed
java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at java.net.Socket.<init>(Socket.java:367)
at java.net.Socket.<init>(Socket.java:267)
at org.globus.net.SocketFactory.createSocket(SocketFactory.java:74)
at org.globus.net.SocketFactory.createSocket(SocketFactory.java:53)
at
org.globus.ftp.dc.GridFTPActiveConnectTask.execute(GridFTPActiveConnectTask.java:70)
at org.globus.ftp.dc.TaskThread.run(TaskThread.java:71)
at java.lang.Thread.run(Thread.java:595)
]
at
org.globus.ftp.exception.ServerException.embedUnexpectedReplyCodeException(ServerException.java:101)
at
org.globus.ftp.exception.ServerException.embedUnexpectedReplyCodeException(ServerException.java:110)
at org.globus.ftp.vanilla.TransferMonitor.run(TransferMonitor.java:195)
at java.lang.Thread.run(Thread.java:595)
Did anybody see similar errors? Any ideas what could be the problem?
I didn't do any real investigation into this, but I will soon. Just
wanted to know whether anybody (well, Dave :-) )has got an idea where to
start looking, or maybe a hunch...
By the way: this all happens in the main thread, in case you are
wondering. No fancy threading involved...
Cheers,
Markus
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Commonsvfsgrid-developers mailing list
Com...@li...
https://lists.sourceforge.net/lists/listinfo/commonsvfsgrid-developers
--
Scanned by iCritical.
|