com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Error number 3301 in 3: Exception while switching to database xwiki Wrapped Exception: Database xwiki needs migration(s), it could not be safely used!

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 Vincent Massol, 1 year ago
Error number 3202 in 3: Exception while reading document XWiki.RafTest Wrapped Exception: could not load an entity: [com.xpn.xwiki.doc.XWikiDocument#-562379421]
via XWiki.org JIRA by Ralf Kahrl, 1 year ago
Error number 3202 in 3: Exception while reading document People.Ralf Kahrl Wrapped Exception: Error number 3212 in 3: Exception while loading object {0} of class {1} and number {2} Wrapped Exception: Error number 3212 in 3: Exception while loading
via XWiki.org JIRA by Freeman Jackson, 1 year ago
Error number 3202 in 3: Exception while reading document XWikiTeam.Mind Map2 Wrapped Exception: Error number 3235 in 3: Exception while searching attachments for documents XWikiTeam.Mind Map2 Wrapped Exception: Exception occurred inside setter of com.xpn.xwiki.doc.XWikiAttachment.author
via XWiki.org JIRA by Luca Cappello, 1 year ago
Error number 3202 in 3: Exception while reading document [xwiki:XWiki.TagClass]|Wrapped Exception: Error number 3301 in 3: Excepti on while switching to database xwiki|Wrapped Exception: Database xwiki needs migration(s), it could not be safely used!
via XWiki.org JIRA by Sorin Burjan, 10 months ago
Error number 3202 in 3: Exception while reading document [workspacetemplate:XWiki.SchedulerJobClass] Wrapped Exception: Error number 3301 in 3: Exception while switching to database workspacetemplate Wrapped Exception: Migration of database [workspacetemplate] has failed, it could not be safely used! Database is currently in version [35102] while the required version is [43000].
via XWiki.org JIRA by Martijn Ras, 1 year ago
Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: a different object with the same identifier value was already associated with the session: [com.xpn.xwiki.doc.XWikiDocument#104408758]
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Error number 3301 in 3: Exception while switching to database xwiki Wrapped Exception: Database xwiki needs migration(s), it could not be safely used!
at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.checkDatabase(AbstractDataMigrationManager.java:406)
at com.xpn.xwiki.store.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:664)
at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:811)
at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:744)
at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:726)
at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1430)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1473)
at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2207)
at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2239)
at com.xpn.xwiki.XWiki.isMultiLingual(XWiki.java:5066)
at com.xpn.xwiki.XWiki.getLanguagePreference(XWiki.java:2367)
at com.xpn.xwiki.XWiki.prepareResources(XWiki.java:4042)
at com.xpn.xwiki.XWikiContext.getMessageTool(XWikiContext.java:635)
at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.updateSchedulerJobClass(SchedulerPlugin.java:671)
at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.init(SchedulerPlugin.java:115)
at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.java:152)
at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:88)
at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java:116)
at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:1114)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:789)
at com.xpn.xwiki.XWiki.(XWiki.java:734)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:395)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:482)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
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 javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:346)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at java.lang.Thread.run(Thread.java:679)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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