Document name is "XWiki.macom_admin1301121402082"
I've seen this happen on our local wiki; the result is that the document
cannot be deleted regardless of what is done to the server.
I really need this doc deleted though :s.
---error text---
Error number 3203 in 3: Exception while deleting document
XWiki.macom_admin1301121402082
Wrapped Exception: Batch update returned unexpected row count from
update: 0 actual row count: 0 expected: 1
com.xpn.xwiki.XWikiException: Error number 3203 in 3: Exception while
deleting document XWiki.macom_admin1301121402082
Wrapped Exception: Batch update returned unexpected row count from
update: 0 actual row count: 0 expected: 1
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiDoc(XWikiHibernateSto
re.java:540)
at
com.xpn.xwiki.store.XWikiCacheStore.deleteXWikiDoc(XWikiCacheStore.java:
185)
at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3129)
at com.xpn.xwiki.XWiki.deleteAllDocuments(XWiki.java:4741)
at com.xpn.xwiki.web.DeleteAction.action(DeleteAction.java:52)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:149)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:118)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:210)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
51)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87
0)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:685)
at java.lang.Thread.run(Thread.java:595)
Wrapped Exception:
org.hibernate.StaleStateException: Batch update returned unexpected row
count from update: 0 actual row count: 0 expected: 1
at
org.hibernate.jdbc.BatchingBatcher.checkRowCount(BatchingBatcher.java:93
)
at
org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:7
9)
at
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:5
8)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195
)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java
:91)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java
:86)
at
org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEn
tityPersister.java:2274)
at
org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEn
tityPersister.java:2440)
at
org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:
65)
at
org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:145)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(
AbstractFlushingEventListener.java:296)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEv
entListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1009)
at
org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:356)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:10
6)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernat
eBaseStore.java:617)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernat
eBaseStore.java:591)
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiDoc(XWikiHibernateSto
re.java:537)
at
com.xpn.xwiki.store.XWikiCacheStore.deleteXWikiDoc(XWikiCacheStore.java:
185)
at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3129)
at com.xpn.xwiki.XWiki.deleteAllDocuments(XWiki.java:4741)
at com.xpn.xwiki.web.DeleteAction.action(DeleteAction.java:52)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:149)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
ngFilter.java:118)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:210)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
51)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87
0)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:685)
at java.lang.Thread.run(Thread.java:595)
Hi,
I've had a request from one of my users to create a script on our hosted
wiki that will create all the needed wiki content for one of their
lists.
* Problem 1, there is over 2000 xwiki documents to create from
this list
* Problem 2, they're a little anxious to get it going
I've tried using the $xwiki.createDocument in the underneath code (most
likely more saves than necessary).
What seems to be happening is this:
* Does not create a new document, attaches instead to
XWiki.WebHome
* All following changes occur to XWiki.Webhome - including rename.
Origionally had it saving after each change, no difference.
#set($seedForUnique=$xwiki.formatDate($xwiki.currentDate,
"HHmmssddMMyyyy"))
#set($userUnique=$context.user.replace("XWiki.", ""))
#set($generatedUnique="${userUnique}${seedForUnique}")
#set($baseAVLClass='XWiki.AVLEntryClass')
#set($baseSupplierClass='XWiki.VendorClass')
#set($newSupplierPartClass='XWiki.AVLVendorClass')
#set($newDocument=$xwiki.createDocument())
$newDocument.rename($generatedUnique)
$newDocument.setContent('#includeForm("AVL.VendorClassSheet")')
$newDocument.createNewObject('${baseSupplierClass}')
$newDocument.save()
#set($docObj=$newDocument.getObject('${baseSupplierClass}', 0))
$docObj.set('name', 'Samsung')
$docObj.set('email', '')
$newDocument.save()
I would guess I'm not doing a crucial step (or doing that step wrong)?
Better suggestions welcome too :)
On wikimatrix.org I read CamelCase is optional feature in xwiki. How can I
switch it on ?
What I shoud do when I need translate xwiki user interface to Slovak
language ?
Frantisek Kall
Hi,
Thank you for your answer.
Benoît
-----Message d'origine-----
De : users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org]De la part
de Sergiu Dumitriu
Envoyé : jeudi 14 février 2008 00:23
À : XWiki Users
Objet : Re: [xwiki-users] Creating a class : hHow to add tye of
properties?
HERICHER Benoit DSIC BUA wrote:
> Hi,
>
> I would like to create a class "Contact" with a property "
> PersonalAddress". As I guess that will have to reuse the concept of
> Address to manage other things , I decide to create first a class
> "Address" and then I would like to assign this type to the property
> "PersonalAddress" of the class "Contact" as one would do in OO Languages
> like Java ; but it doesn't seem possible or did I miss something?
>
> Thank you
>
> Benoît
>
>
Hi,
This is not possible. Classes in XWiki can have fields only of
predefined, simple data types. Usually, the strategy to do what you want
is like this:
1. Create the Address class, also adding an "address type" field.
2. In a document, use one Contact object and several Address objects.
This way you gain even more flexibility. You can either use one Address
object with "type" = "personal" and one with "type" = "work" (or
whatever values you like), or you can accept any number of objects, and
the user can select what type of address he wants, and a button "add
address" allows him to add a new Address object.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hello all,
I have edited the fields in XWiki.ArticleClass for the users to enter data into fields rather than the "Content" and "Extract" fields. However, those fields still exist and there is no space for the deletion of the class property. Is there a function in XWiki which allows the deletion of class properties or I must I recreate the entire class/classheet/template and not include those fields. Thank you in advance for your help.
Tim Campbell
Hello,
While upgrading xwiki 0.9 to 1.2, we run accross this problem:
1) we copy db to a new db for upgrade
2) we fix a column according to docs (issuing an alter statement)
3) we start first time xwiki 1.2
4) we get bunch of document upgrade messages
5) we get some warnings about author/date in history
6) we upload and set xwiki skin usnig our old skin (which wasmainly the
old defuat skin with some customized css)
7) we get this error: (how are we supposed to fix it?)
org.apache.velocity.exception.ParseErrorException: Encountered
">Blog<.a><span> | <.span> <a
href=\"......view.Main.KnowledgeBase\",\"view\")\">Knowledge
Base</a><span> | </span> \r\n-->\r\n<a href=\"" at line 3, column 38 of
view.Main
Was expecting one of:
"," ...
")" ...
<WHITESPACE> ...
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:212)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:95)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.interpret(XWikiVelocityRenderer.java:60)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:247)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.interpretText(DefaultXWikiRenderingEngine.java:150)
at com.xpn.xwiki.XWiki.parseContent(XWiki.java:1313)
at com.xpn.xwiki.api.XWiki.parseContent(XWiki.java:554)
at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1354)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:607)
at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1354)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:105)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:158)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java: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
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:673)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:362)
at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:283)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
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)
thanks for suggestions and regards,
David Delbecq
Hi,
I would like to create a class "Contact" with a property " PersonalAddress".
As I guess that will have to reuse the concept of Address to manage other
things , I decide to create first a class "Address" and then I would like to
assign this type to the property "PersonalAddress" of the class "Contact" as
one would do in OO Languages like Java ; but it doesn't seem possible or did
I miss something?
Thank you
Benoît
Hi all,
sometimes when I try to change rights, xwiki doesn't updates all changes.
This problem appends when I have more than one column rights set and I try
to change some allow cells into deny
Regards
Raffo
--
View this message in context: http://www.nabble.com/edit-page-rights-problem-tp15434468p15434468.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi guys..
Can't seem to find in the api any means to set the subject for a message
being sent using this method - is this not possible?
Brandon Esbach
Software Engineer
Wireless Systems Segment
Tyco Electronics
4 Eastgate Road
Eastgate
Little Island
Co. Cork
Ireland
Tel: +353-21-4808305
Email: esbachb(a)tycoelectronics.com