This NPE should not popup anymore on the current trunk version (we don't use the CommentedProperties anymore). See https://issues.apache.org/jira/browse/JSPWIKI-817
another reason to release 2.10.1 :-) kind regards, Harry On 22 May 2014 18:21, Eric Ladner <[email protected]> wrote: > Edit the jspwiki.properties file by hand and make sure things are sane > (path to wiki folder, temporary folder). Most things are OK as is, but the > paths on your system will have to be in sync with what's in the properties > file. > > > On Thu, May 22, 2014 at 7:26 AM, [email protected] < > [email protected]> wrote: > > > > > Hello ,I have a problem when installing the jspwiki ,I use windows 8.1 , > > jdk7 and tomcat7,and copy the ranamed wiki.war to the webapp directory of > > tomcat ,start tomcat and point to > http://localhost:8080/wiki/Install.jsp ,then > > something happened ,org.apache.jasper.JasperException: An exception > > occurred processing JSP page /Install.jsp at line 46 > > 43: WikiSession wikiSession = wikiContext.getWikiSession(); > > 44: > > 45: // Parse the existing properties > > 46: installer.parseProperties(); > > 47: boolean validated = false; > > 48: String password = null; > > 49: ResourceBundle rb = Preferences.getBundle( wikiContext, > > "CoreResources" ); > > Stacktrace: > > > > > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568) > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470) > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > > > > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) > > > > org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177) > > org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121) > > root causejava.lang.NullPointerException > > > > > org.apache.wiki.util.CommentedProperties.writeProperty(CommentedProperties.java:213) > > > > > org.apache.wiki.util.CommentedProperties.put(CommentedProperties.java:116) > > org.apache.wiki.ui.Installer.parseProperty(Installer.java:320) > > org.apache.wiki.ui.Installer.parseProperties(Installer.java:223) > > org.apache.jsp.Install_jsp._jspService(Install_jsp.java:122) > > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > > > > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) > > > > org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177) > > org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121) > > > > just like that ,I read the source for short , it seems like that it needs > > a file called jspwiki.properties which i think will be created by jspwiki > > itself, but anyway ,I copy one from the source ,and put it in the place > > ,and restart the tomcat ,no accident , exception occers again ,though it > is > > a different one ,but i think the two may be caused by the same > problem.Here > > follows the exception:exceptionorg.apache.jasper.JasperException: > > java.lang.NullPointerException > > > > > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549) > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470) > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > > > > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) > > > > org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177) > > org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121) > > root causejava.lang.NullPointerException > > > > > org.apache.wiki.util.CommentedProperties.writeProperty(CommentedProperties.java:213) > > > > > org.apache.wiki.util.CommentedProperties.put(CommentedProperties.java:116) > > org.apache.wiki.ui.Installer.parseProperty(Installer.java:320) > > org.apache.wiki.ui.Installer.parseProperties(Installer.java:223) > > org.apache.jsp.Install_jsp._jspService(Install_jsp.java:122) > > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > > > > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) > > > > org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177) > > org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121) > > > > I don't know how to solve it . I just do as the document say ,and I > don't > > think the document make such a terrible bug ,maybe there are some common > > senses thich are not known by me ,please give me a hand ,thanks a lot. > > > > > > > > > > > > [email protected] > > > > > > -- > Eric Ladner >
