+1
2009/3/12 Janne Jalkanen <[email protected]> > > Simple enough reason: getPage(WikiName,int) is not catching the > PathNotFoundException - look at the catch clause in getPage(WikiName) ;-). > It should do that and return null. > > My bad, sorry! > > (A general question, should we start throwing something like > PageNotFoundExceptions as opposed to returning nulls? That would encourage a > bit safer coding and would eliminate a number of if(getPage() == null) tests > across the codebase.) > > /Janne > > On Mar 12, 2009, at 18:18 , Andrew Jaquith wrote: > > I have the same error on Tomcat too; it's not just Geronimo. :). Haven't >> had the spare cycles this past week to figure out what's going on... I bet >> Janne might know, though. >> >> On Mar 12, 2009, at 11:47, Juergen Weber <[email protected]> wrote: >> >> >>> checked with geronimo-tomcat6-javaee5-2.1.3, there it outputs lots of >>> this >>> below and then en empty page. >>> >>> 16:45:21,180 ERROR [WikiEngine] Unable to fetch page info >>> org.apache.wiki.providers.ProviderException: Unable to get a page >>> at >>> org.apache.wiki.content.ContentManager.getPage(ContentManager.java:10 >>> 59) >>> at org.apache.wiki.PageManager.getPageInfo(PageManager.java:243) >>> at org.apache.wiki.WikiEngine.getPage(WikiEngine.java:1908) >>> >>> Caused by: javax.jcr.PathNotFoundException: The property metadata file >>> was >>> not f >>> ound: D:\tmp\priha\fileprovider\workspaces\jspwiki\pages\Main\Main.info >>> at >>> org.priha.providers.FileProvider.getPropertyInfo(FileProvider.java:67 >>> 0) >>> at >>> org.priha.providers.FileProvider.getPropertyValue(FileProvider.java:6 >>> 96) >>> at >>> org.priha.core.ProviderManager.getPropertyValue(ProviderManager.java: >>> -- >>> View this message in context: >>> http://www.nabble.com/Current-nightly-fails-on-Geronimo-2.1.3-tp22478228p22478904.html >>> Sent from the JspWiki - User mailing list archive at Nabble.com. >>> >>> >
