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

Update MSSQL hibernate mapping file and ship it with xwiki distributions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5.1, 1.6 M2
    • Component/s: Storage
    • Labels:
      None
    • Similar issues:

      Description

      Example of error happening with the old mapping file :

      > Error number 4001 in 4: Error while parsing velocity page
      > /templates/admin.vm
      > Wrapped Exception: Failed to evaluate content with id
      > [/templates/admin.vm]
      > com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing
      > velocity page /templates/admin.vm
      > Wrapped Exception: Failed to evaluate content with id
      > [/templates/admin.vm]
      > at
      > com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:112)
      > at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1596)
      > at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:125)
      > at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)
      > at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
      > at
      > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.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:617)
      > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      > at
      > com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      > at
      > com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      > at
      > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      > at
      > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      > 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:286)
      > at
      > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
      > at
      > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      > at
      > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      > at java.lang.Thread.run(Unknown Source)
      >
      >
      > Wrapped Exception:
      >
      > org.apache.velocity.exception.MethodInvocationException: Invocation of
      > method 'searchDocuments' in class com.xpn.xwiki.api.XWiki threw exception
      > com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception while
      > searching documents with SQL [select distinct doc.space, doc.name from
      > XWikiDocument as doc where 1=1]
      > Wrapped Exception: could not resolve property: space of:
      > com.xpn.xwiki.doc.XWikiDocument [select distinct doc.space, doc.name from
      > com.xpn.xwiki.doc.XWikiDocument as doc where 1=1] @
      > /templates/admin.vm[78,17]
      > at
      > org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
      > at
      > org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
      > at
      > org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:419)
      > at
      > org.apache.velocity.runtime.parser.node.ASTLTNode.evaluate(ASTLTNode.java:79)
      > at
      > org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:64)
      > at
      > org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:86)
      > at
      > org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
      > at
      > org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
      > at
      > org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
      > at
      > org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
      > at
      > org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
      > at
      > org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107)
      > at
      > org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
      > at
      > org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
      > at
      > org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
      > at
      > com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:107)
      > at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1596)
      > at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:125)
      > at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)
      > at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
      > at
      > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.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:617)
      > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      > at
      > com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      > at
      > com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      > at
      > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      > at
      > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      > at
      > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      > 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:286)
      > at
      > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
      > at
      > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      > at
      > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      > at java.lang.Thread.run(Unknown Source)
      > Caused by: com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception
      > while searching documents with SQL [select distinct doc.space, doc.name
      > from XWikiDocument as doc where 1=1]
      > Wrapped Exception: could not resolve property: space of:
      > com.xpn.xwiki.doc.XWikiDocument [select distinct doc.space, doc.name from
      > com.xpn.xwiki.doc.XWikiDocument as doc where 1=1]
      > at
      > com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNamesInternal(XWikiHibernateStore.java:2226)
      > at
      > com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames(XWikiHibernateStore.java:2190)
      > at
      > com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames(XWikiHibernateStore.java:2641)
      > at
      > com.xpn.xwiki.store.XWikiCacheStore.searchDocumentsNames(XWikiCacheStore.java:244)
      > at com.xpn.xwiki.api.XWiki.searchDocuments(XWiki.java:371)
      > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      > at java.lang.reflect.Method.invoke(Unknown Source)
      > at
      > org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
      > at
      > org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
      > ... 43 more

        Attachments

          Activity

            People

            Assignee:
            jvdrean Jean-Vincent Drean
            Reporter:
            jvdrean Jean-Vincent Drean
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: