Hi Jozef,

thank you for the info. I've created a jira issue: https://issues.apache.org/jira/browse/JCR-1296

regards
 marcel

Jozef Wagner wrote:
Hi,

it's the method near the end of the file:

http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/WorkspaceManager.java?view=markup

it is thrown by service.submit(batch); and it is constraint exception,
about not supplying all required properties.

 private void execute(ChangeLog changeLog) throws RepositoryException,
ConstraintViolationException, AccessDeniedException,
ItemExistsException, NoSuchNodeTypeException,
UnsupportedRepositoryOperationException, VersionException {
            try {
                ItemState target = changeLog.getTarget();
                batch = service.createBatch(sessionInfo, target.getId());
                Iterator it = changeLog.getOperations();
                while (it.hasNext()) {
                    Operation op = (Operation) it.next();
                    log.debug("executing " + op.getName());
                    op.accept(this);
                }
            } finally {
                if (batch != null) {
                    service.submit(batch);
                    // reset batch field
                    batch = null;
                }
            }
        }

Best,
Jozef

Reply via email to