webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Need help with ClassCastException in beans

  • 1.  Need help with ClassCastException in beans

    Posted Tue June 15, 2010 10:24 PM

    In a portlet, I have an Async Table generated by the Content Provider that is bound to the results of an IS service. In the Content Provider table, I’ve added the SelectRow objects. I am able to select the rows. However, when I try map the selected rows to another table generated by another Content Provider, I get a class cast exception on the “from” table.
    I am following the code found in samples, CAF doc, and in there forums, but am, so far, unable to collect, move, get the contents of the rows selected.

    Any ideas out there? :x


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 2.  RE: Need help with ClassCastException in beans

    Posted Fri June 18, 2010 09:49 AM

    Hi,
    if the Row Java Type of your content providers is different, probably it won’t work (even though the IS doctype used for both IS services is the same one). You need to map the rows using a bean mapper (for example, Dozer, which can be found in Sourceforge).

    hope this helps,
    Javier


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS