You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Markus Joschko (JIRA)" <ji...@apache.org> on 2004/12/07 20:07:09 UTC

[jira] Created: (JCR-24) ClassCastException bei unregisterNodeType

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


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


[jira] Closed: (JCR-24) ClassCastException bei unregisterNodeType

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Assigned: (JCR-24) ClassCastException bei unregisterNodeType

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ http://nagoya.apache.org/jira/browse/JCR-24?page=history ]

Stefan Guggisberg reassigned JCR-24:
------------------------------------

    Assign To: Stefan Guggisberg

> 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


[jira] Resolved: (JCR-24) ClassCastException bei unregisterNodeType

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ 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