I upgraded from
version=1.1-rc-1.4635
to
version=1.2-milestone-1.5235
I also moved from the default Jetty servlet container to Tomcat 6.0.14.
I'm using the default HSQLDB setup and driver.
After copying the database files to the new location and tweaking the
nessisary files in WEB-INF, I started up tomcat.
The wiki came up ok, but when trying to view the history of any page, I
get the error message pasted below.
I also tried clearing the DB, importing the defacto XAR file from the
website then importing a backup XAR from my old load. I got the same
error.
I also tried running the "Fix RCS" patch overtop of both of these
attempts in case it was somehow related. Again, same stacktrace.
Error Message displayed (my apologies if this doesn't paste well!):
Error number 4001 in 4: Error while parsing velocity page
Wrapped Exception: Invocation of method 'formatDate' in class
com.xpn.xwiki.api.XWiki threw exception java.lang.NullPointerException @
<unknown template>[45,22]
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while
parsing velocity page
Wrapped Exception: Invocation of method 'formatDate' in class
com.xpn.xwiki.api.XWiki threw exception java.lang.NullPointerException @
<unknown template>[45,22]
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:148)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1240)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1209)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:511)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocimacr
oProxy.java:194)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
.java:170)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:240)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1240)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1209)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:511)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocimacr
oProxy.java:194)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
.java:170)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:107)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:107)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:240)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1240)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1209)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:94)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:157)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
63)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
4)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:584)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Wrapped Exception:
java.lang.NullPointerException
at com.xpn.xwiki.XWiki.formatDate(XWiki.java:4447)
at com.xpn.xwiki.XWiki.formatDate(XWiki.java:4451)
at com.xpn.xwiki.api.XWiki.formatDate(XWiki.java:1968)
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.java:294)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:88)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
)
at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
.java:170)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:240)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1240)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1209)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:511)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocimacr
oProxy.java:194)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
.java:170)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:240)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1240)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1209)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:511)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocimacr
oProxy.java:194)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
.java:170)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:107)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74
)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:107)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:318)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:240)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:143)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1240)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1209)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:94)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:157)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
63)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
4)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:584)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Any help would be appreciated.
Paul D. Grodt
TECORE Wireless Systems
Show replies by date