Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 14730 invoked from network); 5 Jan 2011 15:47:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jan 2011 15:47:41 -0000 Received: (qmail 15203 invoked by uid 500); 5 Jan 2011 15:47:40 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 14867 invoked by uid 500); 5 Jan 2011 15:47:37 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Delivered-To: moderator for users@jackrabbit.apache.org Received: (qmail 7623 invoked by uid 99); 5 Jan 2011 15:36:44 -0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) X-VirusChecked: Checked X-Env-Sender: TP3310@att.com X-Msg-Ref: server-10.tower-167.messagelabs.com!1294241770!26211117!1 X-StarScan-Version: 6.2.9; banners=-,-,- X-Originating-IP: [144.160.112.25] X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CBACEE.42C854FE" Subject: problem with removeMixin Date: Wed, 5 Jan 2011 10:35:59 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: problem with removeMixin Thread-Index: Acus7j+mKmc5Qum6SSuN4EzTQxlE9A== From: "PALMER, THOMAS C (ATTCORP)" To: X-OriginalArrivalTime: 05 Jan 2011 15:36:03.0523 (UTC) FILETIME=[42ED4130:01CBACEE] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01CBACEE.42C854FE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable We have a CMS application (Jackrabbit 2.2.0) that uses mix:versionable nodes in the draft workspace but then tries to strip the mix-in when promoting to the next workspace in the workflow. For code like the following: =20 1 if (node.isNodeType("mix:versionable")) { 2 node.removeMixin("mix:versionable"); 3 } =20 Even when the check in line 1 passes, we still get the following exception at line 2: =20 Caused by: javax.jcr.nodetype.NoSuchNodeTypeException: Mixin mix:versionable not included in node /a/b/c at org.apache.jackrabbit.core.RemoveMixinOperation.perform(RemoveMixinOpera tion.java:87) at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.jav a:200) at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91) at org.apache.jackrabbit.core.NodeImpl.removeMixin(NodeImpl.java:926) at org.apache.jackrabbit.core.NodeImpl.removeMixin(NodeImpl.java:2330) =20 Any ideas? Thanks - =20 ------_=_NextPart_001_01CBACEE.42C854FE--