[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slide-user
Subject:    Webdavlib.jar --- file name too long exception
From:       "Yu Yizhuan" <yzyu () yahoo ! com>
Date:       2002-04-18 9:03:00
[Download RAW message or body]

Hi,

I am using Webdavlib.jar to download files. When a file path is very long, I
got this:

     [java] Message:
temp/1019118623166-%2Fattic%2Fsts%2Fspider%2Fdoc%2Fsun02%2Fexport%2Fhome%2Fa
yu%2Ftmp_spider_test%2Fdoc%2Fatlas1%2Fgenericloader%2Fsample%2Ftemp%2Fexport
%2Fhome%2Fayu%2Ftmp_spider_test%2Fdoc%2Fatlas%2Folympus%2Fxdocs%2Fcomponents
%2Fworkpool%2Frmi_tutorial.xml.tmp (File name too long)
     [java] Class: java.io.FileNotFoundException
     [java] Stack trace:
     [java] java.io.FileNotFoundException:
temp/1019118623166-%2Fattic%2Fsts%2Fspider%2Fdoc%2Fsun02%2Fexport%2Fhome%2Fa
yu%2Ftmp_spider_test%2Fdoc%2Fatlas1%2Fgenericloader%2Fsample%2Ftemp%2Fexport
%2Fhome%2Fayu%2Ftmp_spider_test%2Fdoc%2Fatlas%2Folympus%2Fxdocs%2Fcomponents
%2Fworkpool%2Frmi_tutorial.xml.tmp (File name too long)
     [java]  at java.io.FileOutputStream.open(Native Method)
     [java]  at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
     [java]  at java.io.FileOutputStream.<init>(FileOutputStream.java:62)
     [java]  at java.io.FileOutputStream.<init>(FileOutputStream.java:132)
     [java]  at
org.apache.commons.httpclient.methods.GetMethod.parseResponse(GetMethod.java
:393)
     [java]  at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:669)
     [java]  at
org.apache.webdav.lib.WebdavResource.getMethodData(WebdavResource.java:2064)
     [java]  at
imtf.ch.atlas.spider.atticclient.FileManager.loadFile(FileManager.java:938)
     [java]  at
imtf.ch.atlas.spider.atticclient.FileManager.download(FileManager.java:271)


The webdavlib.jar API tries to write a tmp file on disk and find the file
nams is too long.  I think to generate that kind of tmp file path could be
replaced by other ways to avoid this problem.

Albert


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <mailto:slide-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:slide-user-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic