From user-return-22303-apmail-commons-user-archive=commons.apache.org@commons.apache.org Mon Jan 12 11:23:30 2009 Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 43470 invoked from network); 12 Jan 2009 11:23:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2009 11:23:30 -0000 Received: (qmail 63919 invoked by uid 500); 12 Jan 2009 11:23:26 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 63848 invoked by uid 500); 12 Jan 2009 11:23:25 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 63818 invoked by uid 99); 12 Jan 2009 11:23:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2009 03:23:25 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cyril.leitner@gmail.com designates 72.14.204.173 as permitted sender) Received: from [72.14.204.173] (HELO qb-out-1314.google.com) (72.14.204.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2009 11:23:17 +0000 Received: by qb-out-1314.google.com with SMTP id f18so4284940qba.24 for ; Mon, 12 Jan 2009 03:22:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=vMEMfdWkfsA9C+PKXWyrClmNOyROy7Lgv76/FoATTTU=; b=CcxsQnHDwKCkbGWUl1mHba3WE2ZZkb++rcpCVwL1n80m13E/nu7TIlF2OSI3uBkBob Pp65L4OLfA512JL5L0oZncIH3QcwxINKStgn091IHWirwvbb1I5p8PDd50xym5vZ57Gc DItIhsGHBAt7QRQ+jP0ETFVdYZV1KALs+ELQQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=GGfqBcQ/+5IEkvaGpgsic4TgvDZy+XiYzreUFrtz0QUlT0CGCSXL9jIpsljlZPZiWr BP2kWCMRfHd+uk01XdtZQNwi7Slcd5qY60tzk4n4iHok/7TrMPxOH1fDnYa1NZGwua6Z zfD2HJXZJrp6JYDWCEhOFj6BoeR9XXcOdsW+g= Received: by 10.142.222.21 with SMTP id u21mr12067211wfg.235.1231759376079; Mon, 12 Jan 2009 03:22:56 -0800 (PST) Received: by 10.142.148.8 with HTTP; Mon, 12 Jan 2009 03:22:56 -0800 (PST) Message-ID: Date: Mon, 12 Jan 2009 12:22:56 +0100 From: "Cyril Leitner" To: user@commons.apache.org Subject: problem loading file with commons vfs In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_375429_7919899.1231759376061" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_375429_7919899.1231759376061 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I got a pretty frustrating (and probably pretty basic) problem with loading a local file using vfs :-) - I am using the vfs library indirectly through the mondrian olap server library (standalone, not on app server) which calls it to load some of its configuration files - vfs can't read the config file because it can't load a couple of internal classes (DefaultLocalFileProvider, StandardFileSystemManager) - this happens because of a NullPointerException when instantiating the the StandardFileSystemManager (please see below for the exception stacktrace) I checked: - the uri for the config file should be allright (wrong uri would yield some file- or url-exception, right?) - I included all the required dependent jars, at least I am not getting any NoClassDefFoundErrors etc. no more So after checking the jar dependencies and the uri I am actually running out of ideas here :-/ I am running java 1.5 and vfs 1.0 on mac osx leopard and I compile the whole thing with eclipse 3.4.1 ganymede Does anyone have any experience with those kind of problems? Thank you very much in advance! Stacktrace: ...* Caused by: org.apache.commons.vfs.FileSystemException: Could not create a file system manager of class "org.apache.commons.vfs.impl.StandardFileSystemManager".* at org.apache.commons.vfs.VFS.createManager(VFS.java:93) at org.apache.commons.vfs.VFS.getManager(VFS.java:47) at mondrian.rolap.RolapSchema.load(RolapSchema.java:283) ... 10 more *Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS configuration from "jar:file:/Users/cyril/sw/apache/commons-vfs-1.0/commons-vfs-1.0.jar!/org/apache/commons/vfs/impl/providers.xml". * at org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:191) at org.apache.commons.vfs.impl.StandardFileSystemManager.init(StandardFileSystemManager.java:123) 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.commons.vfs.VFS.createManager(VFS.java:82) ... 12 more *Caused by: org.apache.commons.vfs.FileSystemException: Could not create file provider of class "org.apache.commons.vfs.provider.local.DefaultLocalFileProvider".* at org.apache.commons.vfs.impl.StandardFileSystemManager.createInstance(StandardFileSystemManager.java:469) at org.apache.commons.vfs.impl.StandardFileSystemManager.addProvider(StandardFileSystemManager.java:350) at org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:254) at org.apache.commons.vfs.impl.StandardFileSystemManager.configure(StandardFileSystemManager.java:187) ... 18 more *Caused by: java.lang.NullPointerException* at org.apache.commons.vfs.impl.StandardFileSystemManager.createInstance(StandardFileSystemManager.java:464) ... 21 more ------=_Part_375429_7919899.1231759376061--