Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 31038 invoked from network); 9 Feb 2009 17:41:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Feb 2009 17:41:25 -0000 Received: (qmail 35123 invoked by uid 500); 9 Feb 2009 17:41:21 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 34980 invoked by uid 500); 9 Feb 2009 17:41:20 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 34926 invoked by uid 99); 9 Feb 2009 17:41:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 09:41:20 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 17:41:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 97284234C4B1 for ; Mon, 9 Feb 2009 09:40:59 -0800 (PST) Message-ID: <1001616465.1234201259618.JavaMail.jira@brutus> Date: Mon, 9 Feb 2009 09:40:59 -0800 (PST) From: "Adrian Cole (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (VFS-237) NPE at org.apache.commons.vfs.provider.ram.RamFileSystem.attach MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org NPE at org.apache.commons.vfs.provider.ram.RamFileSystem.attach --------------------------------------------------------------- Key: VFS-237 URL: https://issues.apache.org/jira/browse/VFS-237 Project: Commons VFS Issue Type: Bug Affects Versions: 1.0 Environment: unit test Reporter: Adrian Cole I get an NPE occasionally during my unit tests. org.codehaus.cargo.util.CargoException: Failed to create folders for path [ram:/org.codehaus.cargo.container.tomcat.Tomcat4xStandaloneLocalConfigurationTest/container/webapps] at org.codehaus.cargo.util.VFSFileHandler.mkdirs(VFSFileHandler.java:174) at org.codehaus.cargo.container.tomcat.Tomcat4xStandaloneLocalConfigurationTest.setUpManager(Tomcat4xStandaloneLocalConfigurationTest.java:67) at org.codehaus.cargo.container.tomcat.Tomcat4xStandaloneLocalConfigurationTest.setUp(Tomcat4xStandaloneLocalConfigurationTest.java:62) at junit.framework.TestCase.runBare(TestCase.java:125) 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 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.junit.JUnitTestSet.execute(JUnitTestSet.java:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) 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:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Caused by: org.apache.commons.vfs.FileSystemException: Could not determine if file "ram:///org.codehaus.cargo.container.tomcat.Tomcat4xStandaloneLocalConfigurationTest/container/webapps" is writeable. at org.apache.commons.vfs.provider.AbstractFileObject.isWriteable(AbstractFileObject.java:484) at org.apache.commons.vfs.provider.AbstractFileObject.createFolder(AbstractFileObject.java:819) at org.codehaus.cargo.util.VFSFileHandler.mkdirs(VFSFileHandler.java:170) ... 23 more Caused by: org.apache.commons.vfs.FileSystemException: Could not resolve file "ram:///". at org.apache.commons.vfs.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:301) at org.apache.commons.vfs.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:267) at org.apache.commons.vfs.provider.AbstractFileSystem.getRoot(AbstractFileSystem.java:242) at org.apache.commons.vfs.provider.AbstractFileObject.getParent(AbstractFileObject.java:493) at org.apache.commons.vfs.provider.AbstractFileObject.isWriteable(AbstractFileObject.java:474) ... 25 more Caused by: java.lang.NullPointerException at org.apache.commons.vfs.provider.ram.RamFileSystem.attach(RamFileSystem.java:197) at org.apache.commons.vfs.provider.ram.RamFileObject.(RamFileObject.java:61) at org.apache.commons.vfs.provider.ram.RamFileSystem.createFile(RamFileSystem.java:71) at org.apache.commons.vfs.provider.AbstractFileSystem.resolveFile(AbstractFileSystem.java:296) ... 29 more org.apache.commons.vfs.FileSystemException: Could not determine if file "ram:///org.codehaus.cargo.container.tomcat.Tomcat4xStandaloneLocalConfigurationTest/container/webapps" is writeable. at org.apache.commons.vfs.provider.AbstractFileObject.isWriteable(AbstractFileObject.java:484) at org.apache.commons.vfs.provider.AbstractFileObject.createFolder(AbstractFileObject.java:819) at org.codehaus.cargo.util.VFSFileHandler.mkdirs(VFSFileHandler.java:170) at org.codehaus.cargo.container.tomcat.Tomcat4xStandaloneLocalConfigurationTest.setUpManager(Tomcat4xStandaloneLocalConfigurationTest.java:67) at org.codehaus.cargo.container.tomcat.Tomcat4xStandaloneLocalConfigurationTest.setUp(Tomcat4xStandaloneLocalConfigurationTest.java:62) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.