On Wed, Apr 28, 2010 at 11:54 AM, Emmanouil Batsis (Manos) <[email protected]> wrote: > Oh, doesnt work. The migration code does not build DB entries for blog dirs > i think, so i will work on it ang get back with a patch or something.
Good. If there's a bug in migration, we need to fix it ASAP. - Dave >> Emmanouil Batsis (Manos) wrote: >>> >>> Dave wrote: >>>> >>>> On Wed, Apr 14, 2010 at 11:03 AM, Emmanouil Batsis (Manos) >>>> <[email protected]> wrote: >>>>> >>>>> Using the trunk, I tried clicking 'Media Files' and got the following >>>>> exception in the logs. Is there any chance the blog-specific media >>>>> directories need to be created if they don't exist? Do i need to patch >>>>> this >>>>> or is there anything else going on? Ideas welcome! >>>> >>>>> java.lang.NullPointerException >>>>> at >>>>> >>>>> org.apache.roller.weblogger.ui.struts2.editor.MediaFileView.execute(MediaFileView.java:185) >>>> >>>> Here's some context for that NullPointerException: >>>> >>>> MediaFileDirectory directory; >>>> if (StringUtils.isNotEmpty(this.directoryId)) { >>>> directory = >>>> manager.getMediaFileDirectory(this.directoryId); >>>> } else if (StringUtils.isNotEmpty(this.directoryPath)) { >>>> directory = >>>> manager.getMediaFileDirectoryByPath(getActionWeblog(), >>>> this.directoryPath); >>>> } else { >>>> directory = >>>> manager.getMediaFileRootDirectory(getActionWeblog()); >>>> } >>>> this.directoryId = directory.getId(); // this is line 185 >>>> >>>> It appears that, perhaps, you don't have a media file root directory >>>> for your weblog and therefore directory is null. Can you tell some >>>> more about your install? Was it an upgrade or a fresh install? >>> >>> >>> An upgrade, but the previous installation had no blog dirs (in >>> uploads.dir) for the new version to upgrade towards the media files >>> directory. I think all images where hosted in a remote server, so perhaps >>> directories where never created? >>> >> >> > > > -- > Manos Batsis, Chief Technologist > __ _ > ____ _/ /_ (_)_________ ____ ______ > / __ `/ __ \/ / ___/ ___// __ `/ ___/ > / /_/ / /_/ / (__ |__ )/ /_/ / / > \__,_/_.___/_/____/____(_)__, /_/ > /____/ > http://www.Abiss.gr > 19, Kalvou Street, > 14231, Nea Ionia, > Athens, Greece > > Tel: +30 211-1027-900 > Fax: +30 211-1027-999 > > http://gr.linkedin.com/in/manosbatsis > >
