Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 78449 invoked from network); 14 Jul 2009 20:01:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jul 2009 20:01:20 -0000 Received: (qmail 87706 invoked by uid 500); 14 Jul 2009 20:01:30 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 87660 invoked by uid 500); 14 Jul 2009 20:01:30 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 87590 invoked by uid 99); 14 Jul 2009 20:01:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2009 20:01:29 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2009 20:01:20 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MQoBP-0003AE-V0 for dev@jackrabbit.apache.org; Tue, 14 Jul 2009 13:00:59 -0700 Message-ID: <24486768.post@talk.nabble.com> Date: Tue, 14 Jul 2009 13:00:59 -0700 (PDT) From: ndesk1900 To: dev@jackrabbit.apache.org Subject: Re: System.getSecurityManager(); is null In-Reply-To: <24472460.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ndesk1900@gmail.com References: <24472460.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Stack trace:- javax.imageio.IIOException: Can't read input file! at javax.imageio.ImageIO.read(ImageIO.java:1275) at com.bioimagene.imageServer.storage.jackrabbit.IndexImages.addNewImages(IndexImages.java:66) at com.bioimagene.imageServer.storage.jackrabbit.IndexImages.addNewImages(IndexImages.java:85) at com.bioimagene.imageServer.storage.jackrabbit.IndexImages.main(IndexImages.java:38) ndesk1900 wrote: > > Hello all, > > I've written some code that connects to the repository, loads an image > (using ImageIO.read()) and i wish to store that image in the JCR. > > The problem is; as soon as i make a call to ImageIO.read() i am thrown an > exception; reason for the exception is [SecurityManager security = > System.getSecurityManager();] System.getSecurityManager() returning null > somewhere in the File class. I've never really needed to > 'setSecurityManager' as such before; is this something to do with > Jackrabbit? Any ideas how to solve this? > > Thanks > Neville > -- View this message in context: http://www.nabble.com/System.getSecurityManager%28%29--is-null-tp24472460p24486768.html Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.