You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by hrjk <ha...@zeniitti.net> on 2006/05/24 09:32:03 UTC
[commons vfs] Extracting tar fails
Hi.
Is there some kind of a bug in handling tar files with VFS? I'm getting
badly formed uri constantly with trying to access TAR file contents.
org.apache.commons.vfs.FileSystemException: Badly formed URI
"tar:file//C:\src.tar!".
I've been trying to resolve file with:
"tar://C:\src.tar!/"
"tar://C:\src.tar!"
"tar:file//C:\src.tar!"
"tar:file//C:\src.tar!/"
Zip files are working file. My VFS snapshot is dated 27.4.2006.
Thanks for any help.
BR,
-hrjk
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [commons vfs] Extracting tar fails
Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!
> Right. Sorry guys. I'd better buy new pair of glasses.
>
:-D
> Nevertheless, exactly same error occurs with "tar:file://C:\src.tar!".
>
Sorry, no windows here, but I use
tar:file:///home/im/tmp/log4j.tar!/
and this works. (tar:file:///home/im/tmp/log4j.tar! too)
Ok, do you use VFS.getManager()? If so, do you have commons-compress in
your classpath?
This is a requirement for tar.
Ciao,
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [commons vfs] Extracting tar fails
Posted by hrjk <ha...@zeniitti.net>.
> Hi!
>>> Try this way:
>>>
>>> tar:file://C:\src.tar!
>>>
>> That was the third one I had tried:
>>
> No, it was not. I also need some time to figure it out ;-)
>
>> org.apache.commons.vfs.FileSystemException: Badly formed URI
>> "tar:file//C:\src.tar!".
>>
> see - there is the ":" missing after "file" - its "file://"
>
Right. Sorry guys. I'd better buy new pair of glasses.
Nevertheless, exactly same error occurs with "tar:file://C:\src.tar!".
BR,
-hrjk
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [commons vfs] Extracting tar fails
Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!
>> Try this way:
>>
>> tar:file://C:\src.tar!
>>
> That was the third one I had tried:
>
No, it was not. I also need some time to figure it out ;-)
> org.apache.commons.vfs.FileSystemException: Badly formed URI
> "tar:file//C:\src.tar!".
>
see - there is the ":" missing after "file" - its "file://"
Ciao,
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [commons vfs] Extracting tar fails
Posted by hrjk <ha...@zeniitti.net>.
One more thing. StackTrace gives following info:
org.apache.commons.vfs.FileSystemException: Badly formed URI
"tar:file//C:\src.tar!".
at
org.apache.commons.vfs.provider.url.UrlFileProvider.findFile(UrlFileProvider.java:84)
at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:583)
at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:528)
at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:498)
at ...
...
Caused by: java.net.MalformedURLException: unknown protocol: tar
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at
org.apache.commons.vfs.provider.url.UrlFileProvider.findFile(UrlFileProvider.java:65)
... 12 more
>> Hi,
>>
>> Try this way:
>>
>> tar:file://C:\src.tar!
>>
>
> That was the third one I had tried:
>
> org.apache.commons.vfs.FileSystemException: Badly formed URI
> "tar:file//C:\src.tar!".
>
> Is this a bug, or am I missing something?
>
>>>
>>> I've been trying to resolve file with:
>>> "tar://C:\src.tar!/"
>>> "tar://C:\src.tar!"
>>> "tar:file//C:\src.tar!"
>>> "tar:file//C:\src.tar!/"
>>>
>
> -hrjk
>
--
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [commons vfs] Extracting tar fails
Posted by hrjk <ha...@zeniitti.net>.
> Hi,
>
> Try this way:
>
> tar:file://C:\src.tar!
>
That was the third one I had tried:
org.apache.commons.vfs.FileSystemException: Badly formed URI
"tar:file//C:\src.tar!".
Is this a bug, or am I missing something?
>>
>> I've been trying to resolve file with:
>> "tar://C:\src.tar!/"
>> "tar://C:\src.tar!"
>> "tar:file//C:\src.tar!"
>> "tar:file//C:\src.tar!/"
>>
-hrjk
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [commons vfs] Extracting tar fails
Posted by Robert Enyedi <re...@gmail.com>.
Hi,
Try this way:
tar:file://C:\src.tar!
Regards,
Robert
On 5/24/06, hrjk <ha...@zeniitti.net> wrote:
>
> Hi.
>
> Is there some kind of a bug in handling tar files with VFS? I'm getting
> badly formed uri constantly with trying to access TAR file contents.
>
> org.apache.commons.vfs.FileSystemException: Badly formed URI
> "tar:file//C:\src.tar!".
>
> I've been trying to resolve file with:
> "tar://C:\src.tar!/"
> "tar://C:\src.tar!"
> "tar:file//C:\src.tar!"
> "tar:file//C:\src.tar!/"
>
> Zip files are working file. My VFS snapshot is dated 27.4.2006.
>
> Thanks for any help.
>
> BR,
> -hrjk
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>