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!


Solutions on the web17

Solution icon of xwiki
via XWiki.org JIRA by Sorin Burjan, 1 year ago
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!

Solution icon of xwiki
via XWiki.org JIRA by Sorin Burjan, 1 year ago
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!

Solution icon of xwiki
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!

Solution icon of xwiki
via XWiki.org JIRA by Sorin Burjan, 1 year ago
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

Solution icon of xwiki
via XWiki.org JIRA by Sorin Burjan, 9 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].

Solution icon of xwiki
via XWiki.org JIRA by Bogdan Flueras, 1 year ago
Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = []) #set ($paramtable = $request.getParameterValues($paramname)) #if ($paramtable

Solution icon of xwiki
via XWiki.org JIRA by Vincent Massol, 1 year ago
Error number 3202 in 3: Exception while reading document [titi:XWiki.XWikiPreferences] Wrapped Exception: Error number 3301 in 3: Exception while switching to database titi Wrapped Exception: error executing work

Solution icon of xwiki
via XWiki.org JIRA by Marius Dumitru Florea, 1 year ago
Error number 3202 in 3: Exception while reading document [Sp:XWiki.XWikiPreferences] Wrapped Exception: Error number 3301 in 3: Exception while switching to database Sp Wrapped Exception: error executing work

Solution icon of xwiki
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]

Solution icon of stackoverflow
via Stack Overflow by April
, 1 year ago
Error number 3202 in 3: Exception while reading document [xwiki:XWiki.XWikiServerClass]

Stack trace

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.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:851)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1430)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1473)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2207)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2239)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.XWiki.getDefaultLanguage(XWiki.java:2490)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.XWiki.getLanguagePreference(XWiki.java:2364)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.XWiki.prepareResources(XWiki.java:4042)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.XWikiContext.getMessageTool(XWikiContext.java:635)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.updateSchedulerJobClass(SchedulerPlugin.java:671)[xwiki-platform-scheduler-api-4.0-rc-1.jar:na]
	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.init(SchedulerPlugin.java:115)[xwiki-platform-scheduler-api-4.0-rc-1.jar:na]
	at com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.java:152)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:88)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java:116)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:1114)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:789)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.XWiki.<init>(XWiki.java:734)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:395)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:482)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)[struts-1.2.9.jar:1.2.9]
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)[struts-1.2.9.jar:1.2.9]
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)[struts-1.2.9.jar:1.2.9]
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)[struts-1.2.9.jar:1.2.9]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)[servlet-api-2.5.jar:2.5]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)[servlet-api-2.5.jar:2.5]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1352)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
	at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)[xwiki-platform-wysiwyg-server-4.0-rc-1.jar:na]
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
	at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)[xwiki-platform-webdav-server-4.0-rc-1.jar:na]
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)[xwiki-platform-container-servlet-4.0-rc-1.jar:na]
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)[xwiki-platform-container-servlet-4.0-rc-1.jar:na]
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)[jetty-security-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)[jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.server.Server.handle(Server.java:346)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601)[jetty-http-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)[jetty-http-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)[jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)[jetty-io-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)[jetty-io-7.4.5.v20110725.jar:7.4.5.v20110725]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)[jetty-util-7.4.5.v20110725.jar:7.4.5.v20110725]
	at java.lang.Thread.run(Thread.java:679)[na:1.6.0_22]
Caused by: com.xpn.xwiki.XWikiException: 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.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:668)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:811)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:744)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:726)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	... 61 more
Caused by: com.xpn.xwiki.store.migration.MigrationRequiredException: Database xwiki needs migration(s), it could not be safely used!
	at com.xpn.xwiki.store.migration.AbstractDataMigrationManager.checkDatabase(AbstractDataMigrationManager.java:406)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	at com.xpn.xwiki.store.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:664)[xwiki-platform-legacy-oldcore-4.0-rc-1.jar:na]
	... 64 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

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.