> This becoming really annoying!
well....
> I have verified my program thousands of time and made all possible changes
> but keep having the exception "ConstraintViolationException:[other
> application_specific information] mandatory property
> {http://www.jcp.org/jcr/1.0}created does not exist"
then you need to look harder :-) but i can't see where you set the
"created" property.
>
> My code consists in the following:
>
> public void store(String feName, String document) {
>
> Node root = session.getRootNode();
> Node n = root.addNode(feName, "nt:file");
> Node content = expNode.addNode("jcr:content", "nt:resource");
> content.setProperty("jcr:mimeType", "text/xml");
> content.setProperty("jcr:encoding", "");
> content.setProperty("jcr:data", document);
>
> Calendar lastModified = Calendar.getInstance ();
> long currentTime = System.currentTimeMillis();
> final long duration = currentTime - start;
> lastModified.setTimeInMillis(duration);
> content.setProperty("jcr:lastModified", lastModified);
> session.save();
> }
>
> Any help is truly appreciated. Thank you!
> Best Regards.
>
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar - get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>
--
-----------------------------------------< [EMAIL PROTECTED] >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---