How does one obtain stats on the number of times an XWiki page has been
visited?
I've tried
$doc.getCurrentMonthPageStats("view").getVisits()
but all I get is 0. Perhaps I'm passign the wrong parameter ("view") -- I'm
just guessing at what it should be -- or perhaps I have to do something to
enable collection of stats?
Also, does xwiki track the number of times an attachment has been
downloaded?
Thanks in advance for help.
Regards,
Stephen
Hello,
I've found a few references on xwiki.org mentionning that Oracle was
not perfectly supported, and that some actions had to be taken to make
XWiki work well on Oracle.
Could it be possible to know more about Oracle support? What's really
required to make XWiki work on Oracle? Are the instructions found on
xwiki.org still relevant with the latest version of XWiki? Has someone
been running the latest version of XWiki on Oracle 9i or 10g?
Thanks in advance for your answers,
Guillaume
This is my first post to the list. Let me begin by saying I think XWiki is
very very cool.
I have 2 questions.
1. Is there a place I can look to find more info about setting up XWiki to
use LDAP for authentication? I looked at
http://www.xwiki.org/xwiki/bin/view/Dev/LDAPIntegration and link specific to
active directory. I'd like XWiki to simply check passwords against our LDAP
server but do nothing else with it (like trying to add users in it etc.). I
looked at the LDAPAuthServiceImpl.java source, but wasn't really able to
make anything out of it.
2. How do I enable logging and turn up the log level in XWiki?
I'll try to aggregate whatever helpful answers I get and add them to
xwiki.org.
Thanks,
--Craig
Hi All.
I have recently downloaded and installed xwiki on mysql. It was so smooth
and impressive, we wanted to use it enterprise wide and need to get it
working with Oracle for that. So, far I haven't been able to deploy it
properly.
Our Environment - Oracle 9.0.2 database, with Oracle 10g JDBC Thin drivers;
Running in Tomcat (4.1.31)
Used both the schema from the attachment in the 'oracle' page of
www.xwiki.org/xwiki/bin/view/AdminGuide/Oracle and also generated the schema
using Hibernate hbm2ddl (Oracle Dialect). I am unable to get this deployed
with Oracle database.
1. Can someone in the list, who has success with Oracle + Xwiki (at least
past where I am at), send a hibernate mapping file (xwiki.hbm.xml) that
worked for Oracle?
2. In addition to the steps outlined in the page above, are there any other
steps needed to get it working on Oracle? Can this be done with reasonable
config/code/db changes?
Any pointers to debugging this further are much appreciated.
Here is the problem I am currently facing.
When I point my browser to the xwiki main page (out of the box), I get the
StaleObjectStateException exception while saving 'multilingual' preference.
09:55:09,975 DEBUG http-8080-Processor5 <
http://nh120099:8080/xwiki/bin/view/Main/WebHome> Printer:toString:83 -
listing e
ntities:
09:55:09,975 DEBUG http-8080-Processor5 <
http://nh120099:8080/xwiki/bin/view/Main/WebHome> Printer:toString:90 -
com.xpn.x
wiki.objects.classes.BooleanClass{prettyName=Multi-Lingual ,
displayType=yesno, unmodifiable=false, classType=com.xpn.xwi
ki.objects.classes.BooleanClass, number=1}
09:55:09,975 DEBUG http-8080-Processor5
<http://nh120099:8080/xwiki/bin/view/Main/WebHome
> AbstractFlushingEventListener:p
erformExecutions:267 - executing flush
09:55:09,991 DEBUG http-8080-Processor5
<http://nh120099:8080/xwiki/bin/view/Main/WebHome
> BasicEntityPersister:delete:201
7 - Deleting entity:
[com.xpn.xwiki.objects.classes.BooleanClass#component[id,name]{name=multilingual,
id=104408758}]
09:55:09,991 DEBUG http-8080-Processor5
<http://nh120099:8080/xwiki/bin/view/Main/WebHome>
AbstractBatcher:logOpenPrepared
Statement:277 - about to open PreparedStatement (open PreparedStatements: 0,
globally: 1)
09:55:09,991 DEBUG http-8080-Processor5 <
http://nh120099:8080/xwiki/bin/view/Main/WebHome> SQL:log:311 - delete from
xwiki
booleanclasses where XWN_ID=? and XWN_NAME=?
Hibernate: delete from xwikibooleanclasses where XWN_ID=? and XWN_NAME=?
09:55:09,991 DEBUG http-8080-Processor5 <
http://nh120099:8080/xwiki/bin/view/Main/WebHome>
AbstractBatcher:getPreparedStat
ement:365 - preparing statement
09:55:10,053 DEBUG http-8080-Processor5 <
http://nh120099:8080/xwiki/bin/view/Main/WebHome> IntegerType:nullSafeSet:59
- bi
nding '104408758' to parameter: 1
09:55:10,053 DEBUG http-8080-Processor5 <
http://nh120099:8080/xwiki/bin/view/Main/WebHome> StringType:nullSafeSet:59
- bin
ding 'multilingual' to parameter: 2
09:55:10,116 DEBUG http-8080-Processor5 <
http://nh120099:8080/xwiki/bin/view/Main/WebHome>
AbstractBatcher:logClosePrepare
dStatement:285 - about to close PreparedStatement (open PreparedStatements:
1, globally: 2)
09:55:10,131 DEBUG http-8080-Processor5 <
http://nh120099:8080/xwiki/bin/view/Main/WebHome>
AbstractBatcher:closePreparedSt
atement:403 - closing statement
09:55:10,147 ERROR http-8080-Processor5 <
http://nh120099:8080/xwiki/bin/view/Main/WebHome>
AbstractFlushingEventListener:p
erformExecutions:277 - Could not synchronize database state with session
org.hibernate.StaleObjectStateException: Row was updated or deleted by
another transaction (or unsaved-value mapping was
incorrect): [com.xpn.xwiki.objects.classes.BooleanClass#<?xml version="1.0"
encoding="UTF-8"?>
<multilingual>
<name>multilingual</name>
<prettyName>Multi-Lingual</prettyName>
<unmodifiable>0</unmodifiable>
<displayType>yesno</displayType>
<number>1</number>
<classType>com.xpn.xwiki.objects.classes.BooleanClass</classType>
</multilingual>
]
at org.hibernate.persister.entity.BasicEntityPersister.check (
BasicEntityPersister.java:1431)
at org.hibernate.persister.entity.BasicEntityPersister.delete(
BasicEntityPersister.java:2062)
at org.hibernate.persister.entity.BasicEntityPersister.delete(
BasicEntityPersister.java :2203)
at org.hibernate.action.EntityDeleteAction.execute(
EntityDeleteAction.java:59)
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 :27
4)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(
DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:726)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiClassProperty (
XWikiHibernateStore.java:1288)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiClass(
XWikiHibernateStore.java:1165)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(
XWikiHibernateStore.java :517)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(
XWikiHibernateStore.java:557)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(
XWikiCacheStore.java:77)
at com.xpn.xwiki.XWiki.saveDocument (XWiki.java:556)
at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
at com.xpn.xwiki.XWiki.getMainXWiki (XWiki.java:134)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
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:696)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:146)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(
SetCharacterEncodingFilter.java :127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:166)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:209)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:144)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java :433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.catalina.core.StandardContext.invoke(
StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:133)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(
ErrorDispatcherValve.java:118)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java :116)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:127)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service (
CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
(Http11Protocol.java :705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(
PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:683)
at java.lang.Thread.run (Thread.java:534)
09:55:10,147 DEBUG http-8080-Processor5 <
http://nh120099:8080/xwiki/bin/view/Main/WebHome> XWikiException:<init>:175
- Err
or number 3222 in 3: Exception while saving class
XWiki.XWikiPreferences
Wrapped Exception: Row was updated or deleted by another transaction
(or unsaved-value mapping was incorrect): [com.xpn.
xwiki.objects.classes.BooleanClass#<?xml version="1.0"
encoding="UTF-8"?>
<multilingual>
<name>multilingual</name>
<prettyName>Multi-Lingual</prettyName>
<unmodifiable>0</unmodifiable>
<displayType>yesno</displayType>
<number>1</number>
<classType> com.xpn.xwiki.objects.classes.BooleanClass</classType>
</multilingual>
]
org.hibernate.StaleObjectStateException: Row was updated or deleted
by another transaction (or unsaved-value mapping was
incorrect): [com.xpn.xwiki.objects.classes.BooleanClass#<?xml
version="1.0" encoding="UTF-8"?>
<multilingual>
<name>multilingual</name>
<prettyName>Multi-Lingual</prettyName>
<unmodifiable>0</unmodifiable>
<displayType>yesno</displayType>
<number>1</number>
<classType>com.xpn.xwiki.objects.classes.BooleanClass </classType>
</multilingual>
]
at org.hibernate.persister.entity.BasicEntityPersister.check(
BasicEntityPersister.java:1431)
at org.hibernate.persister.entity.BasicEntityPersister.delete (
BasicEntityPersister.java:2062)
at org.hibernate.persister.entity.BasicEntityPersister.delete(
BasicEntityPersister.java:2203)
at org.hibernate.action.EntityDeleteAction.execute(
EntityDeleteAction.java :59)
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:27
4)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush (
DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:726)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiClassProperty(
XWikiHibernateStore.java:1288)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiClass(
XWikiHibernateStore.java:1165)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(
XWikiHibernateStore.java:517)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc (
XWikiHibernateStore.java:557)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(
XWikiCacheStore.java:77)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
at com.xpn.xwiki.XWiki.getPrefsClass (XWiki.java:1418)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
at com.xpn.xwiki.XWiki.getXWiki (XWiki.java:202)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
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:696)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:146)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(
SetCharacterEncodingFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:166)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java :209)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:144)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.catalina.core.StandardContext.invoke (
StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:133)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java :596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(
ErrorDispatcherValve.java:118)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java :594)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:116)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:127)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java :433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(
CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(
PoolTcpEndpoint.java :577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
09:55:10,162 DEBUG http-8080-Processor5
<http://nh120099:8080/xwiki/bin/view/Main/WebHome>
XWikiException:<init>:175 - Err
or number 3221 in 3: Exception while saving class
XWiki.XWikiPreferences
Wrapped Exception: Error number 3222 in 3: Exception while saving
class XWiki.XWikiPreferences
Wrapped Exception: Row was updated or deleted by another transaction
(or unsaved-value mapping was incorrect): [com.xpn.
xwiki.objects.classes.BooleanClass#<?xml version="1.0"
encoding="UTF-8"?>
<multilingual>
<name>multilingual</name>
<prettyName>Multi-Lingual</prettyName>
<unmodifiable>0</unmodifiable>
<displayType>yesno</displayType>
<number>1</number>
<classType> com.xpn.xwiki.objects.classes.BooleanClass</classType>
</multilingual>
]
com.xpn.xwiki.XWikiException: Error number 3222 in 3: Exception
while saving class XWiki.XWikiPreferences
Wrapped Exception: Row was updated or deleted by another transaction
(or unsaved-value mapping was incorrect): [com.xpn.
xwiki.objects.classes.BooleanClass#<?xml version="1.0"
encoding="UTF-8"?>
<multilingual>
<name>multilingual</name>
<prettyName>Multi-Lingual</prettyName>
<unmodifiable>0</unmodifiable>
<displayType>yesno</displayType>
<number>1</number>
<classType> com.xpn.xwiki.objects.classes.BooleanClass</classType>
</multilingual>
]
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiClassProperty(
XWikiHibernateStore.java:1304)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiClass(
XWikiHibernateStore.java:1165)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(
XWikiHibernateStore.java:517)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc (
XWikiHibernateStore.java:557)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(
XWikiCacheStore.java:77)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
at com.xpn.xwiki.XWiki.getPrefsClass (XWiki.java:1418)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
at com.xpn.xwiki.XWiki.getXWiki (XWiki.java:202)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
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:696)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:146)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(
SetCharacterEncodingFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:166)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java :209)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:144)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.catalina.core.StandardContext.invoke (
StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:133)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java :596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(
ErrorDispatcherValve.java:118)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java :594)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:116)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:127)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java :433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(
CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(
PoolTcpEndpoint.java :577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Wrapped Exception:
org.hibernate.StaleObjectStateException : Row was updated or deleted
by another transaction (or unsaved-value mapping was
incorrect): [com.xpn.xwiki.objects.classes.BooleanClass#<?xml
version="1.0" encoding="UTF-8"?>
<multilingual>
<name>multilingual</name>
<prettyName>Multi-Lingual</prettyName>
<unmodifiable>0</unmodifiable>
<displayType>yesno</displayType>
<number>1</number>
<classType>com.xpn.xwiki.objects.classes.BooleanClass</classType>
</multilingual>
]
at org.hibernate.persister.entity.BasicEntityPersister.check (
BasicEntityPersister.java:1431)
at org.hibernate.persister.entity.BasicEntityPersister.delete(
BasicEntityPersister.java:2062)
at org.hibernate.persister.entity.BasicEntityPersister.delete(
BasicEntityPersister.java :2203)
at org.hibernate.action.EntityDeleteAction.execute(
EntityDeleteAction.java:59)
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 :27
4)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(
DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:726)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiClassProperty (
XWikiHibernateStore.java:1288)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiClass(
XWikiHibernateStore.java:1165)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(
XWikiHibernateStore.java :517)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(
XWikiHibernateStore.java:557)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(
XWikiCacheStore.java:77)
at com.xpn.xwiki.XWiki.saveDocument (XWiki.java:556)
at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
at com.xpn.xwiki.XWiki.getMainXWiki (XWiki.java:134)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
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:696)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:146)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(
SetCharacterEncodingFilter.java :127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:166)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:209)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:144)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java :433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.catalina.core.StandardContext.invoke(
StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:133)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(
ErrorDispatcherValve.java:118)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java :116)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:127)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service (
CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
(Http11Protocol.java :705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(
PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:683)
at java.lang.Thread.run (Thread.java:534)
09:55:10,240 DEBUG http-8080-Processor5 <
http://nh120099:8080/xwiki/bin/view/Main/WebHome> XWikiException:<init>:175
- Err
or number 3201 in 3: Exception while saving document
XWiki.XWikiPreferences
Wrapped Exception: Error number 3221 in 3: Exception while saving
class XWiki.XWikiPreferences
Wrapped Exception: Error number 3222 in 3: Exception while saving
class XWiki.XWikiPreferences
Wrapped Exception: Row was updated or deleted by another transaction
(or unsaved-value mapping was incorrect): [com.xpn.
xwiki.objects.classes.BooleanClass#<?xml version="1.0"
encoding="UTF-8"?>
<multilingual>
<name>multilingual</name>
<prettyName>Multi-Lingual</prettyName>
<unmodifiable>0</unmodifiable>
<displayType>yesno</displayType>
<number>1</number>
<classType> com.xpn.xwiki.objects.classes.BooleanClass</classType>
</multilingual>
]
com.xpn.xwiki.XWikiException: Error number 3221 in 3: Exception
while saving class XWiki.XWikiPreferences
Wrapped Exception: Error number 3222 in 3: Exception while saving
class XWiki.XWikiPreferences
Wrapped Exception: Row was updated or deleted by another transaction
(or unsaved-value mapping was incorrect): [com.xpn.
xwiki.objects.classes.BooleanClass#<?xml version="1.0"
encoding="UTF-8"?>
<multilingual>
<name>multilingual</name>
<prettyName>Multi-Lingual</prettyName>
<unmodifiable>0</unmodifiable>
<displayType>yesno</displayType>
<number>1</number>
<classType> com.xpn.xwiki.objects.classes.BooleanClass</classType>
</multilingual>
]
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiClass(
XWikiHibernateStore.java:1173)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(
XWikiHibernateStore.java:517)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(
XWikiHibernateStore.java:557)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc (
XWikiCacheStore.java:77)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
at com.xpn.xwiki.web.ViewEditAction.execute (ViewEditAction.java
:117)
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 :696)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:146)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(
SetCharacterEncodingFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java :166)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:209)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java
:948)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:144)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java :596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.catalina.core.StandardContext.invoke (
StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:133)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java :596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(
ErrorDispatcherValve.java:118)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java :594)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:116)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:127)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext
(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(
StandardPipeline.java :433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java
:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(
CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process (
Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(
PoolTcpEndpoint.java :577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
======================
Please let me know if you need further information.
Thanks in advance,
Srini
I am running XWiki version 0.9.840 against an Oracle 9iR2 database. I
had to create a Hibernate custom type to change null string values to
empty string values. I have some issues with attachments - updates or
deletes have issues with the archive, and users have reported other, as
yet unreproducable, attachment problems. Everything else seems to work
well.
John
-----Original Message-----
From: Guillaume Laforge [mailto:glaforge@gmail.com]
Sent: Tuesday, 28 February 2006 10:59 PM
To: xwiki-users(a)objectweb.org
Subject: [xwiki-users] Oracle support
Hello,
I've found a few references on xwiki.org mentionning that Oracle was not
perfectly supported, and that some actions had to be taken to make XWiki
work well on Oracle.
Could it be possible to know more about Oracle support? What's really
required to make XWiki work on Oracle? Are the instructions found on
xwiki.org still relevant with the latest version of XWiki? Has someone
been running the latest version of XWiki on Oracle 9i or 10g?
Thanks in advance for your answers,
Guillaume
I try to create a new object of a class, but the form does not show up.
$doc.display("title", "edit", $obj) does not bring me an input field.
When investigating, it seems like following call returns a null-object.
#set($obj = $doc.getObject("XWiki.ArticleClass",0))
Anybody with xwiki experience that can explain?
My XWiki Version is 0.9.840
My code to add is from the default xwiki-base and look like this:
1.1 Add a News
#includeTopic("XWiki.XWikiCommonJavascript")
<form action="" id="newdoc">
<input type="hidden" name="parent" value="Main.WebHome" />
<input type="hidden" name="template" value="XWiki.ArticleClassTemplate" />
<input type="hidden" name="sheet" value="1" />
<input type="hidden" name="webname" value="Main"/>
<input type="hidden" name="name" value=""/>
<input type="text" name="title" value="page name" size="18"/>
<input type="button" value="Add this news" onclick='if (updateName(this.form.title,this.form.name)) { action="../../inline/" + this.form.webname.value + "/" + this.form.name.value; this.form.submit(); }' />
</form>
My template looks like this:
#includeForm("XWiki.ArticleClassSheet")
And the ClassSheet start like this:
#set($obj = $doc.getObject("XWiki.ArticleClass",0))
#if($context.action!="inline")
.....
#else
<table border="0">
<tr>
<td>
Title:
</td>
<td>
$doc.display("title", "edit", $obj)
......
It seems to me that this message did not make it on the list.
---------- Forwarded message ----------
From: Guillaume Laforge <glaforge(a)gmail.com>
Date: Feb 28, 2006 1:56 PM
Subject: Oracle support
To: xwiki-user(a)objectweb.org
Hello,
I've found a few references on xwiki.org mentionning that Oracle was
not perfectly supported, and that some actions had to be taken to make
XWiki work well on Oracle.
Could it be possible to know more about Oracle support? What's really
required to make XWiki work on Oracle? Are the instructions found on
xwiki.org still relevant with the latest version of XWiki? Has someone
been running the latest version of XWiki on Oracle 9i or 10g?
Thanks in advance for your answers,
Guillaume
--
Luis Arias
http://www.xwiki.comhttp://www.innover-entreprendre.net
skype : kaaloo
+33 6 14 20 87 93 mobile
Hi All,
I am new to xwiki & have a couple of simple questions I was unable find in the documentation or the mailing list.
First, the documentation on installing xwiki on Win2K says I need Tomcat v4.1. I was wondering if Tomcat 5 would work & if there were any issues I needed to be aware of before trying to run xwiki in Tomcat 5.
Second, the url to the xwiki webhome is mydomain.com/xwiki/bin/view/Main/WebHome. I would like the url to be mydomian.com/xwiki. I noticed some people are using the redirect meta tag to accomplish this. xwiki.org seems to be using some other mechanism to other than a redirect to forward the user to the more complicated url. I was wondering if others have the same concern and how they resolved the issue.
Thanks for your help!!
Linda