1 Reply Latest reply on Dec 19, 2011 10:50 AM by Rich DiCroce

    Running test causes VFS exception at shutdown

    Rich DiCroce Novice

      I'm using Arquillian with TestNG and JBoss 7 in a remote configuration. When I run a test class from Eclipse, everything works fine, except that when I stop the server, I get this error:

       

      15:57:16,985 ERROR [stderr] Exception in thread "vfs-shutdown" java.lang.NullPointerException

      15:57:16,985 ERROR [stderr]      at org.jboss.vfs.TempFileProvider$DeleteTask.run(TempFileProvider.java:151)

      15:57:16,985 ERROR [stderr]      at org.jboss.vfs.TempFileProvider.close(TempFileProvider.java:132)

      15:57:16,985 ERROR [stderr]      at org.jboss.osgi.vfs30.VirtualFileAdaptor30$2.run(VirtualFileAdaptor30.java:94)

       

      Has anyone else seen this or know what might be causing it?

        • 1. Re: Running test causes VFS exception at shutdown
          Rich DiCroce Novice

          Line 151 does this:

          executor.schedule(this, 30L, TimeUnit.SECONDS);

           

          so I'm guessing the problem that causes the exception is that the executor service has already been shut down by the time the VFS tries to clear the temp files. Of course, the real problem seems to be that that line of code is even reached, since it had to pass the delete check on line 149.

           

          Since this doesn't seem to be an Arquillian-specific problem, I'm going to move this to the AS7 forum.