Re: [xwiki-users] Error for What's New
On Jan 19, 2008, at 1:12 PM, Dean Sellers wrote: Lou, From the exception it appears queries are failing at your database server. Maybe MySql 4.x isn't high enough. I run MySql 5 no problem. This article http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL may help. The part aboug the version of MySql is a bit contradictory though; Note that XWiki will not work with MySQL version 4.0 or lower as one library we're using (C3P0) is not compatible with MySQL 4.x. So either 4.1 is OK, or it isn't according to thismaybe someone who is a bit more familiar under the hood could clarify. I'm not sure either. I wrote this part of the documentation based on http://jira.xwiki.org/jira/browse/XWIKI-287 . -Vincent From: [EMAIL PROTECTED] on behalf of Lou Parisi Sent: Sat 19/01/2008 2:34 PM To: users@xwiki.org Subject: [xwiki-users] Error for What's New I have a new install of xwiki enterprise 1.2 on Linux Tomcat 5.5 with MySQL 4.1. I installed the war file and imported the xar file. Things seem to be generally working but I get an error when I click on the Quick Links - What's New. The page accessed when I click on the link is: xwiki/bin/view/Main/ Dashboard The error displayed is: Error number 4001 in 4: Error while parsing velocity page Main.Dashboard Wrapped Exception: Invocation of method 'searchDocuments' in class com.xpn.xwiki.api.XWiki threw exception com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception while searching documents with SQL web, doc.name, max(ni.date) from XWiki Document as doc , XWiki RCSNode Info as ni where doc.id=ni.id.doc Id and ni.id.version2=1 group by doc.web, doc.name order by max(ni.date) desc? Wrapped Exception: could not execute query @ Main.Dashboard24,28? Any ideas what the problem is. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. winmail.dat___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Error for What's New
Lou Parisi wrote: From the exception it appears queries are failing at your database server. Maybe MySql 4.x isn't high enough. I run MySql 5 no problem. Thanks for the reply. I am running on Centos 4 with the standard RHEL MySQL 4.1 install. I may try to update. I don't know if this will help. The message in the tomcat log provides more information but nothing that I could tell that really helps. This is the first I have worked with xwiki so I am still trying to get grounded. I don't experience any other issues except this. The standard search box seems to work OK. Is there something else I can do to validate if MySQL is working? 13:36:45,567 [http://192.168.1.130:8090/xwiki/bin/view/Main/Dashboard] [http-8090-Processor12] ERROR log.SimpleLog4JLogSystem- Method searchDocuments threw exception for reference $xwiki in template Main.Dashboard at [24,21] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'searchDocuments' in class com.xpn.xwiki.api.XWiki threw exception com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception while searching documents with SQL [select distinct doc.web, doc.name, max(ni.date) from XWikiDocument as doc , XWikiRCSNodeInfo as ni where doc.id=ni.id.docId and ni.id.version2=1 group by doc.web, doc.name order by max(ni.date) desc] Wrapped Exception: could not execute query @ Main.Dashboard[24,28] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286 I get the exact same error with MySQL 4.1. It appears the Table XWikiDocument doesn't exist. Successful install with MySQL 5, HSQLDB, and PostgreSQL. However unable to start the Application with Derby and Oracle10g. -- Regards Gabe Wong NGASI AppServer Manager JAVA AUTOMATION and SaaS Enablement a href=http://www.ngasi.comhttp://www.ngasi.com/a NEW! 8.0 - Centrally manage multiple physical servers ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] property of type document ?
Le 11 janv. 08 à 23:42, Paul Libbrecht a écrit : while editing my class, I felt at least two places where the database type appeared too convoluted to me (and I needed sample code) and where the only thing I'd need is the reference to a document in some space of the same XWiki. Does this exist ? Should I file a feature request ? I did not see an answer to this and only made a bit of progress. Here's an example that helps to explain where I want to go: Let me start with an example: we have a space called Licenses. I want the people that fill the resources to use a pop-up menu to choose among the licenses that are in this space. So the resources have a property of type database-list which I populate with an HQL that lists all licenses select doc.name, doc.title from com.xpn.xwiki.doc.XWikiDocument as doc where doc.web = 'Licenses' and doc.name!='WebHome' the pop-up menu shows nicely the title of the documents as visible choice and the name's of the documents as value choices. Now, I would like, in the presentation of our resources, to write the title of the license property with a link to its document. Unfortunately object.license is a string which is the visible name. Where has gone the value ? Further, I would like to present a localized name, so that the translation of the title and document is used if viewed with a different language. thanks for hints I really like the idea of documents as values, it is very semantic- web-like... paul smime.p7s Description: S/MIME cryptographic signature ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Error for What's New
Lou, From the exception it appears queries are failing at your database server. Maybe MySql 4.x isn't high enough. I run MySql 5 no problem. I am running CentOS 4 and upgraded to MySQL 5.0.54 using the centosplus repository. After this the problem was resolved with no other changes so the issue appears to have been MySQL 4.1. Thanks, Lou Parisi ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users