[jboss-jira] [JBoss JIRA] Created: (JBMICROCONT-139) StackOverflowError when traversing certain directories

Scott M Stark (JIRA) jira-events at jboss.com
Tue Jan 2 19:14:26 EST 2007


StackOverflowError when traversing certain directories
------------------------------------------------------

                 Key: JBMICROCONT-139
                 URL: http://jira.jboss.com/jira/browse/JBMICROCONT-139
             Project: JBoss MicroContainer
          Issue Type: Bug
          Components: VFS
            Reporter: Scott M Stark
             Fix For: JBossMC_2_0_0_CR1


The current 2.0.0.snapshot version of the vfs fails under win32 for jrockit 1.5.0_06 with a StackOverflowError when the quartz-ra.rar is deployed:

16:05:27,344 ERROR [AbstractKernelController] Error installing to Start: name=jb
oss.jca:name='quartz-ra.rar',service=RARDeployment state=Create mode=Manual requ
iredState=Installed
java.lang.StackOverflowError
        at java.lang.String.substring(II)Ljava.lang.String;(Unknown Source)
        at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:220)
        at org.jboss.net.protocol.file.Handler.parseURL(Handler.java:47)
        at java.net.URL.<init>(URL.java:596)
        at java.net.URL.<init>(URL.java:465)
        at java.net.URL.<init>(URL.java:413)
        at sun.net.www.protocol.jar.Handler.parseAbsoluteSpec(Handler.java:89)
        at sun.net.www.protocol.jar.Handler.parseURL(Handler.java:64)
        at java.net.URL.<init>(URL.java:596)
        at java.net.URL.<init>(URL.java:465)
        at java.net.URL.<init>(URL.java:413)
        at org.jboss.virtual.plugins.context.jar.AbstractJarHandler.getURL(Abstr
actJarHandler.java:308)
        at org.jboss.virtual.plugins.context.jar.AbstractJarHandler.createVirtua
lFileHandler(AbstractJarHandler.java:370)
        at org.jboss.virtual.plugins.context.jar.AbstractJarHandler.initJarFile(
AbstractJarHandler.java:186)
        at org.jboss.virtual.plugins.context.jar.JarHandler.<init>(JarHandler.ja
va:81)
        at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtua
lFileHandler(FileSystemContext.java:179)
        at org.jboss.virtual.plugins.context.file.FileHandler.getChildren(FileHa
ndler.java:171)
        at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtua
lFileHandler(FileSystemContext.java:239)
        at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtua
lFileHandler(FileSystemContext.java:186)
        at org.jboss.virtual.plugins.context.file.FileHandler.getChildren(FileHa
ndler.java:171)
        at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtua
lFileHandler(FileSystemContext.java:239)
        at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtua
lFileHandler(FileSystemContext.java:186)
        at org.jboss.virtual.plugins.context.file.FileHandler.getChildren(FileHa
ndler.java:171)
        at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtua
lFileHandler(FileSystemContext.java:239)
        at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtua
lFileHandler(FileSystemContext.java:186)
        at org.jboss.virtual.plugins.context.file.FileHandler.getChildren(FileHa
ndler.java:171)
        at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtua
lFileHandler(FileSystemContext.java:239)
        at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtua
lFileHandler(FileSystemContext.java:186)
        at org.jboss.virtual.plugins.context.file.FileHandler.getChildren(FileHa
ndler.java:171)
        at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtua
lFileHandler(FileSystemContext.java:239)
        at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtua
lFileHandler(FileSystemContext.java:186)
        at org.jboss.virtual.plugins.context.file.FileHandler.getChildren(FileHa
ndler.java:171)
16:05:27,344 INFO  [RARDeployment] Required license terms exist, view vfsfile:/C
:/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta2/server/default/deploy/
quartz-ra.rar/META-INF/ra.xml
16:05:31,719 ERROR [AbstractKernelController] Error installing to Start: name=jb
oss.jca:name='quartz-ra.rar#quartz-ra.rar',service=RARDeployment state=Create mo
de=Manual requiredState=Installed
java.lang.StackOverflowError
16:05:31,734 INFO  [TomcatDeployment] deploy, ctxPath=/, warUrl=vfsfile:/C:/svn/
JBossHead/jboss-head/build/output/jboss-5.0.0.Beta2/server/default/deploy/ROOT.w
ar/

This is due to the following bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6192331

The problem is that a file returned via File.listFiles() is such that the File.exists() check fails, and there is recursion to try to resolve the file as a link against the parent. The link checking could be improved, or the resulting listFiles() validated before used.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list