[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-5254) Unusual bean mapping warnings

Tom Fennelly (JIRA) jira-events at lists.jboss.org
Tue Nov 24 10:57:37 EST 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-5254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12496345#action_12496345 ] 

Tom Fennelly commented on JBIDE-5254:
-------------------------------------

I had a little play with this.

The problem, as I see it is that, is with how the JsonInputDataParser class constructs the tagList (IXMLStructuredObject) for the SelectorCreationDialog dialog.  It uses the XMLObjectAnalyzer class to build up the TagList instance.  This instance gets set as the rootList on the IXMLStructuredObject returned to SelectorCreationDialog, but SelectorCreationDialog attempts to get the list from the IXMLStructuredObject's child list (yes... IXMLStructuredObject has 2 lists).

After modifying that locally, it gets rid of the warnings, but only temporarily :)  If I mod something, the List<Object> held by the SelectorValidator gets cleared and a thread is kicked off to async repopulate it.  Meantime (in a separate thread I assume), the SelectorValidator is called to validate the selectors against the internal List<Object>, but it hasn't been populated yet by the async thread.... more warnings.... when the List does get repopulated, the warnings are not getting removed because the validation doesn't seem to happen again.

Sooooo...... seems to be at least 2 issues here... how the tagList is being added to IXMLStructuredObject, and how the validation is synchronized.

Hope that's of some help.

> Unusual bean mapping warnings
> -----------------------------
>
>                 Key: JBIDE-5254
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-5254
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: smooks
>            Reporter: Tom Fennelly
>            Assignee: Xue Peng
>             Fix For: 3.1.0.CR1
>
>         Attachments: Screen shot 2009-11-24 at 11.21.55.png
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> When I:
> 1. Open the "json-to-java" example (Smooks project examples), 
> 2. Configure the input (using the input-message.jsn)
> 3. Open the "Java Mapping" process node.
> All the bean bindings have warnings on them saying "- Selector 'XXXX' isn't available".
> What's this about?  The Smooks config in question is totally valid, but in any case, can we do something here to help the user make sense of this?
> Image attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list