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
  • 1.  fileItem null pointer exception

    Posted Mon November 08, 2010 01:13 PM

    Hi.

    I’ve got a serious issue, and can’t find any solution!

    Using CAF on Designer 7.1.2 fix 8, I’m trying to develop a task that uploads a file to the MWS portal.
    On my page interface, I’m using a “file input” control, binded to a “fileItem” object.
    When I try to check on the content of the file (for example print the file name and size in the logs), I get a null pointer exception, which means the file item is never instanciated.

    Have anyone ever had the same issue (and most important, does anyone have a solution for me? )

    Thanks in advance.


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


  • 2.  RE: fileItem null pointer exception

    Posted Mon November 08, 2010 10:29 PM

    Could you please have a look at this article: http://tech.forums.softwareag.com/viewtopic.php?t=23225&start=0&postdays=0&postorder=asc&highlight=&sid=06d5b639b934ee199be9f24badcf6a62

    I realize it is against the 8.x version of CAF/MWS, but i don’t think the apis have changed. I believe that the same technique should allow you to get information about the uploaded file in your portlet actions.

    Regards,
    –mark


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


  • 3.  RE: fileItem null pointer exception

    Posted Wed November 10, 2010 04:27 PM

    I found my mistake. The submit button of my form was an asynchronous one. I changed to a command button and that’s it.


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