Hi,
Recently one of my pages just started generating this exception
whenever we went to the page. It prevented any of the page from
rendering
(only the exception was on the page, nothing else) so I can't even
delete the page.
This is bad, but the bigger problem is that I can't search the wiki for
content because when I search for terms that I know are on the
old page, I get the same exception.
To recover the data, I copied the content from the XWD_CONTENT column in
the xwikidoc table and created a new page with the content from the
database (it had information that would have been difficult to replace).
The new page renders properly, the old page is still broken (see below)
and the search is still broken.
Does anyone know what the problem might be and how I can fix it?
If I can't fix the old page, is there a way for me to delete it without
having to go to the page?
This is pretty important, because a lot of the terms on the old page we
want to search on are very common for our project.
Any help greatly appreciated!
Neil
Here is the exception I receive when I try to go to the old page, or if
I try to search the wiki with terms I know are on the old page.
Error number 4001 in 4: Error while parsing velocity page Wrapped
Exception: Invocation of method 'parseContent' in class
com.xpn.xwiki.api.XWiki threw exception class
java.lang.NullPointerException : null
Error number 4001 in 4: Error while parsing velocity page
Wrapped Exception: Invocation of method 'parseContent' in class
com.xpn.xwiki.api.XWiki threw exception class
java.lang.NullPointerException : null
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while
parsing velocity page
Wrapped Exception: Invocation of method 'parseContent' in class
com.xpn.xwiki.api.XWiki threw exception class
java.lang.NullPointerException : null
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:131)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:806)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:254)
at sun.reflect.GeneratedMethodAccessor230.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:267)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:197)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:175)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.java:220)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:230)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocimacr
oProxy.java:172)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
.java:114)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:230)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:223)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:125)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:806)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:87)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:50)
at
com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:244)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.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(Applica
tionFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:127)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
9)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
7)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
at java.lang.Thread.run(Thread.java:534)
Wrapped Exception:
java.lang.NullPointerException
at com.xpn.xwiki.XWiki.parseContent(XWiki.java:772)
at com.xpn.xwiki.api.XWiki.parseContent(XWiki.java:250)
at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:267)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:197)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:175)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.java:220)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55
)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:70)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55
)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfState
ment.java:70)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:230)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:223)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:125)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:806)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:254)
at sun.reflect.GeneratedMethodAccessor230.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invok
e(UberspectImpl.java:267)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java
:197)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReferenc
e.java:175)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference
.java:220)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:230)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocimacr
oProxy.java:172)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective
.java:114)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.jav
a:230)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:223)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRendere
r.java:125)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:806)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:87)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:50)
at
com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:244)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.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(Applica
tionFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:127)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
9)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
7)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
at java.lang.Thread.run(Thread.java:534)
</xwiki/bin/view/Main/WebHome> ?FPRIVATE "TYPE=PICT;ALT=XWiki"
<<Picture (Metafile)>> </xwiki/bin/view/Main/WebHome>
${doc.fullName} <$viewurl>
$msg.get("login")
<../../login/XWiki/XWikiLogin?xredirect=http://pvm09bedesh2:8080/xwiki/b
in/view/OWNERS/ProjectContacts>
$msg.get("register") <../../view/XWiki/RegisterNewUser>
XWiki <http://www.xwiki.org> Version 0.9.840
</xwiki/bin/view/Main/WebHome>
$msg.get("problemoccured")
$msg.get("detailedinformation"):
Error number 3202 in 3: Exception while reading document
OWNERS.ProjectContacts
Wrapped Exception: exception setting property value with CGLIB (set
hibernate.cglib.use_reflection_optimizer=false for more info) setter of
com.xpn.xwiki.doc.XWikiDocument.setArchive
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while
reading document OWNERS.ProjectContacts
Wrapped Exception: exception setting property value with CGLIB (set
hibernate.cglib.use_reflection_optimizer=false for more info) setter of
com.xpn.xwiki.doc.XWikiDocument.setArchive
at
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore
.java:646)
at
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:12
3)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
at com.xpn.xwiki.XWiki.getDocumentFromPath(XWiki.java:637)
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:2428)
at
com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:133)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.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(Applica
tionFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:127)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
9)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
7)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
at java.lang.Thread.run(Thread.java:534)
Wrapped Exception:
org.hibernate.PropertyAccessException: exception setting property value
with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more
info) setter of com.xpn.xwiki.doc.XWikiDocument.setArchive
at
org.hibernate.tuple.PojoTuplizer.setPropertyValuesWithOptimizer(PojoTupl
izer.java:203)
at
org.hibernate.tuple.PojoTuplizer.setPropertyValues(PojoTuplizer.java:173
)
at
org.hibernate.persister.entity.BasicEntityPersister.setPropertyValues(Ba
sicEntityPersister.java:2900)
at
org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:113
)
at
org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java
:510)
at org.hibernate.loader.Loader.doQuery(Loader.java:419)
at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loade
r.java:210)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1312)
at
org.hibernate.loader.entity.EntityLoader.load(EntityLoader.java:116)
at
org.hibernate.loader.entity.EntityLoader.load(EntityLoader.java:101)
at
org.hibernate.persister.entity.BasicEntityPersister.load(BasicEntityPers
ister.java:2461)
at
org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(Defa
ultLoadEventListener.java:350)
at
org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEvent
Listener.java:331)
at
org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventLi
stener.java:113)
at
org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoad
EventListener.java:167)
at
org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEvent
Listener.java:79)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:588)
at
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore
.java:575)
at
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:12
3)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
at com.xpn.xwiki.XWiki.getDocumentFromPath(XWiki.java:637)
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:2428)
at
com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:133)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.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(Applica
tionFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:127)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
9)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
7)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
at java.lang.Thread.run(Thread.java:534)
Caused by: net.sf.cglib.beans.BulkBeanException: Lexical error at line
216, column 117. Encountered: "]" (93), after : ""
at
com.xpn.xwiki.doc.XWikiDocument$$BulkBeanByCGLIB$$9e5f0943.setPropertyVa
lues()
at
org.hibernate.tuple.PojoTuplizer.setPropertyValuesWithOptimizer(PojoTupl
izer.java:200)
... 56 more
Caused by: org.apache.commons.jrcs.rcs.TokenMgrError: Lexical error at
line 216, column 117. Encountered: "]" (93), after : ""
at
org.apache.commons.jrcs.rcs.ArchiveParserTokenManager.getNextToken(Archi
veParserTokenManager.java:800)
at
org.apache.commons.jrcs.rcs.ArchiveParser.jj_consume_token(ArchiveParser
.java:558)
at
org.apache.commons.jrcs.rcs.ArchiveParser.archive(ArchiveParser.java:104
)
at
org.apache.commons.jrcs.rcs.ArchiveParser.load(ArchiveParser.java:55)
at org.apache.commons.jrcs.rcs.Archive.(Archive.java:230)
at
com.xpn.xwiki.doc.XWikiDocument.setArchive(XWikiDocument.java:475)
... 58 more
Hello all,
Is it possible to change the message users get when they do not have
proper access rights i.e. "You need to have the 'comment' right to post a
comment." I restrict comments from anonymous users and I'd like to remind my
users that they may need to login. This would save me from answering
numerous e-mails about "not being able to post comments."
I'd like mine to read like this: You are unable to post a comment
because either you have not registered (<-- with a link to the register
page) or you are not logged in (<-- with a link to the login page).
Is this a change I can make or would an admin have to make the change?
Thanks in advance for the help. I appreciate it.
- Michael
We have just installed Xwiki (0.9.840) and it was working fine, but now
we have a problem.
I think someone may have changed something as Admin.
When I post a new News from the front page for a blog, I can choose a
category. The entry shows up fine
on the front page of the Xwiki. However, when I choose the blog
category, there is nothing there.
It's like I never made an entry.
This is the URL which looks correct to me:
http://my.companyname.com/xwiki/bin/view/Blog/Category?category=Marketing%2…
When I click the permalink and hit edit, it shows the category as selected.
I don't see anything obvious in catalina.out. How can I figure out why
no blog entries show up?
It doesn't matter if I'm logged in as Admin or a regular user.
-Dave
--
Dave Mangot
Terracotta Inc.
650 Townsend St. Suite 325
San Francisco, CA 94103 USA
+1 415 738 4059
dmangot(a)terracottatech.com
This e-mail incorporates Terracotta's confidentiality policy, which is
online at http://www.terracottatech.com/emailconfidentiality.shtml
I was wondering if anyone has gotten xwiki working with resin 3.0.18, i have
tried to follow the resin install docs and tried to follow the xwiki install
docs, but have not been able to get it completely working. Everytime i try
to load the site I get the following:
500 Servlet Exception
java.lang.NullPointerException
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:891)
at org.apache.commons.digester.Digester.parse(Digester.java:1572)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:708)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:670)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:329)
at javax.servlet.GenericServlet.init(GenericServlet.java:69)
at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:600)
at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:152)
at com.caucho.server.webapp.Application.start(Application.java:1599)
at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:587)
at com.caucho.server.deploy.DeployController.restartImpl(DeployController.java:550)
at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.alarm(StartAutoRedeployAutoStrategy.java:176)
at com.caucho.server.deploy.DeployController.handleAlarm(DeployController.java:708)
at com.caucho.util.Alarm.handleAlarm(Alarm.java:350)
at com.caucho.util.Alarm.run(Alarm.java:320)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:492)
at com.caucho.util.ThreadPool.run(ThreadPool.java:425)
at java.lang.Thread.run(Thread.java:595)
------------------------------
Resin-3.0.18 (built Fri, 24 Feb 2006 02:47:03 PST)
Any pointers people can recommend i would greatly appreciate it.
Adam
Not sure if this is the problem, but shouldn't that path be:
http://objectwebcon06.objectweb.org/xwiki/bin/view/Main/WebHome?rev=1.16
6 instead of
http://objectwebcon06.objectweb.org/xwiki/bin/viewrev/Main/WebHome?rev=1
.166
?
-----Original Message-----
From: Xavier MOGHRABI [mailto:xavier.moghrabi@objectweb.org]
Sent: 26 April 2006 12:13
To: xwiki-users(a)objectweb.org
Subject: [xwiki-users] History ViewRev not working
Dear XWiki users and developers,
I've recently experienced a strange behaviour on my patched XWiki
installation.
When I try to view a old revision page from the history menu, I get a
HTTP 404 error.
I seems that this kind of link doesn't work such as:
http://objectwebcon06.objectweb.org/xwiki/bin/viewrev/Main/WebHome?rev=1
.166
Can some body help me to correct my problem ?
Thank you in advance.
--
Xavier MOGHRABI - Consortium ObjectWeb
Phone: +33 4 76 61 52 35 SIP: xmoghrabi(a)213.91.9.210
Dear XWiki users and developers,
I've recently experienced a strange behaviour on my patched XWiki
installation.
When I try to view a old revision page from the history menu, I get a HTTP 404
error.
I seems that this kind of link doesn't work such as:
http://objectwebcon06.objectweb.org/xwiki/bin/viewrev/Main/WebHome?rev=1.166
Can some body help me to correct my problem ?
Thank you in advance.
--
Xavier MOGHRABI - Consortium ObjectWeb
Phone: +33 4 76 61 52 35 SIP: xmoghrabi(a)213.91.9.210
Hi all
I just installed the latest release of xwiki on my box, and found next
assertion in the log file.
15:24:24,718 ERROR http-8080-Processor24
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
at
org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:83)
Configuration: Windows XP Pro SP2, jdk 1.5, Tomcat 5.5, PostgreSQL 8.0
Any body know how to fix it?
--
With b/r,
Viacheslav N Tararin
On 4/22/06, Robin Fernandes <rewbs.soal(a)gmail.com> wrote:
> Hi,
>
> When creating a new template, class based page (e.g. the FAQs), I
> occasionally (maybe 1 in 40-50 times) get a blank document after
> filling out the form and clicking save. I have seen this both on
> xwiki.org/xwiki.com and 2 personal 0.9.840 installations. Several
> other users of these installations have seen this issue too.
>
> Here's an example:
> http://www.xwiki.com/xwiki/bin/view/Doc/HowCanIDynamicallyEscapeOutBackslas…
>
> I created that document from the "create a new FAQ entry" form on
> http://www.xwiki.com/xwiki/bin/view/Doc/WebHome . I was presented
> with the FAQ form, which I filled out. But when I pressed Save,
> frustratingly it just saved a blank document. My form content was
> gone. No object is associated with the doc - it's as if the template
> was completely ignored.
>
> Has anyone else has seen this before?
> Any ideas re what could be causing it?
Hi, sorry to reply late. It's a known bug, fixed in the last version
on the svn. I don't remember the cause of the problem, but I know
Ludovic have fixed it.
Jeremi
--
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
--
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
I have xWiki 0.9.840 up and running now.
Question: I want to have optional sections of the menu bar appear when
members of certain groups are logged in. For example, I'd like to have a
restricted space (which I now have), but not have the link appear on the
left hand menu unless the user is allowed to visit that space.
How can I do this?
--
Adrian Hall
Sr. Product Line Manager, Administration and Identity Management
e. ahall(a)mirapoint.com; t. +1 (408) 720-3856; c. +1 (408) 667-4977
I see the standard WebSearch searches all spaces, regardless of function.
Is there a method by which I can create a WebSearch page that searches just
the current space?
On a related note, is there a function that I can use to create an RSS feed
for what's new for a single space?
-Adrian
--
Adrian Hall
Sr. Product Line Manager, Administration and Identity Management
e. ahall(a)mirapoint.com; t. +1 (408) 720-3856; c. +1 (408) 667-4977
Hello everybody,
because I had trouble with the last stable version 0.9.840 as somebody
out of the community mentioned:
- the changes I made are registered in the database
- they are displayed on the view page
- but they are not on the edit page
...I have installed the unstable build 0.9.1037. This bug is now fixed
but version 0.9.1037 seems to be terribly slow. Does anybody have any ideas?
Kind regards, Stefan
Hi all,
I have installed several wiki-ish/collab apps within my intranet so we
can test drive them and pick one by the end of the month ( twiki,
mediawiki, confluence, xwiki, jspwiki, snipsnap, sharepoint, etc ).
So far xwiki is one of the best from the dev point of view. It is
free, flexible ( makes for a nice platform for quick day-to-day
inhoues apps ), and 100% java. And since we are all geeks, it makes
for a nice toy.
But from the usability POV it lags behind.
* Forms and buttons are not polished ( interaction is awkward and
feedback is sometimes ambigous )
* There is too much on the screen
I really believe you should focus on improving the UI, as it accounts
for a large part of the perceived value... take a look at twiki,
confluence or SnipSnap ( and even mediakiwi and it's sound simplicity
).
Is something on these lines planned for the next release? Dates?
I am tweaking the templates to see how far I can go, but I'd rather
stay aligned with you guys.
Great work ;),
Aldo
--
::::: Aldo Bucchi :::::
mobile (56) 8 429 8300
>Hi All,
>
>Now, this, I think, will allow Xwiki.ahall the ability to edit the rights,
>and do other things that "Admin" can do, but it doesn't. I don't get the
>"Admin" menu option, and I don't get all the extra options under "More
>Actions"
There is a caching issue on group rights. (Take a look here:
http://mail-archive.objectweb.org/xwiki-users/2006-02/msg00102.html)
Try $xwiki.flushCache() in a XWiki document
or restart the tomcat instance.
Bye
Frank
Hi All,
I am attempting to set up a new Wiki for our Intranet running on Jboss
4.0.3SP1 with Tomcat 5.5.16 and MySQL database.
I need access control with the following specs:
Everyone in Admin Group gets to do anything "Admin" can.
People in specific groups get to edit/add content to specific spaces
Registered users get to view everything
Guests get view access only to Main (and I can turn that off if
necessary)
I have a user XWiki.ahall (which is me)
I added this user to XWiki.XWikiAdminGroup, so that group now contains
XWiki.Admin and XWiki.ahall.
I have other groups named (for instance) Xwiki.KBGroup to control access
further. There are a whole bunch of these.
In my Xwiki access rights, I have
Xwiki.XWikiGlobalRights
0: Xwiki.XWikiAdminGroup
-> Group: Xwiki.XWikiAdminGroup
-> Permissions: view,edit,admin,comment
-> Users: <blank>
-> Allow/Deny: Allow
1: Xwiki.XWikiAllGroup
-> Group: Xwiki.XWikiAllGroup
-> Permissions: view
-> Users: <blank>
-> Allow/Deny: Allow
2: Xwiki.XWikiGuest
-> Group: <blank>
-> Permissions: view
-> Users: <blank>
-> Allow/Deny: Allow
(this last one is what I think will allow me to turn on/off guest).
Now, this, I think, will allow Xwiki.ahall the ability to edit the rights,
and do other things that "Admin" can do, but it doesn't. I don't get the
"Admin" menu option, and I don't get all the extra options under "More
Actions"
Is there something I am missing here?
The reason I want to do this is so I can turn on LDAP authentication - our
LDAP server doesn't have an Admin user, so I won't be able to log in as an
admin after I turn LDAP Authentication on, so I need an alternate
Administrator.
--
Adrian Hall
Sr. Product Line Manager, Administration and Identity Management
e. ahall(a)mirapoint.com; t. +1 (408) 720-3856; c. +1 (408) 667-4977
All,
Someone knows if exist a search in which I can see the name of the
document and the content of the document, but only a short content of
the document like google.
In my wiki http://www.siac.net.co/uso I have a search that it shows a
short content of a document, but sometimes it shows a bad content.
Thanks
Hi all,
Is it possible to get VelocityTools v1.2 working with XWiki v0.9.840?
http://jakarta.apache.org/velocity/tools/generic/
In particular I'm trying to get ListTools working.
I tried copying all the jars from the VelocityTools1.2 archive into
the XWiki lib dir, removing the older libs, and editing the
toolbox.xml as appropriate. But this must be causing
incompatibilities, and results in a bunch of exceptions on startup.
Cheers,
Robin.
Ludovic:
Thanks for your explanation, which was very helpful; sorry I haven't replied before this. Looking at the source, it was clear that one directive turned on a "pre" flag and the other didn't, but the implications of this which you explained had not occurred to me, especially since the $xwiki methods that implement them also allowed a flag of the same type.
However, I am already using #includeMacros, as I mentioned, so unfortunately it doesn't solve my problem. I had the issues confused in my mind, but it now appears that it doesn't have to do with which directive I use to include it, because it isn't a question of whether the included content is rendered before or after inclusion, but whether a macro definition file ever loads.
Our wiki is configured as by default up to this point - i.e. the "view" action calls $xwiki.includeForm("$menudoc", false), which (If I understand it correctly) effectively includes the content of $menudoc (which is XWiki.Menu in our case) WITHOUT any interpretation.
Our copy of XWiki.Menu has been modified to use #includeTopic("Main.FoldingMenu") (causing Main.FoldingMenu to be interpreted in a separate context BEFORE being inserted into the including document -- correct?).
Main.FoldingMenu uses #includeMacros("Main.MenuMacro") and, after setting up the necessary stylesheets and javascript functions, calls the one macro defined in it, #doMenu, on $doc, where the top-level menu entry objects reside.
When the wiki is started, the #includeMacros directive apparently fails, because the name "doMenu" is not the name of a macro definition in the context when called, so that instead of executing the macro, Velocity simply renders it as #doMenu(com.xpn.xwiki.api.Document@7a3a97). So the content of the menu document is being rendered (witness the expansion of its single argument, which was $doc), but at the time that it is, the macro definition was not in the context.
After some activity ranging from just opening Main.FoldingMenu as a regular document (calling the "view" action on it) to opening it in the editor to actually saving a new version of it, the macro document finally loads and the macro executes. Friday (while I was out, naturally), none of that worked for the people who were here and they replaced it with a hard-coded list.
First, it appears that I need to check the logs to see whether there was some failure in the loading of the macro document and troubleshoot that. It may be that a permission problem exists, though I doubt that this could have been the problem - first, every time the problem was corrected, the person who seems to have fixed the problem also experienced it first, and second, the history of the menu document shows that they apparently tried some manipulations of this sort without effect. Neither of these discounts the idea, of course, so neither will I, but I'm not hopeful.
Meanwhile, has anyone any ideas? I will, of course, try adding the macro definition to macros.vm, but I suspect that this would only decrease the incidence of the problem rather than eliminating it. It happens seldom enough that it's hard to reproduce as it is, and can't be done at all without restarting the wiki, which is getting to be fairly popular.
For one thing, is there a programmatic way to know when an #include directive fails, or do I have to examine the logs? I wouldn't argue for muddying a template language with such a feature, certainly, but if there's some background magic available to administrative users for troubleshooting purposes, it could be useful. I think there's probably still a little too much that needs server administrator access to troubleshoot.
brain[sic]
-----Original Message-----
From: Ludovic Dubost [mailto:ludovic@xwiki.com]
Sent: Sunday, April 09, 2006 8:48 AM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] #include<what?>
Hi,
#includeTopic -> includes and executes any code in the context of the
INCLUDED document (variables are the one from the included document) #includeForm -> includes and executres any code in the context of the
INCLUDING document (variables are the one from the including document) #includeMacros -> used to embed macros to solve the problem that you are
having
Another way to solve it is to put your macro in /templates/macros.vm and
restart XWiki. This will make your macro global. It's actually better
for performance.
Ludovic
THOMAS, BRIAN M (SBCSI) a écrit :
> The various kinds of #include directives have always puzzled me, but
> now I think I may have a serious need to understand them.
>
> I have seen that some of them are implemented by methods on $xwiki
> (includeForm, includeTopic, in two incarnations each - with or without
> rendering, I assume), but I have no understanding of why they are all
> different. Add in the parse directives and XWiki methods and I am
> completely confused.
>
> Can anyone give me a synopsis of what these are all about? I
> understand this much: that Velocity directives are read once at parse
> time, whereas methods can be invoked multiple times in a loop.
>
> The problem I need to solve, however, may be a Velocity problem or a
> caching problem. A menu is called from the left-side navigation menu
> XWiki.Menu. I have included it via #includeTopic, and it use
> #includeMacros to bring in a macro that reads a document with a list
> of objects describing menu items, with a menu label, an href, and a
> long description. If the href field is a complete URL, it's output as
> a plain link; if it's a local Wiki document, it's output with XWiki's
> bracket syntax and its place is held in the menu as a navigational
> aid. If it is also in the Web reserved for such documents, it's a
> submenu, and the menu macro is called again (thanks to the earlier
> thread, I did use a copy of the argument, which is call-by-reference,
> and saved headaches).
>
> All of this works just fine except the first time it's called after
> the server starts. Instead of the menu text, all I see is the
> invocation of the macro. Viewing the menu document directly (as I did
> when I sought to debug it) fixes the problem for all until the next
> reboot.
>
> So what is this? I read some discussion on the velocity-user mailing
> list about when and how macro templates are loaded, but didn't
> understand it well; in addition, there is all this confusion about
> when to include in what way.
>
> 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
Frank:
Thanks. Now, to refine the question a bit: is the set of columns available within each virtual table equivalent to the set of all the Velocity "properties" of each object - which means, as I understand it, all attributes represented by public methods named "get" and "set", declared locally or inherited, by the object's class? It doesn't seem that I have been able to depend on that, but I've gotten pretty turned around dealing with all the metadata and meta-metadata.
It seems that the "virtual" schema is supported by the data in the documented schema, though it's not clear that everything needed is there.
Further, I don't think I quite understand how to parse the returned result. From the javadoc, I can see that XWiki.search() returns a java.util.List. Through Java reflection I find that the List is actually a java.util.ArrayList, and that each ArrayList element is a java.lang.Object, which is itself an array of java.lang.Object, or depending on how I look at it, of java.lang.reflect.Field. I get the expected number of objects in the array(the number of requested fields in the query), and each one is of the expected type, with the expected value, which is great, but it doesn't seem from the analysis that it ought to. Again, I've probably just confused myself unnecessarily...
The real difficulty I have is in directly addressing any field of a returned row. I can loop through it and see what each one is, but without doing that and assigning each field based on the iteration count, I can't just use each field as I can with the returned list from getObjects. I've tried using the get() method that takes an integer index, but that doesn't seem to work; among other things, there's also another get() that takes a string for the field name. I haven't tried that one...
Thanks again for a clear answer; this message is both further question and open-ended comment, in hope of stimulating more discussion in order to gain a more solid understanding of what can be done. However much I love to tinker, I am not primarily a developer but an architect and designer, so I need to concentrate on making sure that the tools our developers use are up to the jobs that I give them. It does appear that XWiki is, although the metadata gymnastics needed to navigate the schema are probably a bit too tedious for the average application programmer, let alone the average wiki user. I'm seriously considering building a tool to make those queries more straightforward, though my job rarely permits such luxuries as merely improving the productivity of all our staff...
Of course, I can always go to the sources, and I will if I don't get an answer here (and if I have time). More than that, I will share it with the list, on the off chance that someone else needs it...
brain[sic]
-----Original Message-----
From: Frank Häfemeier [mailto:frank@haefemeier.net]
Sent: Thursday, March 23, 2006 10:39 AM
To: xwiki-users(a)objectweb.org
Subject: AW: [xwiki-users] SQL hair-pulling
>As mentioned in an earlier message, I got into the $xwiki.search()
>world yesterday, and am thoroughly confused.
>
>The main problem seems to be that the XWiki database schema and the
>schema used in all of the $xwiki.search() queries I have found are
>completely disjoint.
>
>Instead of the documented tables and columns, what seems to be used is
>a schema which reflects the object model within XWiki. This would
>really be convenient if true; is it?
This is right.
Bye
Frank
Hi all,
I have tried to implement Tagging without success.
I am using the document:
http://www.xwiki.org/xwiki/bin/view/AdminGuide/ImplementingTagging
When I am saving the TagMacro, I get the following error:
"Your request has been blocked. If you feel this is an error, please contact us at webmaster at xwiki dot com. Thanks."
I would like to start from scratch (I may have made a mistake). But it sounds we can not delete a class.
What can I do?
Hi all,
I have started implementing tagging in my environment using the instructions :
http://www.xwiki.org/xwiki/bin/view/AdminGuide/ImplementingTagging
Unfortunatly when I am creating the TagMacro page I get the error message:
"Your request has been blocked. If you feel this is an error, please contact us at webmaster at xwiki dot com. Thanks."
I wanted to start from scratch again because I was not sure I created the Tag Class correctly, but I found that it was not possible to get rid off a class.
What can I do?
Hi,
When creating a new template, class based page (e.g. the FAQs), I
occasionally (maybe 1 in 40-50 times) get a blank document after
filling out the form and clicking save. I have seen this both on
xwiki.org/xwiki.com and 2 personal 0.9.840 installations. Several
other users of these installations have seen this issue too.
Here's an example:
http://www.xwiki.com/xwiki/bin/view/Doc/HowCanIDynamicallyEscapeOutBackslas…
I created that document from the "create a new FAQ entry" form on
http://www.xwiki.com/xwiki/bin/view/Doc/WebHome . I was presented
with the FAQ form, which I filled out. But when I pressed Save,
frustratingly it just saved a blank document. My form content was
gone. No object is associated with the doc - it's as if the template
was completely ignored.
Has anyone else has seen this before?
Any ideas re what could be causing it?
Cheers,
Robin
Hi, sorry the repost.
I follow the instructions for creating a class, like
http://www.xwiki.com/xwiki/bin/view/XWiki/FAQClass?language=en
How can i delete this class?
Also, anybody knows why this documents are not indexed by the lucene
plugin ?
Please, thanks.
--
A.U.S. Enrique Ferreyra
Centro de Cómputos
Red Megatone - Red Confina
Hi,
I have XWiki 0.9.840 running in a local intranet and have a big problem
with some documents. These documents contain several objects with a
specific set of properties. One of the property is a DBStringListClass.
For a few days I changed the behaviour from single to multiple
selection.
After that everything seems fine until I restarted xwiki.
Now some of the documents throw the following exceptions:
Error number 4001 in 4: Error while parsing velocity page
Wrapped Exception: Invocation of method 'parseContent' in class com.xpn.xwiki.api.XWiki threw exception class java.lang.NullPointerException : null
Error number 3202 in 3: Exception while reading document LFS.FontconfigInstall
Wrapped Exception: Error number 3212 in 3: Exception while loading object LFS.FontconfigInstall
Wrapped Exception: Error number 3212 in 3: Exception while saving property component of object LFS.FontconfigInstall
Wrapped Exception: No row with the given identifier exists: [com.xpn.xwiki.objects.DBStringListProperty#
The page isn't displayed. For this I cannot repair the documents.
As I understand it right the problem is an incorrect relation between a specific
set of datas for the object on the document.
Is it possible to get the documents back to work?
Bye
Frank
--
Dipl. Inform. Frank Häfemeier <frank(a)haefemeier.net>
----------------------------------------------------
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
Thanks for the ideas.
Adding the same menu for the current page when the context menu does
not apply to a link is a particularly good idea, will do that asap.
More elaborate interaction with the wiki is also an interesting point,
will look into that.
The strings are already localized using Firefox's locale system, so
adding more languages should be a breeze.
Yes it would be very beneficial to get this into source control. Any
chance of getting a directory on the XWiki svn repository? :)
If not, I'll start applying to sourceforge & co.
On 10/04/06, Enrique Ferreyra <eferreyra(a)gmail.com> wrote:
> Nice idea!!!!
>
> It has good potential, remeber Tortoise CVS/SVN !!
>
> Right now appoint a feature: Put some file to change the language of
> the menu, maybe just change the descriptions of the menu items will do
> the job.
>
> Thanks Robin
>
>
> Robin Fernandes escribió:
>
> >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
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >
> >--
> >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
> >
> >
>
> --
> A.U.S. Enrique Ferreyra
> Centro de Cómputos
> Red Megatone - Red Confina
>
>
Hi Robin
Thanks a lot I think It's a great tool.
Unfortunately our Wiki is installed with "wiki" as application name so our path is
'wiki/bin/view' instead of 'xwiki/bin/view'
Do you think it would be possible to make that extension configurablewhat path it should look for?
Regards,
Leo
-----Original Message-----
From: Robin Fernandes [mailto:rewbs.soal@gmail.com]
Sent: Montag, 10. April 2006 15:49
To: Enrique Ferreyra; xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] XWiki Firefox extension
Thanks for the ideas.
Adding the same menu for the current page when the context menu does not apply to a link is a particularly good idea, will do that asap.
More elaborate interaction with the wiki is also an interesting point, will look into that.
The strings are already localized using Firefox's locale system, so adding more languages should be a breeze.
Yes it would be very beneficial to get this into source control. Any chance of getting a directory on the XWiki svn repository? :) If not, I'll start applying to sourceforge & co.
On 10/04/06, Enrique Ferreyra <eferreyra(a)gmail.com> wrote:
> Nice idea!!!!
>
> It has good potential, remeber Tortoise CVS/SVN !!
>
> Right now appoint a feature: Put some file to change the language of
> the menu, maybe just change the descriptions of the menu items will do
> the job.
>
> Thanks Robin
>
>
> Robin Fernandes escribió:
>
> >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
> >
> >
> >
> >---------------------------------------------------------------------
> >---
> >
> >
> >--
> >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
> >
> >
>
> --
> A.U.S. Enrique Ferreyra
> Centro de Cómputos
> Red Megatone - Red Confina
>
>
Hi, me again, i have this problem:
I enter xwiki as XWiki.Admin
I do something
I close web browser (Firefox)
I open web browser (Firefox)
I go to XWiki.WebHome
I am logged as XWiki.Admin !!!!
Worst, i close web browser, i close my linux (kde) session, i enter
again and the same happens...
How can avoid that, how i can prevent the session persist when browser
restarts ... ?
Thanks
--
A.U.S. Enrique Ferreyra
Centro de Cómputos
Red Megatone - Red Confina
...moved this to the users list
Hi!
In my xwiki 0.9.840 installation I have set the user validation flag on but newly registered users can still log in without activating their accounts. So to say, if user is marked inactive (checked this in db too) he still can log in. I noticed this in xwiki.com too where I registered and directly logged in without "validating" my registration.
Is this the intended behaviour for user account validation and if so, what is it actually for? If this is not a bug, what's the best way - if any - to disable a user account without removing it. Putting it into access denied -group?
:pete
Hi all!
I'm trying to develop a plugin to interact with Jena (
http://jena.sourceforge.net), a semantic web framework.
I developed the plugin as I documented it in the plugin development
tutorial. I have a hello() method which works perfectly. however when I try
to call this method:
public List<String> test1(){
Vector<String> uris = new Vector<String>();
OntModel model = ModelFactory.createOntologyModel(
OntModelSpec.RDFS_MEM_RDFS_INF, null );
model.read("
http://www.dcs.shef.ac.uk/~zzc05jb/environmentOntology/pollutionInventory.r…
");
model.read("
http://www.dcs.shef.ac.uk/~zzc05jb/environmentOntology/instances/disposalRe…
");
Iterator iter = model.listIndividuals();
while(iter.hasNext()){
OntResource ontClass = (OntResource)iter.next();
uris.add(ontClass.getURI());
}
return uris;
}
I get this exception:
Error number 4001 in 4: Error while parsing velocity page
Tests.OntologyPlugin Wrapped Exception: Invocation of method 'test1' in
class secoia.plugin.OntologyPluginApi threw exception class
java.lang.NoSuchFieldError : actualValueType
I can't really make sense of it. This method works if i use it form a
classic Java application. I copied all the Jena jar files to the
webapps/xwiki/WEB-INF/lib directory. Moreover, I don't know where this
actualValueType comes from. Does it come from XWiki?
Any clue on this problem?
Thanks a lot!
--
_ _ Julien Bourdon
(o)(o)--. http://purl.org/net/JulienBourdon
\../ ( ) self isAddictedTo:(#Squeak&#linux)
m\/m--m'`--. ^true
The various kinds of #include directives have always puzzled me, but now
I think I may have a serious need to understand them.
I have seen that some of them are implemented by methods on $xwiki
(includeForm, includeTopic, in two incarnations each - with or without
rendering, I assume), but I have no understanding of why they are all
different. Add in the parse directives and XWiki methods and I am
completely confused.
Can anyone give me a synopsis of what these are all about? I understand
this much: that Velocity directives are read once at parse time,
whereas methods can be invoked multiple times in a loop.
The problem I need to solve, however, may be a Velocity problem or a
caching problem. A menu is called from the left-side navigation menu
XWiki.Menu. I have included it via #includeTopic, and it use
#includeMacros to bring in a macro that reads a document with a list of
objects describing menu items, with a menu label, an href, and a long
description. If the href field is a complete URL, it's output as a
plain link; if it's a local Wiki document, it's output with XWiki's
bracket syntax and its place is held in the menu as a navigational aid.
If it is also in the Web reserved for such documents, it's a submenu,
and the menu macro is called again (thanks to the earlier thread, I did
use a copy of the argument, which is call-by-reference, and saved
headaches).
All of this works just fine except the first time it's called after the
server starts. Instead of the menu text, all I see is the invocation of
the macro. Viewing the menu document directly (as I did when I sought
to debug it) fixes the problem for all until the next reboot.
So what is this? I read some discussion on the velocity-user mailing
list about when and how macro templates are loaded, but didn't
understand it well; in addition, there is all this confusion about when
to include in what way.
brain[sic]
Yep, that's fixed it. Many thanks!
-----Original Message-----
From: Robin Fernandes [mailto:rewbs.soal@gmail.com]
Sent: 05 April 2006 17:50
To: xwiki-users(a)objectweb.org
Subject: Re: Groups (was [xwiki-users])
Hi,
Since you're using 0.9.840, could it be a group cache issue? If you recently added the user to a fifth group but didn't refresh the cache, that could explain it.
See http://mail-archive.objectweb.org/xwiki-users/2006-02/msg00102.html
Regards,
Robin
On 05/04/06, Esbach, Brandon <Esbachb(a)tycoelectronics.com> wrote:
> Hi me again,
>
> This works perfectly for a user with 4 or less groups but, if there are more than 4 groups, it only returns 4 groups? Or maybe there is another problem causing this?
>
> -----Original Message-----
> From: Esbach, Brandon
> Sent: 04 April 2006 08:53
> To: 'xwiki-users(a)objectweb.org'
> Subject: RE: [xwiki-users]
>
> Thanks, that's perfect!
>
> -----Original Message-----
> From: jeremi joslin [mailto:jeremi23@gmail.com]
> Sent: 04 April 2006 02:20
> To: xwiki-users(a)objectweb.org
> Subject: Re: [xwiki-users]
>
> Oh, maybe that change in the last version.
>
> try :
> $context.xWiki.groupService.listGroupsForUser($context.user,
> $context.context)
>
> Jérémi
>
> On 4/4/06, Esbach, Brandon <Esbachb(a)tycoelectronics.com> wrote:
> > Hi,
> > Thanks for the fast reply.
> >
> > This would be on a local Xwiki installation, ver 0.9.840
> >
> > I get an error when I run that:
> > Error number 4001 in 4: Error while parsing velocity page
> > XWiki.XWikiClasses Wrapped Exception: Invocation of method
> > 'listGroupsForUser' in class
> > com.xpn.xwiki.user.impl.xwiki.XWikiGroupServiceImpl threw exception
> > class java.lang.NullPointerException : null
> >
> >
> > -----Original Message-----
> > From: jeremi joslin [mailto:jeremi23@gmail.com]
> > Sent: 03 April 2006 16:37
> > To: xwiki-users(a)objectweb.org
> > Subject: Re: [xwiki-users]
> >
> > On 4/3/06, Esbach, Brandon <Esbachb(a)tycoelectronics.com> wrote:
> > >
> > >
> > > Hi Folks
> > >
> > > I was wondering if there is a simple way to determine user-group membership?
> > > Simpler than spinning through all members of that group and doing
> > > a string match with $context.user at the least?
> >
> > Hi,
> > it's depends if you are in the farm or not. if you are, it's not possible I think.
> >
> > If not, and if you have the programming right you can do :
> > $context.xWiki.groupService.listGroupsForUser($user.user.user,
> > $context.context)
> >
> > You will receive a collection of documents representing groups.
> >
> > Jérémi
> >
> > --
> > 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
> >
> >
> >
> >
> > --
> > 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
>
>
>
>
> --
> 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
>
>
>
Hi, currently in my wiki, for administrative reasons, there is Admin as
only user, everybody else is a Guest., but in the upper right corner
still i have the register option and i cant find how to hide or remove
this option from there, its possible ? WITHOUT change the skin,
implement css vm templates and all this complicated issues (from my
ignorant point of view, of course)
Mmmm... there some good doc or tutorial about how to change the skin,
for a css and Velocity ignorant ?
Thanks !!
Still trying to solve the Lucene plug-in problem....
--
A.U.S. Enrique Ferreyra
Centro de Cómputos
Red Megatone - Red Confina
Hi, im looking at the code of Main.WebSearch, in particular the SQL that
generate...
In several places the basis of the search is a sentence:
like '%$text%'
How difficult is to add to the form a check control for Matching case,
and the build the SQL with something like (here is when i need help)
like Upper('%$text%')
Or something like that, does anybody do this before? Or i start to broke
forms :)
I assume, need to look at the JDBC Api to see the way i can express
Upper or Lower functions...
Any help welcome.
Thanks
--
A.U.S. Enrique Ferreyra
Centro de Cómputos
Red Megatone - Red Confina
Hi me again,
This works perfectly for a user with 4 or less groups but, if there are more than 4 groups, it only returns 4 groups? Or maybe there is another problem causing this?
-----Original Message-----
From: Esbach, Brandon
Sent: 04 April 2006 08:53
To: 'xwiki-users(a)objectweb.org'
Subject: RE: [xwiki-users]
Thanks, that's perfect!
-----Original Message-----
From: jeremi joslin [mailto:jeremi23@gmail.com]
Sent: 04 April 2006 02:20
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users]
Oh, maybe that change in the last version.
try :
$context.xWiki.groupService.listGroupsForUser($context.user, $context.context)
Jérémi
On 4/4/06, Esbach, Brandon <Esbachb(a)tycoelectronics.com> wrote:
> Hi,
> Thanks for the fast reply.
>
> This would be on a local Xwiki installation, ver 0.9.840
>
> I get an error when I run that:
> Error number 4001 in 4: Error while parsing velocity page
> XWiki.XWikiClasses Wrapped Exception: Invocation of method
> 'listGroupsForUser' in class
> com.xpn.xwiki.user.impl.xwiki.XWikiGroupServiceImpl threw exception
> class java.lang.NullPointerException : null
>
>
> -----Original Message-----
> From: jeremi joslin [mailto:jeremi23@gmail.com]
> Sent: 03 April 2006 16:37
> To: xwiki-users(a)objectweb.org
> Subject: Re: [xwiki-users]
>
> On 4/3/06, Esbach, Brandon <Esbachb(a)tycoelectronics.com> wrote:
> >
> >
> > Hi Folks
> >
> > I was wondering if there is a simple way to determine user-group membership?
> > Simpler than spinning through all members of that group and doing a
> > string match with $context.user at the least?
>
> Hi,
> it's depends if you are in the farm or not. if you are, it's not possible I think.
>
> If not, and if you have the programming right you can do :
> $context.xWiki.groupService.listGroupsForUser($user.user.user,
> $context.context)
>
> You will receive a collection of documents representing groups.
>
> Jérémi
>
> --
> 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
>
>
>
>
> --
> 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
My apologies! This is not a problem with the wiki,
as I'm sure most of you have already realized.
The problem was caused because I am using Firefox and
by default it does not allow access to the file system
via links with the file: protocol.
IE works fine.
There is a description of the file based URL at
Wikipedia that also has a link to solve the problem.
http://en.wikipedia.org/wiki/File:_URL
Sorry for the inconvenience!
-----Original Message-----
From: Graham,Neil [NCR]
Sent: April 4, 2006 2:14 PM
To: xwiki-users(a)objectweb.org
Subject: [xwiki-users] File URL not working in 0.9.840?
Greetings,
I have just downloaded and installed Xwiki 0.9.840 and it seems to be
running fine, but I cannot link to files or directories on my windows
file system using the file: protocol.
This is what was suggested in the FAQ
(http://www.xwiki.com/xwiki/bin/view/Doc/HowDoICreateALinkToAFile )
And I have tried many variations of the URL to link to both local files
(file:///<dir>, file://<dir>, file://c|/<dir>, etc.) and network
(file://<host>/<dir>, file://///<host>/<dir>, etc.).
This does not appear to work, even though I've done the same thing on
other wikis (JSPWiki syntax: file:/host/<dir>) and it works fine.
The FAQ says it should work. Does anyone have any help?
I find xwiki to be a superior wiki, but if I can't do this
I will have to switch to another one.
Greetings,
I have just downloaded and installed Xwiki 0.9.840 and it seems
to be running fine, but I cannot link to files or directories on my windows file
system using the file: protocol.
This is what was suggested in the FAQ
(http://www.xwiki.com/xwiki/bin/view/Doc/HowDoICreateALinkToAFile )
And I have tried many variations of the URL to link to both
local files (file:///<dir>, file://<dir>, file://c|/<dir>, etc.)
and network (file://<host>/<dir>, file://///<host>/<dir>, etc.).
This does not appear to work, even though I've done the same
thing on other wikis (JSPWiki syntax: file:/host/<dir>) and
it works fine.
The FAQ says it should work. Does anyone have any help?
I find xwiki to be a superior wiki, but if I can't do this
I will have to switch to another one.
Hi all,
For those of you who use a svn version of XWiki, please upgrade. there
was a bug in the right management now fixed. The version 0-9-840
doesn't need to be upgraded.
All activated tests are now passed on the build platform.
Soon, we will release the beta1 of xwiki 1.0.
Jérémi
--
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
Thanks, that's perfect!
-----Original Message-----
From: jeremi joslin [mailto:jeremi23@gmail.com]
Sent: 04 April 2006 02:20
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users]
Oh, maybe that change in the last version.
try :
$context.xWiki.groupService.listGroupsForUser($context.user, $context.context)
Jérémi
On 4/4/06, Esbach, Brandon <Esbachb(a)tycoelectronics.com> wrote:
> Hi,
> Thanks for the fast reply.
>
> This would be on a local Xwiki installation, ver 0.9.840
>
> I get an error when I run that:
> Error number 4001 in 4: Error while parsing velocity page
> XWiki.XWikiClasses Wrapped Exception: Invocation of method
> 'listGroupsForUser' in class
> com.xpn.xwiki.user.impl.xwiki.XWikiGroupServiceImpl threw exception
> class java.lang.NullPointerException : null
>
>
> -----Original Message-----
> From: jeremi joslin [mailto:jeremi23@gmail.com]
> Sent: 03 April 2006 16:37
> To: xwiki-users(a)objectweb.org
> Subject: Re: [xwiki-users]
>
> On 4/3/06, Esbach, Brandon <Esbachb(a)tycoelectronics.com> wrote:
> >
> >
> > Hi Folks
> >
> > I was wondering if there is a simple way to determine user-group membership?
> > Simpler than spinning through all members of that group and doing a
> > string match with $context.user at the least?
>
> Hi,
> it's depends if you are in the farm or not. if you are, it's not possible I think.
>
> If not, and if you have the programming right you can do :
> $context.xWiki.groupService.listGroupsForUser($user.user.user,
> $context.context)
>
> You will receive a collection of documents representing groups.
>
> Jérémi
>
> --
> 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
>
>
>
>
> --
> 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
This question is probably answered somewhere on the site but I failed to find it. I just registered my username and I'm trying to create a wiki hosted by xwiki.com for my classroom. When I press the button it tells me I have to provide my adress and accept the terms and conditions but doesn't tell me how to do so.
Thanks,
Mathieu
Hello,
I'm familiar with configuring skins and have read the FAQ about them,
but I'm unable to find out how to change the background color for all areas
of my wiki.
In styles.css, I don't see a value in the stylesheet to accomplish this.
I've tried adding HTML tags for background and CSS tags for background.
Do I have to adjust a value in the style or templates, or do I have to
add something?
Thanks in advance for the help.
- Michael
Hi,
Thanks for the fast reply.
This would be on a local Xwiki installation, ver 0.9.840
I get an error when I run that:
Error number 4001 in 4: Error while parsing velocity page XWiki.XWikiClasses Wrapped Exception: Invocation of method 'listGroupsForUser' in class com.xpn.xwiki.user.impl.xwiki.XWikiGroupServiceImpl threw exception class java.lang.NullPointerException : null
-----Original Message-----
From: jeremi joslin [mailto:jeremi23@gmail.com]
Sent: 03 April 2006 16:37
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users]
On 4/3/06, Esbach, Brandon <Esbachb(a)tycoelectronics.com> wrote:
>
>
> Hi Folks
>
> I was wondering if there is a simple way to determine user-group membership?
> Simpler than spinning through all members of that group and doing a
> string match with $context.user at the least?
Hi,
it's depends if you are in the farm or not. if you are, it's not possible I think.
If not, and if you have the programming right you can do :
$context.xWiki.groupService.listGroupsForUser($user.user.user, $context.context)
You will receive a collection of documents representing groups.
Jérémi
--
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 Folks
I was wondering if there is a simple way to determine user-group
membership? Simpler than spinning through all members of that group and
doing a string match with $context.user at the least?
Bonjour,
Ceci est une r�ponse automatique g�n�r�e par mon serveur. il vous signale que j'ai bien recu votre message.
Je m'emploi � le traiter dans les meilleurs d�lais.
en Ressources et Potentiel,
Xavier BERNARD
Hi,
I would like to use LDAP for authorization. I read the wiki
howto entry and basically (I think) is it clear.
But I have currently the problem and the question is it possible to
connect the LDAP server with SSL?
Bye
Frank
Setting JVM options for Tomcat
* Windows running Tomcat 5 and later : Go to the "Apache Tomcat
5.0" folder in the Start Menu. Start the "Configure Tomcat
application".
Note: the configuration can only be started when Tomcat is not
running.
Select the "Java VM" tab in the configuration dialog. You will
see some pre-defined lines in the "Java Options" test box.
Append your Java options at the bottom of the option list. For
example, to set server mode and allow 512MB of heap memory,
append the following:
-server
-Xmx400m
* Windows running Tomcat 4.1 or earlier : place the Java options
into the CATALINA_OPTS environment variable. To do this, run
Control Panel / System, select Environment Variables and create
the CATALINA_OPTS variable, and set the desired option, for
example "-server -Xmx400m".
* Linux : place the Java options into the CATALINA_OPTS
environment variable. For example: "-server -Xmx400m".
THANKS TO MARK :)
Hi again my friend.
See below.
Setting JVM options for Tomcat
* Windows running Tomcat 5 and later : Go to the "Apache Tomcat
5.0" folder in the Start Menu. Start the "Configure Tomcat
application".
Note: the configuration can only be started when Tomcat is not
running.
Select the "Java VM" tab in the configuration dialog. You will
see some pre-defined lines in the "Java Options" test box.
Append your Java options at the bottom of the option list. For
example, to set server mode and allow 512MB of heap memory,
append the following:
-server
-Xmx400m
* Windows running Tomcat 4.1 or earlier : place the Java options
into the CATALINA_OPTS environment variable. To do this, run
Control Panel / System, select Environment Variables and create
the CATALINA_OPTS variable, and set the desired option, for
example "-server -Xmx400m".
* Linux : place the Java options into the CATALINA_OPTS
environment variable. For example: "-server -Xmx400m".
Also, you might want to post back to the thread next time so the answer
is there for other people if they need it.
Cheers,
--
Mark Robinson
Regional Clarity Project Manager (HK & AU)
TNT Freight Managment (Australia) Limited
TNT Freight Managment (Hong Kong) Limited
3rd floor, Two Harbourfront, 18-22 Tak Fung Street,
Hung Hom, Kowloon, Hong Kong
Tel: +852 26213688 (ext. 374)
Mob: +852 90335711
Em : mark.robinson(a)hk.tntfreight.com
Web: http://www.tntfreight.com
Hi.
thanks for your time and effort.
im trying to configure xwiki to run utf-8 charachter set because i need hebrew in xwiki.
i read the page at:
http://www.xwiki.org/xwiki/bin/view/Dev/CharactersSets
and i would like to ask how do i implement the following steps in the description in the page above:
# change the LANG environment variable before Java started to en_US.UTF8
# change the file.encoding param (java -Dfile.encoding=UTF-8) to UTF-8
how do I do these changes?
thank you very much for any possible help
Yoda.
Hi.
im new to xwiki. a great software!
i have trouble locating the documentation on how to use and create tags (tag cloud) in xwiki. what is the syntax? how do i creat tags? is there a gui for creating them?
thaks very much, sorry if this has been answerd before, i couldn't find any data about it by using the search on the xwiki site and on this users list.
Yuda.
Hi,
I'd like to allow users to access the a web services from XWiki
documents via a plugin. However, the web service requires
user-specific passwords. What is the best approach to deal with this?
One option is to add "Password Class" fields to the XWikiUsers class,
and adapt the user template to allow users to set their password when
they edit their page. The field's value is not displayed on the page,
but the passwords are stored in the XWiki database in plain text, and
the user's page is found if a wide search is ran on a substring of the
password.
Could also add methods to the plugin that store passwords in the
database after encrypting them with some private key; they'd then get
decrypted within the plugin code before being sent to the web service.
This isn't bad, but maybe you guys have better ideas! :)
Regards,
Robin
Mark:
That seemed, intuitively, to be the way that things were put together, and that's encouraging. However, I'm hoping that your claim that the xwiki objects give most of what I need is true, since that's as deep as I hope to have to get into it. Again, I'm acting as proxy to application developers here, so I need to be sure that this is all as easy as it seems.
In particular, the joins are hairy - a necessary consequence of the flexible object structure. And I'm still a bit confused about how to parse the results.
A use case is this: I have a document that I threw together quickly and easily that lists projects that I am responsible for. Being driven entirely from the objects on the page, it was easy to share, to the point that nearly everyone else who uses it simply uses #includeForm("Brian.WorkPages") - not a good idea from an organizational point of view, but wholly acceptable in a purely experimental environment. Each object on the page lists the name of the project, the name of the project's plan document, and its current status, due dates, etc. For terseness and convenience, I make the project name the text of a link to the project plan document. As success breeds success, I decided it was a really good way to report status to my boss, so I did two things: added a "journal entry" feature to each of the plan documents, which allowed me to add dated comments on document progress and status changes; and created another data-driven page which copied the data from the original page, followed the links to the plan pages, and displayed the project table again, then the journal entries for each one, with intra-page links from the status field text for convenience. In this way, I didn't need to make out a separate weekly status report for my boss; this page would show status at a glance, with links to more detailed information right at hand.
This was good, but two things were wrong: first, the projects were listed in the default order in which getObjects() listed them, which was the order of their creation; second, all the journal entries showed up. I wanted the projects to be listed in order by priority and/or due date, and to list journal entries from only the current week.
I had already seen that I could modify the WHERE clause in searchDocuments(), and used that to add options to Main.AllDocs to order by date or creator. but getObjects() gave me no such ability, so I had to use search(). And rather than futz around with trying to get the search results to fit the same wiki Object format, I followed another example and called getObject() with the objects' number fields, which was all I returned from the query. I could also have used getObjects with a list of objects, but I didn't think of it, and am still not sure I'd know the right way to turn the returned ArrayList into a Vector.
In short, the SQL wasn't hard; tying all the attributes to the BaseObject wasn't hard, when I wanted to do it, but for one thing, when I returned a BaseObject only, I wasn't able to find any of its properties attached to it at all, and none of the syntax that I expected to be able to use to request all fields worked - I suspect because the query schema is virtual and each field had to be specified. In other words, "select obj.* from BaseObject as obj, ..." was refused.
The other matter I asked about before was why I couldn't return an arbitrary expression as I could with SQL, even though the same expression had worked in a qualifier on the same query. I really wanted to ditch all the code I had written to figure out when one week ago was, and since it was already in my qualifier, I thought I'd return it also, but Hibernate didn't like that.
brain[sic]
-----Original Message-----
From: Mark Robinson [mailto:mark.robinson@hk.tntfreight.com]
Sent: Friday, March 24, 2006 11:14 PM
To: xwiki-users(a)objectweb.org
Subject: Re: HQL question (wasRE: [xwiki-users] SQL hair-pulling)
Hi Brian.
Sorry for the lack of clarity there, it was late in my part of the world.
This is my understanding of it in general, but I am sure someone can correct how it relates to xwiki along the way.
Hibernate hides the process of creating objects and populating them with data retrieved from the database.
The Java objects have an almost direct relationship to the database structure. The tables are represented by classes and the columns are represented by properties of the object.
So when an object is created, it already fully represents the table structure. This gives you the advantage of being able to describe the equivalent of SQL queries very simply by referring to their properties.
There are getters and setter for the properties so to select a particular item from the database all you have to do is "get" that property with the value you want.
Example: Instead of "SELECT * FROM foo WHERE id = '22'" you could just use something like ...
item = getSession().get(foo.id, '22');
This is the beautiful bit about it. "item" is now an object with all the data from that row of the table and you can adjust the properties with the setter methods.
Example: Instead of "UPDATE foo SET Name='New Name', Age='36' WHERE id='22'"
item.setName("New Name");
item.setAge("36");
getSession().update(item);
Note: When you want to update the database you just call method (eg update(item)) and your object returns all the current object properties to the appropriate row in the database.
So how does this relate to XWiki? The mapping of xwiki object to the MySQL database is in xwiki.hbm.xml. Using the hibernate query from the category field in the blog as an example.
Example: select prop.value from BaseObject as obj, StringProperty as prop where obj.className='Blog.Categories' and prop.id.id = obj.id and prop.id.name='name'
>From looking at the mapping I can see that "BaseObject" is of the class "com.xpn.xwiki.objects.BaseObject" and it is mapped to the table "xwikiobjects" in the database.
It is then aliased to "obj".
I can also see that the property "className" of "obj" is mapped to "XWO_CLASSNAME", "name" is mapped to "XWO_NAME" and "id" is mapped to "XWO_ID".
"StringProperty" is a joined subclass (hibernate returns all the subclasses automatically) and is mapped to "com.xpn.xwiki.objects.StringProperty" which relates to the table "xwikistrings". In that subclass "value" is mapped to "XWS_VALUE".
StringProperty is then aliased as prop.
So after all that, what we are trying to say is something to the effect of "give me a list object that is made up of the names of the categories".
Why do we have to do it like that? Because the data is described generically in the database schema and stored in 3 different places. To retrieve it you need to ask first to find the objects of the wiki defined class 'Blog.Categories' then you need to retrieve the properties related to those objects (in this case, only the strings) and then you want to list the values of those strings.
So the strength of XWiki is that you can create classes, instances of those classes and manipulate them through the wiki pages to represent almost anything. It also means that it is very independent of the backend (as shown by using HQSQL in the standalone version).
However, the drawback is that you need to understand clearly how your classes are put together because the data is spread across the database (Remember, your classes/objects that you have created are represented in the database by the generic BaseObject and its properties).
Getting back to using this info. I find mostly that the $xwiki, $request and $doc objects give you access via the api to most of what you need anyway without getting that deep into it.
Example: From the mapping file I can see that the string property "fullName" in class com.xpn.xwiki.doc.XWikiDocument (eg $doc or doc) relates to "XWD_FULLNAME" in the "xwikidoc" table.
So if I wanted to list all the different webspaces in my xwiki with the default page of "WebHome" I know that "doc" represents the "xwikidoc" table and "fullName" represents "XWD_FULLNAME" so I write the "where" part of the query as "doc.fullName like '%.WebHome'"
The searchDocuments method of $xwiki translates this as "select distinct doc.web, doc.name from com.xpn.xwiki.doc.XWikiDocument as doc where fullName like '%.WebHome'"
So you end up with a list as demonstrated below in a Velocity setting.
#set($whereclause = "doc.fullName like '%.WebHome'")
#set($mylist = $xwiki.searchDocuments($whereclause))
1.1 The list returned
\\$mylist
1.1 Individual items
#foreach ($item in $mylist)
#set($thisdoc = $xwiki.getDocument($item))
* $thisdoc.getFullName()
#end
Hope that wasn't too wandering and full of mistakes. It is just from poking around a bit inside so could be completely misguided. I look forward to comments.
Cheers,
Mark
On 25 Mar 2006, at 2:30 AM, THOMAS, BRIAN M ((SBCSI)) wrote:
Okay; will do.
But I was just about to reply that if you omit the result-list ("select field, field, ...") then the returned value is the object type of the first object in the "from" list. Exactly what I wanted, and it sounds like what you were describing, but your examples didn't show it.
brain[sic]
-----Original Message-----
From: Mark Robinson [mailto:mark.robinson@hk.tntfreight.com]
Sent: Friday, March 24, 2006 11:35 AM
To: xwiki-users(a)objectweb.org
Subject: Re: HQL question (wasRE: [xwiki-users] SQL hair-pulling)
Hi Brian.
Check this thread out.
http://mail-archive.objectweb.org/xwiki-dev/2005-11/msg00031.html
Cheers,
Mark
On 25 Mar 2006, at 12:57 AM, THOMAS, BRIAN M ((SBCSI)) wrote:
Huh...
Sounds intriguing, but I'm puzzled about a lot of details, like:
how do you do that?
Probably an example would be very useful. Do you have one handy?
brain[sic]
-----Original Message-----
From: Mark Robinson [mailto:mark.robinson@hk.tntfreight.com]
Sent: Friday, March 24, 2006 10:48 AM
To: xwiki-users(a)objectweb.org
Subject: Re: HQL question (wasRE: [xwiki-users] SQL hair-pulling)
It seems to be like ADODB, forget about query strings. Create an
object. Set variables, indicate the relationships (eg joins) and call
the method fpr retrieving the data.
Result data as an object. Updates are a breeze.
Cheers,
Mark
On 25 Mar 2006, at 12:32 AM, THOMAS, BRIAN M ((SBCSI)) wrote:
Would this perhaps be why I can't use an arbitrary expression as a
result field?
Specifically, my query for objects less than a week old used the SQL
expression:
subdate(curdate(), 7)
which worked fine when used in a comparison to a date field in the
WHERE clause, but provoked an error when I tried to use it in the
column-list, which is (I believe) clearly legal SQL syntax. If this
were a feature that HQL simply didn't support, it would explain the
problem. Indeed, that is what the error message seems to say:
Error number 4001 in 4: Error while parsing velocity page
Brian.WorkPagesTest Wrapped Exception: Invocation of method 'search'
in class com.xpn.xwiki.api.XWiki threw exception class
com.xpn.xwiki.XWikiException : Error number 3223 in 3: Exception
while searching documents with sql select subdate(curdate(), 7),
prop.value, [...] where [...] or subdate(curdate(), 7) <=
prop.value ) [...]
Wrapped Exception: No data type for node:
org.hibernate.hql.ast.MethodNode
+-METHOD_CALL? MethodNode: '('
| +-METHOD_NAME? IdentNode: 'subdate' {originalText=subdate}
| -EXPR_LIST? SqlNode: 'exprList'
| +-METHOD_CALL? MethodNode: '('
| | +-METHOD_NAME? IdentNode: 'curdate' {originalText=curdate}
| | -EXPR_LIST? SqlNode: 'exprList'
| -NUM_INT? LiteralNode: '7'
brain[sic]
-----Original Message-----
From: jeremi joslin [mailto:jeremi23@gmail.com]
Sent: Thursday, March 23, 2006 10:47 PM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] SQL hair-pulling
Yes, XWiki is using hibernate for the database mapping. So it's not
a sql query, but a hql query. You use the objects and members name to
make the request. (if you don't know the hql, you can take a look to
the hibernate documentation :
http://www.hibernate.org/hib_docs/v3/reference/en/html_single/
#queryhql)
Jérémi
--
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
--
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
--
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'm having a problem registering new users.
I get the following error. What does the -1 code mean? Its not very helpful.
An error occured during the registration process (-1).
Robin
Hello All,
My xWiki is beginning to get a lot of comment spamming; is there a way to
force a user to enter some random value displayed in an image, or to send me
an e-mail, etc? I would prefer the site to send me an e-mail anytime a new
comment is added anywhere; at least this would be a good start.
Anyone have any ideas?
Bob Mixon
Microsoft SharePoint Portal Server MVP
<mailto:bob.mixon@gmail.com> bob.mixon(a)gmail.com
Skype ID: brm1999
http://bobmixon.xwiki.com
KM, BPM, Intranet and Portal Technologies
The Possibilities are Endless
Hi All.
Has anyone played with accessing the graphviz plugin from Velocity?
I have managed to get it creating graphs from my objects and
displaying with various options, but I seem to be stumbling on the
last step of adding client side image maps to allow the user to drill
down easily.
The problem is that if I call $xwiki.graphviz.outputDotImage($graph,
"cmapx", true) it will only render the mapping file (which I need)
instead of the whole page so I am assuming I have to call
$xwiki.graphviz.getDotImage($graph, "cmapx", true) and then display
it. I have also tried to write it, then access it via
$xwiki.getExternalURL() but no go.
It works as expected when you retrieve it from a separate file, but
not on the fly. Just a reference returned that doesn't seem to
respond to Name or Value methods.
Example below:
#set($graph = 'digraph abstract {"Node 1"[URL=WebHome];"Node
2"[URL=WebHome]; "Node 1" -> "Node 2";}')
#set($graphfilename = $xwiki.graphviz.writeDotImage($graph, "jpg",
true))
<img src="/xwiki/bin/dot/$doc.web/$doc.name/$graphfilename"
usemap="#abstract">
#set($graphmap = $xwiki.graphviz.getDotImage($graph, "cmapx", true))
$graphmap
Any suggestions are gratefully accepted.
Cheers,
Mark
Okay; will do.
But I was just about to reply that if you omit the result-list ("select field, field, ...") then the returned value is the object type of the first object in the "from" list. Exactly what I wanted, and it sounds like what you were describing, but your examples didn't show it.
brain[sic]
-----Original Message-----
From: Mark Robinson [mailto:mark.robinson@hk.tntfreight.com]
Sent: Friday, March 24, 2006 11:35 AM
To: xwiki-users(a)objectweb.org
Subject: Re: HQL question (wasRE: [xwiki-users] SQL hair-pulling)
Hi Brian.
Check this thread out.
http://mail-archive.objectweb.org/xwiki-dev/2005-11/msg00031.html
Cheers,
Mark
On 25 Mar 2006, at 12:57 AM, THOMAS, BRIAN M ((SBCSI)) wrote:
> Huh...
>
> Sounds intriguing, but I'm puzzled about a lot of details, like:
> how do you do that?
>
> Probably an example would be very useful. Do you have one handy?
>
> brain[sic]
>
> -----Original Message-----
> From: Mark Robinson [mailto:mark.robinson@hk.tntfreight.com]
> Sent: Friday, March 24, 2006 10:48 AM
> To: xwiki-users(a)objectweb.org
> Subject: Re: HQL question (wasRE: [xwiki-users] SQL hair-pulling)
>
>
> It seems to be like ADODB, forget about query strings. Create an
> object. Set variables, indicate the relationships (eg joins) and call
> the method fpr retrieving the data.
>
> Result data as an object. Updates are a breeze.
>
> Cheers,
>
> Mark
>
> On 25 Mar 2006, at 12:32 AM, THOMAS, BRIAN M ((SBCSI)) wrote:
>
>> Would this perhaps be why I can't use an arbitrary expression as a
>> result field?
>>
>> Specifically, my query for objects less than a week old used the SQL
>> expression:
>>
>> subdate(curdate(), 7)
>>
>> which worked fine when used in a comparison to a date field in the
>> WHERE clause, but provoked an error when I tried to use it in the
>> column-list, which is (I believe) clearly legal SQL syntax. If this
>> were a feature that HQL simply didn't support, it would explain the
>> problem. Indeed, that is what the error message seems to say:
>>
>> Error number 4001 in 4: Error while parsing velocity page
>> Brian.WorkPagesTest Wrapped Exception: Invocation of method 'search'
>> in class com.xpn.xwiki.api.XWiki threw exception class
>> com.xpn.xwiki.XWikiException : Error number 3223 in 3: Exception
>> while searching documents with sql select subdate(curdate(), 7),
>> prop.value, [...] where [...] or subdate(curdate(), 7) <=
>> prop.value ) [...]
>> Wrapped Exception: No data type for node:
>> org.hibernate.hql.ast.MethodNode
>> +-METHOD_CALL? MethodNode: '('
>> | +-METHOD_NAME? IdentNode: 'subdate' {originalText=subdate}
>> | -EXPR_LIST? SqlNode: 'exprList'
>> | +-METHOD_CALL? MethodNode: '('
>> | | +-METHOD_NAME? IdentNode: 'curdate' {originalText=curdate}
>> | | -EXPR_LIST? SqlNode: 'exprList'
>> | -NUM_INT? LiteralNode: '7'
>>
>> brain[sic]
>> -----Original Message-----
>> From: jeremi joslin [mailto:jeremi23@gmail.com]
>> Sent: Thursday, March 23, 2006 10:47 PM
>> To: xwiki-users(a)objectweb.org
>> Subject: Re: [xwiki-users] SQL hair-pulling
>> Yes, XWiki is using hibernate for the database mapping. So it's not
>> a sql query, but a hql query. You use the objects and members name to
>> make the request. (if you don't know the hql, you can take a look to
>> the hibernate documentation :
>> http://www.hibernate.org/hib_docs/v3/reference/en/html_single/
>> #queryhql)
>>
>> Jérémi
>>
>>
>> --
>> 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
>
>
>
>
> --
> 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
As demonstrated by this page
http://www.xwiki.org/xwiki/bin/view/Sandbox/includeOwnRSS
the XWiki feed parser plugin appears to fall over when parsing a feed
generated by XWiki. Other parsers have no problems.
The the stack trace isn't reported with the error so it's a bit hard
to see exactly what's going wrong... though I guess it's failing in
FeedPlugin.getFeedForce(..). I thought it might be a formatting
problem in the rdf template, exposing some fragility in the parser...
However, invoking rome as follows (using rome 0.7) works fine:
public class Feedread {
public static void main(String[] args) throws
IllegalArgumentException, IOException, FeedException, FetcherException
{
//
FeedFetcher feedFetcher = new HttpURLFeedFetcher();
URL feedURL = new
URL("http://www.xwiki.org/xwiki/bin/view/Main/WebRss?xpage=rdf");
SyndFeed feed = feedFetcher.retrieveFeed(feedURL);
feedFetcher.setUserAgent("XWikiBot");
System.out.println(feed);
}
}
So I'm not sure what's breaking when this happens inside XWiki.
The reason want to do this is that on my xwiki homepage I'd like to
include a bunch of feeds, some external, some from the wiki itself. It
would make my life easier if I could use my same macro to display them
all, rather than using the feed plug for the external ones, and direct
hql queries for the local ones.
Regards,
Robin
Can someone provide information on how RSS feeds and the Xwiki cache
system work together?
What's known so far.
1) The xwiki/WEB-INF/xwiki.cfg file contains the following lines
xwiki.store.cache=1
xwiki.store.cache.capacity=100
2) Based on the build.xml file included in the source, xwiki is
configured to use ehcache-1.1, oscache-2.0.2, and swarmcache.
3) grep results on source files indicate that OSCache is being used by
Xwiki.
Questions
4) Does item 1) mean caching is enabled for RSS feeds?
5) Does "xwiki.store.cache.capacity=100" relate to OSCache's
"cache.capacity" configuration property? Are they the same? See the
following URL
http://wiki.opensymphony.com/display/CACHE/Configuration
6) Please confirm that OSCache is being used by Xwiki 0.9.840 for RSS
feeds
That's enough, for now and thanks for any help you can provide.
Rex Kidwell
Hi,
Trying to view/preview any page on free xwiki.com hosted containing the text:
select x into y
causes nothing more than the following message to be displayed:
We are currently doing performance maintenance of our servers. The
service will be back in a few minutes. Sorry for the inconvenience.
'x' and 'y' can be any number of words. Note that this happens with
plain text - no velocity or anything, e.g. simply a document
containing the text:
Press the 'add' button to select which plugin is loaded into the
current effect slot.
I haven't raised this as bug on JIRA since I can't reproduce it
outside of xwiki.com hosted wikis. So I guess it's some configuration
issue or some extra protection gone wrong on xwiki.com.
Thanks,
Robin.
Hi all!
I'm a newbie in XWiki application development and I'm trying to make
sense of these plugins. I tried with the IPResolverPlugin which looks
quite simple but I don't know how to access it from the Velocity
context. Is this possible at least?
Thanks a lot!
--
_ _ Julien Bourdon
(o)(o)--. http://purl.org/net/JulienBourdon
\../ ( ) self isAddictedTo:(#Squeak&#linux)
m\/m--m'`--. ^true
Hi,
just testing the LDAP integration on a development build (head). I do
manage to authenticate against my LDAP server and I'm logged in
afterwards, but the username is not displayed (only:
$docuser.display("first_name", "view", $objuser)) and somehow I'm not
really "logged in". I don't have the permissions I normally have, when
I'm a logged in user.
Do I have to do anything extra for the LDAP integration? Do I have to
create each user which exists in ldap also in the xwiki db? (this
apparently works..) Below my xwiki.cfg
Christian
xwiki.cfg for ldap:
xwiki.authentication.ldap=1
xwiki.authentication.ldap.server=enron
xwiki.authentication.ldap.check_level=1
xwiki.authentication.ldap.base_DN=dc=LogicUnited,dc=Com
xwiki.authentication.ldap.bind_DN=cn=Manager,dc=logicunited,dc=com
xwiki.authentication.ldap.bind_pass=****
xwiki.authentication.ldap.UID_attr=uid
xwiki.authentication.ldap.fields_mapping=name=uid,last_name=sn,first_name=givenName,fullname=cn,mail=mail,ldap_dn=dn
--
------------------------------------------
Logic United GmbH
Email: leeden(a)logicunited.com
Tel: +49-89-189488-66
Huh...
Sounds intriguing, but I'm puzzled about a lot of details, like: how do you do that?
Probably an example would be very useful. Do you have one handy?
brain[sic]
-----Original Message-----
From: Mark Robinson [mailto:mark.robinson@hk.tntfreight.com]
Sent: Friday, March 24, 2006 10:48 AM
To: xwiki-users(a)objectweb.org
Subject: Re: HQL question (wasRE: [xwiki-users] SQL hair-pulling)
It seems to be like ADODB, forget about query strings. Create an
object. Set variables, indicate the relationships (eg joins) and
call the method fpr retrieving the data.
Result data as an object. Updates are a breeze.
Cheers,
Mark
On 25 Mar 2006, at 12:32 AM, THOMAS, BRIAN M ((SBCSI)) wrote:
> Would this perhaps be why I can't use an arbitrary expression as a
> result field?
>
> Specifically, my query for objects less than a week old used the
> SQL expression:
>
> subdate(curdate(), 7)
>
> which worked fine when used in a comparison to a date field in the
> WHERE clause, but provoked an error when I tried to use it in the
> column-list, which is (I believe) clearly legal SQL syntax. If
> this were a feature that HQL simply didn't support, it would
> explain the problem. Indeed, that is what the error message seems
> to say:
>
> Error number 4001 in 4: Error while parsing velocity page
> Brian.WorkPagesTest
> Wrapped Exception: Invocation of method 'search' in class
> com.xpn.xwiki.api.XWiki threw exception class
> com.xpn.xwiki.XWikiException : Error number 3223 in 3: Exception
> while searching documents with sql select subdate(curdate(), 7),
> prop.value, [...] where [...] or subdate(curdate(), 7) <=
> prop.value ) [...]
> Wrapped Exception: No data type for node:
> org.hibernate.hql.ast.MethodNode
> +-METHOD_CALL? MethodNode: '('
> | +-METHOD_NAME? IdentNode: 'subdate' {originalText=subdate}
> | -EXPR_LIST? SqlNode: 'exprList'
> | +-METHOD_CALL? MethodNode: '('
> | | +-METHOD_NAME? IdentNode: 'curdate' {originalText=curdate}
> | | -EXPR_LIST? SqlNode: 'exprList'
> | -NUM_INT? LiteralNode: '7'
>
> brain[sic]
> -----Original Message-----
> From: jeremi joslin [mailto:jeremi23@gmail.com]
> Sent: Thursday, March 23, 2006 10:47 PM
> To: xwiki-users(a)objectweb.org
> Subject: Re: [xwiki-users] SQL hair-pulling
> Yes, XWiki is using hibernate for the database mapping. So it's
> not a sql query, but a hql query. You use the objects and members
> name to make the request. (if you don't know the hql, you can take
> a look to the hibernate documentation :
> http://www.hibernate.org/hib_docs/v3/reference/en/html_single/
> #queryhql)
>
> Jérémi
>
>
> --
> 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
Would this perhaps be why I can't use an arbitrary expression as a result field?
Specifically, my query for objects less than a week old used the SQL expression:
subdate(curdate(), 7)
which worked fine when used in a comparison to a date field in the WHERE clause, but provoked an error when I tried to use it in the column-list, which is (I believe) clearly legal SQL syntax. If this were a feature that HQL simply didn't support, it would explain the problem. Indeed, that is what the error message seems to say:
Error number 4001 in 4: Error while parsing velocity page Brian.WorkPagesTest
Wrapped Exception: Invocation of method 'search' in class com.xpn.xwiki.api.XWiki threw exception class com.xpn.xwiki.XWikiException : Error number 3223 in 3: Exception while searching documents with sql select subdate(curdate(), 7), prop.value, [...] where [...] or subdate(curdate(), 7) <= prop.value ) [...]
Wrapped Exception: No data type for node: org.hibernate.hql.ast.MethodNode
+-METHOD_CALL? MethodNode: '('
| +-METHOD_NAME? IdentNode: 'subdate' {originalText=subdate}
| -EXPR_LIST? SqlNode: 'exprList'
| +-METHOD_CALL? MethodNode: '('
| | +-METHOD_NAME? IdentNode: 'curdate' {originalText=curdate}
| | -EXPR_LIST? SqlNode: 'exprList'
| -NUM_INT? LiteralNode: '7'
brain[sic]
-----Original Message-----
From: jeremi joslin [mailto:jeremi23@gmail.com]
Sent: Thursday, March 23, 2006 10:47 PM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] SQL hair-pulling
Yes, XWiki is using hibernate for the database mapping. So it's not a sql query, but a hql query. You use the objects and members name to make the request. (if you don't know the hql, you can take a look to the hibernate documentation :
http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#queryhql)
Jérémi
Jérémi:
Aha! I should have read my mail before sending my last note, which I began composing last night. That clears a lot of the mystery. I will save my other questions until after I've read your reference; thank you.
But it re-raises for me the issue I had thought resolved - that of where the boundary of queryability may be. I had assumed that it was the same as the boundary of the XWiki-defined object model, as it would seem logically if it had to be supported as a database map, but since it's a general-purpose persistence tool, might that assumption be wrong? Probably, any queryable object would have to be modeled in the database, but it's a grey area in my understanding. I do note that date fields are returned as java.sql.Timestamp rather than as java.util.Date, in case that has any bearing on the matter.
brain[sic]
-----Original Message-----
From: jeremi joslin [mailto:jeremi23@gmail.com]
Sent: Thursday, March 23, 2006 10:47 PM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] SQL hair-pulling
On 3/24/06, THOMAS, BRIAN M (SBCSI) <bt0008(a)att.com> wrote:
> As mentioned in an earlier message, I got into the $xwiki.search()
> world yesterday, and am thoroughly confused.
>
> The main problem seems to be that the XWiki database schema and the
> schema used in all of the $xwiki.search() queries I have found are
> completely disjoint.
>
> Instead of the documented tables and columns, what seems to be used is
> a schema which reflects the object model within XWiki. This would
> really be convenient if true; is it?
Hi,
Yes, XWiki is using hibernate for the database mapping. So it's not a sql query, but a hql query. You use the objects and members name to make the request. (if you don't know the hql, you can take a look to the hibernate documentation :
http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#queryhql)
Jérémi
--
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
As mentioned in an earlier message, I got into the $xwiki.search() world
yesterday, and am thoroughly confused.
The main problem seems to be that the XWiki database schema and the
schema used in all of the $xwiki.search() queries I have found are
completely disjoint.
Instead of the documented tables and columns, what seems to be used is a
schema which reflects the object model within XWiki. This would really
be convenient if true; is it?
brain[sic]
>As mentioned in an earlier message, I got into the $xwiki.search() world
>yesterday, and am thoroughly confused.
>
>The main problem seems to be that the XWiki database schema and the
>schema used in all of the $xwiki.search() queries I have found are
>completely disjoint.
>
>Instead of the documented tables and columns, what seems to be used is a
>schema which reflects the object model within XWiki. This would really
>be convenient if true; is it?
This is right.
Bye
Frank
Hi All.
This is probably most appropriate to Jeremi, but I would appreciate
anyones thoughts on the subject.
XWiki is a phenomenal piece of software that I am thinking of new
uses every day.
I am currently running 0.9.840 on one of my servers and am a little
bit paranoid about upgrading until later in the year, as our
application is growing at a furious rate and I would like it to
stabilise a little before we go through an upgrade. However, some
of the new features are very tempting (I am using the standalone for
testing).
Ideally I would like to use your XWiki/ImportExport script to create
user configurable exports on the existing data and was wondering how
involved the underlying adjustments would be to the code to make it
work with the stable version.
The script looks for $export. Is this a java class that is put into
a xwiki context in the later release?
If so, is it self sufficient enough to compile and add to an existing
installation, or is it too dependent on other code in the later version?
With custom java classes, is there a straight forward description
somewhere on putting them in an XWiki context so they can be used by
Velocity?
In a mildly related point: I have deployed DWR (https://
dwr.dev.java.net/) side by xwiki in another testing installation for
some AJAX experimentation and it seems to be co-habiting without too
much trouble.
Apologies for the basic questions, but I am currently on a steep
learning curve with this and appreciate any help offerred.
Have a great day.
Mark.
Hi all,
I try to print future events in the left menus, but it looks that the test
of the event start date is always evaluated to false.
#foreach($event in
$xwiki.getDocument("Main.EventCalendar").getObjects("XWiki.CalendarEvent"))
#if ($event.getStartDate().getTime().after($xwiki.getDate()))
$event.startDate $event.endDate $event.description
#end
#end
Any idea or suggestion?
Regards,
Gaël Blondelle
EBM WebSourcing
Jérémi:
You make it look easy, but it took me a good long bit of searching and trial-and-error investigation to figure out how to get a real Date object out of an XWiki object field.
And you perform a little leger-de-main which I have not found explained anywhere: the expression $obj.XWikiObject.date.value is equivalent to $obj.XWikiObject.getDateValue("date"). Unfortunately, this is not suitable for use as an lvalue, but it makes a nice shorthand. Is this documented anywhere (other than in the source)?
I noted the same thing when I found, in some sample code, a call to a (seemingly) nonexistent method $xwiki.getCalendar(). Happily, simply writing $xwiki.calendar in a document yielded an object identifier containing the classname com.xpn.xwiki.plugin.calendar.CalendarAPI, so it seems that XWiki was fiddling my call into $xwiki.get("calendar"), which is documented to return a plugin API, which before this had meant nothing to me (either that, or the plugin augmented com.xpn.xwiki.api.XWiki with a getCalendar() method, which is what I thought before I saw the above).
Velocity, of course, turns any rvalue reference to $obj.foo into a call to $obj.getFoo() or $obj.getfoo(), and likewise any lvalue reference in a #set into a call to $obj.set[Ff]oo() with the RHS as its argument. But this trick is different, because at least in the first case it has to know the navigation of a particular XWiki-specific class hierarchy.
Nice shorthand; would be nicer if it were explained somewhere... Okay, I'll do it...
By the way, that $xwiki.calendar property finally got me to an answer to my date arithmetic problem, thanks to Java reflection.
The task was in a project status reporting page, where I wanted to ignore records more than a week old. The problem was that I could find no way at all to do date arithmetic in a Velocity script, because the time value returned from java.util.Date.getTime() is a long integer, which (until the next release of Velocity, at least) can't be used in an arithmetic expression. I could have used the Date functions to format a date, manipulate the string version, and then parse it, but that would be far too difficult, inflexible, and error-prone even ignoring the fact that those methods were deprecated. It works like this, for those who are interested:
First, $xwiki.calendar has a method getCalendar() which, in the version without arguments, returns a java.util.Calendar initialized with the current date. Because it inherits from java.lang.Object, it is Cloneable, so I clone()d it to get a copy that I could set back seven days, without disturbing the original object (I learned this the hard way: the returned object was a reference, and changes via the copied reference changed the original).
Turning back the clock in a java.util.Calendar by seven days is quite simple in Java - formally speaking, it's java.util.Calendar.add(java.util.Calendar.DAY_OF_YEAR, -7). However, this isn't Java exactly; we can call the add() method easily enough, because we have a Calendar object, but that DAY_OF_YEAR symbolic constant isn't accessible that way, because apparently Velocity doesn't translate field references, only method calls. The final expression was $xwiki.calendar.calendar.class.getField("DAY_OF_YEAR").int
#set($wcal = $xwiki.calendar.calendar.clone()) ## copy of java.util.Calendar with current time
$wcal.add($wcal.class.getField("DAY_OF_YEAR").int, -7) ## set the calendar back one week.
#set($weekago = $wcal.time) ## get the resulting date as a java.util.Date object
After this, when I wanted to see whether date "donedate" from an object was more than a week old, I wrote something like this:
#set($weekold = $obj.xWikiObject.donedate.value.before($weekago))
which worked just fine.
Of course, since I also wanted to sort those records on other than the default field, I needed to do an $xwiki.search() call with a custom query, and SQL can easily do date arithmetic.
That brings up another topic, because I was foolish enough to try it...
brain[sic]
-----Original Message-----
From: jeremi joslin [mailto:jeremi23@gmail.com]
Sent: Wednesday, March 22, 2006 8:25 AM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] Date value compare
On 3/22/06, jjanssen(a)nl.swets.com <jjanssen(a)nl.swets.com> wrote:
> Hello,
>
> I've got several classes in which I use date attributes. Is there a
> way to list objects of such a class, but only those in which the value
> of the date attribute is before current date?
I do it a while ago using the before function:
#if ($obj.XWikiObject.date.value.before($xwiki.getCurrentDate()))
Jérémi
--
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
hello everybody,
I spent the morning creating an xWiki page called MyTutorials. The link name was Main.MyTutorials
I finished up by adding a new News Item to my blog, the Page Name unfortunately was also MyTutorials.
Now when I try to link to the work I did this morning I just get the Blog news item.
Please can someone assist. I cant even find the pages I created that link from my MyTutorials page.
Thanks
Scott.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
Hello,
I've got several classes in which I use date attributes. Is there a way to list objects of such a class, but only those in which the value of the date attribute is before current date?
Thanks again,
Joep Janssen
Dear xwiki developers,
first of all, thanks for XWiki, which is really an awesome
tool and one of the most advanced Wikis I know of.
I have a problem attaching a skin to a space via the
webpreferences of the space.
What I did:
1. I created an empty page XWiki.WebpageSkin and
attached a new objekt also called "XWiki.WebpageSkin"
of class XWiki.XWikiSkins.
I removed all contents from the "style" box and entered
"THIS IS THE HEADER" into the header box, just to see,
if the skin is used or not.
2. I testet the skin by appending ?skin=XWiki.WebpageSkin and
to a page and this worked fine.
3. I edited the Main webpreferences (via More Actions/Space
Preferences on Main.WebHome) and entered "XWiki.WebpageSkin"
in the "skin" box.
But this did not take effect.
When I did the same for the XWiki preferences (instead of the
space preferences), it did work properly, but for all spaces,
of course.
What did I do wrong? How can I configure different skins for
different spaces?
Any help would be highly appreciated
& thanks a lot in advance
& best
Lars
Hello,
In my wiki I've got several classes which objects I want to list, only when an Integer attribute is > or < then a certain value. However something like: #if($duration < 10), doesn't work. Anybody any ideas?
Thanks again,
Joep Janssen