"scott.stark(a)jboss.org" wrote :
| What is calling URL.openStream in this trace?
|
Usually it's some dynamic EL stuff:
| http-127.0.0.1-8080-1 [RUNNABLE]
| java.util.zip.ZipFile.getNextEntry(native method)
| java.util.zip.ZipFile.access$700(ZipFile.java:35)
| java.util.zip.ZipFile$3.nextElement(ZipFile.java:421)
| java.util.zip.ZipFile$3.nextElement(ZipFile.java:415)
| java.util.jar.JarFile$1.nextElement(JarFile.java:221)
| java.util.jar.JarFile$1.nextElement(JarFile.java:220)
|
org.jboss.virtual.plugins.context.jar.AbstractStructuredJarHandler$JarEntryEnumeration.nextElement(AbstractStructuredJarHandler.java:347)
|
org.jboss.virtual.plugins.context.jar.AbstractStructuredJarHandler$JarEntryEnumeration.nextElement(AbstractStructuredJarHandler.java:329)
|
org.jboss.virtual.plugins.context.jar.AbstractStructuredJarHandler.initJarFile(AbstractStructuredJarHandler.java:133)
|
org.jboss.virtual.plugins.context.jar.AbstractStructuredJarHandler.initJarFile(AbstractStructuredJarHandler.java:107)
| org.jboss.virtual.plugins.context.jar.JarHandler.<init>(JarHandler.java:79)
|
org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:182)
| org.jboss.virtual.plugins.context.file.FileHandler.getChildren(FileHandler.java:177)
|
org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:242)
|
org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:189)
|
org.jboss.virtual.plugins.context.file.FileHandler.createChildHandler(FileHandler.java:214)
|
org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:359)
| org.jboss.virtual.plugins.context.file.FileHandler.findChild(FileHandler.java:197)
|
org.jboss.virtual.plugins.context.AbstractVFSContext.findChild(AbstractVFSContext.java:125)
| org.jboss.virtual.VFS.findChild(VFS.java:208)
|
org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.resolveVirtualFile(VirtualFileURLConnection.java:96)
|
org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getVirtualFile(VirtualFileURLConnection.java:109)
|
org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getInputStream(VirtualFileURLConnection.java:117)
| java.net.URL.openStream(URL.java:1007)
| sun.misc.URLClassPath$Loader.findResource(URLClassPath.java:472)
| sun.misc.URLClassPath.findResource(URLClassPath.java:142)
| java.net.URLClassLoader$2.run(URLClassLoader.java:362)
| java.security.AccessController.doPrivileged(native method)
| java.net.URLClassLoader.findResource(URLClassLoader.java:359)
| java.lang.ClassLoader.getResource(ClassLoader.java:977)
|
org.jboss.mx.loading.RepositoryClassLoader.getResourceLocally(RepositoryClassLoader.java:265)
| org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:265)
| org.jboss.mx.loading.UnifiedClassLoader.loadClassImpl(UnifiedClassLoader.java:290)
| org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:441)
| java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| org.jboss.el.parser.ELParser.<init>(ELParser.java:1898)
| org.jboss.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:98)
| org.jboss.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:151)
| org.jboss.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:195)
|
org.jboss.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:68)
|
org.jboss.seam.el.SeamExpressionFactory.createValueExpression(SeamExpressionFactory.java:98)
| com.sun.facelets.tag.TagAttribute.getValueExpression(TagAttribute.java:256)
|
com.sun.facelets.tag.jsf.ValueHolderRule$DynamicValueExpressionMetadata.applyMetadata(ValueHolderRule.java:101)
|
"scott.stark(a)jboss.org" wrote :
| A VirtualFileURLConnection.getInputStream cache might be one cache to introduce. The
AbstractURLHandler.openStream would be the other place. The main problem will be making
sure these streams are closed to avoid leaks/locks.
|
How do you cache a stream?
Wouldn't it be easier to somehow cache the 'url --> virtual file' mapping?
Some timer fifo cache? An abstraction plugable into our JBoss Cache?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116143#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...