This content has been marked as final.
Show 21 replies
-
15. Re: virtualFile.toURL().openStream() does not provide a JarI
wolfc Sep 8, 2008 4:57 AM (in response to wolfc)Test passes, but I still see two failures on jboss-vfs test suite:
- org.jboss.test.virtual.test.CopyFileVFSUnitTestCase
- org.jboss.test.virtual.test.FileVFSUnitTestCase -
16. Re: virtualFile.toURL().openStream() does not provide a JarI
mstruk Sep 8, 2008 5:12 AM (in response to wolfc)Hmmm, I see all the tests pass.
Can you post stacktraces? -
17. Re: virtualFile.toURL().openStream() does not provide a JarI
wolfc Sep 8, 2008 5:41 AM (in response to wolfc)org.jboss.test.virtual.test.CopyFileVFSUnitTestCase.testWarLinkUpdate:
junit.framework.AssertionFailedError: Wrong number of WEB-INF link children at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at org.jboss.test.virtual.test.FileVFSUnitTestCase.testWarLinkUpdate(FileVFSUnitTestCase.java:1101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163) at org.apache.maven.surefire.Surefire.run(Surefire.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875
org.jboss.test.virtual.test.FileVFSUnitTestCase.testWarLinkUpdate:junit.framework.AssertionFailedError: Wrong number of WEB-INF link children at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at org.jboss.test.virtual.test.FileVFSUnitTestCase.testWarLinkUpdate(FileVFSUnitTestCase.java:1101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163) at org.apache.maven.surefire.Surefire.run(Surefire.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875)
-
18. Re: virtualFile.toURL().openStream() does not provide a JarI
starksm64 Sep 8, 2008 11:49 AM (in response to wolfc)The current vfs trunk is allowing the tck test to pass. I am also seeing the two failures Carlo sees. the complete error output from the test results is:
<testcase time="0.012" name="testWarLinkUpdate"> <error type="junit.framework.AssertionFailedError" message="Wrong number of WEB-INF link children">junit.framework.AssertionFailedError: Wrong number of WEB-INF link children at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at org.jboss.test.virtual.test.FileVFSUnitTestCase.testWarLinkUpdate(FileVFSUnitTestCase.java:1101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163) at org.apache.maven.surefire.Surefire.run(Surefire.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875) </error> <system-out>408 DEBUG [FileVFSUnitTestCase] ==== Starting testWarLinkUpdate ==== 409 INFO [FileVFSUnitTestCase] Force copy: false 411 DEBUG [AbstractVirtualFileHandler] IGNORING: Exception while closing connection java.io.FileNotFoundException: /tmp/jboss-vfs-testWarLinkUpdate52491.tmp/WEB-INF (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.&init&(FileInputStream.java:106) at java.io.FileInputStream.&init&(FileInputStream.java:66) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161) at org.jboss.virtual.plugins.context.AbstractURLHandler.closeConnection(AbstractURLHandler.java:121) at org.jboss.virtual.plugins.context.AbstractURLHandler.initCacheLastModified(AbstractURLHandler.java:107) at org.jboss.virtual.plugins.context.AbstractURLHandler.&init&(AbstractURLHandler.java:66) at org.jboss.virtual.plugins.context.file.LinkHandler$ParentOfLink.&init&(LinkHandler.java:67) at org.jboss.virtual.plugins.context.file.LinkHandler.&init&(LinkHandler.java:164) at org.jboss.virtual.plugins.context.file.FileSystemContext.createLinkHandler(FileSystemContext.java:351) at org.jboss.virtual.plugins.context.file.FileHandler.getChildLink(FileHandler.java:301) at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:315) at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:257) at org.jboss.virtual.plugins.context.file.FileHandler.createChildHandler(FileHandler.java:272) at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:535) at org.jboss.virtual.plugins.context.file.FileHandler.getChild(FileHandler.java:281) at org.jboss.virtual.plugins.context.AbstractVFSContext.getChild(AbstractVFSContext.java:164) at org.jboss.virtual.VFS.getChild(VFS.java:228) at org.jboss.test.virtual.test.FileVFSUnitTestCase.testWarLinkUpdate(FileVFSUnitTestCase.java:1070) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163) at org.apache.maven.surefire.Surefire.run(Surefire.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875)
<testcase time="0.014" name="testWarLinkUpdate"> <error type="junit.framework.AssertionFailedError" message="Wrong number of WEB-INF link children">junit.framework.AssertionFailedError: Wrong number of WEB-INF link children at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at org.jboss.test.virtual.test.FileVFSUnitTestCase.testWarLinkUpdate(FileVFSUnitTestCase.java:1101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163) at org.apache.maven.surefire.Surefire.run(Surefire.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875) </error> <system-out>545 DEBUG [CopyFileVFSUnitTestCase] ==== Starting testWarLinkUpdate ==== 545 INFO [CopyFileVFSUnitTestCase] Force copy: true 547 DEBUG [AbstractVirtualFileHandler] IGNORING: Exception while closing connection java.io.FileNotFoundException: /tmp/jboss-vfs-testWarLinkUpdate51572.tmp/WEB-INF (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.&init&(FileInputStream.java:106) at java.io.FileInputStream.&init&(FileInputStream.java:66) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161) at org.jboss.virtual.plugins.context.AbstractURLHandler.closeConnection(AbstractURLHandler.java:121) at org.jboss.virtual.plugins.context.AbstractURLHandler.initCacheLastModified(AbstractURLHandler.java:107) at org.jboss.virtual.plugins.context.AbstractURLHandler.&init&(AbstractURLHandler.java:66) at org.jboss.virtual.plugins.context.file.LinkHandler$ParentOfLink.&init&(LinkHandler.java:67) at org.jboss.virtual.plugins.context.file.LinkHandler.&init&(LinkHandler.java:164) at org.jboss.virtual.plugins.context.file.FileSystemContext.createLinkHandler(FileSystemContext.java:351) at org.jboss.virtual.plugins.context.file.FileHandler.getChildLink(FileHandler.java:301) at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:315) at org.jboss.virtual.plugins.context.file.FileSystemContext.createVirtualFileHandler(FileSystemContext.java:257) at org.jboss.virtual.plugins.context.file.FileHandler.createChildHandler(FileHandler.java:272) at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:535) at org.jboss.virtual.plugins.context.file.FileHandler.getChild(FileHandler.java:281) at org.jboss.virtual.plugins.context.AbstractVFSContext.getChild(AbstractVFSContext.java:164) at org.jboss.virtual.VFS.getChild(VFS.java:228) at org.jboss.test.virtual.test.FileVFSUnitTestCase.testWarLinkUpdate(FileVFSUnitTestCase.java:1070) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163) at org.apache.maven.surefire.Surefire.run(Surefire.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:875) 554 DEBUG [CopyFileVFSUnitTestCase] testWarLinkUpdate took 9ms 554 DEBUG [CopyFileVFSUnitTestCase] ==== Stopping testWarLinkUpdate ==== </system-out> </testcase>
-
19. Re: virtualFile.toURL().openStream() does not provide a JarI
mstruk Sep 9, 2008 5:51 AM (in response to wolfc)Yes, I see it fail on Linux, but not on Windows. It's unrelated to this topic and looks like it's been around for a while (unnoticed by me :)
Can JBVFS-57 be considered fixed? -
20. Re: virtualFile.toURL().openStream() does not provide a JarI
alesj Sep 9, 2008 6:03 AM (in response to wolfc)"mstruk" wrote:
Yes, I see it fail on Linux, but not on Windows.
I get this on Windows as well.
But only when running via mvn, but not in IDEA. -
21. Re: virtualFile.toURL().openStream() does not provide a JarI
starksm64 Sep 9, 2008 12:27 PM (in response to wolfc)Yes, I created https://jira.jboss.org/jira/browse/JBVFS-59 for the testWarLinkUpdate failures.