Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: could not load an entity

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: could not load an entity

Marc Lijour
Hi

I have some issues impeding me to test the latest svn version of xwiki.
Do you know a fix? I want to run xwiki with jetty/hsql using xwiki_start.sh.

I started my investigations by downloading the freshest xwiki version on svn.
For the rest of the story I am using Eclipse, where I imported the project and
I specifed the sources I just downloaded. So far so good.

tips
- I had to manually add junit from the /lib directory to ant classpath (run as
> ant build - the second "ant build" entry) to make ant run. Otherwise it
would always complain about a missing junit class for the cactus target.

Now I can run ant targets. I find the "standalone" target and I run it. It
unzipped the release of jetty stored somewhere (above) and copied the xwiki
files under webapps. That's fine. I find the script/batch_files to start the
wiki, and so do I.

Apparently the database is created but it stops there. I get the following
message in the browser:

---
HTTP ERROR: 500
Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3202 in 3: Exception while reading document
XWiki.XWikiPreferences
Wrapped Exception: could not load an entity:
[com.xpn.xwiki.doc.XWikiDocument#104408758]
---

and then in the logs:
---

02:15:05,297 ERROR P1-19 http://lijour:8080/xwiki/bin/view/Main/WebHome 
GraphVizPlugin:init:90 - Cannot find graphiz dot program at c:/Program
Files/ATT/GraphViz/bin/dot.exe
02:15:05,298 ERROR P1-19 http://lijour:8080/xwiki/bin/view/Main/WebHome 
GraphVizPlugin:init:99 - Cannot find graphiz neato program at c:/Program
Files/ATT/GraphViz/bin/neato.exe
02:15:05,848  WARN P1-19 http://lijour:8080/xwiki/bin/view/Main/WebHome 
JDBCExceptionReporter:logExceptions:71 - SQL Error: 0, SQLState: null
02:15:05,849 ERROR P1-19 http://lijour:8080/xwiki/bin/view/Main/WebHome 
JDBCExceptionReporter:logExceptions:72 - Borrow prepareStatement from pool
failed
02:15:05,850  WARN P1-19 http://lijour:8080/xwiki/bin/view/Main/WebHome 
JDBCExceptionReporter:logExceptions:71 - SQL Error: 0, SQLState: null
02:15:05,851 ERROR P1-19 http://lijour:8080/xwiki/bin/view/Main/WebHome 
JDBCExceptionReporter:logExceptions:72 - Borrow prepareStatement from pool
failed
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading
document XWiki.XWikiPreferences
Wrapped Exception: could not load an entity:
[com.xpn.xwiki.doc.XWikiDocument#104408758]
        at
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:462)
        at
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:157)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:819)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:850)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1854)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:590)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:504)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:248)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:336)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:98)
        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:596)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
        at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
        at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
        at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
        at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
        at org.mortbay.http.HttpServer.service(HttpServer.java:954)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
        at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
---

Thanks.

marc



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

more information

Marc Lijour
These lines could be useful. Apparently a column is missing?

---
Caused by: java.sql.SQLException: Column not found:
XWIKIDOCUM0_.XWD_DEFAULT_TEMPLATE in statement [select xwikidocum0_.XWD_ID as
XWD1_0_, xwikidocum0_.XWD_FULLNAME as XWD2_0_0_, xwikidocum0_.XWD_NAME as
XWD3_0_0_, xwikidocum0_.XWD_TITLE as XWD4_0_0_, xwikidocum0_.XWD_LANGUAGE as
XWD5_0_0_, xwikidocum0_.XWD_DEFAULT_LANGUAGE as XWD6_0_0_,
xwikidocum0_.XWD_TRANSLATION as XWD7_0_0_, xwikidocum0_.XWD_DATE as
XWD8_0_0_, xwikidocum0_.XWD_CONTENT_UPDATE_DATE as XWD9_0_0_,
xwikidocum0_.XWD_CREATION_DATE as XWD10_0_0_, xwikidocum0_.XWD_AUTHOR as
XWD11_0_0_, xwikidocum0_.XWD_CONTENT_AUTHOR as XWD12_0_0_,
xwikidocum0_.XWD_CREATOR as XWD13_0_0_, xwikidocum0_.XWD_WEB as XWD14_0_0_,
xwikidocum0_.XWD_CONTENT as XWD15_0_0_, xwikidocum0_.XWD_VERSION as
XWD16_0_0_, xwikidocum0_.XWD_PARENT as XWD17_0_0_, xwikidocum0_.XWD_CLASS_XML
as XWD18_0_0_, xwikidocum0_.XWD_ELEMENTS as XWD19_0_0_,
xwikidocum0_.XWD_DEFAULT_TEMPLATE as XWD20_0_0_ from xwikidoc xwikidocum0_
where xwikidocum0_.XWD_ID=?]
        at org.hsqldb.jdbc.Util.throwError(Unknown Source)
        at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
        at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
        at
org.apache.commons.dbcp.PoolingConnection.makeObject(PoolingConnection.java:188)
        at
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:792)
        at
org.apache.commons.dbcp.PoolingConnection.prepareStatement(PoolingConnection.java:87)
        ... 51 more



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws