jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-24) ClassCastException bei unregisterNodeType
Date Wed, 08 Dec 2004 11:51:09 GMT
     [ http://nagoya.apache.org/jira/browse/JCR-24?page=history ]
     
Stefan Guggisberg resolved JCR-24:
----------------------------------

    Resolution: Fixed

fixed in r111259

thanks for reporting this bug!

> 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


Mime
View raw message