[Users] Limit on field-number?

Paul Libbrecht paul at activemath.org
Thu Oct 2 19:35:30 CEST 2008


Hello XWikiers,

I seem to encounter a very bizarre SQL error while trying to update my  
class.
I am either uploading the class using a xar, with hand-edited-xml, or  
editing it with the class-editor.
In both cases I get an SQL error when trying to add the property.
I can happily re-upload another version which changes, e.g. changing a  
field name.
But I cannot add fields.

For a while I was believing that the field-number which was all  
handcrafted was wrong but it was not.
I renumbered and reached 63 fields.
Can it be that 64 is the maximum number of fields?
Can't really believe it.

I case the xml document, sole ingredient of my xar, is at:
  http://svn.activemath.org/intergeo/Platform/QualityFramework/src/main/resources/QF/ReviewClass.xml

paul

PS: the SQL error when I upload (using postgres) is
Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into  
xwikidoc (XWD_FULLNAME, XWD_NAME, XWD_TITLE, XWD_LANGUAGE,  
XWD_DEFAULT_LANGUAGE, XWD_TRANSLATION, XWD_DATE,  
XWD_CONTENT_UPDATE_DATE, XWD_CREATION_DATE, XWD_AUTHOR,  
XWD_CONTENT_AUTHOR, XWD_CREATOR, XWD_WEB, XWD_CONTENT, XWD_VERSION,  
XWD_CUSTOM_CLASS, XWD_PARENT, XWD_CLASS_XML, XWD_ELEMENTS,  
XWD_DEFAULT_TEMPLATE, XWD_VALIDATION_SCRIPT, XWD_COMMENT,  
XWD_MINOREDIT, XWD_ID) values (QF.ReviewClass, ReviewClass, , , en, 0,  
2008-09-23 09:12:26.000000 +0200, 2008-10-02 19:13:55.000000 +0200,  
2008-09-19 22:58:59.000000 +0200, XWiki.polx, XWiki.polx, XWiki.Admin,  
QF, <!-..... (the xml document

... was aborted.  Call getNextException to see the cause.
	at org.postgresql.jdbc2.AbstractJdbc2Statement 
$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2530)

(but XWiki doesn't get me 'next-exception')

PPS: the SQL error when I add a field is:
   2008-10-02 19:22:22,854 [http://draft.i2geo.net/xwiki/bin/propadd/QF/ReviewClass 
] [http-51080-2] ERROR jdbc.AbstractBatcher            - Exception  
executing batch:
org.hibernate.StaleStateException: Batch update returned unexpected  
row count from update [1]; actual row count: 0; expected: 1
(the xml file that I can get after that out of xwiki and back into it  
creates the same error)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2203 bytes
Desc: not available
Url : http://lists.inter2geo.eu/pipermail/users/attachments/20081002/c55edd13/attachment.bin 


More information about the Users mailing list