Hi,
Yesterday I updated my XWiki from SVN.
I have a project working on it, and with the latest XWiki, I can't
launch my project.
It seems that there's an issue with my database because I can launch the
standalone XWiki, it works fine. But as soon as I plug it to my
database, I got the following exception. (XWiki.XWikiPreferences is just
an exemple, I got this exception for each document)
This is very odd because my database was working fine until now !
In the source code, it sounds like my "BasicDataSource ds" in
DBCPConnectionProvider.java is null. So I guess it comes from my
configuration, then i tried to check my hibernate.cfg.xml, but all seems
fine.
Does anyone has an idea ?
Arno.
The exception :
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while
reading document XWiki.XWikiPreferences
Wrapped Exception: null
at
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:452)
at
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:160)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:956)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:990)
at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:2233)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:675)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:567)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:282)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:383)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:96)
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:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:118)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
Wrapped Exception:
java.lang.NullPointerException
at
com.xpn.xwiki.store.DBCPConnectionProvider.getConnection(DBCPConnectionProvider.java:209)
at
org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:360)
at
org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:122)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.getRealConnection(XWikiHibernateBaseStore.java:665)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:545)
at
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:352)
at
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:160)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:956)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:990)
at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:2233)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:675)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:567)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:282)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:383)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:96)
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:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:118)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
Hi Nicolas,
On Jun 4, 2007, at 10:39 AM, Nicolas FOURNIER wrote:
> Author: nfournier
> Date: 2007-06-04 10:39:41 +0200 (Mon, 04 Jun 2007)
> New Revision: 3550
>
[snip]
> Log:
> XEM-12
>
This is my third mail on the topic without any answer from you...
Could you please check the previous 2 mails, answer to them, and
follow our development practices?
Note: As a developer you MUST follow the mails on the list from time
to time. There are important information for you, in addition to
questions/remarks asked directly to you.
Thanks
-Vincent
On Jun 3, 2007, at 2:48 PM, Sergiu Dumitriu wrote:
> Author: sdumitriu
> Date: 2007-06-03 14:48:38 +0200 (Sun, 03 Jun 2007)
> New Revision: 3547
>
> Modified:
> xwiki/trunk/web/standard/src/main/webapp/skins/albatross/
> xwikivars.vm
> Log:
> $parent is wrongly set. However, this variable is not used in
> Albatross.
So why do we keep it? :)
-Vincent
Hello,
I have a tricky question. For my ajax suggest, I need to know the class a document belongs to. To be more precise: the user makes a class, let's say TryClass, and then a new document of that class. The class has a property (String let's say) that is displayed as an input. When the user writes something in the input field, my ajax sends a request to a velocity template (something like ?xpage=process&input=aaa).
In process.vm I need to know the class (the USER's class) the document from which the request was made belongs to. I modified the java code like that
BaseClass bclass = getxWikiClass();
String classname;
if(bclass == null) classname = "";
else classname = bclass.getName();
but the classname is actually StringClass (the class of the property) so I thought there might me a way to find out the user class in the velocity template, by using $context or something like that....I don't really know.
Please help.
Thank you,
Evelina Slatineanu