Re: Can not set a Date property with a Long value since JCR 1.6.2

2010-06-10 Thread Vidar Ramdal
>> On Wed, Jun 9, 2010 at 2:40 PM, Vidar Ramdal wrote: >>> With Jackrabbit 1.6.2, however, this fails: >>> javax.jcr.nodetype.ConstraintViolationException: no matching property >>> definition found for {http://www.jcp.org/jcr/1.0}lastModified >>> [...] >>> Is this a bug, or intentional? > On Wed,

Re: Can not set a Date property with a Long value since JCR 1.6.2

2010-06-09 Thread Vidar Ramdal
On Wed, Jun 9, 2010 at 2:47 PM, Jukka Zitting wrote: > Hi, > > On Wed, Jun 9, 2010 at 2:40 PM, Vidar Ramdal wrote: >> With Jackrabbit 1.6.2, however, this fails: >> javax.jcr.nodetype.ConstraintViolationException: no matching property >> definition found for {http://www.jcp.org/jcr/1.0}lastModifi

Re: Can not set a Date property with a Long value since JCR 1.6.2

2010-06-09 Thread Jukka Zitting
Hi, On Wed, Jun 9, 2010 at 2:40 PM, Vidar Ramdal wrote: > With Jackrabbit 1.6.2, however, this fails: > javax.jcr.nodetype.ConstraintViolationException: no matching property > definition found for {http://www.jcp.org/jcr/1.0}lastModified > [...] > Is this a bug, or intentional? This looks like a

Can not set a Date property with a Long value since JCR 1.6.2

2010-06-09 Thread Vidar Ramdal
This worked in Jackrabbit 1.6.0: var node = session.getItem("/"); node = node.addNode("dummy", "nt:resource"); ValueFactory vf = session.getValueFactory(); Value = vf.createValue("1234", 3); // Create a LongValue node.setProperty("jcr:lastModified", value); out.println(node.getProperty("jcr:lastMod