Re: [xwiki-users] Hibernate exceptions when saving documents and objects

2009-11-26 Thread Jeremie BOUSQUET
Got it ! :) I realized that there was "update" requests for not-working properties, whereas good ones were doing "insert", which is ok because it's a new object. I found a bunch of properties for my particular object id in "xwikiproperties". After purging them and restarting container, my object

Re: [xwiki-users] Hibernate exceptions when saving documents and objects

2009-11-26 Thread Jeremie BOUSQUET
The same exception occurs for either : doc.set("date", sdf.format(mydate)) doc.set("date", mydate) // mydate is java.util.Date obj.set("date", mydate)// same for sdf.format(mydate) of course Here is a longer log after increasing log level : DEBUG jdbc.AbstractBatcher- about to

Re: [xwiki-users] Hibernate exceptions when saving documents and objects

2009-11-25 Thread Jeremie BOUSQUET
I think I understand... Currently what I am doing is : doc.use(doc.newObject("MyClass")) doc.set("date", sdf.format(mydate) ) ... doc.save() With "mydate" being a Date. I think I did it because doc.set("date", new Date() ) was not working. It works with the formatted string, and only if format in

Re: [xwiki-users] Hibernate exceptions when saving documents and objects

2009-11-25 Thread Ludovic Dubost
I suspect you have used some method setStringValue where you should have used setDateValue Ludovic Envoyé de mon iPhone Le 25 nov. 2009 à 07:44, Jeremie BOUSQUET a écrit : > Hi, > > I have a groovy script in a page, that loads some data and create > pages and > objects with it. > Basical

[xwiki-users] Hibernate exceptions when saving documents and objects

2009-11-24 Thread Jeremie BOUSQUET
Hi, I have a groovy script in a page, that loads some data and create pages and objects with it. Basically for each input data 2 new documents are created, each with 2 new objects inside (one a custom class, and one for tags "XWiki.TagClass"). For most documents there is no problem, while for som