Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19385

Hibernate store reload still does not work on HSQLDB

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 15.3-rc-1, 14.10.8
    • 11.5-rc-1
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    Description

      I had tested XWIKI-19304 only on Tomcat/MySQL, but for a strange reason it seems it's not enough for Jetty/HSQLDB environment (most
      probably have more to do with HSQLDB than Jetty).

      To reproduce:

      {{velocity}}
      $services.component.getInstance('com.xpn.xwiki.internal.store.hibernate.HibernateStore').build()
      {{/velocity}}
      

      Currently getting:

      org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [$services.component.getInstance('com.xpn.xwiki.internal.store.hibernate.HibernateStore').build()]
       at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:139)
       at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:52)
       at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:278)
       at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:181)
       at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:57)
       at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:308)
       at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
       at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:88)
       at org.xwiki.display.internal.DocumentContentAsyncExecutor.executeInCurrentExecutionContext(DocumentContentAsyncExecutor.java:348)
       at org.xwiki.display.internal.DocumentContentAsyncExecutor.execute(DocumentContentAsyncExecutor.java:221)
       at org.xwiki.display.internal.DocumentContentAsyncRenderer.execute(DocumentContentAsyncRenderer.java:107)
       at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)
       at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:273)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
       at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:125)
       at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:67)
       at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:43)
       at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
       at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
       at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:123)
       at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:52)
       at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
       at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
       at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1237)
       at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1374)
       at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1323)
       at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1292)
       at com.xpn.xwiki.api.Document.displayDocument(Document.java:798)
       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.base/java.lang.reflect.Method.invoke(Method.java:566)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
       at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
       at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
       at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)
       at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)
       at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)
       at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
       at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)
       at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
       at org.xwiki.velocity.internal.directive.TryCatchDirective.render(TryCatchDirective.java:86)
       at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
       at org.apache.velocity.Template.merge(Template.java:358)
       at org.apache.velocity.Template.merge(Template.java:262)
       at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
       at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
       at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
       at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
       at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)
       at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)
       at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)
       at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2509)
       at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2487)
       at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)
       at jdk.internal.reflect.GeneratedMethodAccessor204.invoke(Unknown Source)
       at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.base/java.lang.reflect.Method.invoke(Method.java:566)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
       at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
       at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
       at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)
       at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
       at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)
       at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)
       at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)
       at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
       at org.apache.velocity.Template.merge(Template.java:358)
       at org.apache.velocity.Template.merge(Template.java:262)
       at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
       at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
       at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
       at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
       at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)
       at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)
       at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)
       at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2509)
       at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2487)
       at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)
       at jdk.internal.reflect.GeneratedMethodAccessor204.invoke(Unknown Source)
       at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.base/java.lang.reflect.Method.invoke(Method.java:566)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
       at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
       at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
       at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)
       at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
       at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)
       at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)
       at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)
       at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)
       at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
       at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:171)
       at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
       at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
       at org.apache.velocity.Template.merge(Template.java:358)
       at org.apache.velocity.Template.merge(Template.java:262)
       at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
       at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
       at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)
       at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
       at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
       at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
       at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)
       at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)
       at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)
       at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)
       at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2509)
       at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)
       at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:599)
       at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:288)
       at com.xpn.xwiki.web.LegacyActionServlet.service(LegacyActionServlet.java:115)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
       at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1419)
       at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)
       at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1624)
       at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)
       at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
       at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
       at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:61)
       at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
       at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
       at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
       at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
       at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
       at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
       at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
       at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
       at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
       at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
       at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
       at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
       at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:210)
       at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
       at org.eclipse.jetty.websocket.servlet.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:164)
       at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
       at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
       at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:506)
       at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)
       at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)
       at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)
       at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1571)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)
       at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1378)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)
       at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:463)
       at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1544)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)
       at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1300)
       at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
       at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:192)
       at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:51)
       at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
       at org.eclipse.jetty.server.Server.handle(Server.java:562)
       at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:418)
       at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:675)
       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:410)
       at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282)
       at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:319)
       at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)
       at org.eclipse.jetty.io.SocketChannelEndPoint$1.run(SocketChannelEndPoint.java:101)
       at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:412)
       at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:381)
       at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:268)
       at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:138)
       at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:407)
       at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:894)
       at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1038)
       at java.base/java.lang.Thread.run(Thread.java:829)
      Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with namespace [xwiki:Main.RestartHibernate.WebHome]
       at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:289)
       at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)
       at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:131)
       ... 208 more
      Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'build' in  class com.xpn.xwiki.internal.store.hibernate.HibernateStore threw exception org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] at xwiki:Main.RestartHibernate.WebHome[line 1, column 90]
       at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:308)
       at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:235)
       at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
       at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)
       at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
       at org.apache.velocity.Template.merge(Template.java:358)
       at org.apache.velocity.Template.merge(Template.java:262)
       at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)
       ... 210 more
      Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
       at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:275)
       at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)
       at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
       at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175)
       at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286)
       at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243)
       at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
       at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.<init>(InFlightMetadataCollectorImpl.java:173)
       at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:127)
       at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:86)
       at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:479)
       at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:85)
       at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:709)
       at com.xpn.xwiki.internal.store.hibernate.HibernateStore.build(HibernateStore.java:323)
       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.base/java.lang.reflect.Method.invoke(Method.java:566)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
       at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
       at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
       ... 216 more
      Caused by: org.hibernate.HibernateException: Could not create a DBCP pool. There is an error in the Hibernate configuration file, please review it.
       at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:242)
       at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:107)
       at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:246)
       at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
       at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.buildJdbcConnectionAccess(JdbcEnvironmentInitiator.java:146)
       at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:66)
       at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
       at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101)
       at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)
       ... 236 more
      Caused by: java.sql.SQLException: Cannot create PoolableConnectionFactory (Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@95ad0231[file =/database/xwiki_db.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /database/xwiki_db.lck (No such file or directory))
       at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:653)
       at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:531)
       at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:731)
       at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:225)
       ... 244 more
      Caused by: java.sql.SQLException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@95ad0231[file =/database/xwiki_db.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /database/xwiki_db.lck (No such file or directory)
       at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
       at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
       at org.hsqldb.jdbc.JDBCConnection.<init>(Unknown Source)
       at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source)
       at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source)
       at org.apache.commons.dbcp2.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:52)
       at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:374)
       at org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:106)
       at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:649)
       ... 247 more
      Caused by: org.hsqldb.HsqlException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@95ad0231[file =/database/xwiki_db.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /database/xwiki_db.lck (No such file or directory)
       at org.hsqldb.error.Error.error(Unknown Source)
       at org.hsqldb.error.Error.error(Unknown Source)
       at org.hsqldb.persist.LockFile.newLockFileLock(Unknown Source)
       at org.hsqldb.persist.Logger.acquireLock(Unknown Source)
       at org.hsqldb.persist.Logger.open(Unknown Source)
       at org.hsqldb.Database.reopen(Unknown Source)
       at org.hsqldb.Database.open(Unknown Source)
       at org.hsqldb.DatabaseManager.getDatabase(Unknown Source)
       at org.hsqldb.DatabaseManager.newSession(Unknown Source)
       ... 254 more
      

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: