What does this warning mean: [org.openide.nodes.DefaultHandle]: parent could not find own child??

View: New views
3 Messages — Rating Filter:   Alert me  

What does this warning mean: [org.openide.nodes.DefaultHandle]: parent could not find own child??

by erisch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

I get an error in the logs for an application I develop. I'm
implementing an explorer view for some nodes and everything seems to
work more or less correctly at the moment. I just got this message
sometimes when testing my application and I couldn't find really helpful
information about it.

Is this an error or just a warning? Can anyone explain what it means and
how to fix it? Thanks!

Marco

Re: What does this warning mean: [org.openide.nodes.DefaultHandle]: parent could not find own child??

by Jesse Glick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Marco Ehrentreich wrote:
> I get an error in the logs for an application I develop. I'm
> implementing an explorer view for some nodes and everything seems to
> work more or less correctly at the moment. I just got this message
> sometimes when testing my application and I couldn't find really
> helpful information about it.

Printed by DefaultHandle, which is the default impl of node path
serialization, which might be used when saving the expansion state of a
tree view. The warning means that

node.getParent().findChild(node.getName()) != node

which might occur if your node names are not sufficiently distinct from
those of their siblings.


Parent Message unknown Re: Re: What does this warning mean: [org.openide.nodes.DefaultHandle]: parent could not find own child??

by erisch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>> I get an error in the logs for an application I develop. I'm
>> implementing an explorer view for some nodes and everything seems to
>> work more or less correctly at the moment. I just got this message
>> sometimes when testing my application and I couldn't find really
>> helpful information about it.
>
> Printed by DefaultHandle, which is the default impl of node path
> serialization, which might be used when saving the expansion state of a
> tree view. The warning means that
>
> node.getParent().findChild(node.getName()) != node
>
> which might occur if your node names are not sufficiently distinct from
> those of their siblings.
>

Thanks a lot for this ultra fast answer ;) Chances are good that this is
the reason. I'll take a look at the getName() method...
LightInTheBox - Buy quality products at wholesale price