commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wabner, Thomas (EXT)" <thomas.wabner....@siemens.com>
Subject [VFS] file cache problem on resolv file
Date Wed, 21 Mar 2007 15:41:26 GMT
Hi,

 

I have two .gz files. One file has a size of 2.994 KB and the other 927
KB. It seems to be there is a problem with virtual file system if I try
to search for the files. Here comes my log output. Only difference is in
the SoftRefFileCache:144. I'am using the version 1.0 of the vfs-jar.

 

For the file with the smaller size the output says:
SearchableVirtualFileSystem:114 - file object type: file

 

And for the larger file: SearchableVirtualFileSystem:114 - file object
type: imaginary

 

Now the big question. What can I do in this case? Is this is a bug (I
think so). A change of the cache strategy doe's not solve the problem.
Seem to be if the VFS doe's not cache the big file, the resolve stuff
works not correct.

 

 

The following stuff works for the file with 927 KB of size:

 

           main DEBUG -
com.siemens.spice.product.documentprovider.DocumentProviderFactory:83 -
get document provider for product SD

           main DEBUG -
com.siemens.spice.product.documentprovider.DocumentProviderFactory:85 -
return SD provider

           main DEBUG -
com.siemens.spice.product.documentprovider.SDDocumentProvider:136 - init

           main DEBUG -
com.siemens.spice.product.documentprovider.SDDocumentProvider:140 - base
path is
/C:/Projects/workspace/spice-jom/target/test-classes/sui/properties/prod
ukte/SD/

           main DEBUG -
com.siemens.spice.product.documentprovider.SDDocumentProvider:152 -
relative path: true

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile: vfs:///

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:121 - try to
add searchable gzip:
C:\Projects\workspace\spice-jom\docs\6SL3211\AEDN160000000000\G110_PLI_1
104_20977026_DE.pdf.gz

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:93 - try to
add searchable folder
C:\Projects\workspace\spice-jom\docs\6SL3211\AEDN160000000000\

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:121 - try to
add searchable gzip:
C:\Projects\workspace\spice-jom\docs\AEDN160000000000\G110_PLI_1104_2097
7026_DE.pdf.gz

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:93 - try to
add searchable folder
C:\Projects\workspace\spice-jom\docs\AEDN160000000000\

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:121 - try to
add searchable gzip:
C:\temp\6SL3211\AEDN160000000000\G110_PLI_1104_20977026_DE.pdf.gz

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:129 - add gz
file because it exists
C:\temp\6SL3211\AEDN160000000000\G110_PLI_1104_20977026_DE.pdf.gz

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
file:///C:/temp/6SL3211/AEDN160000000000/G110_PLI_1104_20977026_DE.pdf.g
z

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
gz:file:///C:/temp/6SL3211/AEDN160000000000/G110_PLI_1104_20977026_DE.pd
f.gz!/

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
vfs:///C:/temp/6SL3211/AEDN160000000000

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
vfs:///C:/temp/6SL3211

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
vfs:///C:/temp

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile: vfs:///C:

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:93 - try to
add searchable folder C:\temp\6SL3211\AEDN160000000000\

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:101 - add
folder now because it exists

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
file:///C:/temp/6SL3211/AEDN160000000000

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:121 - try to
add searchable gzip:
C:\temp\AEDN160000000000\G110_PLI_1104_20977026_DE.pdf.gz

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:93 - try to
add searchable folder C:\temp\AEDN160000000000\

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:153 - search
for G110_PLI_1104_20977026_DE.pdf

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:9
7 - start search

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:1
03 - search in search point
/C:\temp\6SL3211\AEDN160000000000\G110_PLI_1104_20977026_DE.pdf.gz

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
vfs:///C:/temp/6SL3211/AEDN160000000000/G110_PLI_1104_20977026_DE.pdf.gz

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:1
05 - search root
vfs:///C:/temp/6SL3211/AEDN160000000000/G110_PLI_1104_20977026_DE.pdf.gz

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:1
06 - search root is file? application/octet-stream

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
gz:file:///C:/temp/6SL3211/AEDN160000000000/G110_PLI_1104_20977026_DE.pd
f.gz!/G110_PLI_1104_20977026_DE.pdf

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
vfs:///C:/temp/6SL3211/AEDN160000000000/G110_PLI_1104_20977026_DE.pdf.gz
/G110_PLI_1104_20977026_DE.pdf

           main DEBUG -
com.siemens.spice.product.documentprovider.FileFilter:38 - include file
g110_pli_1104_20977026_de.pdf filename g110_pli_1104_20977026_de.pdf

           main DEBUG -
com.siemens.spice.product.documentprovider.FileFilter:41 - include file
true

           main DEBUG -
com.siemens.spice.product.documentprovider.FileFilter:38 - include file
g110_pli_1104_20977026_de.pdf.gz filename g110_pli_1104_20977026_de.pdf

           main DEBUG -
com.siemens.spice.product.documentprovider.FileFilter:44 - include file
false

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:1
11 - found matching files: 1

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:1
13 - result:
vfs:///C:/temp/6SL3211/AEDN160000000000/G110_PLI_1104_20977026_DE.pdf.gz
/G110_PLI_1104_20977026_DE.pdf

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:1
14 - file object type: file

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:1
15 - file content type: application/pdf

 

And comes the output for the file with nearly 3 MB of file size:

 

           main DEBUG -
com.siemens.spice.product.documentprovider.DocumentProviderFactory:83 -
get document provider for product SD

           main DEBUG -
com.siemens.spice.product.documentprovider.DocumentProviderFactory:85 -
return SD provider

           main DEBUG -
com.siemens.spice.product.documentprovider.SDDocumentProvider:136 - init

           main DEBUG -
com.siemens.spice.product.documentprovider.SDDocumentProvider:140 - base
path is
/C:/Projects/workspace/spice-jom/target/test-classes/sui/properties/prod
ukte/SD/

           main DEBUG -
com.siemens.spice.product.documentprovider.SDDocumentProvider:152 -
relative path: true

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile: vfs:///

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:121 - try to
add searchable gzip:
C:\Projects\workspace\spice-jom\docs\6SL3211\AAGW000000000000\G110_OPI_2
2102965_DE.pdf.gz

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:93 - try to
add searchable folder
C:\Projects\workspace\spice-jom\docs\6SL3211\AAGW000000000000\

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:121 - try to
add searchable gzip:
C:\Projects\workspace\spice-jom\docs\AAGW000000000000\G110_OPI_22102965_
DE.pdf.gz

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:93 - try to
add searchable folder
C:\Projects\workspace\spice-jom\docs\AAGW000000000000\

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:121 - try to
add searchable gzip:
C:\temp\6SL3211\AAGW000000000000\G110_OPI_22102965_DE.pdf.gz

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:129 - add gz
file because it exists
C:\temp\6SL3211\AAGW000000000000\G110_OPI_22102965_DE.pdf.gz

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
file:///C:/temp/6SL3211/AAGW000000000000/G110_OPI_22102965_DE.pdf.gz

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
gz:file:///C:/temp/6SL3211/AAGW000000000000/G110_OPI_22102965_DE.pdf.gz!
/

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
vfs:///C:/temp/6SL3211/AAGW000000000000

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
vfs:///C:/temp/6SL3211

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
vfs:///C:/temp

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile: vfs:///C:

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:93 - try to
add searchable folder C:\temp\6SL3211\AAGW000000000000\

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:101 - add
folder now because it exists

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
file:///C:/temp/6SL3211/AAGW000000000000

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:121 - try to
add searchable gzip:
C:\temp\AAGW000000000000\G110_OPI_22102965_DE.pdf.gz

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:93 - try to
add searchable folder C:\temp\AAGW000000000000\

           main DEBUG -
com.siemens.spice.product.documentprovider.SDFileSearcher:153 - search
for G110_OPI_22102965_DE.pdf

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:9
7 - start search

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:1
03 - search in search point
/C:\temp\6SL3211\AAGW000000000000\G110_OPI_22102965_DE.pdf.gz

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
vfs:///C:/temp/6SL3211/AAGW000000000000/G110_OPI_22102965_DE.pdf.gz

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:1
05 - search root
vfs:///C:/temp/6SL3211/AAGW000000000000/G110_OPI_22102965_DE.pdf.gz

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:1
06 - search root is file? application/octet-stream

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
gz:file:///C:/temp/6SL3211/AAGW000000000000/G110_OPI_22102965_DE.pdf.gz!
/G110_OPI_22102965_DE.pdf

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
file:///C:/temp/6SL3211/AAGW000000000000/G110_OPI_22102965_DE.pdf.gz/G11
0_OPI_22102965_DE.pdf

           main DEBUG -
org.apache.commons.vfs.cache.SoftRefFilesCache:144 - putFile:
vfs:///C:/temp/6SL3211/AAGW000000000000/G110_OPI_22102965_DE.pdf.gz/G110
_OPI_22102965_DE.pdf

           main DEBUG -
com.siemens.spice.product.documentprovider.FileFilter:38 - include file
g110_opi_22102965_de.pdf filename g110_opi_22102965_de.pdf

           main DEBUG -
com.siemens.spice.product.documentprovider.FileFilter:41 - include file
true

           main DEBUG -
com.siemens.spice.product.documentprovider.FileFilter:38 - include file
g110_opi_22102965_de.pdf.gz filename g110_opi_22102965_de.pdf

           main DEBUG -
com.siemens.spice.product.documentprovider.FileFilter:44 - include file
false

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:1
11 - found matching files: 1

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:1
13 - result:
vfs:///C:/temp/6SL3211/AAGW000000000000/G110_OPI_22102965_DE.pdf.gz/G110
_OPI_22102965_DE.pdf

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:1
14 - file object type: imaginary

           main DEBUG -
com.siemens.spice.product.documentprovider.SearchableVirtualFileSystem:1
15 - file content type: application/pdf

 

Many thanks in advance,

 

- Thomas Wabner


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message