com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [name = [8b63bd71-3f49-47e5-bc69-fe4e4237600c], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [qaworkspace:qaworkspace], type = [WIKI], parent = [null]]]] Wrapped Exception: Error number 3301 in 3: Exception while switching to database [qaworkspace:qaworkspace] Wrapped Exception: Unknown database 'qaworkspace:qaworkspace'

XWiki.org JIRA | Sorin Burjan | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Steps to reproduce: - login as admin or simple user - go to a workspace homepage - click the section highlighted in the attached image - you get a huge stack, beginning with that you see below {code} com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [name = [8b63bd71-3f49-47e5-bc69-fe4e4237600c], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [qaworkspace:qaworkspace], type = [WIKI], parent = [null]]]] Wrapped Exception: Error number 3301 in 3: Exception while switching to database [qaworkspace:qaworkspace] Wrapped Exception: Unknown database 'qaworkspace:qaworkspace' at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:853) at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1449) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1503) at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.hasAccessLevel(XWikiRightServiceImpl.java:596) at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.hasAccessLevel(XWikiRightServiceImpl.java:313) at com.xpn.xwiki.api.XWiki.hasAccessLevel(XWiki.java:1664) at sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) at org.apache.velocity.runtime.parser.node.ASTReference.evaluate(ASTReference.java:530) at org.apache.velocity.runtime.parser.node.ASTAndNode.evaluate(ASTAndNode.java:104) at org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:62) at org.apache.velocity.runtime.parser.node.ASTOrNode.evaluate(ASTOrNode.java:98) at org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:62) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:85) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) {code}

    XWiki.org JIRA | 5 years ago | Sorin Burjan
    com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [name = [8b63bd71-3f49-47e5-bc69-fe4e4237600c], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [qaworkspace:qaworkspace], type = [WIKI], parent = [null]]]] Wrapped Exception: Error number 3301 in 3: Exception while switching to database [qaworkspace:qaworkspace] Wrapped Exception: Unknown database 'qaworkspace:qaworkspace'

    Root Cause Analysis

    1. com.xpn.xwiki.XWikiException

      Error number 3202 in 3: Exception while reading document [name = [8b63bd71-3f49-47e5-bc69-fe4e4237600c], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [qaworkspace:qaworkspace], type = [WIKI], parent = [null]]]] Wrapped Exception: Error number 3301 in 3: Exception while switching to database [qaworkspace:qaworkspace] Wrapped Exception: Unknown database 'qaworkspace:qaworkspace'

      at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc()
    2. com.xpn.xwiki
      XWiki.hasAccessLevel
      1. com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:853)
      2. com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283)
      3. com.xpn.xwiki.XWiki.getDocument(XWiki.java:1449)
      4. com.xpn.xwiki.XWiki.getDocument(XWiki.java:1503)
      5. com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.hasAccessLevel(XWikiRightServiceImpl.java:596)
      6. com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.hasAccessLevel(XWikiRightServiceImpl.java:313)
      7. com.xpn.xwiki.api.XWiki.hasAccessLevel(XWiki.java:1664)
      7 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:616)
      3 frames
    4. Apache Velocity
      ASTBlock.render
      1. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
      2. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
      3. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
      4. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
      5. org.apache.velocity.runtime.parser.node.ASTReference.evaluate(ASTReference.java:530)
      6. org.apache.velocity.runtime.parser.node.ASTAndNode.evaluate(ASTAndNode.java:104)
      7. org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:62)
      8. org.apache.velocity.runtime.parser.node.ASTOrNode.evaluate(ASTOrNode.java:98)
      9. org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:62)
      10. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:85)
      11. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
      11 frames