You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2004/12/08 12:51:09 UTC
[jira] Closed: (JCR-24) ClassCastException bei unregisterNodeType
[ 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