On other wikis I know there is a way to find how many references there
are to a page, and also a way to see a list of all the pages with links
that lead to a page (i.e. backlinks). I googled for this for xwiki, and
found a couple of posts, but didn't have any luck figuring it out.
Does anyone know if there is a way to get xwiki to do this? I'm just
getting a free site, I'm not running my own server. My wiki is:
http://rpggumbo.xwiki.com
Thanks in advance for any help!
Art
Hi Jérémi,
Not quite - the problem I'm having seems to stem from getDocument usage to collect objects. I've done a bit of testing
I guess to illustrate, here is a snippet of the code I currently use (where the problem seems to be at least):
____________
#set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.SampleBookTest001Class' and obj.name<>'XWiki.SampleBookTest001ClassTemplate' order by obj.name asc")
#foreach ($item in $xwiki.searchDocuments($sql))
#set($oDocObject= $xwiki.getDocument($item))
#set($bentryobj = $oDocObject.getObject("XWiki.SampleBookTest001Class"))
#set($initialReqDate = $oDocObject.display("dtInitialReq","view", $bentryobj))
<tr title="Initial Request Date: ${initialReqDate}">
<td valign="top" width="30%">
[$oDocObject.display("SampleReference","view", $bentryobj)>$oDocObject.name]
</td>
<td colspan="2" width="50%">
<table border-left="1" width="98%">
#set($objects= $oDocObject.getObjects("XWiki.SamplePartEntryClass"))
#foreach($object in $objects)
<tr>
<td width="50%">$oDocObject.display("PartNum","rendered",$object)</td>
<td width="50%">$oDocObject.display("DeliveryRequest","rendered",$object)</td>
</tr>
#end
</table>
</td>
<td valign="top" width="20%">$oDocObject.display("MVSEngineer","view", $bentryobj)</td>
</tr>
#end
____________
What I'm finding is that the $xwiki.getDocument() call is making the time-to-run for these details extremely long (removing the getDocument makes this call exremely fast for 130 documents, whereas normally it takes up to and over two minutes, keeping tomcat at 50% during the collection). You can imagine what happens when more than one person gets a listing (tried convincing powers-that-be about pagination, not an option they're willing to allow for this).
My thinking (maybe incorrect) was, remove the getDocument() call and replace with a plain data query, so that I don't need to gather the actual document object - though maybe that's the wrong way round?
-----Original Message-----
From: jeremi joslin [mailto:jeremi23@gmail.com]
Sent: 21 April 2006 02:36
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] HQL Queries - multiple objects
Hi,
i'm not sure if it's what you want.
the code below search every page which contains a class "XWiki.CandidatClass" except the page "XWiki.CandidatClassTemplate"
and have a property status=$status.
#macro (showCandidat $status)
#set ($sql = ", BaseObject as obj, StringProperty as prop where obj.name=doc.fullName and obj.className='XWiki.CandidatClass' and obj.name<>'XWiki.CandidatClassTemplate' and obj.id=prop.id.id and prop.id.name='status' and prop.value='$status' order by prop.value
desc")
#foreach ($item in $xwiki.searchDocuments($sql)) #set($bentrydoc = $xwiki.getDocument($item)) #set($bentryobj = $bentrydoc.getObject("XWiki.CandidatClass"))
1.1.1 [$bentrydoc.display("name","view", $bentryobj)>$bentrydoc.FullName] #end #end
Is it what you mean?
Jérémi
On 4/20/06, Esbach, Brandon <Esbachb(a)tycoelectronics.com> wrote:
>
>
> Hi all,
>
> I was wondering, is it possible to use a single query to get document
> details and specified linked objects using one query (specific fields
> of those objects would be even better)?
>
> For example,
> A document is created using a class template.
> Inside the document are used two other classes, which are used
> multiple times.
>
> One of those classes is used for critical information that needs to be
> shown in the document listing.
> Currently what I do is to return a query based on the class for
> documents, then loop through those results for document names. Inside
> each loop I'm performing a second loop for the class with critical
> information (shown in the listing). This eventually results in some
> fairly heavy traffic (as you could imagine), which I'd like to resolve.
>
> Not sure if this description is clear enough, but any suggestions or
> idea's would be welcome!
>
>
> Brandon Esbach
> Software Engineer
> M/A-Com Eurotec Operations
> LoughMahon Technology Park,
> Skehard Road,
> Blackrock,
> Cork, Ireland
> Tel +353 21 4808305
>
> --
> You receive this message as a subscriber of the
> xwiki-users(a)objectweb.org mailing list.
> To unsubscribe:
> mailto:xwiki-users-unsubscribe@objectweb.org
> For general help: mailto:sympa@objectweb.org?subject=help
> ObjectWeb mailing lists service home page:
> http://www.objectweb.org/wws
>
>
>
--
Blog: http://www.jeremi.info
LinkedIn: https://www.linkedin.com/profile?viewProfile=&key=1437724
Project Manager XWiki: http://www.xwiki.org
skype: jeremi23 -- msn et gtalk : jeremi23(a)gmail.com
Hi all,
I was wondering, is it possible to use a single query to get document
details and specified linked objects using one query (specific fields of
those objects would be even better)?
For example,
A document is created using a class template.
Inside the document are used two other classes, which are used multiple
times.
One of those classes is used for critical information that needs to be
shown in the document listing.
Currently what I do is to return a query based on the class for
documents, then loop through those results for document names. Inside
each loop I'm performing a second loop for the class with critical
information (shown in the listing). This eventually results in some
fairly heavy traffic (as you could imagine), which I'd like to resolve.
Not sure if this description is clear enough, but any suggestions or
idea's would be welcome!
Brandon Esbach
Software Engineer
M/A-Com Eurotec Operations
LoughMahon Technology Park,
Skehard Road,
Blackrock,
Cork, Ireland
Tel +353 21 4808305
Hi, i made a FAQ Class like the guide says
(http://www.xwiki.org/xwiki/bin/view/DevGuide/FAQs+Tutorial)
The thing is, now im searching some text that is in the FAQ with the
Lucene Search Plugin and it is not founded.
There is a problem ? should be founded? somebody understans why it
should be founded /not founded ?
Thanks
--
A.U.S. Enrique Ferreyra
Centro de Cómputos
Red Megatone - Red Confina
Hi, i try to follow the FAQs Class tutorial, but something i did was wrong..
How i delete the whole thing, i mean the class and forms
(GuiaErroresSI4gl.GuiaErroresSI4glClass
<http://ntecno/xwiki/bin/view/GuiaErroresSI4gl/GuiaErroresSI4glClass>) ?
--
A.U.S. Enrique Ferreyra
Centro de Cómputos
Red Megatone - Red Confina
How can I move the search bar on the wiki page to the left hand side of the
page? I moved every other thing from the right to the left side of the page
but the search bar simply got duplicated, one on the right and the other on
the left. How can I get rid of the one on the right side becase it basically
serves the same purpose as the other one.
--
View this message in context: http://www.nabble.com/move-search-bar-t1475162.html#a3990389
Sent from the XWiki- Users forum at Nabble.com.
All,
I have some problems with html area editor. For example, when I copy a
text from a editor like open office to my wiki, something happens
becouse I can´t change the letter, or the color. When I create a table I
can´t manipulate it, it's hard to enlarge the cells, the columns. If I
paste text enlarges a cell more than the others.
Thanks in advance
Is there any good reason that the user registration form
XWiki.RegisterNewUser uses GET (putting all form fields, including the
password, into the URL's query string)?
More to the point, is there any special reason that I can't or shouldn't
change it to POST?
brain[sic]
Hello,
I just updated from
JVM 1.5.0_05
Tomcat 5.0.28
xWiki 0.9.543
to
JVM 1.5.0_06
Tomcat 5.5.16
xWiki 0.9.840
with MySql *4.0.24 *under Windows XP.
Then I can read the previous xwiki database, but I can't update it. As
soon as I try to save a change I get the error below.
Any idea?
Regards
Pierre Raoul
[...]
INFO: Server startup in 71000 ms
20:43:13,046 WARN http-8080-Processor25
http://localhost:8080/xwiki/bin/edit/Main/InstallerxWiki
Configurator:configure:126
- No configuration found. Configuring ehcache from ehcache-failsafe.xml
found in the classpath: jar:file:/C:/Program%20File
s/Apache%20Software%20Foundation/apache-tomcat-5.5.16/webapps/xwiki/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
20:43:24,000 ERROR http-8080-Processor25
http://localhost:8080/xwiki/bin/edit/Main/InstallerxWiki
XWikiHibernateStore:update
Schema:177 - Schema update for wiki xwiki
21:12:08,750 WARN http-8080-Processor25
http://localhost:8080/xwiki/bin/save/Main/InstallerxWiki
XWikiStatsServiceImpl:addC
ookie:474 - Setting cookie 6PCUESQ34SBN5NBQIZZNWEQSFRPFFENE for name
visitid with domain null and path / and maxage 1333574
21:12:08,859 ERROR http-8080-Processor25
http://localhost:8080/xwiki/bin/save/Main/InstallerxWiki
AssertionFailure:<init>:22
- an assertion failure occured (this may indicate a bug in Hibernate,
but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: possible nonthreadsafe access to session
at
org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:68)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:726)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:320)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)
at
com.xpn.xwiki.store.XWikiHibernateStore.endTransaction(XWikiHibernateStore.java:350)
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHibernateStore.java:982)
at
com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.notify(XWikiStatsServiceImpl.java:209)
at
com.xpn.xwiki.notify.XWikiActionRule.verify(XWikiActionRule.java:51)
at
com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:93)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:268)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
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:127)
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:664
)
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:595)
com.xpn.xwiki.XWikiException: Error number 3213 in 3: Exception while
deleting object XWiki.Admin
Wrapped Exception: possible nonthreadsafe access to session
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHibernateStore.java:986)
at
com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.notify(XWikiStatsServiceImpl.java:209)
at
com.xpn.xwiki.notify.XWikiActionRule.verify(XWikiActionRule.java:51)
at
com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:93)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:268)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
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:127)
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:664
)
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:595)
Wrapped Exception:
org.hibernate.AssertionFailure: possible nonthreadsafe access to session
at
org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:68)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:726)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:320)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)
at
com.xpn.xwiki.store.XWikiHibernateStore.endTransaction(XWikiHibernateStore.java:350)
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHibernateStore.java:982)
at
com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.notify(XWikiStatsServiceImpl.java:209)
at
com.xpn.xwiki.notify.XWikiActionRule.verify(XWikiActionRule.java:51)
at
com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:93)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:268)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
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:127)
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:664
)
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:595)
21:12:09,062 WARN http-8080-Processor25
RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
21:12:13,546 WARN Finalizer JDBCContext:finalize:333 -
afterTransactionCompletion() was never called
21:12:14,718 WARN http-8080-Processor25
http://localhost:8080/xwiki/bin/view/Main/InstallerxWiki
XWikiStatsServiceImpl:addC
ookie:474 - Setting cookie 42GLIZ4WELYCD0NATIHUEUYLBLNALH73 for name
visitid with domain null and path / and maxage 1333568
21:12:14,718 WARN http-8080-Processor25
http://localhost:8080/xwiki/bin/view/Main/InstallerxWiki
XWikiStatsServiceImpl:find
Visit:314 - Found visit with cookie T6ESE8E4VJTZCFROAE9ZTIBXLBG8KYUR in
session 8DEA74E3BA006C10D516BF9A9EC8B299 for request
with cookie 42GLIZ4WELYCD0NATIHUEUYLBLNALH73
21:12:14,734 ERROR http-8080-Processor25
http://localhost:8080/xwiki/bin/view/Main/InstallerxWiki
AssertionFailure:<init>:22
- an assertion failure occured (this may indicate a bug in Hibernate,
but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: possible nonthreadsafe access to session
at
org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:68)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:726)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:320)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)
at
com.xpn.xwiki.store.XWikiHibernateStore.endTransaction(XWikiHibernateStore.java:350)
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHibernateStore.java:982)
at
com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.notify(XWikiStatsServiceImpl.java:209)
at
com.xpn.xwiki.notify.XWikiActionRule.verify(XWikiActionRule.java:51)
at
com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:93)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:268)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
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:127)
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:664
)
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:595)
com.xpn.xwiki.XWikiException: Error number 3213 in 3: Exception while
deleting object XWiki.Admin
Wrapped Exception: possible nonthreadsafe access to session
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHibernateStore.java:986)
at
com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.notify(XWikiStatsServiceImpl.java:209)
at
com.xpn.xwiki.notify.XWikiActionRule.verify(XWikiActionRule.java:51)
at
com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:93)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:268)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
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:127)
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:664
)
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:595)
Wrapped Exception:
org.hibernate.AssertionFailure: possible nonthreadsafe access to session
at
org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:68)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:223)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:726)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:320)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)
at
com.xpn.xwiki.store.XWikiHibernateStore.endTransaction(XWikiHibernateStore.java:350)
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiCollection(XWikiHibernateStore.java:982)
at
com.xpn.xwiki.stats.impl.XWikiStatsServiceImpl.notify(XWikiStatsServiceImpl.java:209)
at
com.xpn.xwiki.notify.XWikiActionRule.verify(XWikiActionRule.java:51)
at
com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:93)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:268)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
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:127)
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:664
)
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:595)
21:12:23,906 WARN Finalizer JDBCContext:finalize:333 -
afterTransactionCompletion() was never called
Hi,
I have installed XWike correctly on a Debian Sarge host, using JBoss and
PostgreSQL and the instructions on www.xwiki.org.
Is there anywhere a tutorial available the guides me into creating aA
*minimal* filled database without all the example, or even an *empty*
database with instructions on how to fill the database so that xwiki can
start up?
In addition, is there a good tutorial (I am afraid that good is: any
tutorial that painstakingly simple and step by step, assuming that *I*
have to follow it ;-)) on how to create my first and only xwiki on the
installation created above?
TIA
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
Hello XWiki community,
I just forward you this question from a Xwiki user ...
-----Message d'origine-----
De : carine(a)mit.edu [mailto:carine@mit.edu]
Envoyé : mercredi 12 avril 2006 00:33
À : community(a)objectweb.org
Objet : xwiki: managing access rights
Hi, I just opened an xwiki, and found an unknown user posting thousands of
links to pron websites.
How can I prevent that?
Tks
Is there a way to manage user/groups in xwiki?? I don't know how to add
users to specific groups or how to create groups, there seems to be no
doc about it on xwiki.org!
Hello,
we are planning to use xwiki as our enterprise wiki. While in test
period, we configured xwiki with a few spaces. Due to lack of time, it
was running but not used for a few weeks. During that period, we did
several tomcat shutdown/restart, and sometimes we had to kill the jvm
(because another webapp was too hungry in terms of memory).
Yesterday, to my surprise, i discovered the wiki had lost all it's
content (i noticed it because there was no logo anymore and no security
config, so it didn't find anymore the attached logo file to the
XWikiPreferences page and anonymous had full rights). Going to the
database, i saw all documents except the xwiki default ones were removed
from table xwikidoc (thought the attachements were still there, but
attached to document numbers not existing anymore).
So my question is, how can this happens? Is it because the wiki was
still configured with the following line commented?
#xwiki.store.hibernate.updateschema=0
meaning the xwiki tables are reinitialized at each startup (note i did
not notice such behaviour in first days)
We can seriously not afford this to happen again in production, so
knowledge about this is welcomed!
regards,
David Delbecq
Hi everybody,
I'm new to xwiki and get in trouble with large attachments (e.g. 30
MB). I got the following exception as I tried to upload such a large
attachment:
Error number 11008 in 11: Exception while parsing uploaded file
Wrapped Exception: the request was rejected because it's size exceeds allowed range
com.xpn.xwiki.XWikiException: Error number 11008 in 11: Exception while parsing uploaded file
Wrapped Exception: the request was rejected because it's size exceeds allowed range
at com.xpn.xwiki.XWikiService.actionUpload(XWikiService.java:135)
Does anybody have an idea?
Kind regards,
Stefan
I haven't checked the cookie content, but as I said I did toss the cookies and clear the cache before retrying it. I even closed all the Firefox tabs that had any pages open from the server and did it again.
On the Nth restart of the server after this, the problem cleared, so debugging will have to wait until it resurfaces. Since this was only a development/test/experimental instance, it wasn't crucial, and wouldn't have been until I started tearing my hair out over having to use IE.
Thanks again. By the way, might there be anything identifiable in the cookie - fingerprints, or a smoking gun, or a deathbed confession - in case I see it again? Looks like that bit of javascript would make a handy bookmarklet...
brain[sic]
-----Original Message-----
From: Ludovic Dubost [mailto:ludovic@xwiki.com]
Sent: Tuesday, April 11, 2006 3:32 PM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] Help with login confusion
What do you have in javascript:alert(document.cookie)
You might want to clean up your cookies and start over
Ludovic
THOMAS, BRIAN M (SBCSI) a écrit :
> We are seeing a vexing problem with our 0.9.840 xwiki:
>
> When logging in, if authentication succeeds, the user gets requested
> page, but $context.user is not set - no Hello brian at top, just
> "Log-in" and "Register" links. If it fails, normal behavior is seen,
> returning to login page.
>
> We have tossed our cookies, cleared the browser cache, and called
> XWiki.flushCache() without effect.
>
> Happens with Firefox but not IE. I don't even know where to start
> looking, since there doesn't seem to be any browser-specific code in
> the path...
>
> brain[sic]
>
>
> ----------------------------------------------------------------------
> --
>
>
> --
> You receive this message as a subscriber of the
> xwiki-users(a)objectweb.org mailing list. To unsubscribe:
> mailto:xwiki-users-unsubscribe@objectweb.org
> For general help: mailto:sympa@objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic
Please help, i maybe put some wrong thing in XWiki Access Rights form
and now the page is broken:
Welcome to the Access Rights editor. Choose a right entry to edit or add
a new right entry:
Topic XWiki.EditRightsHelp does not exist
In the upper rigth
Hello $docuser.display("first_name", "view", $objuser)
<http://ntecno/xwiki/bin/edit/XWiki/$docuser.getURL%28>
Also:
Current Access Rights
$class.name
<http://ntecno/xwiki/bin/edit/XWiki/XWikiPreferences?xpage=editrights&global…>
If i try to add:
You are not allowed to view this document or perform this action.
--
A.U.S. Enrique Ferreyra
Centro de Cómputos
Red Megatone - Red Confina
If the user is registered on your wiki specifically, you can delete
them from the admin page XWiki.XWikiUsers. If they are registered on
xwiki.com, maybe an xwiki.com admin (of which a number are active on
this mailing list) can help - what's the offending user name?
Does this mean spambots have figured out how to register on xwiki.com?
In the long run we might need one of those twisted text image
human-verification things. :)
Regards,
Robin.
On 12/04/06, Carine Simon <casimon(a)mit.edu> wrote:
> Hi Robin, yes, the spam came for a registered user unfortunately...
> Do you know if there is a moderator who could do something about it,
> such as close his account or something?
> Thanks again!
> Carine
>
> ------------------------------------------------------------
>
> Carine Simon
> Office: Home:
> MIT Operations Research Center 70 Pacific Street
> 77 Massachusetts Avenue Apt # 285B
> Bldg. E40-149 Cambridge, MA 02139
> Cambridge, MA 02139
> Tel: 617-253-6185 Tel: 617-388-1754
>
>
> -----Original Message-----
> From: Robin Fernandes [mailto:rewbs.soal@gmail.com]
> Sent: Tuesday, April 11, 2006 7:00 PM
> To: xwiki-users(a)objectweb.org
> Subject: Re: [xwiki-users] xwiki access rights
>
> Hi,
>
> To ensure only registered users can edit or add comments, go to 'More
> Actions' -> 'XWiki Access Rights', then set:
> * Groups: XWiki.XWikiAllGroup, xwiki:XWiki.XWikiAllGroup
> * Users:
> * Access Levels: edit, comment
> * Allow/Deny: Allow
>
> XWiki.XWikiAllGroup represents all users registered on your wiki.
> xwiki:XWiki.XWikiAllGroup represents all users registered on xwiki.com
>
> Then do save access rights.
>
> But I thought this was the default for wikis on xwiki.com now. Is the
> comment spam coming from a registered user?
>
> If you have defined a group of your own, you can restrict to
> XWiki.YourGroup instead of XWiki.XWikiAllGroup.
>
> Regards,
> Robin.
>
> On 11/04/06, carine(a)mit.edu <carine(a)mit.edu> wrote:
> > I just opened an account on xwiki and a wiki, and found an unknown
> user who posted thousands of links to pron websites.
> > How to prevent that? How to make the wiki available only to a specific
> group?
> > THanks
> >
> >
> >
> >
> > --
> > You receive this message as a subscriber of the
> xwiki-users(a)objectweb.org mailing list.
> > To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
> > For general help: mailto:sympa@objectweb.org?subject=help
> > ObjectWeb mailing lists service home page:
> http://www.objectweb.org/wws
> >
> >
> >
>
>
>
I just opened an account on xwiki and a wiki, and found an unknown user who posted thousands of links to pron websites.
How to prevent that? How to make the wiki available only to a specific group?
THanks
I see in some comment on the xwiki.org, the phrase: "If you want to use
them I added 3 internationalisation keys: page timestamp hitscore"
And then in the code reference like this:
$msg.get("timestamp")
How do i define the the text result of this?, where i tell that
"timestamp" is really "Fecha/Hora" for example ?
Thanks, sorry so many posts.
--
A.U.S. Enrique Ferreyra
Centro de Cómputos
Red Megatone - Red Confina
We are seeing a vexing problem with our 0.9.840 xwiki:
When logging in, if authentication succeeds, the user gets requested
page, but $context.user is not set - no Hello brian at top, just
"Log-in" and "Register" links. If it fails, normal behavior is seen,
returning to login page.
We have tossed our cookies, cleared the browser cache, and called
XWiki.flushCache() without effect.
Happens with Firefox but not IE. I don't even know where to start
looking, since there doesn't seem to be any browser-specific code in the
path...
brain[sic]
Hi,
Have you run the reindexing (there is a page also for this I think). The
plugin will only index on new modifications.
Do you see anything in the log file with debug turned on or do you see
the index changing on disk ?
Ludovic
Enrique Ferreyra a écrit :
> Hi, i install Lucene plugin as instruction says, but when "buil index"
> finish indexing, i try i search and always get a no results...
>
> In the xwiki.conf i add
>
> xwiki.plugins=com.xpn.xwiki.plugin.calendar.CalendarPlugin,com.xpn.xwiki.plugin.feed.FeedPlugin,com.xpn.xwiki.plugin.ldap.LDAPPlugin,com.xpn.xwiki.plugin.google.GooglePlugin,com.xpn.xwiki.plugin.alexa.AlexaPlugin,com.xpn.xwiki.plugin.ipresolver.IPResolverPlugin,com.xpn.xwiki.plugin.terraserver.TerraServerPlugin,com.xpn.xwiki.plugin.google.AdWordsPlugin,com.xpn.xwiki.plugin.flickr.FlickrPlugin,com.xpn.xwiki.plugin.mail.MailPlugin,net.jkraemer.xwiki.plugins.lucene.LucenePlugin
>
>
> #Lucene plugin
> xwiki.plugins.lucene.indexdir=c:\\Lucene\\
> xwiki.plugins.lucene.analyzer=org.apache.lucene.analysis.standard.StandardAnalyzer
>
> xwiki.plugins.lucene.indexinterval=300
>
> Then i copy the search form from plugin's zip, this in a test
> enviroment with tomcat 5.5 and postgresql as database in a win 2000,
> the real enviroment is a sun appserver 8 with postgresql in a red hat
> enterprise 4.
>
> Some idea, i need advanced search things, other options ?
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
> To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
> For general help: mailto:sympa@objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic
Hi, i install Lucene plugin as instruction says, but when "buil index"
finish indexing, i try i search and always get a no results...
In the xwiki.conf i add
xwiki.plugins=com.xpn.xwiki.plugin.calendar.CalendarPlugin,com.xpn.xwiki.plugin.feed.FeedPlugin,com.xpn.xwiki.plugin.ldap.LDAPPlugin,com.xpn.xwiki.plugin.google.GooglePlugin,com.xpn.xwiki.plugin.alexa.AlexaPlugin,com.xpn.xwiki.plugin.ipresolver.IPResolverPlugin,com.xpn.xwiki.plugin.terraserver.TerraServerPlugin,com.xpn.xwiki.plugin.google.AdWordsPlugin,com.xpn.xwiki.plugin.flickr.FlickrPlugin,com.xpn.xwiki.plugin.mail.MailPlugin,net.jkraemer.xwiki.plugins.lucene.LucenePlugin
#Lucene plugin
xwiki.plugins.lucene.indexdir=c:\\Lucene\\
xwiki.plugins.lucene.analyzer=org.apache.lucene.analysis.standard.StandardAnalyzer
xwiki.plugins.lucene.indexinterval=300
Then i copy the search form from plugin's zip, this in a test enviroment
with tomcat 5.5 and postgresql as database in a win 2000, the real
enviroment is a sun appserver 8 with postgresql in a red hat enterprise 4.
Some idea, i need advanced search things, other options ?
--
A.U.S. Enrique Ferreyra
Centro de Cómputos
Red Megatone - Red Confina
I get this exception all the time:
14:30:54,578 ERROR http-8080-Processor25
http://localhost:8080/xwiki/bin/view/Main/WebHome
AssertionFailure:<init>:22 - an assertion failure occured (this may
indicate a bug in Hibernate, but is more likely due to unsafe use of the
session)
org.hibernate.AssertionFailure: possible nonthreadsafe access to session
I should worry ? can i avoid that ?
--
A.U.S. Enrique Ferreyra
Centro de Cómputos
Red Megatone - Red Confina
Im sure this was asked several times, but i dont see a answer...
How do i make the xwiki WebHome the initial page of my Tomcat/SunAppserver ?
Thanks, sorry
--
A.U.S. Enrique Ferreyra
Centro de Cómputos
Red Megatone - Red Confina
Hi,
I've written a very simple Firefox extension that adds a few links to
the context menu when you right click a link to an XWiki page. It just
checks to see if the link includes 'xwiki/bin/view', and if so,
manipulates the URL depending on the action you want to perform.
Nothing special, but it might save a page load or two.
http://soal.xwiki.com/xwiki/bin/view/Code/FoXWiki
Any ideas for further functionality are welcome.
Regards,
Robin