org.apache.velocity.exception.MethodInvocationException: Invocation of method 'copyDocument' in class com.xpn.xwiki.api.XWiki threw exception com.xpn.xwiki.XWikiException: Error number 3301 in 3: Exception while switching to database xwiki Wrapped Exception: null at /templates/copy.vm[line 51, column 18]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via XWiki.org JIRA by Elena-Oana Tabaranu, 1 year ago
Invocation of method 'copyDocument' in class com.xpn.xwiki.api.XWiki threw exception com.xpn.xwiki.XWikiException: Error number 3301 in 3: Exception while switching to database xwiki Wrapped Exception: null at /templates/copy.vm[line 51, column 18]
via GitHub by mwarhaftig
, 2 years ago
Invocation of method 'render' in class fitnesse.responders.WikiPageResponder$WikiTestPageRenderer threw exception java.lang.NullPointerException at wikiPage.vm[line 1, column 10]
via XWiki.org JIRA by Ludovic Dubost, 1 year ago
Invocation of method 'getDocument' in class com.xpn.xwiki.api.XWiki threw exception java.lang.NullPointerException at xwiki:XWiki.WatchListMessage[line 74, column 31]
via atlassian.com by Unknown author, 1 year ago
Invocation of method 'getLogoDownloadPath' in class com.atlassian.confluence.plugins.spacedirectory.ViewSpaceDirectoryAction threw exception java.lang.NullPointerException at /templates/spacedirectory.vm[line 65, column 59]
via Atlassian JIRA by Carlos Alberto Feijo Schedler [Atlassian], 1 year ago
Invocation of method 'getBodyAsString' in class com.atlassian.confluence.spaces.SpaceDescription$$EnhancerByCGLIB$$f653be5e threw exception java.lang.UnsupportedOperationException: The body of this ContentEntityObject ('') was 'BodyType:XHTML' but was expected to be 'BodyType:WIKI' at /templates/spacedirectory.vm[line 62, column 71]
via Atlassian JIRA by Jeff Turner, 1 year ago
Invocation of method 'getActionName' in class com.gliffy.confluencePlugin.action.ViewLargeDiagramAction threw exception java.lang.NoSuchMethodError: com.atlassian.confluence.pages.Attachment.getRealTitle()Ljava/lang/String; at /templates/gliffy/LargeDiagram.vm\[line 3, column 20]
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'copyDocument' in class com.xpn.xwiki.api.XWiki threw exception com.xpn.xwiki.XWikiException: Error number 3301 in 3: Exception while switching to database xwiki Wrapped Exception: null at /templates/copy.vm[line 51, column 18]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:243)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.