On the same note, I also have the following questions: The answers will help
implement whichever option we choose:
1) Is there a limit on the number of members that can belong to a group?
2) How can I create a "global" hashmap (xwiki.getHashMap()) that can be
referenced anywhere (any page/space) to retrieve values based on keys?
3) Can I use the $context to add some more values(needed for our project) to
the hashtable?
4) I came across the following code snippet int he Wiki editor of the
PanelWizard:
#set($categoryMap = $xwiki.getHashMap())
#foreach($category in $categoryList)
$!categoryMap.put($category, $xwiki.getArrayList())
#end
I do not understand the use of "!" in the put() method. what do we achieve
with this!
Thanks for all help!
On 5/5/08, Kamna Jain <kammy.scorpi(a)gmail.com> wrote:
>
> Hi All,
>
> This question "might" be related to the thread that has been active in the
> past couple of days about the data model.
> We have a similar situation with the only difference being that we want
> to create lists or collections (like Groups) of certain pre- created
> Objects.
> The Object as a whole may/will belong to more than one such collection -
> which means that if we were to use a Document to link a Collection and its
> contents, then every document will have a COPY of the same object and this
> is definitely not desirable for good performance - Right?
>
> So, in that case, we have 2 alternatives:
> 1) Use the techiniques used in XWiki to create Groups: each group has
> objects of class XWikiGroup with just one field that refers to the Member
> name. OR
> 2) Use XWiki.getHashmap() and add the Collection and its members to the
> hashmap (as the Key and Value resp.)
>
> The XWiki API indicates that the option #2 must be used in xwiki when
> Objects can not be created.
> My Question is:
> -> Even though I could use option #1 and create objects and add them to
> the document that would represent the Collection, can I still use option #2
> because I think that it will provide better performance. Am I right in my
> assumption? What should I do?
>
> Thanks a lot for all help!
>
>
>
Hi All,
This question "might" be related to the thread that has been active in the
past couple of days about the data model.
We have a similar situation with the only difference being that we want to
create lists or collections (like Groups) of certain pre- created Objects.
The Object as a whole may/will belong to more than one such collection -
which means that if we were to use a Document to link a Collection and its
contents, then every document will have a COPY of the same object and this
is definitely not desirable for good performance - Right?
So, in that case, we have 2 alternatives:
1) Use the techiniques used in XWiki to create Groups: each group has
objects of class XWikiGroup with just one field that refers to the Member
name. OR
2) Use XWiki.getHashmap() and add the Collection and its members to the
hashmap (as the Key and Value resp.)
The XWiki API indicates that the option #2 must be used in xwiki when
Objects can not be created.
My Question is:
-> Even though I could use option #1 and create objects and add them to the
document that would represent the Collection, can I still use option #2
because I think that it will provide better performance. Am I right in my
assumption? What should I do?
Thanks a lot for all help!
Hi ,
I am working on Blogs,
I want to add some more links when all the comments for an article is
getting displayed.
That is the page from where one can add more comments and can view all the
previous comments.
When I am putting the cursor on comments then it redirects me to some
xpage=comments.
can anyone help me to know from where the above mentioned page is coming
and where I can get the code for it.
thanks in advance.
Shruti Modi
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Hello
When set up the SMTP server and administrator E-Mail address at the xwiki1.3 version, receive the e-mail of all Chinese to show "???" ?
Any suggestion?
Thanks a lot!
sunjin
Hello!
I wonder if you could help me out a little. I have just reinstalled Xwiki (emptied the tablespace), undeployed the old one and installed xwiki-enterprise-1.3.2 as a standalone war file. I did it by deploying it to the application server. The system runs Oracle Application Server and Oracle Database 10g. I can login (right now I have superadmin enabled), but when I try to create an account, nothing happens. When I check the logs I get:
com.xpn.xwiki.XWikiException: Error number 8002 in 8: Cannot create user XWiki.KaninHare
Wrapped Exception: Error number 3201 in 3: Exception while saving document XWiki.KaninHare
Wrapped Exception: Error number 3212 in 3: Exception while saving property groups of object XWiki.KaninHare
Wrapped Exception: dereferenced: baseproper0_.id.id [select prop.name from com.xpn.xwiki.objects.BaseProperty as prop where prop.id.id = :id and prop.id.name=
:name]
08/05/05 11:06:41 at com.xpn.xwiki.XWiki.createUser(XWiki.java:3156)
08/05/05 11:06:41 at com.xpn.xwiki.XWiki.createUser(XWiki.java:2919)
...
Wrapped Exception:
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.KaninHare
Wrapped Exception: Error number 3212 in 3: Exception while saving property groups of object XWiki.KaninHare
Wrapped Exception: dereferenced: baseproper0_.id.id [select prop.name from com.xpn.xwiki.objects.BaseProperty as prop where prop.id.id = :id and prop.id.name=
:name]
08/05/05 11:06:41 at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:457)
08/05/05 11:06:41 at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97)
...
08/05/05 11:06:41
Wrapped Exception:
com.xpn.xwiki.XWikiException: Error number 3212 in 3: Exception while saving property groups of object XWiki.KaninHare
Wrapped Exception: dereferenced: baseproper0_.id.id [select prop.name from com.xpn.xwiki.objects.BaseProperty as prop where prop.id.id = :id and prop.id.name=
:name]
08/05/05 11:06:41 at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiProperty(XWikiHibernateStore.java:1151)
08/05/05 11:06:41 at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiCollection(XWikiHibernateStore.java:776)
...
08/05/05 11:06:41
Wrapped Exception:
org.hibernate.QueryException: dereferenced: baseproper0_.id.id [select prop.name from com.xpn.xwiki.objects.BaseProperty as prop where prop.id.id = :id and pr
op.id.name= :name]
at org.hibernate.hql.classic.PathExpressionParser.token(PathExpressionParser.java:167)
at org.hibernate.hql.classic.WhereParser.doPathExpression(WhereParser.java:347)
...
<and the list goes on>
Does anyone knows what is wrong here? I think it is related to any modification. When I try to modify a page I get:
Error number 3201 in 3: Exception while saving document Main.WebHome
Wrapped Exception: Error number 3212 in 3: Exception while saving property tags of object Main.WebHome
Wrapped Exception: dereferenced: baseproper0_.id.id [select prop.name from com.xpn.xwiki.objects.BaseProperty as prop where prop.id.id = :id and prop.id.name= :name]
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document Main.WebHome
Wrapped Exception: Error number 3212 in 3: Exception while saving property tags of object Main.WebHome
Wrapped Exception: dereferenced: baseproper0_.id.id [select prop.name from com.xpn.xwiki.objects.BaseProperty as prop where prop.id.id = :id and prop.id.name= :name]
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:457)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97)
...
Wrapped Exception:
com.xpn.xwiki.XWikiException: Error number 3212 in 3: Exception while saving property tags of object Main.WebHome
Wrapped Exception: dereferenced: baseproper0_.id.id [select prop.name from com.xpn.xwiki.objects.BaseProperty as prop where prop.id.id = :id and prop.id.name= :name]
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiProperty(XWikiHibernateStore.java:1151)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiCollection(XWikiHibernateStore.java:776)
...
Wrapped Exception:
org.hibernate.QueryException: dereferenced: baseproper0_.id.id [select prop.name from com.xpn.xwiki.objects.BaseProperty as prop where prop.id.id = :id and prop.id.name= :name]
at org.hibernate.hql.classic.PathExpressionParser.token(PathExpressionParser.java:167)
at org.hibernate.hql.classic.WhereParser.doPathExpression(WhereParser.java:347)
...
Thanks for any help I get.
PS: To get everything working I had to add to hibernate.cfg.xml:
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
Anders Andersson
Hi,
I've just upgraded the XWiki of my company from version 0.9.840 to
version 1.3.2 (latest stable version), using the "database copy" method
to copy data. Everything is OK now, but I cannot rollback any page to a
previous version in the history , even if the page is created in the new
installation (1.3.2).
I've got this error:
WARN web.XWikiAction - Uncaught exception: Error number 3004 in 3:
Exception while manipulating the archive for file new.jpg
Wrapped Exception: Error number 2002 in 2: Error parsing xml
Wrapped Exception: Error on line 1 of document : Content is not allowed
in prolog. Nested exception: Content is not allowed in prolog.
com.xpn.xwiki.XWikiException: Error number 3004 in 3: Exception while
manipulating the archive for file new.jpg
Wrapped Exception: Error number 2002 in 2: Error parsing xml
Wrapped Exception: Error on line 1 of document : Content is not allowed
in prolog. Nested exception: Content is not allowed in prolog.
at
com.xpn.xwiki.doc.XWikiAttachment.getAttachmentRevision(XWikiAttachment.java:513)
at com.xpn.xwiki.XWiki.rollback(XWiki.java:6127)
at com.xpn.xwiki.web.RollbackAction.action(RollbackAction.java:59)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:197)
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:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:595)
Wrapped Exception:
com.xpn.xwiki.XWikiException: Error number 2002 in 2: Error parsing xml
Wrapped Exception: Error on line 1 of document : Content is not allowed
in prolog. Nested exception: Content is not allowed in prolog.
at
com.xpn.xwiki.doc.XWikiAttachment.fromXML(XWikiAttachment.java:327)
at
com.xpn.xwiki.doc.XWikiAttachment.getAttachmentRevision(XWikiAttachment.java:507)
at com.xpn.xwiki.XWiki.rollback(XWiki.java:6127)
at com.xpn.xwiki.web.RollbackAction.action(RollbackAction.java:59)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:197)
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:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:595)
Wrapped Exception:
org.dom4j.DocumentException: Error on line 1 of document : Content is
not allowed in prolog. Nested exception: Content is not allowed in prolog.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)
at
com.xpn.xwiki.doc.XWikiAttachment.fromXML(XWikiAttachment.java:325)
at
com.xpn.xwiki.doc.XWikiAttachment.getAttachmentRevision(XWikiAttachment.java:507)
at com.xpn.xwiki.XWiki.rollback(XWiki.java:6127)
at com.xpn.xwiki.web.RollbackAction.action(RollbackAction.java:59)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:197)
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:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:595)
Nested exception:
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1183)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)
at
com.xpn.xwiki.doc.XWikiAttachment.fromXML(XWikiAttachment.java:325)
at
com.xpn.xwiki.doc.XWikiAttachment.getAttachmentRevision(XWikiAttachment.java:507)
at com.xpn.xwiki.XWiki.rollback(XWiki.java:6127)
at com.xpn.xwiki.web.RollbackAction.action(RollbackAction.java:59)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:197)
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:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:595)
I use a MySQL database (v. 5.0) and Tomcat (v. 6.0.16) as servlet container.
Any suggestion?
Thanks a lot!
Diego
Hi all,
I am afraid the title of this thread is a bit pompous :-)
In fact the question seems to me to be an entry level object oriented
database design, but I am not able to make my mind about this. Your help
will be greatly appreciated!
Here a simple chart about the problem:
http://mire.environmentalchange.net/~webmaster/pdr/dataModelpdR.png
I have two ever-growing pools of data: providers and fishes. By
following the ToDo and FAQ tutorials, I "easily" could create and
instantiate the two classes but, how could I establish the relationship
between providers and fishes?
Thanks!
Ricardo
--
Ricardo Rodríguez
Your EPEC Network ICT Team
After importing the xar for XEM 1.2M2 into an empty mysql database
(per http://manager.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL) I
am experiencing some odd behavior.
I can register as a new user, however, when trying to re-login as the user,
no indication is given that the login was successful. ( I can¹t get to any
edit¹ menus, etc...)
This also applies for Admin/admin ... I don¹t get a login failure but I
don¹t get a change in the panels either.
I did have some trouble getting the import to work (separate issue) - but it
did eventually succeed or so it seemed.
What¹s the best way to reset¹ the database (or otherwise overcome this
failure)?
Hi,
I'm using XWiki Enterprise 1.3.2 are have a simple question.
How do you do enable page section edits?
If I look at something like the sandbox pages, in between the "Training
Zone" heading and the "You can practice editing here..." text, there is a
horizontal rule and just below this on the right is a pencil icon which
links to
http://<host>/xwiki/bin/edit/Sandbox/WebHome?xpage=wysiwyg§ion=1
Examining the page source seems to show that this is the relevant code
<a style='text-decoration: none;' title='Edit section: Training Zone'
href='/xwiki/bin/edit/Sandbox/WebHome?xpage=wysiwyg&section=1'>edit</a>
but I can't find how to demarcate sections within a page and get the 'edit
button'.
I've looked at the User guide, searched the documentation for "section",
looked at the FAQs and searched the user forum.
I found these posts
http://www.nabble.com/Edit-sections-to14756105.html#a14756105http://www.nabble.com/xwiki.section.edit-to13625877.html#a13625877
but I have xwiki.section.edit=1 set already, and I'm using level 1 and 2
titles. I still don't get the 'edit button' on my pages, but it is there on
the sandbox pages.
Am I missing something obvious?
Many thanks
Chris