2 Replies Latest reply on Jul 18, 2007 3:01 PM by Scott Stark

    FileHandler.getChildren IOException for non-dirs

    Scott Stark Master

      I'm seeing a failure due to the behavior of the FileHandler.getChildren method when called for a non-dir file. I don't know why we want to do this as it makes it difficult to handle files consistently. It would seem better to return an empty list.


      18:01:42,239 WARN [DeployersImpl] DeploymentContext has no DeploymentControllerContext during undeploy request, ignoring: AbstractVFSDeploymentContext@1587954306{vfsfile:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/profileservice/deploy/testAddDataSource-dsf.xml}
      18:01:42,258 ERROR [EJBRegistrationDeployer] Error during deploy: vfsfile:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/profileservice/deploy/testAddDataSource-dsf.xml
      org.jboss.deployers.spi.DeploymentException: java.lang.RuntimeException: java.io.IOException: Error listing files: /home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/profileservice/deploy/testAddDataSource-dsf.xml
       at org.jboss.ejb3.deployers.EJBRegistrationDeployer.deploy(EJBRegistrationDeployer.java:172)
       at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.deploy(AbstractVFSRealDeployer.java:45)
      ...
      Caused by: java.io.IOException: Error listing files: /home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta3/server/profileservice/deploy/testAddDataSource-dsf.xml
       at org.jboss.virtual.plugins.context.file.FileHandler.getChildren(FileHandler.java:146)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.getChildren(AbstractVFSContext.java:109)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:165)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.visit(AbstractVFSContext.java:134)
       at org.jboss.virtual.VFS.visit(VFS.java:313)
       at org.jboss.virtual.VirtualFile.visit(VirtualFile.java:363)
       at org.jboss.ejb3.deployers.JBoss5DeploymentUnit.getResources(JBoss5DeploymentUnit.java:186)
       ... 30 more