From jackrabbit-dev-return-422-apmail-incubator-jackrabbit-dev-archive=www.apache.org@incubator.apache.org Wed Dec 08 11:51:13 2004 Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 36262 invoked from network); 8 Dec 2004 11:51:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Dec 2004 11:51:13 -0000 Received: (qmail 67655 invoked by uid 500); 8 Dec 2004 11:51:11 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 67633 invoked by uid 99); 8 Dec 2004 11:51:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from exchange.sun.com (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 08 Dec 2004 03:51:11 -0800 Received: (qmail 26012 invoked from network); 8 Dec 2004 11:51:09 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 8 Dec 2004 11:51:09 -0000 Message-ID: <1176357575.1102506669613.JavaMail.apache@nagoya> Date: Wed, 8 Dec 2004 03:51:09 -0800 (PST) From: "Stefan Guggisberg (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Closed: (JCR-24) ClassCastException bei unregisterNodeType In-Reply-To: <1532529145.1102446429093.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://nagoya.apache.org/jira/browse/JCR-24?page=history ] Stefan Guggisberg closed JCR-24: -------------------------------- > ClassCastException bei unregisterNodeType > ----------------------------------------- > > Key: JCR-24 > URL: http://nagoya.apache.org/jira/browse/JCR-24 > Project: Jackrabbit > Type: Bug > Environment: jdk1.4.2_05/linux > Reporter: Markus Joschko > Assignee: Stefan Guggisberg > > I have a NodeType with various childnodes which I want to unregister. If I call: > > NodeTypeManager ndmg = session.getWorkspace().getNodeTypeManager(); > NodeTypeRegistry ntReg = ((NodeTypeManagerImpl) ndmg).getNodeTypeRegistry(); > ntReg.unregisterNodeType(new QName("testURI","Page")); > I get a > java.lang.ClassCastException > at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.getDependentNodeTypes(NodeTypeRegistry.java:1242) > at org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.unregisterNodeType(NodeTypeRegistry.java:1120) > at de.freaquac.test.JCRTest.main(JCRTest.java:80) > It looks to me like there are QNames in the Iterator but NodeTyeDefs are expected. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira