There is a call [fs.checkAccess(this, FileSystem.ACCESS_READ)] that is returning me false. The file is NOT readonly and the owner is Everyone so i guess all permissions are in place (using Windows Vista). Dont know why its happening.
I now am quite sure it has nothing to do with Jackrabbit; sorry about the post. Thanks Dave Brosius-2 wrote: > > I take it then that bioimagene is a standalone application, and not one > that runs in a web server or applet, or container of any kind? > > -----Original Message----- > From: "ndesk1900" <[email protected]> > Sent: Tuesday, July 14, 2009 4:00pm > To: [email protected] > Subject: Re: System.getSecurityManager(); is null > > > 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. > > > -- View this message in context: http://www.nabble.com/System.getSecurityManager%28%29--is-null-tp24472460p24487856.html Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.
