To prevent your problem, probably, we need the file name to be shorted by the hash 
function...
We have to read and write the hash-named file, and after any reading or writing, I 
guess...  

Currenly, the temporary directory and file is readable, because it has time and a 
saving directory information.
So before any better ideas, I will JUST set the length for file name LOWER 
temporarily...  

Sung-Gu

----- Original Message ----- 
From: "Yu Yizhuan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, April 18, 2002 6:03 PM
Subject: Webdavlib.jar --- file name too long exception


> 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:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 


Reply via email to