Hi I downloaded commons-vfs from svn and build a fresh commons-vfs. When i try simple test with webdav and it fails on method getContent. public void testX() throws Exception { String urlPrefix = "webdav://webdavServer/index.html"; FileSystemManager fileSystemManager = VFS.getManager(); FileObject f = fileSystemManager.resolveFile(urlPrefix); f.getContent().getInputStream(); } with exception: rg.apache.commons.vfs.FileSystemException: Could not determine the type of file "webdav://webdavServer/index.html". at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileOb ject.java:1281) at org.apache.commons.vfs.provider.AbstractFileObject.getContent(AbstractFi leObject.java:1017) at com.tecnomen.test.WebDavTest.testX(WebDavTest.java:30) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.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.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUn it3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.ja va:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe stRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe stRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun ner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu nner.java:196) Caused by: java.lang.NullPointerException at org.apache.commons.vfs.provider.webdav.WebdavFileObject.setDavResource(W ebdavFileObject.java:195) at org.apache.commons.vfs.provider.webdav.WebdavFileObject.doAttach(WebdavF ileObject.java:88) at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileOb ject.java:1267) ... 20 more --------------- file index.html exists as getChildren in folder lists it properly. Is it a bug in commons-vfs or do i make something wrong? Some old commons-vfs worked fine with same code. thanks juris
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.